/* ==========================================================================
   Vorlage 10 Friseur / Kosmetik · Studio Wirbel (Demo)
   --------------------------------------------------------------------------
   Warm und persönlich, ohne Rosé-Gold und Puderrosa: Pflaume, Zitrone, helles
   Grau. Young Serif für Überschriften, Schibsted Grotesk für Text.
   Umfärben: nur die Werte unter „Farben" ändern.
   Bewegung: im <html>-Tag data-bewegung="starr | mittel | dynamisch".
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License, Lizenz in fonts/) ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* ---------- Farben ---------- */
  --nebel: #f1efec;            /* Seitenhintergrund */
  --nebel-tief: #e1dcdf;       /* Bildrahmen */
  --pflaume: #3e1a3f;          /* dunkle Flächen, Gutschein, Fuß */
  --pflaume-hell: #ebe3ea;     /* Abschnitt Preise */
  --text: #1c1620;
  --text-leise: #5d5460;       /* Nebentext, 6,1:1 auf Nebel, 5,6:1 auf Pflaume hell */
  --text-hell: #f5f0f4;        /* Schrift auf Pflaume, 12:1 */
  --text-hell-leise: #cbbfca;  /* Nebentext auf Pflaume, 7,7:1 */
  --zitrone: #efe26a;          /* Knöpfe. Pflaume-Schrift darauf 10:1. Nie als Schrift auf hell */
  --zitrone-tief: #e2d24a;
  --linie: #cfc6cd;
  --fokus: var(--pflaume);

  /* ---------- Schrift ---------- */
  --schrift-titel: "Young Serif", Georgia, serif;
  --schrift-text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  /* ---------- Maße ---------- */
  --breite: 76rem;
  --rand: clamp(1.25rem, 4.5vw, 3rem);
  --abschnitt: clamp(4.5rem, 9vw, 8rem);
  --ecke: 20px;                /* Bilder und Flächen weich */
  --ecke-knopf: 999px;         /* Knöpfe rund */
  --ease: cubic-bezier(.22, .9, .25, 1);

  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--nebel); color: var(--text);
  font-family: var(--schrift-text); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }
main { overflow-x: clip; }

.behaelter { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sprunglink { position: absolute; left: var(--rand); top: -4rem; z-index: 30; background: var(--pflaume); color: var(--text-hell); padding: .75rem 1rem; border-radius: 10px; }
.sprunglink:focus { top: .75rem; }

.abschnitt-titel {
  font-family: var(--schrift-titel); font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.01em;
  max-width: 20ch;
}

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.75rem;
  background: var(--zitrone); color: var(--pflaume);
  border-radius: var(--ecke-knopf);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--zitrone-tief); }
.knopf-klein { min-height: 2.6rem; padding: .5rem 1.15rem; font-size: .9375rem; }

/* ---------- Bildrahmen (Platzhalter für Fotos) ---------- */
.bild-platzhalter {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: var(--format, 4 / 5);
  background:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 14px, rgb(62 26 63 / .07) 14px 15px),
    var(--nebel-tief);
  border-radius: var(--ecke);
  overflow: hidden;
}
.bild-platzhalter figcaption {
  margin: .8rem; padding: .45rem .7rem; max-width: calc(100% - 1.6rem);
  background: var(--nebel); color: var(--text); border-radius: 10px;
  font-size: .75rem; line-height: 1.35;
}

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--nebel); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 1.75rem; min-height: 4.25rem; }
.marke { font-family: var(--schrift-titel); font-size: 1.5rem; line-height: 1; text-decoration: none; margin-right: auto; }
.kopf-nav ul { display: flex; gap: 1.6rem; }
.kopf-nav a { text-decoration: none; font-weight: 600; }
.kopf-nav a:hover { text-decoration: underline; }
@media (max-width: 47.99rem) { .kopf-nav { display: none; } }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; min-height: 2.6rem; padding: .5rem 1rem; border: 1.5px solid var(--pflaume); border-radius: var(--ecke-knopf); font-weight: 700; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--pflaume); color: var(--text-hell); }
.menue nav { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; min-width: 12rem; background: var(--pflaume); color: var(--text-hell); border-radius: var(--ecke); overflow: hidden; --fokus: var(--zitrone); }
.menue nav a { display: block; padding: .85rem 1.1rem; text-decoration: none; font-weight: 700; }
.menue nav li + li { border-top: 1px solid rgb(245 240 244 / .15); }
@media (min-width: 48rem) { .menue { display: none; } }
@media (max-width: 59.99rem) { .kopf-knopf { display: none; } }

/* ---------- 1 · Erster Bildschirm ---------- */
.held { padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--abschnitt); }
.held-raster { display: grid; gap: 2rem; align-items: center; }
.held-text { display: grid; gap: 1.25rem; justify-items: start; }
.held h1 {
  font-family: var(--schrift-titel); font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 13ch;
}
.held-satz { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--text-leise); max-width: 34ch; }
.demo-meldung:empty { display: none; }
.demo-meldung { font-size: .9375rem; background: var(--pflaume-hell); padding: .6rem .85rem; border-radius: 10px; }
.infozeile { margin-top: 1rem; width: 100%; display: grid; gap: 1rem 2rem; border-top: 1px solid var(--linie); padding-top: 1.25rem; }
.infozeile dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise); }
.infozeile dd { font-weight: 600; }
.infozeile a { white-space: nowrap; }
/* Handy: Text, Knopf und Zeiten zuerst, das Foto danach */
.held-bild { order: 2; }
@media (min-width: 40rem) { .infozeile { grid-template-columns: repeat(3, auto); justify-content: start; } }
@media (min-width: 60rem) {
  .held-raster { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .held-bild { order: 0; }
}

/* ---------- 2 · Preise ---------- */
.preise { background: var(--pflaume-hell); padding-block: var(--abschnitt); }
.preise-raster { display: grid; gap: 2.5rem 4rem; align-items: start; }
.preise-kopf p { margin-top: 1rem; color: var(--text-leise); max-width: 34ch; }
.preisgruppen { display: grid; gap: .75rem; }
.gruppe { background: var(--nebel); border-radius: var(--ecke); }
.gruppe summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem; min-height: 4rem;
  font-family: var(--schrift-titel); font-size: 1.625rem; line-height: 1.1;
  border-radius: var(--ecke);
}
.gruppe summary::-webkit-details-marker { display: none; }
/* Plus und Minus aus Strichen */
.gruppe summary::after {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(var(--pflaume), var(--pflaume)) center / 100% 2px no-repeat,
    linear-gradient(var(--pflaume), var(--pflaume)) center / 2px 100% no-repeat;
}
.gruppe[open] summary::after { background: linear-gradient(var(--pflaume), var(--pflaume)) center / 100% 2px no-repeat; }
.preisliste { padding: 0 1.4rem 1.2rem; display: grid; }
.preisliste > div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: .65rem; border-top: 1px solid var(--linie); }
.preisliste dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 60rem) { .preise-raster { grid-template-columns: 4fr 7fr; } }

/* ---------- 3 · Team ----------
   Der eine Regelbruch: die Porträts stehen versetzt, jedes zweite höher. */
.team { padding-block: var(--abschnitt); }
.personen { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
.person { display: grid; gap: .35rem; align-content: start; }
.portraet { border-radius: 50%; align-items: center; justify-content: center; margin-bottom: .75rem; }
.portraet figcaption { max-width: 70%; text-align: center; font-size: .6875rem; }
.person h3 { font-family: var(--schrift-titel); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.rolle { font-size: .875rem; color: var(--text-leise); font-weight: 600; }
.person p:not(.rolle) { max-width: 30ch; }
.person-termin { justify-self: start; margin-top: .35rem; font-weight: 700; }
@media (min-width: 60rem) {
  .personen { grid-template-columns: repeat(4, 1fr); padding-top: 3rem; }
  .person:nth-child(odd) { margin-top: -3rem; }
}

/* ---------- 4 · Arbeitsbeispiele, Bildraster ---------- */
.beispiele { padding-bottom: var(--abschnitt); }
.raster { margin-top: 2.5rem; columns: 2; column-gap: 1rem; }
.raster .bild-platzhalter { break-inside: avoid; margin-bottom: 1rem; }
.beispiele-hinweis { margin-top: .5rem; font-size: .875rem; color: var(--text-leise); }
@media (min-width: 48rem) { .raster { columns: 3; column-gap: 1.25rem; } .raster .bild-platzhalter { margin-bottom: 1.25rem; } }

/* ---------- 5 · Gutschein ---------- */
.gutschein { background: var(--pflaume); color: var(--text-hell); padding-block: var(--abschnitt); --fokus: var(--zitrone); }
.gutschein-raster { display: grid; gap: 2rem 4rem; align-items: end; }
.gutschein-raster p { max-width: 40ch; color: var(--text-hell-leise); font-size: 1.125rem; margin-bottom: 1.5rem; }
.gutschein .demo-meldung { margin-top: 1rem; background: rgb(245 240 244 / .12); color: var(--text-hell); }
@media (min-width: 60rem) { .gutschein-raster { grid-template-columns: 7fr 5fr; } }

/* ---------- Schwebender Termin-Knopf (Handy und Tablet) ---------- */
.termin-schwebend {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 25;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: .8rem 1.75rem;
  background: var(--zitrone); color: var(--pflaume); border-radius: var(--ecke-knopf);
  font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgb(62 26 63 / .55), 0 0 0 2px var(--pflaume);
}
@media (max-width: 59.99rem) { body { padding-bottom: 5.5rem; } }
@media (min-width: 60rem) { .termin-schwebend { display: none; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--pflaume); color: var(--text-hell); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .9375rem; --fokus: var(--zitrone); border-top: 1px solid rgb(245 240 244 / .15); }
.fuss-raster { display: grid; gap: 1.75rem; }
.fuss-raster p + p { margin-top: .75rem; }
.fuss-marke { font-family: var(--schrift-titel); font-size: 2rem; line-height: 1; margin-bottom: .75rem; }
.fuss address { font-style: normal; line-height: 1.7; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fuss-demo { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgb(245 240 244 / .2); color: var(--text-hell-leise); font-size: .875rem; }
/* D29: letzte Zeile, ganz unten mittig */
.fuss-zeile { width: 100%; max-width: none; text-align: center; padding: 1.5rem 1rem 1.25rem; font-size: .8125rem; color: var(--text-hell-leise); }
@media (min-width: 48rem) { .fuss-raster { grid-template-columns: 5fr 4fr 3fr; } }

/* ==========================================================================
   Bewegung (Grundstufe dieser Vorlage: mittel)
   starr      – nichts bewegt sich
   mittel     – erster Bildschirm blendet ein, Porträts kommen nacheinander,
                aufgeklappte Preise blenden weich ein
   dynamisch  – dazu laufen die Spalten der Arbeitsbeispiele beim Scrollen gegeneinander
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  :root.js:not([data-bewegung="starr"]) [data-auftritt] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  :root.js:not([data-bewegung="starr"]) [data-auftritt]:not(.ist-sichtbar) { opacity: 0; transform: translateY(1.25rem); }
  :root.js:not([data-bewegung="starr"]) .person[data-auftritt]:not(.ist-sichtbar) { transform: translateY(1.25rem) scale(.94); }

  :root:not([data-bewegung="starr"]) .held-text { animation: rein .9s var(--ease) both; }
  :root:not([data-bewegung="starr"]) .held-bild { animation: blende 1.1s var(--ease) .1s both; }
  :root:not([data-bewegung="starr"]) .gruppe[open] .preisliste { animation: rein .45s var(--ease) both; }
  :root:not([data-bewegung="starr"]) .knopf { transition: background-color .2s, transform .2s var(--ease); }
  :root:not([data-bewegung="starr"]) .knopf:hover { transform: translateY(-2px); }
}
@keyframes rein { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes blende { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-bewegung="dynamisch"] .raster .bild-platzhalter:nth-child(odd)  { animation: hoch linear both;   animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root[data-bewegung="dynamisch"] .raster .bild-platzhalter:nth-child(even) { animation: runter linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes hoch   { from { transform: translateY(2rem); }  to { transform: translateY(-2rem); } }
@keyframes runter { from { transform: translateY(-1rem); } to { transform: translateY(1.5rem); } }

/* Drucken: keine Bewegung, alles sichtbar */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-auftritt] { opacity: 1 !important; transform: none !important; }
  .termin-schwebend { display: none; }
}
