/* Die Friseure — Haidhausen und Ismaning
   Welt: der Raum in der Wörthstraße. Weiße Wand, anthrazitfarbener Sockel,
   helle Eichenablage dazwischen. Grün aus dem eigenen Logo und vom Schild. */

@font-face {
  font-family: "Archivo";
  src: url("schrift/Archivo.woff2") format("woff2-variations"), url("schrift/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("schrift/Archivo-Italic.woff2") format("woff2-variations"), url("schrift/Archivo-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farben — aus den Fotos und dem Logo gemessen */
  --wand: oklch(97.8% 0.002 250);       /* weiße Wand, wie im Salon: kühl, hell */
  --wand-tief: oklch(94% 0.003 250);    /* Wand im Schatten: Bildgrund */
  --anthrazit: oklch(27% 0.004 265);    /* Sockel, Stühle: Text */
  --sockel: oklch(31% 0.004 250);       /* Fußzeile, Schildscheibe */
  --grau: oklch(46% 0.007 265);         /* Nebentext auf der Wand */
  --grau-hell: oklch(80% 0.006 250);    /* Nebentext auf dem Sockel */
  --metall: oklch(66% 0.007 255);       /* Schildarm, feine Linien */
  --eiche: oklch(68.6% 0.104 67);       /* Ablage: nur Ornament */
  --limette: oklch(80% 0.18 120);       /* Logo und Schild: die Lampe */
  --limette-tief: oklch(72% 0.17 121);  /* gedrückt */
  --papier: oklch(100% 0 0);            /* Etikett, Karte */

  /* Zeichen: Pfeil als Maske, Strich wie die Kreise der Preisliste */
  --zeichen-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Linien und Schatten */
  --linie: color-mix(in oklch, var(--anthrazit) 14%, transparent);
  --linie-stark: color-mix(in oklch, var(--anthrazit) 32%, transparent);
  --schatten: 0 1px 2px color-mix(in oklch, var(--anthrazit) 12%, transparent), 0 8px 24px -8px color-mix(in oklch, var(--anthrazit) 22%, transparent);

  /* Schrift */
  --schrift: "Archivo", system-ui, sans-serif;
  --t-klein: 0.8125rem;
  --t-text: 1.0625rem;
  --t-gross: 1.25rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --t-h1: clamp(3rem, 1.4rem + 5.4vw, 5.25rem);
  --schmal: 72%;     /* Schildschrift */
  --breit: 100%;

  /* Maße */
  --rand: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --breite: 76rem;
  --luft: clamp(4rem, 2rem + 6vw, 7.5rem);
  --ecke: 0.375rem;
  --leiste-h: 4rem;

  /* Bewegung */
  --kurve: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out */
  --kurve-ab: cubic-bezier(0.55, 0, 1, 0.45); /* Abgang beschleunigt */
  --dauer: 0.45s;
  --dauer-schild: 0.8s;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  accent-color: var(--anthrazit);
  caret-color: var(--anthrazit);
  scrollbar-color: var(--metall) var(--wand);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--leiste-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--wand);
  color: var(--anthrazit);
  font-family: var(--schrift);
  font-size: var(--t-text);
  line-height: 1.55;
  font-stretch: var(--breit);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--limette); color: var(--anthrazit); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, .wahl-knopf:focus-visible + label {
  outline: 2px solid var(--anthrazit);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-stretch: var(--schmal);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.01em;
  word-spacing: 0.06em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; }

.mitte {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.sprung {
  position: absolute; left: var(--rand); top: -4rem; z-index: 30;
  background: var(--anthrazit); color: var(--wand); padding: 0.6rem 1rem;
  border-radius: var(--ecke);
}
.sprung:focus { top: 0.75rem; }

/* ------------------------------------------------------------
   Salonwahl: ohne Skript über Radioknöpfe und :has()
   ------------------------------------------------------------ */
body:has(#salon-h:checked) [data-nur="i"],
body:has(#salon-i:checked) [data-nur="h"] { display: none !important; }

.wahl-knopf {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  pointer-events: none;
}

.schalter {
  display: inline-flex;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  padding: 0.1875rem;
  margin: 0;
  min-width: 0;
  background: var(--papier);
}
.schalter legend { padding: 0; }
.schalter label {
  cursor: pointer;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--grau);
  transition: background-color var(--dauer) var(--kurve), color var(--dauer) var(--kurve);
}
.schalter .wahl-knopf:checked + label {
  background: var(--anthrazit);
  color: var(--wand);
}
@media (hover: hover) and (pointer: fine) {
  .schalter .wahl-knopf:not(:checked) + label:hover { color: var(--anthrazit); }
}

/* ------------------------------------------------------------
   Knöpfe: eine Lampe pro Gruppe
   ------------------------------------------------------------ */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve), transform 0.3s var(--kurve);
}
.knopf-lampe {
  background: var(--limette);
  color: var(--anthrazit);
  border: 1px solid color-mix(in oklch, var(--anthrazit) 18%, var(--limette));
}
.knopf-linie {
  border: 1px solid var(--linie-stark);
  color: var(--anthrazit);
}

@media (hover: hover) and (pointer: fine) {
  .knopf-lampe:hover { background: var(--limette-tief); }
  .knopf-linie:hover { border-color: var(--anthrazit); }
}

.pfeil {
  font-weight: 620;
  text-decoration: none;
  border-bottom: 2px solid var(--limette);
  padding-bottom: 0.1rem;
}
.pfeil::after {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.3em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: var(--zeichen-pfeil) center / contain no-repeat;
  mask: var(--zeichen-pfeil) center / contain no-repeat;
  transition: transform 0.35s var(--kurve);
}
@media (hover: hover) and (pointer: fine) {
  .pfeil:hover::after { transform: translateX(0.15em); }
}
@media (hover: hover) and (pointer: fine) {
  .pfeil:hover { border-bottom-color: var(--anthrazit); }
}

/* ------------------------------------------------------------
   Wortmarke: gesetzt wie der Schriftzug am Schild
   ------------------------------------------------------------ */
.wortmarke {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.82;
  text-decoration: none;
  margin: 0;
}
.wortmarke-die {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-left: 0.08em;
}
.wortmarke-wort {
  font-size: 1.625rem;
  font-weight: 860;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.wortmarke-hell .wortmarke-wort { color: var(--limette); }

/* ------------------------------------------------------------
   Leiste: weicht beim Runterscrollen aus
   ------------------------------------------------------------ */
.leiste {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wand);
  border-bottom: 1px solid var(--linie);
  transition: transform 0.4s var(--kurve);
}
.leiste.weg { transform: translateY(-100%); transition-timing-function: var(--kurve-ab); }
.leiste-innen {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--leiste-h);
}
.leiste-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.leiste-nav a { text-decoration: none; font-weight: 560; font-size: 0.9375rem; }
.leiste-nav a[aria-current="page"] { border-bottom: 2px solid var(--limette); }
@media (hover: hover) and (pointer: fine) {
  .leiste-nav a:hover { text-decoration: underline; }
}
.leiste-tel {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.leiste-knopf { min-height: 2.5rem; padding-block: 0.4rem; }
/* Eine Lampe: Solange der Auftakt mit seinem Terminknopf zu sehen ist,
   bleibt der Knopf in der Leiste eine Linie. */
.startseite:not(.auftakt-weg) .leiste-knopf {
  background: transparent;
  border-color: var(--linie-stark);
}

@media (max-width: 52rem) {
  .leiste-nav { display: none; }
  .leiste-tel { margin-left: auto; }
  .leiste-innen { gap: 1rem; min-height: 3.5rem; }
  :root { --leiste-h: 3.5rem; }
}

/* ------------------------------------------------------------
   Auftakt: das Team zuerst
   ------------------------------------------------------------ */
.auftakt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3.5rem;
  padding-block: clamp(1.25rem, 3vw, 3.5rem) var(--luft);
}
.auftakt-bild { margin: 0; }
.auftakt-bild img {
  width: 100%;
  border-radius: var(--ecke);
}
.auftakt-bild figcaption {
  margin-top: 0.6rem;
  font-size: var(--t-klein);
  color: var(--grau);
}
.auftakt h1 {
  font-size: var(--t-h1);
  font-weight: 820;
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.auftakt h1 em {
  font-style: italic;
  font-weight: 820;
}
.auftakt-satz {
  margin-top: 1.1rem;
  font-size: var(--t-gross);
  line-height: 1.45;
  max-width: 30ch;
}

.salon {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
}
.salon-angaben { display: grid; gap: 0.35rem; justify-items: start; min-width: 0; }
.salon-angaben .schalter { margin-bottom: 0.6rem; }
.salon-adresse { font-weight: 600; }
.am-stueck { white-space: nowrap; }
.salon-heute { color: var(--grau); font-size: 0.9375rem; }
.salon-heute[data-offen="ja"]::before,
.salon-heute[data-offen="nein"]::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: 0.08em;
  background: var(--metall);
}
.salon-heute[data-offen="ja"]::before { background: var(--limette-tief); }
.salon-tel a {
  font-size: var(--t-gross);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

@media (min-width: 64rem) {
  /* Oben Satz und Team nebeneinander, darunter das Schild als ein Band über
     die ganze Breite: Es hängt an der Linie wie das Schild am Haus. */
  .auftakt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    align-items: center;
    row-gap: 2.25rem;
  }
  .auftakt-text { grid-column: 1; grid-row: 1; }
  .auftakt-bild { grid-column: 2; grid-row: 1; max-width: 1000px; }
  .auftakt h1 { font-size: clamp(3rem, 1rem + 4.7vw, 5.25rem); }
  .auftakt-satz { max-width: 34ch; }
  .auftakt .salon {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
    padding-top: 0;
    align-items: stretch;
    gap: 2rem;
  }
  .auftakt .salon-angaben {
    flex: 1;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "schalter tel knopf"
      "adresse  tel knopf"
      "heute    tel knopf";
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 4rem);
    padding-top: 1.5rem;
  }
  .auftakt .salon-angaben .schalter { grid-area: schalter; }
  .auftakt .salon-adresse { grid-area: adresse; }
  .auftakt .salon-heute { grid-area: heute; }
  .auftakt .salon-tel { grid-area: tel; align-self: center; }
  .auftakt .salon-tel a { font-size: 1.75rem; font-weight: 780; font-stretch: var(--schmal); }
  .auftakt .knopfreihe { grid-area: knopf; justify-self: end; margin-top: 0; }
  /* Der Querbalken des Arms (y = 8 von 40) liegt genau auf der Linie:
     Die Linie wird zur Stange, an der das Schild hängt. */
  .auftakt .schild { margin-top: calc(var(--d) * -0.0667 - 0.5px); }
}

/* ------------------------------------------------------------
   Das Nasenschild: dreht sich zwischen den Salons
   ------------------------------------------------------------ */
/* Arm im Verhältnis 150 : 40, die Glieder hängen bei 52 und 112 —
   daraus die Lage der Scheibe (Mitte bei 0,684 d). */
.schild {
  --d: 7.75rem;
  position: relative;
  flex: none;
  width: calc(var(--d) * 1.25);
  height: calc(var(--d) * 1.3);
  color: var(--metall);
  perspective: 700px;
}
.schild-arm {
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--d) * 1.25);
  height: auto;
}
.schild-scheibe {
  position: absolute;
  left: calc(var(--d) * 0.184);
  top: calc(var(--d) * 0.27);
  width: var(--d);
  height: var(--d);
  transform-style: preserve-3d;
  transition: transform var(--dauer-schild) var(--kurve);
}
body:has(#salon-i:checked) .schild-scheibe { transform: rotateY(180deg); }
.schild-seite {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.1rem;
  border-radius: 50%;
  background: var(--sockel);
  border: 3px solid var(--metall);
  color: var(--wand);
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--schatten);
}
.schild-hinten { transform: rotateY(180deg); }
.schild-die {
  font-size: 0.5625rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}
/* Schriftgrößen aus dem Scheibendurchmesser: die Zeilen bleiben
   innerhalb der Kreisfläche, auch wenn die Scheibe am Handy schrumpft. */
.schild-wort {
  font-size: calc(var(--d) * 0.19);
  font-weight: 860;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--limette);
}
.schild-ort {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid color-mix(in oklch, var(--wand) 30%, transparent);
  font-size: max(0.6875rem, calc(var(--d) * 0.097));
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: 0.02em;
  line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .schild-seite:hover { border-color: var(--eiche); }
}

/* ------------------------------------------------------------
   Kapitel
   ------------------------------------------------------------ */
.kapitel { padding-bottom: var(--luft); }
.kapitel h2 { max-width: 18ch; }
.kapitel-satz {
  margin-top: 0.9rem;
  max-width: 52ch;
  font-size: var(--t-gross);
  line-height: 1.45;
  color: var(--grau);
}
.kapitel-klein { margin-top: 1.5rem; font-size: var(--t-klein); color: var(--grau); }
.kapitel-weg { margin-top: 1.75rem; }

/* Team: Gesichter in ihrer Aufnahmegröße, am Handy zum Wischen */
.gesichter {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 1.25rem;
}
.gesicht {
  width: 11.5rem;           /* 369 px Vorlage: auch bei doppelter Dichte nicht gezogen */
  display: grid;
  align-content: start;
  gap: 0.1rem;
}
.gesicht img {
  width: 100%;
  border-radius: var(--ecke);
  margin-bottom: 0.55rem;
  background: var(--wand-tief);
}
/* Noch ohne Porträt: die Scheibe des Nasenschilds mit der Initiale —
   gleiche Fläche wie ein Foto, damit die Reihe ruhig bleibt. */
.gesicht-scheibe {
  display: grid;
  place-items: center;
  aspect-ratio: 369 / 277;
  margin-bottom: 0.55rem;
  border-radius: var(--ecke);
  background: var(--wand-tief);
}
.gesicht-scheibe span {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sockel);
  border: 2px solid var(--metall);
  color: var(--limette);
  font-size: 1.75rem;
  font-weight: 860;
  font-stretch: 62%;
  line-height: 1;
}
.gesicht-name { font-weight: 700; font-size: 1.0625rem; }
.gesicht-rolle { font-size: 0.9375rem; color: var(--grau); }

/* Preisetiketten auf der Eichenablage */
.etiketten {
  list-style: none;
  padding: 0 0 0.9rem;
  margin: 2.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  position: relative;
}
.etiketten::after {
  content: "";
  position: absolute;
  left: -0.5rem; right: -0.5rem; bottom: 0;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--eiche);
}
.etikett a {
  display: grid;
  gap: 1.25rem;
  align-content: space-between;
  height: 100%;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--ecke) var(--ecke) 2px 2px;
  text-decoration: none;
  transition: transform 0.35s var(--kurve);
}
.etikett-name { font-weight: 600; line-height: 1.25; }
.etikett-preis {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: var(--schmal);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .etikett a:hover { transform: translateY(-3px); }
}

/* Wohnzimmer: vollflächiges Foto, Schleier nur hinter dem Text */
.kapitel-salon { padding-bottom: var(--luft); }
/* Nie breiter als die Aufnahme (1280 px) — gezogen wird nicht. */
.wohnzimmer {
  position: relative;
  isolation: isolate;
  width: min(100%, 1280px);
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  display: grid;
  align-items: end;
  overflow: hidden;
}
@media (min-width: 1281px) { .wohnzimmer { border-radius: var(--ecke); } }
.wohnzimmer-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.wohnzimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Schleier nur hinter dem Textblock: ein senkrechtes Band links unten,
     nach oben ausgeblendet. Der Rest der Aufnahme bleibt offen. */
  background: linear-gradient(to right,
    color-mix(in oklch, var(--wand) 94%, transparent) 0,
    color-mix(in oklch, var(--wand) 86%, transparent) 30rem,
    color-mix(in oklch, var(--wand) 0%, transparent) 46rem);
  -webkit-mask-image: linear-gradient(to top, black 0, black 40%, transparent 72%);
  mask-image: linear-gradient(to top, black 0, black 40%, transparent 72%);
}
.wohnzimmer-text {
  width: auto;
  margin: 0;
  /* Linke Kante = Satzkante der Seite (.mitte), auch wenn das Bild bei
     1280 px endet und schmaler ist als der Schirm */
  padding: 0 var(--rand) 2.5rem calc((min(100vw, 1280px) - min(100vw - 2 * var(--rand), var(--breite))) / 2);
}
.wohnzimmer-text p {
  margin-top: 0.9rem;
  max-width: 44ch;
  font-size: var(--t-gross);
  line-height: 1.45;
}

.galerie {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.galerie-kachel {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--wand-tief);
  border-radius: var(--ecke);
  overflow: hidden;
  cursor: zoom-in;
}
.galerie-kachel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--kurve);
}
@media (hover: hover) and (pointer: fine) {
  .galerie-kachel:hover img { transform: scale(1.03); }
}

/* Stimmen */
.wertung { margin-top: 1rem; font-size: var(--t-gross); }
.wertung strong {
  font-size: var(--t-h2);
  font-weight: 820;
  font-stretch: var(--schmal);
  margin-right: 0.2rem;
}
.stimmen {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.stimmen li { border-top: 2px solid var(--limette); padding-top: 1.1rem; }
.stimmen blockquote { margin: 0; font-size: var(--t-gross); line-height: 1.45; }
.stimme-wer { margin-top: 0.8rem; font-size: 0.9375rem; color: var(--grau); }

/* Anfahrt */
.adressen {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.adresse {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--ecke);
  transition: border-color var(--dauer) var(--kurve);
}
body:has(#salon-i:checked) .adresse[data-ort="i"] { order: -1; }
body:has(#salon-h:checked) .adresse[data-ort="h"],
body:has(#salon-i:checked) .adresse[data-ort="i"] { border-color: var(--anthrazit); }
.adresse h3 { font-size: 1.75rem; }
.adresse a { font-variant-numeric: tabular-nums; }
.zeiten { margin: 0; display: grid; gap: 0.2rem; }
.zeiten div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--linie-stark); padding-bottom: 0.2rem; }
.zeiten dt { color: var(--grau); }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }
.adresse-weg { font-size: 0.9375rem; color: var(--grau); }
.adresse-links { margin-top: auto; padding-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }

/* Sockel: anthrazit mit Eichenkante — die untere Wand des Salons */
.sockel {
  background: var(--sockel);
  color: var(--wand);
  border-top: 0.5rem solid var(--eiche);
  padding-block: 3rem 3.5rem;
}
.sockel-innen { display: grid; gap: 1.25rem; font-size: 0.9375rem; line-height: 1.7; }
.sockel a { font-variant-numeric: tabular-nums; }
.sockel-recht { color: var(--grau-hell); }
.sockel :focus-visible { outline-color: var(--limette); }

/* Bildansicht */
.ansicht {
  width: min(100vw - 2rem, 1280px);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.ansicht::backdrop { background: color-mix(in oklch, var(--anthrazit) 92%, transparent); }
.ansicht[open] { animation: auf 0.4s var(--kurve) backwards; }
.ansicht-bild { width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: var(--ecke); }
.ansicht-text { margin-top: 0.75rem; color: var(--wand); font-size: 0.9375rem; text-align: center; }
.ansicht button {
  position: absolute;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--wand) 40%, transparent);
  background: color-mix(in oklch, var(--anthrazit) 70%, transparent);
  color: var(--wand);
  cursor: pointer;
}
.ansicht-zu { top: 0.75rem; right: 0.75rem; }
.ansicht-zurueck { left: 0.75rem; top: calc(50% - 3rem); }
.ansicht-weiter { right: 0.75rem; top: calc(50% - 3rem); }
.ansicht button:focus-visible { outline-color: var(--limette); }
@keyframes auf { from { opacity: 0; transform: scale(0.98); } }

/* ------------------------------------------------------------
   Preisseite
   ------------------------------------------------------------ */
.preise { padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--luft); max-width: 52rem; }
.preise h1 { font-size: var(--t-h1); font-weight: 820; line-height: 0.92; }
.preise-satz { margin-top: 1rem; max-width: 52ch; font-size: var(--t-gross); color: var(--grau); line-height: 1.45; }

.ablage {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 2rem calc(-1 * var(--rand)) 0;
  padding: 0.75rem var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: var(--wand);
  transition: top 0.4s var(--kurve);
}
/* Die Eichenkante unter der Ablage — als eigene Leiste, nicht als Rahmen */
.ablage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--eiche);
}
body:has(.leiste:not(.weg)) .ablage { top: var(--leiste-h); }
.ablage .schalter {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  border: 0;
  padding: 0;
  background: none;
}
.ablage legend {
  float: left;              /* holt die Legende aus dem Rahmen in die Reihe */
  font-size: var(--t-klein);
  font-weight: 600;
  color: var(--grau);
  padding: 0 0.4rem 0 0;
}
.ablage .schalter label { border: 1px solid var(--linie-stark); background: var(--papier); }

/* Filter: Salon und Länge, ohne Skript */
body:has(#salon-h:checked) .posten:not([data-salon~="h"]),
body:has(#salon-i:checked) .posten:not([data-salon~="i"]),
body:has(#salon-h:checked) .gruppe:not([data-salons~="h"]),
body:has(#salon-i:checked) .gruppe:not([data-salons~="i"]) { display: none; }
body:has(#l-k:checked) .posten [data-l]:not([data-l~="k"]),
body:has(#l-m:checked) .posten [data-l]:not([data-l~="m"]),
body:has(#l-l:checked) .posten [data-l]:not([data-l~="l"]) { display: none; }

/* Nummern zählen nur die sichtbaren Gruppen — in Ismaning fehlt Keratin,
   dort folgt auf 03 also 04 und nicht 05. */
.gruppen { margin-top: 1.5rem; counter-reset: gruppe; }
.gruppe { counter-increment: gruppe; }
.gruppe { border-bottom: 1px solid var(--linie); }
.gruppe summary {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.gruppe summary::-webkit-details-marker { display: none; }
.gruppe summary::after {
  content: "";
  margin-left: auto;
  align-self: center;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--dauer) var(--kurve);
}
.gruppe[open] summary::after { transform: translateY(15%) rotate(225deg); }
.gruppe summary::before {
  content: counter(gruppe, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--grau);
  font-size: 0.9375rem;
}
.gruppe-titel { font-size: 1.75rem; font-weight: 780; font-stretch: var(--schmal); line-height: 1.1; }
.gruppe-zusatz { color: var(--grau); font-size: 0.9375rem; }

.posten-liste { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.posten {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--linie);
}
.posten-name { display: grid; gap: 0.1rem; font-weight: 560; }
.posten-dauer { font-size: var(--t-klein); font-weight: 400; color: var(--grau); }
.posten-preis {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 750;
  font-size: var(--t-text);
  font-variant-numeric: tabular-nums;
}
.ab { font-weight: 500; font-size: 0.9375rem; color: var(--grau); }
.gruppe-weg { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 1.75rem; }
.gruppe-tel { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.preise-klein { margin-top: 2rem; font-size: var(--t-klein); color: var(--grau); max-width: 65ch; }

/* ------------------------------------------------------------
   Terminkärtchen: wie das Papierkärtchen an der Kasse. Leistungen
   antippen, sie landen nach Ablauf sortiert auf dem Kärtchen; daraus wird
   ein fertiger Terminwunsch für WhatsApp, Telefon oder zum Kopieren.
   Ohne Skript bleibt alles verborgen — die Liste steht trotzdem.
   ------------------------------------------------------------ */
.posten[data-wahl] { position: relative; padding-right: 2.75rem; }
/* Der Knopf liegt über der ganzen Zeile — antippen, wo man will. */
.posten-wahl {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.posten-kreis {
  position: absolute;
  right: 0;
  top: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--linie-stark);
  background: var(--papier);
  color: var(--anthrazit);
  transition: background-color var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve), color var(--dauer) var(--kurve), transform 0.3s var(--kurve);
}
.posten-kreis svg { grid-area: 1 / 1; width: 0.875rem; height: 0.875rem; transition: opacity 0.3s var(--kurve), transform 0.4s var(--kurve); }
.zeichen-haken { opacity: 0; transform: scale(0.6); }
.posten-wahl[aria-pressed="true"] .posten-kreis { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--limette); }
.posten-wahl[aria-pressed="true"] .zeichen-plus { opacity: 0; transform: rotate(90deg) scale(0.6); }
.posten-wahl[aria-pressed="true"] .zeichen-haken { opacity: 1; transform: none; }
.posten-wahl:active .posten-kreis { transform: scale(0.9); }
.posten-wahl:focus-visible { outline: 0; }
.posten-wahl:focus-visible .posten-kreis { outline: 2px solid var(--anthrazit); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .posten-wahl:hover .posten-kreis { border-color: var(--anthrazit); }
  .posten[data-wahl]:has(.posten-wahl:hover) .posten-name { text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: 0.25em; }
}

.kaertchen-platz { margin-top: 2.5rem; }
.kaertchen {
  position: relative;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--ecke) var(--ecke) 2px 2px;
  box-shadow: var(--schatten);
}
/* Es steht auf derselben Eichenablage wie die Preisetiketten */
.kaertchen-platz .kaertchen { margin-bottom: 0.5rem; }
.kaertchen-platz .kaertchen::after {
  content: "";
  position: absolute;
  left: -0.5rem; right: -0.5rem; bottom: calc(-0.5rem - 1px);
  height: 0.5rem;
  border-radius: 2px;
  background: var(--eiche);
}
.kaertchen-kopf {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--linie-stark);
}
/* Das Nasenschild als Stempel, im Kleinen nur der erkennbare Teil */
.kaertchen-marke {
  flex: none;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--sockel);
  border: 2px solid var(--metall);
  color: var(--wand);
  line-height: 1;
}
.kaertchen-marke-die { font-size: 0.4375rem; font-weight: 650; letter-spacing: 0.26em; text-transform: uppercase; padding-left: 0.26em; }
.kaertchen-marke-wort { font-size: 0.75rem; font-weight: 860; font-stretch: 62%; text-transform: uppercase; color: var(--limette); margin-top: 0.1rem; }
.kaertchen h2 { font-size: 1.5rem; }
.kaertchen-ort { margin-top: 0.15rem; font-size: 0.9375rem; color: var(--grau); }
.kaertchen-leer { margin-top: 1rem; color: var(--grau); font-size: 0.9375rem; line-height: 1.5; }
.kaertchen.hat-posten .kaertchen-leer, .kaertchen:not(.hat-posten) .kaertchen-voll { display: none; }

.kaertchen-liste { list-style: none; padding: 0; margin: 0.35rem 0 0; }
.kaertchen { --kp-weg: 1.75rem; }
.kaertchen-liste li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--linie-stark);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.kaertchen-liste .neu { animation: rein 0.45s var(--kurve) backwards; }
@keyframes rein { from { opacity: 0; transform: translateY(-0.35rem); } }
.kp-name { flex: 1; min-width: 0; }
.kp-dauer { display: block; font-size: var(--t-klein); color: var(--grau); }
.kp-preis { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.kp-weg {
  position: relative;
  flex: none;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: var(--kp-weg); height: var(--kp-weg);
  margin-block: -0.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--grau);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .kp-weg:hover { color: var(--anthrazit); background: var(--wand-tief); }
}

.kaertchen-summe { margin: 0.9rem 0 0; display: grid; gap: 0.15rem; }
.kp-weg::before { content: ""; position: absolute; inset: -0.5rem; }   /* 2,75 rem zum Tippen */
.kaertchen-summe div { padding-right: calc(var(--kp-weg) + 0.75rem); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.kaertchen-summe dt { color: var(--grau); font-size: 0.9375rem; }
.kaertchen-summe dd { margin: 0; font-variant-numeric: tabular-nums; }
.summe-preis { font-size: 1.75rem; font-weight: 800; font-stretch: var(--schmal); line-height: 1.1; }

.kaertchen-felder { margin-top: 1rem; display: grid; gap: 0.7rem; }
.feld { display: grid; gap: 0.25rem; }
.feld-name { font-size: var(--t-klein); font-weight: 600; color: var(--grau); }
.feld select, .feld input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 1rem;   /* 16 px: iOS zoomt sonst beim Tippen */
  color: var(--anthrazit);
  background: var(--wand);
  border: 1px solid var(--linie-stark);
  border-radius: var(--ecke);
  transition: border-color var(--dauer) var(--kurve);
}
.feld input::placeholder { color: var(--grau); opacity: 1; }
.feld select:focus-visible, .feld input:focus-visible { outline: 2px solid var(--anthrazit); outline-offset: 1px; border-color: var(--anthrazit); }

.kaertchen-wege { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kaertchen-wege .knopf { flex: 1 1 auto; }
.kaertchen-kopie { background: var(--papier); font: inherit; font-weight: 650; cursor: pointer; }
.kaertchen-meldung { min-height: 1.3em; margin-top: 0.5rem; font-size: var(--t-klein); font-weight: 600; }
.kaertchen-klein { font-size: var(--t-klein); color: var(--grau); line-height: 1.5; }
.kaertchen-klein a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kaertchen-leeren {
  margin-top: 0.6rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--t-klein);
  color: var(--grau);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .kaertchen-leeren:hover { color: var(--anthrazit); } }

/* Eine Lampe: Liegt etwas auf dem Kärtchen, führt dessen Knopf —
   der Terminknopf in der Leiste wird zur Linie. */
.preisseite.hat-kaertchen .leiste-knopf { background: transparent; border-color: var(--linie-stark); }

/* Breiter Schirm: das Kärtchen steht rechts neben der Liste und bleibt mit */
@media (min-width: 72rem) {
  .preise {
    max-width: var(--breite);
    display: grid;
    grid-template-columns: minmax(0, 52rem) minmax(19rem, 22rem);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    justify-content: center;
    align-content: start;
  }
  .preise > * { grid-column: 1; }
  .preise > .kaertchen-platz { grid-column: 2; grid-row: 1 / span 5; margin-top: 0.5rem; }
  .kaertchen-platz .kaertchen {
    position: sticky;
    top: 1.5rem;
    transition: top 0.4s var(--kurve);
  }
  body:has(.leiste:not(.weg)) .kaertchen-platz .kaertchen { top: calc(var(--leiste-h) + 1.5rem); }
  .kaertchen-leiste, .blatt { display: none !important; }
}

/* Schmaler Schirm: ein Sockel unten zeigt, was gesammelt ist; das
   Kärtchen öffnet sich als Blatt von unten. */
@media (max-width: 71.99rem) {
  .kaertchen-platz { display: none; }
  .kaertchen-leiste {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem var(--rand) calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--sockel);
    color: var(--wand);
    border-top: 0.25rem solid var(--eiche);
    transform: translateY(0);
    transition: transform var(--dauer) var(--kurve);
  }
  .kaertchen-leiste.zu { transform: translateY(110%); transition-timing-function: var(--kurve-ab); }
  .kaertchen-leiste-text { flex: 1; min-width: 0; font-size: 0.9375rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .kl-zahl { display: block; font-weight: 750; color: var(--limette); }
  .kl-rest { color: var(--grau-hell); }
  .kaertchen-oeffnen {
    flex: none;
    min-height: 2.75rem;
    background: var(--wand);
    color: var(--anthrazit);
    border: 1px solid var(--wand);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }
  .kaertchen-oeffnen:focus-visible { outline-color: var(--limette); }
  body.hat-kaertchen { padding-bottom: 5rem; }

  .blatt {
    width: 100%;
    max-width: 34rem;
    max-height: min(88vh, 100% - 2rem);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 0.875rem 0.875rem 0 0;
    background: var(--papier);
    color: var(--anthrazit);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .blatt::backdrop { background: color-mix(in oklch, var(--anthrazit) 55%, transparent); }
  .blatt[open] { animation: hoch 0.45s var(--kurve) backwards; }
  .blatt .kaertchen { border: 0; box-shadow: none; padding: 1.4rem var(--rand) calc(1.25rem + env(safe-area-inset-bottom)); }
  .blatt-zu {
    position: absolute;
    top: 0.9rem; right: 0.9rem;
    z-index: 1;
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--linie);
    border-radius: 50%;
    background: var(--papier);
    color: var(--anthrazit);
    cursor: pointer;
  }
}
@keyframes hoch { from { transform: translateY(2.5rem); opacity: 0; } }

/* ------------------------------------------------------------
   Textseiten (Impressum, Datenschutz)
   ------------------------------------------------------------ */
.text { padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--luft); max-width: 44rem; }
.text h1 { font-size: var(--t-h2); }
.text h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.text p, .text ul { margin-top: 0.8rem; max-width: 65ch; }

/* ------------------------------------------------------------
   Handy: eigene Komposition
   ------------------------------------------------------------ */
@media (max-width: 40rem) {
  :root { --luft: 3.75rem; }

  /* Erster Bildschirm: das Bild randlos, darunter Satz, Schild, ein Knopf */
  .auftakt { padding-top: 0; gap: 1.25rem; }
  .auftakt-bild { margin-inline: calc(-1 * var(--rand)); }
  .auftakt-bild img { border-radius: 0; }
  .auftakt-bild figcaption { padding-inline: var(--rand); }
  .auftakt-satz { font-size: 1rem; margin-top: 0.7rem; max-width: none; }
  .salon { gap: 0.9rem; margin-top: 0; padding-top: 1.1rem; }
  .salon-angaben .schalter { margin-bottom: 0.35rem; }
  .schild { --d: 5.75rem; }
  .knopfreihe .knopf-linie { display: none; }
  .knopfreihe .knopf-lampe { min-height: 3rem; }

  /* Reihen zum Wischen statt Säulen */
  .gesichter, .etiketten, .stimmen {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: auto;
    margin-inline: 0;
    padding-inline: var(--rand);
    scroll-padding-inline: var(--rand);
  }
  .gesichter::-webkit-scrollbar, .etiketten::-webkit-scrollbar, .stimmen::-webkit-scrollbar { display: none; }
  .gesichter > *, .etiketten > *, .stimmen > * { scroll-snap-align: start; flex: none; }
  .gesicht { width: 9.5rem; }
  .etiketten { gap: 0.75rem; }
  .etikett { width: 9.25rem; }
  .etiketten::after { display: none; }
  /* Die Ablage läuft unter der ganzen Wischreihe mit (local = Inhaltsfläche) */
  .etiketten {
    padding-bottom: 0.5rem;
    background: linear-gradient(var(--eiche), var(--eiche)) left bottom / 100% 0.5rem no-repeat local;
  }
  .stimmen > li { width: 80%; }
  .stimmen { gap: 1.25rem; }
  .kapitel-preise .etiketten { margin-inline: calc(-1 * var(--rand)); }
  .kapitel-preise .mitte, #stimmen .mitte { overflow: visible; }
  #stimmen .stimmen { margin-inline: calc(-1 * var(--rand)); }

  .wohnzimmer { aspect-ratio: auto; display: block; }
  .wohnzimmer-bild { position: static; height: auto; aspect-ratio: 16 / 10; }
  .wohnzimmer::before { display: none; }
  .wohnzimmer-text { padding: 1.25rem var(--rand) 0; }
  .wohnzimmer-text p { font-size: 1.0625rem; }

  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .adressen { grid-template-columns: 1fr; }
  .adresse { padding: 1.25rem; }

  .ablage { gap: 0.5rem; }
  .ablage legend { min-width: 4.75rem; }
  .gruppe-titel { font-size: 1.5rem; }
  .posten { gap: 0.75rem; }
}

@media (max-width: 23.5rem) {
  .schild { --d: 5.5rem; }
  .schalter label { padding-inline: 0.6rem; }
}

@media (min-width: 40.01rem) and (max-width: 64rem) {
  .auftakt-bild { max-width: 1000px; }
  .etiketten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stimmen { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Fassung 2 — Feinschliff (impeccable + emil-design-eng)
   ============================================================ */

/* Satz: keine einsamen Wörter am Absatzende */
p, li, dd { text-wrap: pretty; }

/* Knöpfe hören zu: beim Drücken leicht kleiner statt 1 px tiefer */
.knopf:active, .etikett a:active, .galerie-kachel:active { transform: scale(0.97); }
.galerie-kachel { transition: transform 0.3s var(--kurve); }

/* Stimmen: deutsche Anführungszeichen, das öffnende hängt in den Rand */
.stimmen blockquote p::before { content: "„"; margin-left: -0.42em; }
.stimmen blockquote p::after { content: "“"; }

/* Erster Bildschirm: ein gesetzter Auftritt in zwei Gruppen —
   erst Team und Satz, dann das Schild-Band. Höchstens zwei Bewegungen
   gleichzeitig; was steht, steht auch ohne Bewegung. */
@media (prefers-reduced-motion: no-preference) {
  .auftakt-bild { animation: auftakt-da 0.55s var(--kurve) backwards; }
  .auftakt-text { animation: auftakt-hoch 0.55s var(--kurve) 0.06s backwards; }
  .auftakt .salon { animation: auftakt-hoch 0.6s var(--kurve) 0.5s backwards; }
}
@keyframes auftakt-da { from { opacity: 0; } }
@keyframes auftakt-hoch { from { opacity: 0; transform: translateY(0.75rem); } }

/* Preisgruppen: der Inhalt blendet beim Aufklappen ein */
@media (prefers-reduced-motion: no-preference) {
  .gruppe[open] .posten-liste,
  .gruppe[open] .gruppe-weg { animation: gruppe-auf 0.4s var(--kurve) backwards; }
  .gruppe[open] .gruppe-weg { animation-delay: 0.06s; }
}
@keyframes gruppe-auf { from { opacity: 0; transform: translateY(-0.35rem); } }

/* Terminkärtchen: der Punkt, der von der Zeile zum Kärtchen fliegt */
.kaertchen-flug {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: var(--limette);
  border: 1px solid var(--anthrazit);
  pointer-events: none;
}
.empfangen { animation: empfangen 0.5s var(--kurve); }
@keyframes empfangen { from { opacity: 0.35; } }
/* Galerie: aus der Kachel heraus (Ursprung setzt das Skript) */
@keyframes auf { from { opacity: 0; transform: scale(0.92); } }

/* Kapitelanzeige in der Leiste — nur am Handy */
.leiste-kapitel { display: none; }

@media (max-width: 40rem) {
  /* Kapitel mit Nummer und Lichtfuge */
  .kapitel { position: relative; }
  .kapitel::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 var(--rand) 2rem;
    background: linear-gradient(90deg,
      color-mix(in oklch, var(--limette) 0%, transparent),
      var(--limette) 18%,
      color-mix(in oklch, var(--limette) 0%, transparent) 72%);
  }
  .kapitel-salon::before { margin-bottom: 1.25rem; }
  h2[data-nr]::before {
    content: attr(data-nr);
    margin-right: 0.55rem;
    font-size: var(--t-klein);
    font-weight: 650;
    font-stretch: var(--breit);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--grau);
    vertical-align: 0.5em;
  }

  /* In der Leiste: wo man gerade ist, statt der Nummer, die schon oben stand */
  .im-kapitel .leiste-tel { display: none; }
  .im-kapitel .leiste-kapitel {
    display: block;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 650;
    white-space: nowrap;
  }
  .leiste-kapitel b { margin-right: 0.35rem; font-weight: 600; color: var(--grau); font-variant-numeric: tabular-nums; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .schild-scheibe { transition: none; }
}
