/* Barbier Mustermann (Demo). Gründe für Farben, Schrift und Bewegung in DESIGN.md. */

@font-face {
  font-family: "Anybody";
  src: url("../schriften/anybody-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../schriften/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --nacht: #15110e;
  --nacht-2: #221b16;
  --creme: #f2ebdf;
  --creme-hell: #fbf8f2;
  --tinte: #1d1814;
  --grau-hell: #b5a998;
  --grau-dunkel: #5c5249;
  --messing: #c39a5b;
  --blut: #8c2f25;
  --feldrand: #8c8076;
  --linie-hell: rgb(242 235 223 / 0.16);
  --linie-dunkel: rgb(29 24 20 / 0.16);

  --schild: "Anybody", "Arial Black", sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --breite: 1240px;
  --rand: clamp(16px, 4vw, 48px);
  --kopf-hoehe: 68px;
  --abstand: clamp(72px, 10vw, 152px);
  --fokus: var(--messing);
  --weich: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 12px);
  -webkit-text-size-adjust: 100%;
}

.bewegung-aus {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--nacht);
  color: var(--creme);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--schild);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.7vw, 3.1rem);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

.breite {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprungmarke {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--creme);
  color: var(--tinte);
  font-weight: 600;
  border-radius: 4px;
}

.sprungmarke:focus {
  top: 12px;
}

.demo-hinweis {
  padding: 6px var(--rand);
  background: var(--creme);
  color: var(--tinte);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* Etikett: kleine Versalien wie auf einer Preistafel */
.etikett {
  font-family: var(--schild);
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--messing);
}

.hell .etikett,
.termin .etikett {
  color: var(--grau-dunkel);
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--schild);
  font-size: 0.82rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.knopf--messing {
  background: var(--messing);
  color: var(--nacht);
}

.knopf--messing:hover {
  background: var(--creme);
}

.knopf--rahmen {
  border-color: rgb(242 235 223 / 0.45);
  color: var(--creme);
}

.knopf--rahmen:hover {
  border-color: var(--creme);
  background: rgb(242 235 223 / 0.08);
}

.knopf--dunkel {
  background: var(--tinte);
  color: var(--creme);
}

.knopf--dunkel:hover {
  background: #3b3029;
}

.knopf--rahmen-dunkel {
  border-color: var(--tinte);
  background: transparent;
  color: var(--tinte);
}

.knopf--rahmen-dunkel:hover {
  background: rgb(29 24 20 / 0.06);
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nacht);
  border-bottom: 1px solid var(--linie-hell);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--kopf-hoehe);
}

.marke {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.marke__wort {
  font-family: var(--schild);
  font-size: 1.2rem;
  font-weight: 850;
  font-stretch: 135%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.marke__zusatz {
  padding: 3px 6px 2px;
  border: 1px solid var(--messing);
  border-radius: 3px;
  color: var(--messing);
  font-family: var(--schild);
  font-size: 0.62rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navigation ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 550;
  text-decoration: none;
  color: var(--creme);
}

.navigation ul a:hover {
  text-decoration: underline;
  text-decoration-color: var(--messing);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.menue-knopf {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(242 235 223 / 0.45);
  border-radius: 4px;
  background: transparent;
  color: var(--creme);
  font: 600 0.95rem var(--text);
  cursor: pointer;
}

@media (max-width: 880px) {
  .mit-js .menue-knopf {
    display: inline-flex;
    align-items: center;
  }

  .mit-js .navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--rand) 24px;
    background: var(--nacht-2);
    border-bottom: 1px solid var(--linie-hell);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.45);
  }

  .mit-js .kopf[data-menue="zu"] .navigation {
    display: none;
  }

  .navigation ul {
    flex-direction: column;
  }

  .navigation ul a {
    width: 100%;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--linie-hell);
    font-size: 1.15rem;
  }

  .navigation .knopf {
    width: 100%;
  }

  .kopf:not([data-menue]) .navigation,
  html:not(.mit-js) .navigation {
    flex-wrap: wrap;
  }
}

@media (max-width: 880px) {
  html:not(.mit-js) .kopf__innen {
    height: auto;
    flex-wrap: wrap;
    padding-block: 8px;
  }
}

/* Geschichte: eine Bühne für alle Kapitel, die Texte ziehen darüber */
.geschichte {
  position: relative;
  /* Die Bühne ragt mit ihrem negativen Rand unten heraus; clip schneidet sie
     ab, ohne das Mitlaufen (sticky) zu stören. */
  overflow: clip;
  background: var(--nacht);
}

.buehne {
  position: sticky;
  top: var(--kopf-hoehe);
  height: calc(100svh - var(--kopf-hoehe));
  margin-bottom: calc(-100svh + var(--kopf-hoehe));
  overflow: hidden;
  /* Standbild, falls WebGL fehlt; die Szene malt darüber. */
  background: var(--nacht) center / cover no-repeat;
}

.buehne[data-zustand="fehler"] {
  background-image: url("../bilder/standbild.jpg");
  background-position: 72% center;
}

.buehne__leinwand {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
}

.buehne[data-zustand="laeuft"] .buehne__leinwand {
  opacity: 1;
}

.buehne__status {
  position: absolute;
  left: var(--rand);
  bottom: 20px;
  max-width: 28rem;
  color: var(--grau-hell);
  font-size: 0.9rem;
}

.buehne[data-zustand="laeuft"] .buehne__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.buehne[data-zustand="fehler"] .buehne__status {
  padding: 10px 14px;
  background: var(--nacht);
  border-radius: 4px;
  color: var(--creme);
}

.kapitelleiste {
  position: absolute;
  right: var(--rand);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kapitel -1;
}

.kapitelleiste li {
  counter-increment: kapitel;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #8f8477;
  font-family: var(--schild);
  font-size: 0.68rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.4s;
}

.kapitelleiste li::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: width 0.5s var(--weich);
}

.kapitelleiste li.ist-aktiv {
  color: var(--messing);
}

.kapitelleiste li.ist-aktiv::after {
  width: 36px;
}

/* Fest am unteren Rand und über dem Text, damit er beim Scrollen nie verdeckt
   und immer antippbar ist. Sichtbar nur, solange die Geschichte im Bild ist. */
.bewegung-knopf {
  position: fixed;
  right: var(--rand);
  bottom: calc(16px + env(safe-area-inset-bottom));
  /* über den Kapiteltexten (1), unter dem Kopf mit Menü (30) */
  z-index: 25;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(242 235 223 / 0.3);
  border-radius: 4px;
  background: var(--nacht);
  color: var(--creme);
  font: 600 0.85rem var(--text);
  cursor: pointer;
}

.bewegung-knopf:hover {
  border-color: var(--creme);
}

/* Auf dem Telefon nur ein Zeichen, sonst verdeckt der Knopf ganz oben
   „Termin wählen“. Der Text bleibt für Screenreader da. */
@media (max-width: 880px) {
  .bewegung-knopf:not([hidden]) {
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
  }

  .bewegung-knopf__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Pause: zwei Balken. Angehalten: ein Dreieck zum Abspielen. */
  .bewegung-knopf::before {
    content: "";
    box-sizing: border-box;
    width: 11px;
    height: 14px;
    border-inline: 4px solid currentColor;
  }

  .bewegung-aus .bewegung-knopf::before {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-block: 7px solid transparent;
    border-inline: 12px solid currentColor;
    border-inline-end: 0;
  }
}

.kapitel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 110svh;
  padding-block: 18svh;
  pointer-events: none;
}

.kapitel__text {
  pointer-events: auto;
}

.kapitel__text > * {
  max-width: 31rem;
}

.kapitel__text h2 {
  margin: 14px 0 22px;
}

.kapitel__text p:not(.etikett):not(.kapitel__daten) {
  color: #e3d9ca;
}

.kapitel__daten {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--linie-hell);
  color: var(--grau-hell);
  font-size: 0.95rem;
}

.kapitel__text .knopf {
  margin-top: 28px;
}

.kapitel--einstieg {
  min-height: calc(100svh - var(--kopf-hoehe));
  padding-block: 10svh 14svh;
}

.einstieg__titel {
  max-width: none !important;
  font-size: clamp(2.5rem, 5.3vw, 5.6rem);
  font-weight: 850;
  font-stretch: 130%;
  line-height: 0.92;
}

.zeile {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.zeile > span {
  display: inline-block;
}

.zeile:nth-child(2) > span {
  color: var(--messing);
}

.einleitung {
  margin-top: 28px;
  color: #e3d9ca;
  font-size: 1.15rem;
}

.offen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
}

.offen__lampe {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--grau-hell);
}

.offen[data-zustand="offen"] .offen__lampe {
  border-color: var(--messing);
  background: var(--messing);
  /* Die eine leuchtende Stelle der Seite: das Licht ist an, wie in der Stange. */
  box-shadow: 0 0 12px 2px rgb(195 154 91 / 0.6);
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Auftritt beim Öffnen: Zeilen von unten, danach der Rest */
.mit-js .zeile > span {
  transform: translateY(105%);
  animation: zeile-hoch 0.9s var(--weich) forwards;
  animation-delay: calc(0.35s + var(--z, 0) * 0.11s);
}

.zeile:nth-child(2) { --z: 1; }
.zeile:nth-child(3) { --z: 2; }
.zeile:nth-child(4) { --z: 3; }

.mit-js .kapitel--einstieg .einleitung,
.mit-js .kapitel--einstieg .offen,
.mit-js .kapitel--einstieg .knoepfe {
  opacity: 0;
  animation: auftauchen 0.9s var(--weich) forwards;
  animation-delay: 0.95s;
}

.mit-js .kapitel--einstieg .offen { animation-delay: 1.05s; }
.mit-js .kapitel--einstieg .knoepfe { animation-delay: 1.15s; }

@keyframes zeile-hoch {
  to { transform: none; }
}

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Rechts bleibt Platz für das Werkzeug. Die Prozente beziehen sich auf die
   Inhaltsbreite (.breite), nicht auf das Fenster, damit die Spalte auf sehr
   breiten Bildschirmen nicht schrumpft. */
@media (min-width: 881px) {
  .kapitel__text > * {
    max-width: min(31rem, 54%);
  }

  .kapitel--einstieg .kapitel__text > * {
    max-width: min(33rem, 56%);
  }

  .kapitel--einstieg .einstieg__titel {
    max-width: 64% !important;
    /* „Mit ruhiger“ ist die längste Zeile: etwa 9,4-mal so breit wie die
       Schriftgröße. 0,068 der Inhaltsbreite passt sie in die 64 %. */
    font-size: calc(min(100vw - 2 * var(--rand) - 20px, var(--breite)) * 0.068);
  }
}

@media (max-width: 1100px) {
  .kapitelleiste {
    display: none;
  }
}

/* Auf schmalen Bildschirmen steht das Werkzeug oben, der Text unten auf dunklem Grund */
@media (max-width: 880px) {
  .kapitel {
    align-items: flex-end;
    min-height: 120svh;
    padding-block: 52svh 12svh;
  }

  .kapitel__text {
    position: relative;
    padding-block: 26px 4px;
  }

  .kapitel__text::before {
    content: "";
    position: absolute;
    inset: -60px calc(-1 * var(--rand)) -40px;
    z-index: -1;
    background: linear-gradient(to bottom, rgb(21 17 14 / 0) 0, rgb(21 17 14 / 0.88) 70px, rgb(21 17 14 / 0.94));
  }

  .kapitel--einstieg {
    min-height: calc(100svh - var(--kopf-hoehe));
    padding-block: 38svh 32px;
  }

  .kapitel--einstieg .kapitel__text::before {
    inset: -40px calc(-1 * var(--rand)) -32px;
  }

  .einstieg__titel {
    font-stretch: 118%;
    font-size: clamp(2.1rem, 10.4vw, 4rem);
  }

  .einleitung {
    font-size: 1.05rem;
    margin-top: 20px;
  }

  .knoepfe {
    margin-top: 24px;
  }

}

/* Streifenband: der Streifen der Barberstange */
.streifenband {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--blut) 0 10px, var(--creme) 10px 20px);
}

/* Helle Abschnitte */
.hell,
.termin {
  --fokus: var(--tinte);
  background: var(--creme);
  color: var(--tinte);
}

.abschnitt-kopf h2 {
  margin: 12px 0 20px;
}

.abschnitt-kopf p:not(.etikett) {
  max-width: 36rem;
  color: var(--grau-dunkel);
}

.foto {
  margin: 0;
}

.foto img {
  width: 100%;
  border-radius: 10px;
  background: #d9cfbf;
}

.foto figcaption {
  margin-top: 10px;
}

/* Preise */
.preise {
  padding-block: var(--abstand);
}

.preise__raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.preise__foto {
  grid-column: 1 / 6;
  position: sticky;
  top: calc(var(--kopf-hoehe) + 32px);
}

.preise__inhalt {
  grid-column: 7 / 13;
}

.tafel {
  margin: 40px 0 40px;
}

.tafel__gruppe + .tafel__gruppe {
  margin-top: 40px;
}

.tafel__gruppe h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tinte);
  font-size: 1.15rem;
  font-stretch: 130%;
}

.tafel__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.posten {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(1.25rem, 1fr) auto auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--linie-dunkel);
}

/* Punktlinie zwischen Leistung und Preis */
.posten::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-bottom: 0.4em;
  border-bottom: 2px dotted rgb(29 24 20 / 0.4);
  transform-origin: left;
  transition: transform 0.9s var(--weich) calc(0.2s + var(--i, 0) * 0.08s);
}

.posten__name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 700;
  font-size: 1.08rem;
}

.posten__dauer {
  grid-column: 3;
  grid-row: 1;
  color: var(--grau-dunkel);
  font-size: 0.92rem;
  white-space: nowrap;
}

.posten__preis {
  grid-column: 4;
  grid-row: 1;
  min-width: 3.4em;
  font-family: var(--schild);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 1.15rem;
  text-align: right;
  white-space: nowrap;
}

.posten__text {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--grau-dunkel);
  font-size: 0.95rem;
}

/* Laden */
.laden {
  padding-block: 0 var(--abstand);
}

.laden__raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--linie-dunkel);
  padding-top: calc(var(--abstand) * 0.7);
}

.laden__text {
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: end;
  padding-bottom: 12px;
}

.laden__foto--raum {
  grid-column: 6 / 13;
  grid-row: 1;
}

.laden__foto--schnitt {
  grid-column: 1 / 5;
  grid-row: 2;
}

.laden__foto--werkzeug {
  grid-column: 5 / 10;
  grid-row: 2;
  align-self: center;
}

.laden__foto--rasur {
  grid-column: 10 / 13;
  grid-row: 2;
  margin-top: clamp(40px, 9vw, 140px);
}

/* Termin */
.termin {
  padding-block: var(--abstand);
  border-top: 14px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--blut) 0 10px, var(--creme) 10px 20px) 14;
}

.termin__raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.termin__formular {
  grid-column: 1 / 8;
}

.besuch {
  grid-column: 8 / 13;
  position: sticky;
  top: calc(var(--kopf-hoehe) + 32px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 10px;
  background: var(--nacht);
  color: var(--creme);
  --fokus: var(--messing);
}

.besuch .etikett {
  color: var(--messing);
}

.besuch__titel {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 22px;
}

.besuch__adresse {
  font-style: normal;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.textlink {
  display: inline-block;
  padding-block: 10px;
  overflow-wrap: anywhere;
  text-decoration-color: var(--messing);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.besuch h3.etikett {
  margin: 28px 0 8px;
}

.zeiten {
  width: 100%;
  border-collapse: collapse;
}

.zeiten th,
.zeiten td {
  padding: 9px 0;
  border-bottom: 1px solid var(--linie-hell);
  text-align: left;
  font-weight: 400;
}

.zeiten td {
  text-align: right;
  color: var(--grau-hell);
}

.zeiten tr.ist-heute th,
.zeiten tr.ist-heute td {
  color: var(--creme);
  font-weight: 700;
}

/* „heute“ trägt das Streifenmotiv, weil es den aktuellen Tag markiert */
.heute-marke {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--messing);
  color: var(--nacht);
  font-family: var(--schild);
  font-size: 0.62rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.besuch__notiz {
  margin-top: 14px;
  color: var(--grau-hell);
  font-size: 0.88rem;
}

/* Terminwahl */
.buchung {
  margin-top: 40px;
}

.buchung__feld {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.buchung__feld legend {
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--schild);
  font-size: 1.05rem;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
}

.buchung__nummer {
  color: var(--grau-dunkel);
}

.buchung__nummer::after {
  content: " /";
}

.wahl {
  display: grid;
  gap: 8px;
}

.wahl--leistung {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.wahl--tage {
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
}

.wahl--zeiten {
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
}

.wahl--zeiten:empty {
  display: none;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--feldrand);
  border-radius: 4px;
  background: var(--creme-hell);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.option:hover {
  border-color: var(--tinte);
}

.option:has(input:checked) {
  border-color: var(--tinte);
  background: var(--tinte);
  color: var(--creme);
}

.option:has(input:checked) .option__neben {
  color: var(--grau-hell);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--tinte);
  outline-offset: 3px;
}

.option:has(input:disabled) {
  border-style: dashed;
  background: transparent;
  color: var(--grau-dunkel);
  cursor: not-allowed;
}

.option:has(input:disabled) input {
  cursor: not-allowed;
}

.option__haupt {
  font-weight: 700;
  line-height: 1.25;
}

.option__neben {
  color: var(--grau-dunkel);
  font-size: 0.88rem;
  line-height: 1.3;
}

.wahl--tage .option,
.wahl--zeiten .option {
  align-items: center;
  text-align: center;
  padding: 8px 6px;
}

.buchung__leer {
  padding: 16px;
  border: 1px dashed var(--feldrand);
  border-radius: 4px;
  color: var(--grau-dunkel);
}

.buchung__leer .knopf {
  margin-top: 12px;
}

.buchung__notiz {
  margin-top: 10px;
  color: var(--grau-dunkel);
  font-size: 0.88rem;
}

.eingabe + .eingabe {
  margin-top: 18px;
}

.eingabe label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.eingabe__optional {
  color: var(--grau-dunkel);
  font-weight: 400;
}

.eingabe input,
.eingabe textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--feldrand);
  border-radius: 4px;
  background: var(--creme-hell);
  color: var(--tinte);
  font: inherit;
}

.eingabe input::placeholder,
.eingabe textarea::placeholder {
  color: #7d7064;
}

.eingabe input:focus-visible,
.eingabe textarea:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
}

.eingabe [aria-invalid="true"] {
  border: 2px solid var(--blut);
}

.eingabe__hilfe {
  margin-top: 6px;
  color: var(--grau-dunkel);
  font-size: 0.88rem;
}

.feldfehler {
  margin-top: 8px;
  color: var(--blut);
  font-weight: 650;
  font-size: 0.95rem;
}

.buchung__fehler {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 2px solid var(--blut);
  border-radius: 4px;
  background: var(--creme-hell);
}

.buchung__fehler h3 {
  font-size: 1rem;
  color: var(--blut);
}

.buchung__fehler ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.buchung__fehler a {
  display: inline-block;
  padding-block: 6px;
  color: var(--blut);
  font-weight: 600;
}

.buchung__abschluss {
  padding-top: 24px;
  border-top: 2px solid var(--tinte);
}

.buchung__wahl {
  margin-bottom: 18px;
  font-weight: 650;
}

.bestaetigung {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--tinte);
  border-radius: 10px;
}

.bestaetigung h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.bestaetigung h3:focus {
  outline: none;
}

.bestaetigung h3:focus-visible {
  outline: 3px solid var(--tinte);
}

.bestaetigung .knopf {
  margin-top: 24px;
}

/* Fuß */
.fuss {
  padding-block: clamp(56px, 8vw, 112px) 32px;
  overflow: hidden;
}

.fuss__schriftzug {
  margin: 0 0 clamp(24px, 4vw, 48px);
  color: var(--messing);
  font-family: var(--schild);
  /* Der Schriftzug ist bei dieser Schrift 10,7-mal so breit wie hoch gesetzt;
     so füllt er genau die Seitenbreite. */
  font-size: calc(min(100vw - 2 * var(--rand) - 16px, var(--breite)) / 10.8);
  font-weight: 900;
  font-stretch: 140%;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--linie-hell);
}

.fuss__hinweis {
  max-width: 40rem;
  color: var(--grau-hell);
  font-size: 0.92rem;
}

.fuss__links {
  display: flex;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.fuss__links a[aria-current="page"] {
  color: var(--messing);
}

/* Rechtstexte */
.rechtstext {
  padding-block: clamp(48px, 7vw, 96px);
}

.rechtstext > * {
  max-width: 44rem;
}

.rechtstext h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin-bottom: 24px;
}

.rechtstext h2 {
  margin: 40px 0 12px;
  font-size: 1.2rem;
}

.rechtstext p + p {
  margin-top: 12px;
}

.rechtstext p {
  color: #e3d9ca;
}

/* Erscheinen beim Hineinscrollen, Teile nacheinander (--i aus seite.js) */
.erscheint > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.8s var(--weich), transform 0.9s var(--weich), filter 0.8s var(--weich);
  transition-delay: calc(var(--i, 0) * 0.09s);
}

.erscheint.ist-sichtbar > * {
  opacity: 1;
  transform: none;
  filter: none;
}

.mit-js .tafel__liste .posten::before {
  transform: scaleX(0);
}

.mit-js .tafel__liste.ist-sichtbar .posten::before {
  transform: none;
}

/* Fotos öffnen sich wie ein Rollladen, einmal */
.mit-js .foto.wird-gezeigt img {
  clip-path: inset(100% 0 0 0 round 10px);
  transform: scale(1.06);
  transition: clip-path 1.1s var(--weich), transform 1.4s var(--weich);
}

.mit-js .foto.wird-gezeigt.ist-sichtbar img {
  clip-path: inset(0 0 0 0 round 10px);
  transform: none;
}

/* Animation angehalten: alles steht sofort da */
.bewegung-aus *,
.bewegung-aus *::before,
.bewegung-aus *::after {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  transition-duration: 0.001s !important;
  transition-delay: 0s !important;
}

/* Breiten zwischen Telefon und Laptop */
@media (max-width: 1000px) {
  .preise__foto {
    grid-column: 1 / 6;
  }

  .preise__inhalt {
    grid-column: 6 / 13;
  }

  .laden__raster {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .laden__text {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .laden__foto--raum {
    grid-column: 1 / 7;
    grid-row: 2;
  }

  .laden__foto--schnitt {
    grid-column: 1 / 4;
    grid-row: 3;
  }

  .laden__foto--rasur {
    grid-column: 4 / 7;
    grid-row: 3;
    margin-top: 0;
  }

  .laden__foto--werkzeug {
    grid-column: 1 / 7;
    grid-row: 4;
  }

  .termin__formular,
  .besuch {
    grid-column: 1 / -1;
  }

  .besuch {
    position: static;
  }
}

@media (max-width: 760px) {
  .preise__raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .preise__inhalt {
    grid-column: 1;
    grid-row: 1;
  }

  .preise__foto {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }

  .preise__foto img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .knoepfe .knopf {
    flex: 1 1 100%;
  }

  .laden__raster {
    gap: 16px 12px;
  }

  .posten {
    column-gap: 8px;
  }

  .posten__dauer {
    font-size: 0.85rem;
  }

  .fuss__links {
    flex-wrap: wrap;
  }
}
