/* Wirbel – Friseur in Neukölln. Konzeptarbeit Northline Studios. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --pista: #D7E7CF;
  --pista-hell: #E8F1E3;
  --pista-papier: #F5F9F2;
  --pista-tief: #C2D8B8;
  --tinte: #10231C;
  --tinte-2: #3A5143;
  --kirsch: #A8102F;
  --kirsch-tief: #860A23;
  --linie: rgba(16, 35, 28, .22);
  --linie-leicht: rgba(16, 35, 28, .12);
  --tafel: #10231C;
  --tafel-text: #D7E7CF;
  --tafel-leise: #A9C2A3;
  --tafel-linie: rgba(215, 231, 207, .2);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-schublade: cubic-bezier(.32, .72, 0, 1);

  --rand: clamp(16px, 4.4vw, 64px);
  --max: 1440px;
  --wort: clamp(60px, 11.4vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--tinte-2) var(--pista);
  accent-color: var(--kirsch);
}
html.dialog-offen { overflow: hidden; }

body {
  margin: 0;
  background: var(--pista);
  color: var(--tinte);
  font: 400 17px/1.55 "Jost", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  caret-color: var(--kirsch);
  overflow-x: clip;
}

::selection { background: var(--kirsch); color: #fff; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--kirsch); outline-offset: 3px; }
.tafel :focus-visible, .fuss :focus-visible, .konzept :focus-visible { outline-color: var(--pista); }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--tinte); color: var(--pista); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.breite { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Konzept-Hinweis ---------- */
.konzept {
  background: var(--tinte); color: var(--pista);
  font-size: 13px; line-height: 1.4; text-align: center;
  padding: 8px var(--rand);
}
.konzept a { color: #fff; font-weight: 500; margin-left: .3em; white-space: nowrap; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--pista) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie-leicht);
}
.kopf-innen {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--rand);
  min-height: 68px; display: flex; align-items: center; gap: 24px;
}
.marke {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 25px; font-weight: 500; letter-spacing: -.02em;
  min-height: 44px;
}
.marke-wirbel { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.js .kopf .marke-wirbel { animation: wirbel-dreh 1.4s var(--ease-out) .15s both; }
@keyframes wirbel-dreh { from { transform: rotate(-200deg) scale(.86); opacity: 0; } }

.nav { margin-left: auto; position: relative; }
.nav-knopf { display: none; }
.nav-liste { display: flex; gap: 4px; }
.nav-liste a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 16px; border-radius: 999px;
  transition: background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-liste a:hover { background: var(--pista-hell); }
}

/* ---------- Knöpfe ---------- */
.kopf-cta .kurz { display: none; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none;
  font-weight: 500; font-size: 16px; line-height: 1.1; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.knopf:active { transform: scale(.97); }
.knopf-kirsch { background: var(--kirsch); color: #fff; }
.knopf-tinte { background: var(--tinte); color: var(--pista); }
.knopf-rand { border-color: var(--tinte); background: transparent; color: var(--tinte); }
.knopf-gross { min-height: 58px; padding: 0 28px; font-size: 18px; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pfeil { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .knopf-kirsch:hover { background: var(--kirsch-tief); }
  .knopf-tinte:hover { background: #1d3a2f; }
  .knopf-rand:hover { background: var(--tinte); color: var(--pista); }
  .knopf:hover .pfeil { transform: translateX(3px); }
}

.link-knopf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; text-align: left;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
  color: var(--kirsch);
}
.link-knopf:hover { text-decoration-thickness: 2px; }

/* ---------- Held ---------- */
.held { padding: clamp(24px, 4.4vw, 64px) var(--rand) clamp(56px, 7vw, 112px); }
.held-raster {
  max-width: calc(var(--max) - 2 * var(--rand)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 29vw, 420px);
  gap: clamp(32px, 4.4vw, 80px); align-items: start;
}
.held-text {
  display: grid; grid-template-columns: max-content minmax(200px, 1fr); align-items: start;
}
.worte { grid-column: 1; font-weight: 400; }
.worte-bild { display: block; }
.wort {
  display: block; font-size: var(--wort); line-height: 1; letter-spacing: -.045em;
  height: calc(var(--wort) * 1.06); padding-top: calc(var(--wort) * .02);
  border-bottom: 1px solid var(--linie);
  overflow: clip; white-space: nowrap; padding-right: .12em;
}
.wort i { font-style: normal; color: var(--kirsch); }
.wort .b { display: inline-block; }

.einstieg { grid-column: 2; }
.einstieg li { height: calc(var(--wort) * 1.06); border-bottom: 1px solid var(--linie); }
.einstieg-knopf {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  width: 100%; height: 100%; padding: 0 8px 0 clamp(12px, 1.6vw, 28px);
  background: none; border: 0; text-align: left; font-size: 16px; line-height: 1.35;
  transition: background-color 200ms ease;
}
.einstieg-was { color: var(--tinte-2); }
.einstieg-preis { font-weight: 500; color: var(--kirsch); display: inline-flex; align-items: center; gap: 6px; }
.einstieg-preis::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .einstieg-knopf:hover { background: var(--pista-hell); }
  .einstieg-knopf:hover .einstieg-preis::after { transform: translateX(4px); }
}
.einstieg-knopf:active { background: var(--pista-tief); }

.held-unten {
  grid-column: 1 / -1; margin-top: clamp(28px, 3.2vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end;
}
.held-satz { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 44ch; }
.held-aktion { display: grid; gap: 14px; justify-items: start; }
.naechster { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.naechster-punkt { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--kirsch); flex: none; }
.naechster-punkt::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--kirsch); opacity: 0;
  animation: puls 2.8s var(--ease-out) infinite;
}
@keyframes puls { 0% { transform: scale(.5); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.held-bild { position: relative; margin-top: 4px; }
.held-bild img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 10px var(--pista-hell), 0 0 0 11px var(--linie), 0 24px 48px -24px rgba(16, 35, 28, .45);
}
.held-bild figcaption, .salon-bild figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(16, 35, 28, .78); color: #fff; font-size: 12px; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
}

/* Kinetic Type (Leitstil): Buchstaben steigen einmal aus der Linie */
@keyframes kin-ein { from { transform: translateY(108%) rotate(7deg); } }
.js .kin-bereit .wort .b { transform: translateY(108%); }
.js .kin-los .wort .b {
  transform: none;
  animation: kin-ein 900ms var(--ease-io) both;
  animation-delay: calc(var(--w) * 130ms + var(--i) * 32ms + 80ms);
}
.js .kin-bereit .held-bild img { opacity: 0; }
.js .kin-los .held-bild img { opacity: 1; animation: bild-ein 1200ms var(--ease-out) 300ms both; }
@keyframes bild-ein { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.titel { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 400; text-wrap: balance; }
.titel .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.titel .w > span { display: inline-block; }
.js .titel.kin-wartet .w > span { transform: translateY(105%); }
.js .titel.is-in .w > span { transform: none; animation: kin-ein 820ms var(--ease-io) both; animation-delay: calc(var(--i) * 70ms); }

/* ---------- Preistafel ---------- */
.tafel { background: var(--tafel); color: var(--tafel-text); padding: clamp(64px, 8vw, 128px) 0; }
.tafel-innen { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.tafel-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.tafel-kopf p { color: var(--tafel-leise); max-width: 50ch; }
.tafel-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 3.4vw, 56px); align-items: start; }
.tafel-gruppe h3 {
  font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
  padding-bottom: 14px; border-bottom: 2px solid var(--tafel-text);
}
.posten li { border-bottom: 1px solid var(--tafel-linie); }
.posten button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 6px 14px 0; background: none; border: 0; text-align: left; color: var(--tafel-text);
  transition: background-color 200ms ease;
}
.p-name { transition: transform 220ms var(--ease-out); }
.p-min { color: var(--tafel-leise); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-preis { font-weight: 500; min-width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .posten button:hover { background: rgba(215, 231, 207, .07); }
  .posten button:hover .p-name { transform: translateX(8px); }
}
.posten button:active { background: rgba(215, 231, 207, .12); }
.tafel-fuss { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--tafel-linie); color: var(--tafel-leise); max-width: 70ch; }

/* ---------- Team ---------- */
.team { padding: clamp(72px, 9vw, 140px) 0 clamp(56px, 7vw, 104px); }
.abschnitt-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 64px); }
.abschnitt-kopf p { max-width: 48ch; color: var(--tinte-2); }
.plaetze { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 40px); }
.platz { border-top: 3px solid var(--tinte); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.platz h3 { font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.platz h3 span { display: block; font-size: 16px; font-weight: 400; color: var(--tinte-2); letter-spacing: 0; margin-top: 4px; }
.platz p { color: var(--tinte); }
.platz-tage { font-weight: 500; font-size: 15px; color: var(--tinte-2); margin-top: auto; padding-top: 6px; }
.hinweis-klein { margin-top: 32px; font-size: 14px; color: var(--tinte-2); }

/* ---------- Salon ---------- */
.salon { padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 9vw, 140px); }
.salon-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 4.4vw, 80px); align-items: center; }
.salon-bild { position: relative; margin-bottom: clamp(48px, 6vw, 88px); }
.salon-bild > img:first-child { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.salon-einsatz {
  position: absolute; right: clamp(-48px, -3vw, -12px); bottom: clamp(-88px, -6vw, -48px); width: 27%;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 8px 8px;
  box-shadow: 0 0 0 8px var(--pista), 0 20px 40px -20px rgba(16, 35, 28, .5);
}
.salon-text { display: grid; gap: 20px; }
.salon-text > p { max-width: 46ch; }
.fakten { display: grid; gap: 0; margin-top: 8px; }
.fakten div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--linie); }
.fakten dt { font-weight: 500; }
.fakten dd { color: var(--tinte-2); }

/* ---------- Gut zu wissen ---------- */
.wissen { background: var(--pista-hell); padding: clamp(72px, 9vw, 128px) 0; }
.wissen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 4.4vw, 80px); align-items: start; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen details:first-child { border-top: 1px solid var(--linie); }
.fragen summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 14px 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.3;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat;
  transition: transform 260ms var(--ease-out);
}
.fragen details[open] summary::after { transform: rotate(135deg); }
.fragen details p { padding: 0 0 22px; max-width: 62ch; color: var(--tinte-2); }
.js .fragen details[open] p { animation: auf 260ms var(--ease-out); }
@keyframes auf { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Anfahrt ---------- */
.anfahrt { padding: clamp(72px, 9vw, 128px) 0; }
.anfahrt-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(28px, 3.6vw, 64px); align-items: start; }
.offen-jetzt { margin-top: 20px; font-size: 18px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.offen-jetzt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tinte-2); flex: none; transform: translateY(-1px); }
.offen-jetzt.ist-offen::before { background: var(--kirsch); }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { padding: 11px 0; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 400; }
.zeiten td { text-align: right; color: var(--tinte-2); }
.zeiten tr.heute th, .zeiten tr.heute td { font-weight: 500; color: var(--tinte); }
.zeiten tr.heute th::after { content: " heute"; color: var(--kirsch); font-weight: 500; }
.adresse { font-style: normal; display: grid; gap: 16px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--pista); padding: 56px 0 40px; font-size: 15px; }
.fuss-raster { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 48px; }
.fuss-marke { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.fuss-konzept { max-width: 56ch; }
.fuss-konzept a { font-weight: 500; white-space: nowrap; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss-links a, .fuss-links span { display: inline-flex; align-items: center; min-height: 44px; }
.fuss-credits { color: var(--tafel-leise); }

/* ---------- Buchung (Dialog) ---------- */
.buchung {
  padding: 0; border: 0; margin: 0 0 0 auto;
  width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--pista-papier); color: var(--tinte);
  box-shadow: -24px 0 64px -32px rgba(16, 35, 28, .55);
  transition: transform 380ms var(--ease-schublade), opacity 220ms ease, overlay 380ms allow-discrete, display 380ms allow-discrete;
}
.buchung[open] { transform: none; opacity: 1; }
@starting-style { .buchung[open] { transform: translateX(48px); opacity: 0; } }
.buchung.schliesst { transform: translateX(32px); opacity: 0; transition-duration: 200ms, 160ms; }
.buchung::backdrop { background: rgba(16, 35, 28, .5); transition: opacity 300ms ease; opacity: 1; }
@starting-style { .buchung[open]::backdrop { opacity: 0; } }
.buchung.schliesst::backdrop { opacity: 0; }

.b-form { display: flex; flex-direction: column; height: 100%; }
.b-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; }
.b-kopf h2 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.b-demo { margin-top: 4px; font-size: 14px; color: var(--tinte-2); display: flex; align-items: center; gap: 8px; }
.b-demo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kirsch); }
.b-zu {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--linie); background: transparent;
  display: grid; place-items: center; transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.b-zu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.b-zu:hover { background: var(--pista-hell); }
.b-zu:active { transform: scale(.94); }

.b-schritte { display: flex; gap: 6px; padding: 0 24px 16px; border-bottom: 1px solid var(--linie-leicht); }
.b-schritte li { flex: 1; position: relative; padding-top: 10px; font-size: 13px; color: var(--tinte-2); }
.b-schritte li::before, .b-schritte li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; }
.b-schritte li::before { background: var(--linie-leicht); }
.b-schritte li::after { background: var(--kirsch); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.b-schritte li.ist-fertig::after, .b-schritte li.ist-aktuell::after { transform: scaleX(1); }
.b-schritte li.ist-aktuell { color: var(--tinte); font-weight: 500; }

.b-koerper { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 28px; }
.b-schritt { border: 0; padding: 0; margin: 0; min-width: 0; }
.b-schritt legend, .b-fertig h3 { padding: 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.b-schritt legend:focus, .b-fertig h3:focus { outline: none; }
.b-schritt.zeigt { animation: schritt-ein 320ms var(--ease-out); }
@keyframes schritt-ein { from { opacity: 0; transform: translateX(14px); } }

.b-fehler { margin: -6px 0 14px; color: var(--kirsch); font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; }

.b-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.b-filter button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; font-size: 15px;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.b-filter button[aria-pressed="true"] { background: var(--tinte); color: var(--pista); border-color: var(--tinte); }
.b-filter button:active { transform: scale(.96); }

.b-liste { display: grid; gap: 8px; }
.b-gruppe-titel { font-size: 14px; font-weight: 500; color: var(--tinte-2); margin: 12px 0 2px; }
.wahl {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--linie); border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.wahl:active { transform: scale(.985); }
.wahl input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--tinte-2); background: #fff; grid-row: span 2; align-self: center;
  transition: background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.wahl input:checked { border-color: var(--kirsch); background: var(--kirsch); box-shadow: inset 0 0 0 4px #fff; }
.wahl input:focus-visible { outline: none; }
.wahl:has(input:focus-visible) { outline: 3px solid var(--kirsch); outline-offset: 2px; }
.wahl:has(input:checked) { border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.wahl-titel { font-weight: 500; line-height: 1.3; }
.wahl-zusatz { grid-column: 2; font-size: 14px; color: var(--tinte-2); line-height: 1.35; }
.wahl-preis { grid-row: 1 / span 2; grid-column: 3; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wahl.ist-aus { cursor: not-allowed; background: transparent; }
.wahl.ist-aus .wahl-titel, .wahl.ist-aus .wahl-preis { color: var(--tinte-2); }
.wahl.ist-aus input { border-color: var(--linie); }

.b-tage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tag, .zeit { position: relative; display: block; cursor: pointer; }
.tag input, .zeit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag span {
  display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--linie); background: #fff;
  line-height: 1.2; font-variant-numeric: tabular-nums; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.tag b { font-weight: 500; font-size: 15px; }
.tag small { font-size: 13px; color: var(--tinte-2); }
.tag:active span { transform: scale(.96); }
.tag input:checked + span { background: var(--tinte); color: var(--pista); border-color: var(--tinte); }
.tag input:checked + span small { color: var(--tafel-leise); }
.tag input:disabled + span { background: transparent; color: var(--tinte-2); border-style: dashed; cursor: not-allowed; }
.tag input:focus-visible + span, .zeit input:focus-visible + span { outline: 3px solid var(--kirsch); outline-offset: 2px; }
.b-tag-info { margin: 16px 0 10px; font-size: 15px; color: var(--tinte-2); }
.b-zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.zeit span {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--linie); background: #fff;
  font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.zeit:active span { transform: scale(.95); }
.zeit input:checked + span { background: var(--kirsch); border-color: var(--kirsch); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .wahl:not(.ist-aus):hover { border-color: var(--tinte-2); }
  .tag input:not(:disabled):not(:checked) + span:hover, .zeit input:not(:checked) + span:hover { border-color: var(--tinte); }
}

.feld { display: grid; gap: 6px; margin-bottom: 18px; }
.feld label { font-weight: 500; font-size: 15px; }
.optional { font-weight: 400; color: var(--tinte-2); }
.feld input, .feld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--tinte-2); background: #fff; font-size: 17px; line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.feld textarea { resize: vertical; min-height: 92px; }
.feld input::placeholder, .feld textarea::placeholder { color: #5e7366; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px rgba(168, 16, 47, .35); }
.feld input[aria-invalid="true"] { border-color: var(--kirsch); }
.feld-hilfe { font-size: 14px; color: var(--tinte-2); }
.feld-fehler { font-size: 14px; font-weight: 500; color: var(--kirsch); }
.haken { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 0; }

.b-fuss {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie-leicht); background: var(--pista-papier);
}
.b-auswahl { font-size: 14px; color: var(--tinte-2); line-height: 1.4; flex: 1 1 200px; min-width: 0; font-variant-numeric: tabular-nums; }
.b-auswahl b { color: var(--tinte); font-weight: 500; }
.b-fuss-knoepfe { display: flex; gap: 10px; margin-left: auto; }
.b-fuss-knoepfe [data-zurueck][hidden] { display: none; }
.knopf.laedt { pointer-events: none; }
.knopf.laedt::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: drehen 700ms linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

.b-fertig > p { color: var(--tinte-2); max-width: 46ch; }
.karte {
  position: relative; margin: 22px 0; padding: 22px 22px 18px; border-radius: 18px; background: var(--tinte); color: var(--pista);
  overflow: hidden; font-variant-numeric: tabular-nums;
}
.karte::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; opacity: .12;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M20 20a1.6 1.6 0 0 1 1.6 1.6 3.2 3.2 0 0 1-3.2 3.2 4.8 4.8 0 0 1-4.8-4.8 6.4 6.4 0 0 1 6.4-6.4 8 8 0 0 1 8 8 9.6 9.6 0 0 1-9.6 9.6 11.2 11.2 0 0 1-11.2-11.2 12.8 12.8 0 0 1 12.8-12.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M20 20a1.6 1.6 0 0 1 1.6 1.6 3.2 3.2 0 0 1-3.2 3.2 4.8 4.8 0 0 1-4.8-4.8 6.4 6.4 0 0 1 6.4-6.4 8 8 0 0 1 8 8 9.6 9.6 0 0 1-9.6 9.6 11.2 11.2 0 0 1-11.2-11.2 12.8 12.8 0 0 1 12.8-12.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.karte-kopf { font-size: 14px; color: var(--tafel-leise); }
.karte-tag { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.karte-zeit { font-size: 22px; margin-top: 2px; }
.karte dl { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--tafel-linie); display: grid; gap: 6px; font-size: 15px; }
.karte dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.karte dt { color: var(--tafel-leise); }
.js .karte.neu { animation: karte-ein 560ms var(--ease-out) both; }
@keyframes karte-ein { from { opacity: 0; transform: translateY(12px) rotate(-1.5deg); } }
.b-fertig-aktionen { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tafel-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plaetze { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anfahrt-raster { grid-template-columns: 1fr 1fr; }
  .anfahrt-raster > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-knopf {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--linie); background: transparent; font-size: 16px; font-weight: 500;
  }
  .nav-liste {
    position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; flex-direction: column; gap: 0;
    padding: 8px; border-radius: 16px; background: var(--pista-papier); box-shadow: 0 18px 40px -16px rgba(16, 35, 28, .45);
    opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; visibility: hidden;
    transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav-liste a { width: 100%; min-height: 48px; }
  .nav.offen .nav-liste { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .kopf-innen { gap: 10px; }
  .kopf-cta { min-height: 44px; padding: 0 16px; font-size: 15px; }

  .held-raster { grid-template-columns: 1fr; }
  .held-text { grid-template-columns: minmax(0, 1fr); }
  .einstieg { grid-column: 1; margin-top: 0; }
  .einstieg li { height: auto; }
  .einstieg-knopf { min-height: 64px; padding: 12px 0; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
  .einstieg-was { flex: 1; }
  .held-unten { grid-template-columns: 1fr; }
  .held-bild { max-width: 420px; width: 78%; margin: 16px auto 0; }
  .held { --wort: clamp(60px, 24vw, 150px); }
  .salon-einsatz { right: 12px; width: 34%; }

  .tafel-kopf, .abschnitt-kopf, .salon-raster, .wissen-raster { grid-template-columns: minmax(0, 1fr); }
  .fuss-raster { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .buchung { width: 100vw; box-shadow: none; }
  @starting-style { .buchung[open] { transform: translateY(40px); opacity: 0; } }
  .buchung.schliesst { transform: translateY(32px); }
  .tafel-spalten, .plaetze, .anfahrt-raster { grid-template-columns: 1fr; }
  .b-kopf { padding: 18px 16px 12px; }
  .b-schritte { padding: 0 16px 14px; }
  .b-koerper { padding: 18px 16px 24px; }
  .b-fuss { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 420px) {
  .karte-tag { font-size: 28px; }
  .marke { font-size: 22px; }
  .marke-wirbel { width: 28px; height: 28px; }
  .kopf-cta { padding: 0 14px; }
  .einstieg-knopf { flex-direction: column; align-items: flex-start; gap: 2px; }
  .b-fuss-knoepfe { width: 100%; }
  .b-fuss-knoepfe .knopf { flex: 1; }
  .posten button { grid-template-columns: minmax(0, 1fr) auto; }
  .p-min { grid-column: 1; grid-row: 2; }
  .p-preis { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .fakten div { grid-template-columns: 1fr; gap: 2px; }
  #b-personen .wahl-preis { grid-column: 2; grid-row: auto; font-size: 14px; font-weight: 500; white-space: normal; }
}

@media (max-width: 350px) {
  .kopf-cta { font-size: 15px; padding: 0 14px; }
  .kopf-cta .lang { display: none; }
  .kopf-cta .kurz { display: inline; }
  .nav-knopf { padding: 0 11px; }
  .kopf-innen { gap: 6px; }
  .marke { gap: 8px; }
  .b-tage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .kin-bereit .wort .b, .js .titel.kin-wartet .w > span { transform: none; }
  .js .kin-bereit .held-bild img { opacity: 1; }
  .buchung, .buchung::backdrop { transition: opacity 160ms ease; }
  @starting-style { .buchung[open] { transform: none; opacity: 0; } }
  .buchung.schliesst { transform: none; }
  .nav-liste { transition: opacity 120ms ease, visibility 0s linear 120ms; transform: none !important; }
  .posten button:hover .p-name, .knopf:hover .pfeil { transform: none; }
}
