/* Feierklo – Styles
   Schriften selbst gehostet (fonts/, SIL Open Font License), keine Anfragen an fremde Server.
   Aufbau: Schriften, Tokens, Grundlagen, Bausteine, Abschnitte von oben nach unten, Rechtsseiten. */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --tanne: #0F5C55;
  --tanne-tief: #0B2E2A;
  --porzellan: #F5F6F3;
  --kachel: #E4ECE8;
  --gelb: #FFD166;
  --stein: #56645F;
  --weiss: #FFFFFF;
  --linie: #CBD8D2;
  --frei: #2F8A5B;
  --besetzt: #C2412D;
  --hell-auf-dunkel: #B9C9C4;

  --f-head: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t--1: clamp(.875rem, .86rem + .07vw, .9375rem);
  --t-0: clamp(1.0625rem, 1.02rem + .19vw, 1.125rem);
  --t-1: clamp(1.275rem, 1.14rem + .56vw, 1.5rem);
  --t-2: clamp(1.53rem, 1.25rem + 1.2vw, 2rem);
  --t-3: clamp(1.84rem, 1.33rem + 2.2vw, 2.67rem);
  --t-4: clamp(2.2rem, 1.35rem + 3.7vw, 3.55rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(72px, 2.6rem + 8vw, 152px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;

  --r-foto: 20px; --r-kachel: 12px; --r-ctrl: 10px;
  --schatten: 0 10px 30px -12px rgba(11, 46, 42, .35);
  --fokus: 0 0 0 2px var(--tanne-tief), 0 0 0 5px var(--gelb);
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body); font-size: var(--t-0); line-height: 1.55;
  color: var(--tanne-tief); background: var(--porzellan);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--tanne); text-underline-offset: .18em; }
a:hover { color: var(--tanne-tief); }
h1, h2, h3 { margin: 0 0 .45em; font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--f-head); letter-spacing: -.01em; }
h1 { font-size: var(--t-4); }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-1); font-weight: 650; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 650; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.sub { color: var(--stein); font-size: var(--t-0); line-height: 1.45; max-width: 40ch; }
@media (min-width: 1024px) { .sub { font-size: var(--t-1); max-width: 34ch; } }
.hint { color: var(--stein); font-size: var(--t--1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border: 1.5px solid transparent; border-radius: var(--r-ctrl);
  font-weight: 650; font-size: var(--t-0); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn:focus-visible { box-shadow: var(--fokus); border-radius: var(--r-ctrl); }
.btn-primary { background: var(--tanne); color: var(--weiss); }
.btn-primary:hover { background: var(--tanne-tief); color: var(--weiss); }
.btn-gelb { background: var(--gelb); color: var(--tanne-tief); }
.btn-gelb:hover { background: #FFC23D; color: var(--tanne-tief); }
.btn-quiet { background: transparent; color: var(--tanne); border-color: var(--linie); }
.btn-quiet:hover { background: var(--kachel); border-color: var(--tanne); color: var(--tanne-tief); }
.btn-sm { min-height: 44px; padding: .5em 1em; font-size: var(--t--1); }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: var(--t-1); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 246, 243, .86);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  box-shadow: var(--schatten);
}
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: 72px; transition: height .25s var(--ease); }
.is-scrolled .header-inner { height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tanne-tief); }
.logo-mark svg { width: 34px; height: 34px; transition: width .25s var(--ease), height .25s var(--ease); }
.is-scrolled .logo-mark svg { width: 30px; height: 30px; }
.logo-mark rect { fill: #0F5C55; }
.logo-mark path { fill: #FFD166; }
.logo-text { font-family: var(--f-head); font-size: 1.45rem; letter-spacing: -.01em; margin: 0; }
.logo-text b { font-weight: inherit; color: var(--tanne); }
.main-nav { display: none; gap: var(--s-6); margin-left: auto; }
.main-nav a { color: var(--stein); text-decoration: none; font-weight: 550; padding: 10px 0; }
.main-nav a:hover { color: var(--tanne-tief); }
.header-cta { margin-left: auto; }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { margin-left: 0; }
}
/* Startseite: Der Header-Button erscheint erst, wenn der Hero-Button aus dem Bild ist (ui.js setzt .cta-weg) */
@media (max-width: 1023px) { body:not(.legal-page):not(.ort-page) .header-cta { display: none; } }
@media (min-width: 1024px) {
  body:not(.legal-page):not(.ort-page) .header-cta { opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; }
  body.cta-weg .header-cta { opacity: 1; visibility: visible; }
}

/* ---------- Signatur: Frei/Besetzt-Anzeige ---------- */
.schloss { width: 72px; height: 72px; }
.s-ring { fill: var(--weiss); stroke: var(--stein); stroke-width: 2; }
.s-fenster { fill: none; stroke: var(--tanne-tief); stroke-width: 1.5; }
.s-frei { fill: var(--frei); }
.s-besetzt { fill: var(--besetzt); }
.s-t { font-family: var(--f-body); font-weight: 700; font-size: 8.5px; letter-spacing: .06em; fill: var(--weiss); text-anchor: middle; }
.s-t-lang { font-size: 6.4px; }
.s-knauf { fill: var(--stein); }
.s-disc { transform-box: view-box; transform-origin: 32px 32px; transition: transform .6s cubic-bezier(.3, 1.4, .6, 1); }
.schloss.is-besetzt .s-disc { transform: rotate(180deg); }
@keyframes schloss-auf { from { transform: rotate(180deg); } to { transform: rotate(0deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: var(--s-5) 0 calc(var(--section) * .6); }
.hero-inner { display: grid; gap: var(--s-6); padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
/* Großes Schloss hinter dem Text: Das farbige Fenster sitzt über der Überschrift, nie hinter Text.
   --S = Durchmesser; das Fenster ist 0,297 × S hoch, sein Mittelpunkt liegt 0,12 × S rechts der Textkante. */
.hero-copy { position: relative; --S: clamp(440px, 120vw, 580px); padding-top: calc(var(--S) * .297 + 24px); }
.hero-copy > :not(.schloss-hero) { position: relative; z-index: 1; }
.schloss-hero {
  position: absolute; z-index: 0; width: var(--S); height: var(--S); max-width: none; pointer-events: none;
  left: calc(var(--S) * -.38); top: calc(var(--S) * -.203 + 4px);
}
.schloss-hero .s-ring { fill: var(--kachel); stroke: var(--linie); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.schloss-hero .s-ring-innen { fill: none; stroke: var(--linie); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.schloss-hero .s-fenster { stroke: var(--linie); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.schloss-hero .s-knauf {
  fill: #D5E0DB; stroke: var(--linie); stroke-width: 1px; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.45, 0, .2, 1);
}
.schloss-hero .s-disc { transition-duration: .8s; transition-timing-function: cubic-bezier(.45, 0, .2, 1); }
.schloss-hero.is-besetzt .s-knauf { transform: rotate(90deg); }
.hero-copy h1 { max-width: 17ch; }
@media (min-width: 1024px) { .hero-copy h1 { max-width: 12ch; } }
.lead { color: var(--stein); font-size: var(--t-1); line-height: 1.4; max-width: 30ch; }
.hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35em; margin: var(--s-5) 0 var(--s-5); }
.hero-ab { color: var(--stein); font-size: var(--t-1); }
.hero-zahl { font-family: var(--f-head); font-size: var(--t-4); line-height: 1; white-space: nowrap; }
.hero-fest { color: var(--stein); font-size: var(--t-0); }

.hero-visual { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-foto); background: var(--kachel); }
.trailer { display: none; width: 100%; height: auto; }
.hero-visual:not(:has(.hero-photo)) .trailer { display: block; }
/* Beim Laden einmal von „besetzt“ auf „frei“; danach dreht die Transition (frei oben, besetzt beim Scrollen) */
.schloss-hero .s-disc { animation: schloss-auf .8s .3s cubic-bezier(.45, 0, .2, 1) both; }
.schloss-hero .s-knauf { animation: knauf-auf .8s .3s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes knauf-auf { from { transform: rotate(90deg); } to { transform: rotate(0deg); } }
.schloss-hero.ist-geladen .s-disc, .schloss-hero.ist-geladen .s-knauf { animation: none; }
/* Handy und Tablet: ein Bildschirm, ohne Foto */
@media (max-width: 1023px) {
  .hero { display: flex; align-items: center; min-height: calc(100svh - 72px); padding-bottom: var(--s-7); }
  .hero-inner { width: 100%; }
  .hero-visual { display: none; }
}

.t-shadow { fill: rgba(11, 46, 42, .12); }
.t-bar { stroke: #3d4a47; stroke-width: 9; stroke-linecap: round; fill: none; }
.t-bar-fill { fill: #3d4a47; }
.t-coupling { fill: var(--besetzt); }
.t-body { fill: #fff; stroke: var(--linie); stroke-width: 2; }
.t-roof { fill: var(--tanne); }
.t-roofwin { fill: #9fd3cc; }
.t-door { fill: var(--kachel); stroke: var(--tanne); stroke-width: 3; }
.t-handle, .t-sign { fill: var(--tanne); }
.t-sign-icon, .t-lamp { fill: var(--gelb); }
.t-step { fill: #8a9794; }
.t-fender { fill: #3d4a47; }
.t-tyre { fill: #1f2725; }
.t-rim { fill: #b7c2bf; }

@media (min-width: 1024px) {
  .hero { padding-top: var(--s-3); }
  .hero-inner {
    max-width: none; padding: 0;
    grid-template-columns: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 5fr 1fr 6fr;
    align-items: center; gap: 0;
  }
  .hero-copy { grid-column: 2; }
  .hero-visual { grid-column: 4; }
  .hero-photo { aspect-ratio: 4 / 5; max-height: min(78vh, 720px); border-radius: var(--r-foto) 0 0 var(--r-foto); }
  .hero-copy { --S: min(800px, 80svh); }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section-kachel { background: var(--kachel); }
.section-head { margin-bottom: var(--s-6); }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--s-7); } }
.section-head h2 { max-width: 18ch; }

/* ---------- Aufklappbares (Details) ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.aufklapp { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin-top: var(--s-5); }
.aufklapp > summary, .faq summary {
  position: relative; display: block; min-height: 44px; padding: 14px 40px 14px 0; font-weight: 650;
}
.aufklapp > summary::before, .aufklapp > summary::after, .faq summary::before, .faq summary::after,
.footer-region > summary::before, .footer-region > summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px;
  background: var(--tanne); border-radius: 1px; transition: transform .25s var(--ease);
}
.aufklapp > summary::after, .faq summary::after, .footer-region > summary::after { transform: rotate(90deg); }
.aufklapp[open] > summary::before, .faq details[open] summary::before, .footer-region[open] > summary::before { transform: rotate(180deg); }
.aufklapp[open] > summary::after, .faq details[open] summary::after, .footer-region[open] > summary::after { transform: rotate(180deg); }
details::details-content {
  height: 0; overflow: clip;
  transition: height .28s var(--ease), content-visibility .28s allow-discrete;
}
details[open]::details-content { height: auto; }

/* ---------- Der Wagen ---------- */
.wagen-grid {
  display: grid; gap: var(--s-5);
  grid-template-areas: "text" "modell" "fakten" "fotos" "technik";
}
.wagen-text { grid-area: text; }
.wagen-text .sub { margin: 0; }
.w3d-block { grid-area: modell; }
.fakten { grid-area: fakten; }
.gallery-section { grid-area: fotos; }
.wagen-technik { grid-area: technik; margin-top: 0; }
@media (min-width: 1024px) {
  .wagen-grid { grid-template-columns: 4fr 8fr; grid-template-areas: "text modell" "fakten modell" "technik modell" "fotos fotos"; grid-template-rows: auto auto 1fr auto; gap: var(--s-5) var(--s-8); }
  .wagen-technik { align-self: start; }
}

/* 3D-Modell */
.w3d-block { position: relative; --w3d-h: min(64svh, 400px); }
.w3d { position: relative; height: var(--w3d-h); touch-action: pan-y; border-radius: var(--r-foto); outline: none; }
.w3d:focus-visible { box-shadow: var(--fokus); }
.w3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.w3d canvas:active { cursor: grabbing; }
.w3d-platzhalter { position: absolute; inset: 0; width: min(78%, 420px); height: auto; margin: auto; opacity: .55; }
.w3d-an .w3d-platzhalter { display: none; }
@media (min-width: 1024px) { .w3d-block { --w3d-h: min(72vh, 580px); } }
.w3d-leiste { display: none; }
.w3d-an .w3d-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
.w3d-schalter { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--linie); border-radius: var(--r-ctrl); background: var(--weiss); }
.w3d-btn {
  min-height: 44px; padding: 0 1em; border: 1px solid var(--linie); border-radius: var(--r-ctrl); background: var(--weiss);
  font-weight: 600; font-size: var(--t--1); color: var(--tanne-tief); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.w3d-schalter .w3d-btn { min-height: 38px; border: 0; }
.w3d-btn[aria-pressed="true"] { background: var(--tanne-tief); border-color: var(--tanne-tief); color: var(--weiss); }
.w3d-btn:focus-visible { box-shadow: var(--fokus); }
/* Punkte am Modell (Position setzt wagen3d.js) */
.w3d-punkte { position: absolute; inset: 0; pointer-events: none; }
.w3d-punkt {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; background: none; cursor: pointer; pointer-events: auto;
}
.w3d-punkt::before {
  content: "+"; display: grid; place-items: center; width: 28px; height: 28px; margin: 8px; border-radius: 50%;
  background: var(--weiss); color: var(--tanne); font-weight: 700; font-size: 1.1rem; line-height: 1;
  box-shadow: 0 0 0 1.5px var(--tanne), 0 4px 12px -4px rgba(11, 46, 42, .5);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.w3d-punkt[aria-expanded="true"]::before { transform: rotate(45deg); background: var(--tanne); color: var(--weiss); }
.w3d-punkt:focus-visible { box-shadow: none; }
.w3d-punkt:focus-visible::before { box-shadow: var(--fokus); }
.w3d-tipp {
  position: absolute; left: 50%; bottom: calc(100% - 2px); translate: -50% 0; width: max-content; max-width: 220px;
  padding: 6px 10px; border-radius: 8px; background: var(--tanne-tief); color: var(--weiss);
  font-size: .875rem; font-weight: 600; line-height: 1.3; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .15s var(--ease);
}
.w3d-punkt[aria-expanded="true"] .w3d-tipp { opacity: 1; }
/* Liste: Fallback ohne 3D, sonst nur für Screenreader und Suchmaschinen */
/* Mit 3D: die Liste belegt keine eigene Zeile im Raster */
.w3d-erwartet .wagen-grid { grid-template-areas: "text" "modell" "fotos" "technik"; }
@media (min-width: 1024px) { .w3d-erwartet .wagen-grid { grid-template-areas: "text modell" "technik modell" "fotos fotos"; grid-template-rows: auto 1fr auto; } }
.w3d-erwartet .fakten { grid-area: auto; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wagen:not(.w3d-erwartet) .w3d-block { display: none; }
.fakten li { padding: 10px 0; border-top: 1px solid var(--linie); color: var(--stein); }
.fakten li:first-child { border-top: 0; }
.fakten b { display: block; color: var(--tanne-tief); }
.specs { display: grid; gap: var(--s-3) var(--s-5); margin: 0 0 var(--s-5); }
.specs dt { font-size: var(--t--1); color: var(--stein); }
.specs dd { margin: 0; }

.bento {
  display: flex; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.bento::-webkit-scrollbar { display: none; }
.bento figure { position: relative; flex: 0 0 auto; width: 52vw; max-width: 260px; height: 150px; margin: 0; scroll-snap-align: start; }
.bento .b-aussen { width: 34vw; max-width: 190px; }
.foto { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--kachel); border-radius: var(--r-foto); overflow: hidden; cursor: zoom-in; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.b-aussen .foto { border-radius: 14px; }
.b-aussen img { filter: saturate(.8); object-position: 50% 62%; }
.bento figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px;
  background: rgba(11, 46, 42, .72); color: var(--weiss); font-size: .75rem;
}
@media (min-width: 640px) {
  .specs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .bento { overflow: visible; margin: 0; padding: 0; }
  .bento figure { flex: 1.5 1 0; width: auto; max-width: none; height: 190px; }
  .bento .b-aussen { flex: 1 1 0; width: auto; max-width: none; }
  .b-nur-handy { display: none; }
}

/* ---------- Anlässe ---------- */
.anlass-zeile { font-family: var(--f-head); font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.3; color: var(--tanne); max-width: 32ch; margin-bottom: var(--s-6); }
.zielgruppen { display: grid; gap: var(--s-4) var(--s-7); max-width: 60rem; }
.zielgruppen p { margin: 0; color: var(--stein); }
.zielgruppen b { color: var(--tanne-tief); }
@media (min-width: 768px) { .zielgruppen { grid-template-columns: 1fr 1fr; } }

/* ---------- Dazu buchbar ---------- */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.pick {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-2);
  min-height: 44px; padding: 0; border: 1.5px solid var(--linie); border-radius: var(--r-kachel);
  background: var(--weiss); text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color .15s var(--ease);
}
.pick:hover { border-color: var(--tanne); }
.pick:focus-visible { box-shadow: var(--fokus); border-radius: var(--r-kachel); }
.pick img { width: 100%; flex: 1; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.pick-text { display: block; padding: var(--s-3) var(--s-4) 0; }
.pick-name { display: block; font-weight: 650; }
.pick-note { display: block; color: var(--stein); font-size: var(--t--1); line-height: 1.4; }
.pick-price { display: block; padding: 0 var(--s-4) var(--s-4); font-family: var(--f-head); font-size: var(--t-1); color: var(--tanne); }
.pick[aria-pressed="true"] { border: 2px solid var(--tanne); }
.pick[aria-pressed="true"] .pick-price::after { content: "  vorgemerkt"; font-family: var(--f-body); font-size: var(--t--1); color: var(--tanne); }
.pick-licht { grid-column: 1 / -1; border-radius: var(--r-foto); display: grid; grid-template-columns: 1fr auto; align-items: end; }
.pick-licht img { grid-column: 1 / -1; }
.pick-licht .pick-price { padding-left: 0; }
.pick-licht img { aspect-ratio: 2 / 1; }
/* Handy: Rinne als Querkachel (Foto links, Text rechts) */
.pick-rinne { grid-column: 1 / -1; display: grid; grid-template-columns: 42% 1fr; grid-template-rows: 1fr auto; border-radius: var(--r-foto); }
.pick-rinne img { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; min-height: 170px; object-position: 50% 70%; }
.pick-rinne .pick-text { align-self: end; }
.pick-klein { justify-content: space-between; }
.picks-solo { margin: var(--s-3) 0 0; }
.picks-solo a { display: inline-block; padding: 10px 0; font-weight: 600; }
@media (min-width: 1024px) {
  .picks { grid-template-columns: repeat(12, 1fr); grid-template-rows: 360px 150px; gap: var(--s-4); }
  .pick-licht { grid-column: 1 / 9; grid-row: 1; }
  .pick-licht img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .pick-licht { grid-template-rows: minmax(0, 1fr) auto; }
  .pick-rinne { grid-column: 9 / 13; grid-row: 1 / 3; display: flex; }
  .pick-rinne img { height: auto; min-height: 0; flex: 1 1 0; }
  .pick-klein:nth-of-type(3) { grid-column: 1 / 5; }
  .pick-klein:nth-of-type(4) { grid-column: 5 / 9; }
}

/* Handy und Tablet: Extras als waagerechte Wischreihe (eine Kachel plus Anschnitt der nächsten) */
@media (max-width: 1023px) {
  .picks {
    display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  }
  .picks::-webkit-scrollbar { display: none; }
  .pick, .pick-licht, .pick-rinne {
    flex: 0 0 min(78%, 320px); display: flex; flex-direction: column; justify-content: flex-start;
    border-radius: var(--r-kachel); scroll-snap-align: start;
  }
  .pick img, .pick-licht img, .pick-rinne img { flex: none; width: 100%; height: 190px; min-height: 0; aspect-ratio: auto; }
  .pick-rinne img { object-position: 50% 70%; }
  .pick-price, .pick-licht .pick-price { margin-top: auto; padding-left: var(--s-4); }
  .pick-klein .pick-text { padding-top: var(--s-4); }
  .anlass-zeile { font-size: 1.25rem; margin-bottom: var(--s-5); }
}

/* ---------- Pakete ---------- */
.plan-switch {
  display: flex; gap: 4px; padding: 4px; margin-bottom: var(--s-4);
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r-kachel);
}
.plan-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-switch label {
  flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 6px;
  border-radius: var(--r-ctrl); font-weight: 600; font-size: var(--t--1); text-align: center; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.plan-switch input:checked + label { background: var(--tanne-tief); color: var(--weiss); }
.plan-switch input:focus-visible + label { box-shadow: var(--fokus); }

.plans { display: grid; gap: var(--s-4); }
.plan { display: none; flex-direction: column; padding: var(--s-5); border-radius: var(--r-kachel); background: var(--porzellan); }
.pakete:has(#pv-basis:checked) .plan[data-key="basis"],
.pakete:has(#pv-party:checked) .plan[data-key="party"],
.pakete:has(#pv-sorglos:checked) .plan[data-key="sorglos"] { display: flex; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6em; margin-bottom: .2em; }
.plan-note { font-size: var(--t--1); font-weight: 500; color: var(--gelb); }
.plan-claim { margin: 0 0 var(--s-3); color: var(--stein); font-size: var(--t--1); }
.plan-price { font-family: var(--f-head); font-size: var(--t-3); line-height: 1; margin-bottom: var(--s-5); }
.plan ul { flex: 1; margin-bottom: var(--s-5); }
.plan li { position: relative; padding: .4em 0 .4em 1.4em; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 8px; border-radius: 2px; background: var(--tanne);
}
.plan li.minus { color: var(--stein); }
.plan li.minus::before { background: transparent; border: 1.5px solid var(--stein); }
.plan-featured { background: var(--tanne-tief); color: var(--weiss); }
.plan-featured .plan-price { color: var(--gelb); }
.plan-featured li { color: #DCE7E3; }
.plan-featured li::before { background: var(--gelb); }
.plan-featured li.minus { color: var(--hell-auf-dunkel); }
.plan-featured li.minus::before { border-color: var(--hell-auf-dunkel); }
.kleingedruckt ul { padding-bottom: var(--s-4); max-width: 65ch; }
.kleingedruckt li { padding: .35em 0; color: var(--stein); }
@media (min-width: 1024px) {
  .plan-switch { display: none; }
  .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .plan, .pakete .plan { display: flex; }
}

/* ---------- Konfigurator ---------- */
.booking { display: grid; gap: var(--s-7); align-items: start; }
.booking-form fieldset { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.booking-form legend { padding: 0; margin-bottom: var(--s-5); font-family: var(--f-head); font-size: var(--t-2); }
.booking-form legend:focus { box-shadow: none; }
.booking-form label { display: block; font-weight: 600; font-size: var(--t--1); margin-bottom: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field-label { display: block; font-weight: 600; font-size: var(--t--1); margin-bottom: 6px; }
.row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.optional { margin-left: .35em; font-weight: 400; color: var(--stein); }

input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: .65em .85em;
  font-weight: 400; font-size: var(--t-0); color: var(--tanne-tief);
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r-ctrl);
  transition: border-color .15s var(--ease);
}
input[type=text], input[type=email], input[type=tel], input[type=number], select { height: 50px; line-height: 1.3; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6em; cursor: pointer;
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230F5C55' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right .95em center / 13px 9px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--tanne-tief); box-shadow: var(--fokus); border-radius: var(--r-ctrl); }
input[type=checkbox], input[type=radio] { accent-color: var(--tanne); width: 20px; height: 20px; flex: none; margin: 0; }
.invalid { border-color: var(--besetzt) !important; }

/* Fortschritt */
.progress { margin-bottom: var(--s-5); }
.progress-text { margin: 0 0 var(--s-2); color: var(--stein); font-size: var(--t--1); }
.progress-text b { color: var(--tanne-tief); }
.progress-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.progress-bar button {
  position: relative; width: 100%; min-height: 44px; padding: 14px 0 0; border: 0; background: none;
  font-size: var(--t--1); font-weight: 600; color: var(--stein); text-align: left; cursor: pointer;
}
.progress-bar button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--linie);
  transition: background-color .2s var(--ease);
}
.progress-bar button.is-done::before { background: var(--tanne); }
.progress-bar button[aria-current="step"] { color: var(--tanne-tief); }
.progress-bar button[aria-current="step"]::before { background: var(--tanne-tief); }
.progress-bar button:disabled { cursor: default; }
.progress-bar .pb-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .progress-bar button { font-size: .8125rem; } }
.konfig-note:empty { display: none; }
/* Die Schrittüberschrift „Datum“ sagt es schon; das Label bleibt für Screenreader */
.konfig-js #date-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.konfig-note { padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-5); background: var(--kachel); border-radius: var(--r-ctrl); font-size: var(--t--1); }

/* Schritte: nur aktiv, wenn ui.js läuft (ohne JS bleibt alles sichtbar) */
.konfig-js .step:not(.is-active) { display: none; }
.konfig-js:not(.is-last) .nur-letzter { display: none; }
.konfig-js.is-last #step-next { display: none; }
.konfig-js.is-first #step-back { visibility: hidden; }
.booking-form:not(.konfig-js) #step-next, .booking-form:not(.konfig-js) #step-back { display: none; }
.step.is-active { animation: schritt-rein .22s var(--ease); }
@keyframes schritt-rein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes schritt-raus { to { opacity: 0; transform: translateX(-12px); } }
/* Mit View Transitions: alter Schritt gleitet raus, neuer rein */
:root { view-transition-name: none; }
.vt .step.is-active { animation: none; view-transition-name: konfig-schritt; }
::view-transition-group(konfig-schritt) { animation-duration: .22s; }
::view-transition-old(konfig-schritt) { animation: .16s var(--ease) both schritt-raus; }
::view-transition-new(konfig-schritt) { animation: .22s var(--ease) both schritt-rein; }

/* Kalender: Tageszustand als Fensterchen der Frei/Besetzt-Anzeige */
.cal { max-width: 440px; padding: var(--s-3); background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r-kachel); }
.cal.invalid { border-color: var(--besetzt); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.cal-head strong { font-weight: 650; text-transform: capitalize; }
.cal-nav {
  width: 44px; height: 44px; border: 1.5px solid var(--linie); border-radius: var(--r-ctrl); background: var(--weiss);
  font-size: 1.4rem; line-height: 1; color: var(--tanne); cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: var(--kachel); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--stein); padding: 4px 0; }
.cal-day {
  position: relative; min-height: 44px; padding: 0 0 10px; border: 0; border-radius: 8px; background: transparent;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tanne-tief); cursor: pointer;
}
.cal-day::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 14px; height: 7px; translate: -50% 0;
  border-radius: 7px 7px 0 0; background: var(--frei);
}
.cal-day.is-tight::after { background: var(--gelb); box-shadow: inset 0 0 0 1px #C99A2E; }
.cal-day.is-taken { color: var(--stein); text-decoration: line-through; }
.cal-day.is-taken::after { background: var(--besetzt); }
.cal-day:disabled { color: #A9B4B0; cursor: default; }
.cal-day:disabled:not(.is-taken)::after { display: none; }
.cal-day.is-weekend:not(:disabled) { color: var(--tanne); }
.cal-day:hover:not(:disabled) { background: var(--kachel); }
.cal-day.is-selected, .cal-day.is-selected:hover { background: var(--tanne-tief); color: var(--weiss); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: var(--s-2) 0 0; font-size: .8rem; color: var(--stein); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { display: inline-block; width: 14px; height: 7px; border-radius: 7px 7px 0 0; }
.dot-free { background: var(--frei); }
.dot-tight { background: var(--gelb); box-shadow: inset 0 0 0 1px #C99A2E; }
.dot-taken { background: var(--besetzt); }
.dot-weekend { background: var(--tanne); height: 3px !important; border-radius: 2px !important; }
.cal-picked:empty { display: none; }
.cal-picked { margin: var(--s-2) 0 0; font-size: var(--t--1); color: var(--stein); }
.cal-picked b { color: var(--tanne-tief); }
.cal-warn { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #FFF3D1; color: #5C4300; }

/* Paketwahl */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
.booking-form .choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 44px; padding: var(--s-4);
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r-kachel);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice b { font-size: var(--t-0); }
.choice em { font-style: normal; font-family: var(--f-head); font-size: var(--t-1); color: var(--tanne); font-weight: 400; }
.choice small { color: var(--stein); font-size: .82rem; font-weight: 500; line-height: 1.35; }
.choice:hover span { border-color: var(--tanne); }
.choice input:checked + span { border-color: var(--tanne); background: var(--kachel); box-shadow: inset 0 0 0 1px var(--tanne); }
.choice input:focus-visible + span { box-shadow: var(--fokus); }
.choice-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } .choice-grid-2 { grid-template-columns: 1fr 1fr; } }

/* Extras als Kacheln */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
.booking-form .extra {
  position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; margin: 0; padding: var(--s-4);
  padding-right: 40px; background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r-kachel);
  font-weight: 500; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.extra input { position: absolute; top: 14px; right: 14px; }
.extra span { font-weight: 650; font-size: var(--t-0); line-height: 1.3; }
.extra em { font-style: normal; font-family: var(--f-head); font-size: var(--t-1); color: var(--tanne); }
.extra small { color: var(--stein); font-size: .82rem; line-height: 1.35; }
/* Foto läuft bis an den Kachelrand (Polsterung: 16 px links/oben, 40 px rechts) */
.extra-img { order: -1; width: calc(100% + 56px); max-width: none; margin: -16px -40px var(--s-3) -16px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px 10px 0 0; }
.extra-foto .extra { padding-top: var(--s-4); }
.extra-foto .extra input { top: 10px; right: 10px; background: var(--weiss); box-shadow: 0 0 0 4px var(--weiss); border-radius: 4px; }
.extra:hover { border-color: var(--tanne); }
.extra:has(input:checked) { border-color: var(--tanne); background: var(--kachel); box-shadow: inset 0 0 0 1px var(--tanne); }
.extra:has(input:focus-visible) { box-shadow: var(--fokus); }
.extra[hidden], .extra-wrap[hidden] { display: none; }
.extra-wrap { display: grid; gap: 0; }
.extra-wrap:has(.extra input:checked) { grid-column: 1 / -1; }
.extra-wrap:has(.extra input:checked) .extra { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.extra-wrap:has(.extra input:checked) .extra-img { aspect-ratio: 21 / 9; }
.extra-more {
  padding: var(--s-3) var(--s-4) var(--s-4); background: var(--weiss);
  border: 1.5px solid var(--tanne); border-top: 0; border-radius: 0 0 var(--r-kachel) var(--r-kachel);
  font-size: var(--t--1); color: var(--stein);
}
.extra-more p { margin: 0 0 var(--s-3); }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.thumbs:empty { display: none; }
.thumb { width: 88px; height: 66px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--kachel); cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.zt-days { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.booking-form .zt-day { margin: 0; }
.zt-day input { position: absolute; opacity: 0; }
.zt-day span, .zt-main {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px;
  border: 1.5px solid var(--linie); border-radius: var(--r-ctrl); font-weight: 600; color: var(--tanne-tief); background: var(--weiss); cursor: pointer;
}
.zt-day input:checked + span { background: var(--tanne-tief); border-color: var(--tanne-tief); color: var(--weiss); }
.zt-day input:focus-visible + span { box-shadow: var(--fokus); }
.zt-day input:disabled + span { opacity: .35; cursor: default; }
.zt-main { background: var(--kachel); border-color: var(--kachel); cursor: default; }
.zt-main small { font-size: .7rem; color: var(--tanne); }

/* Lieferung, Kontakt */
.liefer-info { padding: var(--s-3) var(--s-4); background: var(--kachel); border-radius: var(--r-ctrl); font-size: var(--t--1); }
#plz-row { align-items: end; }
.zone-info { margin: 0 0 var(--s-4); font-size: var(--t--1); font-weight: 600; color: var(--tanne); }
.checks label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.booking-form .consent, .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: var(--t--1); color: var(--stein); }
.consent input { margin-top: 2px; }
.consent span { flex: 1; }

.form-error { padding: var(--s-3) var(--s-4); background: #FBE9E6; color: #8A2A1C; border-radius: var(--r-ctrl); font-weight: 600; }
.step-ablauf { color: var(--stein); font-size: var(--t--1); }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.step-actions #submit-btn { flex: 1; }
#submit-hint { margin-top: var(--s-3); }

/* Zusammenfassung */
.summary-card { padding: var(--s-6) var(--s-5); background: var(--tanne-tief); color: #E6EEEB; border-radius: var(--r-kachel); }
.summary-card h3 { color: var(--weiss); }
.summary-card ul { margin: 0 0 var(--s-4); }
.summary-card li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: var(--t--1); }
.summary-card li span:last-child { white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total strong { font-family: var(--f-head); font-weight: 400; font-size: var(--t-3); color: var(--gelb); }
.sum-note { margin: var(--s-2) 0 0; font-size: .82rem; color: var(--hell-auf-dunkel); }
.summary-trust { padding: var(--s-4) 0 0; font-size: var(--t--1); color: var(--stein); }
.summary-trust p { margin: 0; padding: 3px 0; }

@media (max-width: 1023px) {
  .konfig-on:not(.is-last) .summary { display: none; }
  .konfig-js #step-next, .konfig-js #submit-btn { display: none; }
  .konfig-js .step-actions { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .booking { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); }
  .summary { position: sticky; top: 80px; }
  .extras { grid-template-columns: 1fr 1fr 1fr; }
}

.success { max-width: 560px; margin: 0 auto; padding: var(--s-7) var(--s-5); text-align: center; background: var(--kachel); border-radius: var(--r-foto); }
.success .schloss, .modal .schloss { margin: 0 auto var(--s-4); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-4); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-child { border-top: 1px solid var(--linie); }
.faq summary { padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 1024px) { .faq summary { padding-top: 16px; padding-bottom: 16px; } }
@media (max-width: 1023px) { .faq-kurz details:nth-of-type(n+7) { display: none; } }
.faq-mehr { margin-top: var(--s-4); }
@media (min-width: 1024px) { .faq-mehr { display: none; } }
.faq details p { max-width: 62ch; padding-right: 40px; color: var(--stein); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: var(--s-8); align-items: start; }
  .faq-grid h2 { position: sticky; top: 96px; }
}

/* ---------- Persönlich ---------- */
.person { padding: var(--s-7) 0; }
.person:not(:has(img)) { display: none; }
.person-inner { display: flex; align-items: center; gap: var(--s-5); max-width: 46rem; }
.person img { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: var(--r-foto); }
.person p { margin: 0; color: var(--stein); font-size: var(--t-1); line-height: 1.4; }
.person b { display: block; color: var(--tanne-tief); font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--section) 0 96px; background: var(--tanne-tief); color: #DCE7E3; }
.site-footer a { color: var(--weiss); }
.footer-cta { max-width: 40rem; }
.footer-cta h2 { color: var(--weiss); }
.footer-cta p { color: var(--hell-auf-dunkel); }
.mail-form { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.mail-form input[type=email] { margin: 0; border-color: transparent; }
.mail-form .consent { color: var(--hell-auf-dunkel); }
.mail-msg { margin: 0; min-height: 1.4em; font-weight: 650; color: var(--gelb); }
@media (min-width: 640px) {
  .mail-form { grid-template-columns: 1fr auto; }
  .mail-form .consent, .mail-msg { grid-column: 1 / -1; }
}
.footer-region { margin-top: var(--s-7); padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, .14); max-width: 65ch; }
.footer-region > summary { position: relative; min-height: 44px; padding: 12px 36px 12px 0; font-weight: 650; font-size: var(--t--1); color: #DCE7E3; }
.footer-region > summary::before, .footer-region > summary::after { background: var(--hell-auf-dunkel); }
.footer-region h2 { font-family: var(--f-body); font-size: var(--t--1); font-weight: 650; color: #DCE7E3; letter-spacing: 0; }
.footer-region p { font-size: .8125rem; line-height: 1.5; color: var(--hell-auf-dunkel); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--t--1); }
.footer-base .logo, .footer-base .logo-text { color: var(--weiss); }
.footer-base .logo-text b { color: var(--gelb); }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-base nav a { display: inline-block; padding: 10px 0; }
.copy { margin: 0; color: var(--hell-auf-dunkel); }

/* ---------- Feste Leisten unten (Handy und Tablet) ---------- */
.mobile-cta, .book-bar { display: none; }
@media (max-width: 1023px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 8px 0 var(--s-5);
    background: var(--tanne-tief); color: var(--weiss); border-radius: var(--r-ctrl); box-shadow: var(--schatten);
    font-weight: 650; text-decoration: none; transition: opacity .2s var(--ease), translate .2s var(--ease), visibility .2s;
  }
  .mobile-cta:hover { color: var(--weiss); }
  .mc-preis { color: var(--gelb); font-family: var(--f-head); font-weight: 400; }
  .mc-text { padding: .55em 1em; border-radius: 8px; background: var(--gelb); color: var(--tanne-tief); }
  .mobile-cta.is-hidden, body.bar-on .mobile-cta,
  body:not(.cta-weg) .mobile-cta, body.footer-da .mobile-cta { opacity: 0; translate: 0 20px; pointer-events: none; visibility: hidden; }
  .book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--tanne-tief); color: #E6EEEB; box-shadow: var(--schatten);
    translate: 0 110%; transition: translate .22s var(--ease);
  }
  body.bar-on .book-bar { translate: 0 0; }
  .bar-price small { display: block; font-size: .75rem; color: var(--hell-auf-dunkel); }
  .bar-price strong { font-family: var(--f-head); font-weight: 400; font-size: var(--t-1); color: var(--gelb); }
  body.konfig-letzter #bar-next, body:not(.konfig-letzter) #bar-submit { display: none; }
}

/* ---------- Handy und Tablet: Konfigurator als Vollbild-Ebene (ui.js) ---------- */
.ebene-zu { display: none; }
@media (max-width: 1023px) {
  .js-ebene #buchen:not(.ist-ebene) { display: none; }
  html.ebene-offen, html.ebene-offen body { overflow: hidden; }
  #buchen.ist-ebene {
    position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 0 calc(110px + env(safe-area-inset-bottom)); background: var(--porzellan);
  }
  /* Titel bleibt für Screenreader (aria-labelledby), sichtbar sind Schrittnamen */
  #buchen.ist-ebene .section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  #buchen.ist-ebene #progress {
    position: sticky; top: 0; z-index: 2; margin: 0 calc(var(--gutter) * -1) var(--s-5);
    padding: 12px var(--gutter) 4px 60px; background: rgba(245, 246, 243, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--linie);
  }
  #buchen.ist-ebene .ebene-zu {
    display: grid; place-items: center; position: fixed; top: 8px; left: 8px; z-index: 3;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-ctrl); background: none;
    font-size: 2rem; line-height: 1; color: var(--tanne-tief); cursor: pointer;
  }
  #buchen.ist-ebene .book-bar { translate: 0 0; }
}

/* ---------- Dialoge ---------- */
.modal {
  max-width: min(520px, 92vw); padding: var(--s-6) var(--s-5) var(--s-5); border: 0; border-radius: var(--r-foto);
  background: var(--porzellan); color: var(--tanne-tief); text-align: center; box-shadow: var(--schatten);
}
.modal::backdrop { background: rgba(11, 46, 42, .72); }
.modal h3 { font-family: var(--f-head); font-weight: 400; font-size: var(--t-2); }
.modal p { color: var(--stein); }
.modal form { text-align: left; margin-top: var(--s-4); }
.modal-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--stein); cursor: pointer; border-radius: var(--r-ctrl); }
.voucher-row { display: flex; gap: var(--s-2); margin: 6px 0 var(--s-3); }
.voucher-row input { margin: 0; flex: 1; min-width: 0; }
.voucher-row .btn { flex: none; }
@media (max-width: 520px) { .voucher-row { flex-direction: column; } }

.lightbox { max-width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(11, 46, 42, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 94vw; max-height: 80vh; margin: 0 auto; border-radius: var(--r-kachel); }
.lightbox figcaption { margin-top: 10px; color: var(--weiss); text-align: center; font-size: var(--t--1); }
.lb-close, .lb-nav { position: absolute; width: 44px; height: 44px; border: 0; border-radius: var(--r-ctrl); background: var(--porzellan); color: var(--tanne-tief); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close { top: -14px; right: -14px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: -14px; }
.lb-next { right: -14px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: var(--s-7) var(--gutter) var(--section); max-width: calc(70ch + 2 * var(--gutter)); }
.legal h1 { font-size: var(--t-3); }
.legal h2 { font-size: var(--t-1); font-family: var(--f-body); font-weight: 650; margin-top: 1.8em; }
.legal li { list-style: disc; margin-left: 1.2em; }
.legal ul { margin: 0 0 1em; }
.legal-page .site-footer { padding: var(--s-6) 0; }
.legal-page .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.todo { padding: var(--s-3) var(--s-4); background: #FFF3D1; border: 1px dashed #C99A2E; border-radius: var(--r-ctrl); }
.center { text-align: center; }

/* ---------- Ortsseiten (werkzeuge/ortsseiten.js) ---------- */
.ort { padding-top: var(--s-6); padding-bottom: var(--section); }
.ort-text h2 { margin-top: var(--s-6); }
.ort-text h2:first-child { margin-top: 0; }
/* Unterseiten ohne Menü: Button rechts im Header */
.legal-page .header-cta { margin-left: auto; }
/* Ortsseiten: Header wie auf der Startseite, der Termin-Button bleibt aber immer sichtbar (einziger Einstieg) */
.ort-page .header-cta { margin-left: auto; }
@media (min-width: 1024px) { .ort-page .header-cta { margin-left: 0; } }
.ort-footer { padding: var(--s-6) 0; }
.ort-footer .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.ort-kopf { display: grid; gap: var(--s-6); align-items: center; }
.ort h1 { font-size: var(--t-4); max-width: 16ch; }
.ort h2 { font-size: var(--t-2); }
.ort .lead { max-width: 40ch; }
.ort-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-foto); background: var(--kachel); }
.ort-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.ort-knoepfe a:not(.btn) { display: inline-block; padding: 12px 0; font-weight: 600; }
.ort-karte { margin-top: var(--s-7); padding: var(--s-6) var(--s-5); background: var(--kachel); border-radius: var(--r-foto); }
.ort-text { max-width: 70ch; margin-top: var(--s-7); }
.ort .hint { margin: var(--s-3) 0 0; }
.ort-preise { display: grid; gap: 0 var(--s-6); margin: var(--s-4) 0 0; }
.ort-preise div { padding: var(--s-3) 0; border-top: 1px solid var(--linie); }
.ort-preise dd { font-weight: 600; }
@media (min-width: 768px) { .ort-preise { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .ort-kopf { grid-template-columns: 5fr 6fr; gap: var(--s-8); }
  .ort-karte { padding: var(--s-7); }
}
.ort-ablauf { padding-left: 1.3em; }
.ort-ablauf li { padding: .25em 0; }
.ort-anfrage { margin-top: var(--s-7); padding: var(--s-6) var(--s-5); background: var(--tanne-tief); color: #DCE7E3; border-radius: var(--r-foto); }
.ort-anfrage h2 { color: var(--weiss); margin-top: 0; }
.ort-anfrage p { max-width: 50ch; color: var(--hell-auf-dunkel); }
@media (min-width: 1024px) { .ort-anfrage { padding: var(--s-7); } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.nw { white-space: nowrap; }

