/* Goldinger · what WordPress needs on top of the draft. style.css is the stylesheet of the
   approved draft, unchanged. Everything here is an addition, never a redesign. */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--petrol);
  color: var(--ivory);
}
.skip:focus {
  top: 1rem;
}

/* Head failsafe (inc/assets.php): when main.js did not start after 3 s, show everything
   the animations would reveal. */
.no-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.no-motion .reveal-img {
  clip-path: none !important;
}

/* Large type breaks long words at syllables, never after a single letter. */
h1,
h2,
h3 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 12 4 4;
}

/* The sticky header sits below the admin bar for logged-in users. */
.admin-bar .site-top {
  top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--topline-h, 34px));
}
@media (max-width: 600px) {
  /* Below 600 px the admin bar scrolls away with the page. */
  .admin-bar .site-top {
    top: calc(-1 * var(--topline-h, 34px));
  }
}

/* Rich text fields come wrapped in their own element: same spacing as the draft's paragraphs. */
.intro__body > p:first-child {
  margin-top: 1.6rem;
}
.salon-band__body > p + p {
  margin-top: 1rem;
}
.lead > p,
.contact-note > p {
  margin: 0;
}

/* Text pages (Impressum, Datenschutz): block content in the article layout of the blog. */
.text-page .prose {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.text-page .prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Frontend editor (plugin, editors only): masks that would cut the outline stay open,
   decorative layers let clicks through. */
.goldinger-editing .portal__ring,
.goldinger-editing .tmodal__close {
  pointer-events: none;
}
.goldinger-editing [data-split] > * {
  overflow: visible !important;
}

/* The welcome letter sits in its own element, so the sign is no longer "p + p". */
.intro__body + .intro__sign {
  margin-top: 1.15rem;
}

/* Product photos and line tiles: the frame has a fixed shape, the photo fills it whatever
   size it has (goldinger_fit_class() in inc/template-tags.php). Photos close to square fill
   the frame and are cropped at the edges, tall or wide photos are shown whole and as large
   as the frame allows. Nothing is stretched. */
.pcard__img,
.line-tile__img {
  position: relative;
  overflow: hidden;
}
.pcard__img img,
.line-tile__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  padding: 0;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Der Rahmen bekommt seine Höhe aus einem Platzhalter statt nur aus aspect-ratio: Das Foto liegt
   absolut im Rahmen, und manche Browser (Safari am Computer) lassen den Rahmen sonst auf Höhe 0
   zusammenfallen, dann fehlen die Bilder (Mario, 29.11.). */
.pcard__img,
.line-tile__img { width: 100%; flex: 0 0 auto; }
.pcard__img::before { content: ""; display: block; padding-top: 100%; }
.line-tile__img:not(.line-tile__img--all)::before { content: ""; display: block; padding-top: 75%; }
.pcard__img.fit-contain img,
.line-tile__img.fit-contain img {
  object-fit: contain;
  padding: 0.5rem;
  mix-blend-mode: multiply;
}
/* Originalfotos der Linien: Stimmungsbilder, nicht multiplizieren */
.line-tile__img.fit-fill img {
  mix-blend-mode: normal;
}
.line-tile__img--all img {
  position: static;
  object-fit: contain;
  padding: 1.1rem;
}
.split .lead + div > p:first-child {
  margin-top: 1rem;
}

/* ---------- Videos: Videothek, Startseite, [video] im Text ---------- */

.videothek__note {
  max-width: 46rem;
  margin: 0 0 2.4rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.videothek__note a { margin-left: 0.25rem; }

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2.4vw, 1.8rem);
}
.vgrid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .vgrid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.9rem; }
}

.vcard { display: flex; flex-direction: column; scroll-margin-top: 7rem; }
.vcard--inline { max-width: 15rem; margin: 2rem 0; }

.vcard__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(40, 52, 48, 0.08);
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-soft);
}
.vcard__poster,
.vcard__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard__img--empty { background: var(--ivory-deep); }
.vcard__img { transition: transform 0.8s var(--ease-soft); }
.vcard__play:hover .vcard__img { transform: scale(1.03); }
.vcard__play:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vcard.is-target .vcard__play { box-shadow: 0 0 0 3px var(--gold); }

/* Abspielen-Knopf im freien unteren Teil des Titelblatts */
.vcard__icon {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--ivory);
  transform: translateX(-50%);
  transition: background-color 0.3s var(--ease-soft);
}
.vcard__icon svg { margin-left: 2px; }
.vcard__play:hover .vcard__icon { background: var(--petrol-deep); }

.vcard__time {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--petrol);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vcard__title {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--petrol);
}
.vcard__frage {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Player-Fenster */
html.vplayer-open { overflow: hidden; }
.vplayer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.vplayer::backdrop { background: rgba(14, 38, 40, 0.86); }
.vplayer__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  height: 100%;
  padding: 4rem 1rem 2rem;
}
.vplayer__frame {
  flex: none;
  height: min(100%, 86dvh);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.vplayer__frame iframe,
.vplayer__frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.vplayer__text { max-width: 22rem; }
.vplayer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: #fff;
}
.vplayer__frage { margin-top: 0.5rem; color: var(--gold-on-dark); }
.vplayer__kurz { margin-top: 1.1rem; font-size: 0.95rem; line-height: 1.65; color: rgba(255, 255, 255, 0.82); }
.vplayer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}
.vplayer__close:hover,
.vplayer__close:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; border-color: #fff; }
@media (max-width: 800px) {
  .vplayer__panel { flex-direction: column; justify-content: flex-start; gap: 1rem; padding-top: 4.2rem; }
  .vplayer__frame { height: auto; width: min(100%, calc((100dvh - 10rem) * 9 / 16)); }
  .vplayer__text { max-width: 30rem; text-align: center; }
  .vplayer__kurz { display: none; }
}
.videothek { padding-top: clamp(0.5rem, 2vw, 1.5rem); }

/* ---------- Behandlungen: ein Wort im Namen fett (Advanced Skin *Management*) ---------- */
.treat__name em, .treat__name strong,
.t-card h3 em, .t-card h3 strong { font-style: normal; font-weight: 700; color: var(--forest); }

.tfoym__price { margin: 1.4rem 0 0; font-family: var(--sans, inherit); font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }

/* ---------- Eigenentwicklung ganz oben: Add-on und Blöcke zur Maske ---------- */
.tfoym__addon {
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  padding: 0 clamp(1.2rem, 3vw, 2.4rem);
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 1.4rem;
}
.tfoym__addon-note {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}
.tfoym .treat--addon { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
.tfoym .treat--addon { padding-block: 1rem 1.6rem; }
.tfoym .treat--addon + .treat--addon { border-top: 1px solid var(--gold-soft); padding-top: 1.6rem; }
.tfoym .treat--addon:last-child { border-bottom: 0; }
.tfoym .treat--addon:hover { background: transparent; }
.tfoym .treat__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--petrol);
}
.tfoym__more { margin-top: clamp(2.6rem, 6vw, 4rem); }
.tfoym__blocks {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.mask-block__media {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ivory-deep);
  box-shadow: 0 0 0 1px var(--gold-soft);
}
.mask-block__media:empty { display: none; }
.mask-block__media img { width: 100%; height: 100%; object-fit: cover; }
.mask-block h4 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--petrol);
}
.mask-block__text { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }
.mask-block__text p + p { margin-top: 0.7rem; }
@media (max-width: 760px) {
  .tfoym .treat--addon { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Startseite: Behandlungskarten in zwei Dreierreihen (Mario, 29.11.) ---------- */
.treatment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .treatment-grid { display: flex; } }

/* ---------- Startseite: Produktpartner, zwei Logos gleich ausgerichtet (Mario, 29.11.) ---------- */
.partner-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 56rem;
}
.partner-row .partner-brand + .partner-brand { margin-top: 0; padding-top: 0; border-top: 0; }
.partner-logo { display: block; width: auto; max-width: 100%; height: 5.5rem; object-fit: contain; object-position: left center; margin: 0 0 0.6rem; }
.partner-logo--derma { filter: brightness(0.62); }
/* sothys-logo.png (600x200): Schrift füllt nur x 17-83 %, y 22-75 %. Größer skaliert und per negativem Rand beschnitten, damit sie so breit wirkt wie dermaviduals und links bündig beginnt. */
.partner-logo--sothys { mix-blend-mode: multiply; width: 123%; max-width: none; height: auto; margin: -9% 0 -9% -20.5%; }
@media (max-width: 700px) { .partner-logo--sothys { width: 100%; margin: -7% 0 -7% -16.5%; } }
/* /produkte/, Markenkopf: klassisches Logo mit demselben Beschnitt */
.brand-head__logo--classic { width: 22rem; max-width: none; height: auto; mix-blend-mode: multiply; margin: -1.4rem 0 -1.4rem -3.7rem; }
@media (max-width: 700px) { .brand-head__logo--classic { width: 17rem; margin: -1.1rem 0 -1.1rem -2.9rem; } }
.partner-brand p { max-width: 28rem; }
@media (max-width: 700px) { .partner-row { grid-template-columns: 1fr; } }

/* ---------- Fußzeile: eine Schriftfarbe, alles weiß (Mario, 29.11.) ---------- */
.site-footer,
.site-footer h4,
.site-footer a,
.site-footer li,
.site-footer p,
.footer-base { color: var(--ivory); }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-base { border-top-color: rgba(253, 251, 246, 0.3); }

/* ---------- Hauptmenü mit Videothek: etwas enger, damit alles Platz hat ---------- */
.main-nav { gap: clamp(0.8rem, 1.4vw, 1.6rem); }

/* ---------- Über mich: Foto ganz oben ---------- */
.page-hero--portrait .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.page-hero__visual { width: min(100%, 400px); justify-self: center; }
.page-hero__visual .portal__frame { aspect-ratio: 4 / 5; }
.page-hero__visual .portal__frame img { object-position: 50% 38%; }
@media (max-width: 900px) {
  .page-hero--portrait .container { grid-template-columns: 1fr; }
  .page-hero__visual { order: -1; width: min(100%, 320px); }
}

/* ---------- Behandlungen: Add-on-Liste (Extras) unter der Eigenentwicklung ---------- */
.extras--addon {
  max-width: none;
  margin: 0;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--gold-soft);
}
.extras--addon .eyebrow { margin-bottom: 0.6rem; }
.edit-hint { margin-top: 1rem; font-size: 0.8rem; }
.edit-hint a { border-bottom: 1px solid var(--gold); }

/* ---------- Desktop-Menü: wichtigste Punkte sichtbar, Rest hinter drei Strichen ---------- */
.more-nav { position: relative; display: none; }
@media (min-width: 1241px) {
  .more-nav { display: block; }
}
.more-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  background: none;
  border: 1px solid rgba(218, 192, 120, 0.45);
  border-radius: 50%;
  cursor: pointer;
}
.more-nav__toggle span { display: block; width: 100%; height: 1.5px; background: var(--gold); transition: transform .25s, opacity .25s; }
.more-nav__toggle:hover { background: rgba(218, 192, 120, 0.16); }
.more-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.more-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.more-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.more-nav__panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 60;
  min-width: 15rem;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
  background: var(--petrol-deep);
  border: 1px solid rgba(218, 192, 120, 0.4);
  box-shadow: 0 14px 34px rgba(7, 40, 42, 0.28);
}
.more-nav__panel[hidden] { display: none; }
.more-nav__panel a {
  padding: 0.75rem 1.4rem;
  color: rgba(253, 251, 246, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.more-nav__panel a:hover,
.more-nav__panel a:focus-visible,
.more-nav__panel a[aria-current="page"] { color: var(--gold-on-dark); background: rgba(253, 251, 246, 0.06); }

/* Produkte: die Produktliste der nicht gewählten Marke bleibt geschlossen */
.brand-sec[hidden] { display: none; }

/* ---------- Produkte: Sticky-Leiste unten (Marken, Linien, nach oben) ---------- */
/* Unter Kopfzeile (60), Menü (70), Suche (90) und Popups (100), damit nichts davon verdeckt wird. */
.admin-bar .brand-sec,
.admin-bar .linien-group,
.admin-bar #derma-produkte,
.admin-bar #sothys-produkte,
.admin-bar .pcard { scroll-margin-top: calc(6.5rem + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 600px) {
  .admin-bar .brand-sec,
  .admin-bar .linien-group,
  .admin-bar #derma-produkte,
  .admin-bar #sothys-produkte,
  .admin-bar .pcard { scroll-margin-top: 6.5rem; }
}

.pnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--petrol);
  color: var(--ivory);
  border-top: 1px solid rgba(218, 192, 120, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-soft, ease), visibility 0s linear 0.35s;
}
.pnav.is-visible { transform: none; visibility: visible; transition: transform 0.35s var(--ease-soft, ease), visibility 0s; }
.pnav.is-visible.is-footer { transform: translateY(100%); visibility: hidden; transition: transform 0.35s var(--ease-soft, ease), visibility 0s linear 0.35s; }

.pnav__inner { max-width: 1240px; margin: 0 auto; padding: 0.55rem clamp(1rem, 3vw, 2rem); }
.pnav__row { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pnav__row--lines { margin-top: 0.4rem; }
.pnav__row[hidden] { display: none; }
.pnav__list { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pnav__list li { flex: 0 0 auto; margin: 0; }
.pnav__chips { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; flex: 1 1 auto; }
.pnav__chips::-webkit-scrollbar { display: none; }

.pnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(218, 192, 120, 0.4);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pnav__link--brand { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.pnav__link:hover { border-color: var(--gold); }
.pnav__link:focus-visible, .pnav__top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pnav__link[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--petrol-deep); }

.pnav__top {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.3rem 0.4rem 0.3rem 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.pnav__top:hover { color: var(--ivory); }

@media (max-width: 700px) {
  .pnav__inner { padding: 0.4rem 0.75rem 0.45rem; }
  .pnav__row { gap: 0.5rem; }
  .pnav__row--lines { margin-top: 0.3rem; }
  .pnav__link { min-height: 34px; padding: 0.25rem 0.75rem; font-size: 0.72rem; }
  .pnav__top { padding: 0.3rem; min-width: 36px; min-height: 36px; justify-content: center; border: 1px solid rgba(218, 192, 120, 0.4); border-radius: 999px; }
  .pnav__top-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .pnav, .pnav.is-visible, .pnav__link { transition: none; }
}

/* Startseite: weicheres Logo von Mario (sothys-logo-soft.png, auf die Schrift zugeschnitten). Gleiche sichtbare Breite wie vorher das klassische Logo. */
.partner-logo--sothys-soft { width: 82%; max-width: none; height: auto; }
@media (max-width: 700px) { .partner-logo--sothys-soft { width: 66%; } }

/* Blog: Datum und Lesezeit brechen nicht mitten im Wort um */
.bcard__meta time, .bcard__read { white-space: nowrap; }
