/* ============================================================
   Einladungsfilm · Design-System
   Stimmung: warm, filmisch, persoenlich. Helle Seite, die Waerme
   und Dunkelheit stecken im Film selbst. Akzent: Terrakotta-Rose.
   Schrift: Cormorant Garamond (Momente) + Instrument Sans (Alltag).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Flaechen: reines Weiss. Farbe (Terrakotta-Rose) ist nur bewusste Flaeche/Akzent
     (Knoepfe, Badges, CTA-Karte) -- nie Grundton eines Abschnitts. */
  --paper:    #FFFFFF;
  --paper-2:  #FFFFFF;   /* zweiter Abschnitt trennt sich ueber --line, nicht ueber Farbton */
  --cinema:   #18130F;   /* Film-Letterbox / dunkle Filmflaeche */
  --cinema-2: #221A14;

  /* Text · gegen reines Weiss noch kontrastreicher als vorher (ink ~15.6:1, ink-2 ~8.4:1, AAA) */
  --ink:      #221C16;
  --ink-2:    #4C453B;
  --ink-3:    #6B6358;   /* nur grosse/sekundaere Labels, >=4.5:1 */
  --on-cinema:  #F7F2EA; /* Text auf dunkler Filmflaeche */
  --on-cinema-2:#CFC4B4;

  /* Akzent · Terrakotta-Rose */
  --accent:        #A8402F;  /* Flaeche/Knopf, Weiss darauf ~5.3:1 */
  --accent-strong: #8A3223;  /* Hover + Inline-Text auf hell ~6.8:1 */
  --accent-warm:   #C96A4E;  /* nur auf dunkler Filmflaeche */
  --accent-wash:   #F6E7E0;  /* ganz leichte Akzentflaeche */

  /* Linien / Zustände */
  --line:   #E7DFD2;
  --line-2: #D9CFBE;
  --ok:     #3F6B4A;
  --ok-wash:#E7F0E7;
  --err:    #A8402F;
  --err-wash:#F7E6E1;

  /* Form / Rhythmus */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(40,28,20,.05), 0 2px 6px -2px rgba(40,28,20,.08);
  --shadow:    0 2px 6px rgba(40,28,20,.06), 0 18px 40px -16px rgba(40,28,20,.22);
  --shadow-lg: 0 8px 24px rgba(40,28,20,.10), 0 40px 80px -28px rgba(40,28,20,.30);

  --ease:       cubic-bezier(.4, 0, .2, 1);   /* Signatur: ruhig, premium */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --maxw: 1180px;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; }
:focus-visible {
  outline: 2.5px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.07; letter-spacing: -.01em; color: var(--ink); }
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.015em;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; }
p { max-width: 65ch; }
strong { font-weight: 600; }
em { font-style: italic; }

.kicker {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.serif-accent { font-family: var(--serif); font-style: italic; }
.u-accent { color: var(--accent-strong); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.flow > * + * { margin-top: clamp(1.5rem, 4vw, 2.8rem); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 100;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .97rem; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1.3rem;
    transform: translateY(-110%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s var(--ease);
    box-shadow: var(--shadow); margin-left: 0;
  }
  .nav-links[data-open="true"] { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: var(--pill);
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .14s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-ghost:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards / Flaechen ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel-pad { padding: clamp(1.4rem, 3vw, 2.2rem); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  padding: .32rem .72rem; border-radius: var(--pill);
  background: var(--accent-wash); color: var(--accent-strong);
}
.badge-neutral { background: var(--paper-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-wash); color: var(--ok); }

/* ---------- Film-Rahmen (das Produkt) ---------- */
.film {
  position: relative; background: var(--cinema); border-radius: var(--r);
  overflow: hidden; aspect-ratio: 16 / 10; width: 100%;
  box-shadow: var(--shadow-lg);
}
.film canvas { width: 100%; height: 100%; display: block; }
.film-controls {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem .9rem; color: var(--on-cinema);
  background: linear-gradient(to top, rgba(10,8,6,.72), rgba(10,8,6,0));
  opacity: 0; transition: opacity .3s var(--ease);
}
.film:hover .film-controls, .film:focus-within .film-controls, .film.show-controls .film-controls { opacity: 1; }
.film-controls button { background: none; border: 0; color: var(--on-cinema); display: inline-flex; padding: .35rem; border-radius: 50%; }
.film-controls button:hover { background: rgba(255,255,255,.14); }
.film-controls svg { width: 22px; height: 22px; }
.film-progress { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.film-progress > i { display: block; height: 100%; width: 0; background: var(--accent-warm); }
.film-watermark {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  font-family: var(--serif); font-size: 1rem; letter-spacing: .04em;
  color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.5);
  pointer-events: none;
}
.film-poster-note {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: var(--on-cinema-2); padding: 2rem; gap: .6rem;
}

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 1.25rem; }
.label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.hint { font-size: .85rem; color: var(--ink-2); margin-top: .35rem; }
.input, .textarea, .select {
  width: 100%; padding: .72rem .85rem;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field[data-state="ok"] .input, .field[data-state="ok"] .textarea { border-color: var(--ok); }
.field[data-state="err"] .input, .field[data-state="err"] .textarea { border-color: var(--err); }
.field-msg { font-size: .85rem; margin-top: .4rem; display: none; }
.field[data-state="ok"] .field-msg.ok { display: block; color: var(--ok); }
.field[data-state="err"] .field-msg.err { display: block; color: var(--err); }
.row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Choice chips (Look / Musik) */
.choice-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
  position: relative; display: block; border: 1.5px solid var(--line-2);
  border-radius: var(--r); padding: 1rem; cursor: pointer; background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.choice:hover { border-color: var(--ink-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--accent-strong); outline-offset: 2px; }
.choice b { display: block; font-weight: 600; }
.choice .swatch { height: 46px; border-radius: var(--r-sm); margin-bottom: .6rem; }

/* ---------- Toggle / Switch ---------- */
.switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: var(--pill); background: var(--line-2); position: relative; transition: background .2s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent-strong); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cinema); color: var(--on-cinema-2); margin-top: 2rem; }
.site-footer a { color: var(--on-cinema-2); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--on-cinema); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1.6fr 1fr 1fr; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand b { color: var(--on-cinema); }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-cinema); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom button.btn-link { color: var(--on-cinema-2); }

/* ---------- Utility reveal (sparsam, nur Schluessel-Elemente) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- States: empty / loading / error ---------- */
.state { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; color: var(--ink-2); }
.state svg { width: 46px; height: 46px; margin: 0 auto 1rem; stroke: var(--ink-3); }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #ece5d9 37%, var(--paper-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 2rem);
  background: var(--ink); color: var(--paper); padding: .85rem 1.3rem; border-radius: var(--pill);
  box-shadow: var(--shadow-lg); z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Spinner (nur für Knopf-Arbeit, nicht für Seiten-Laden) ---------- */
.spin { width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Breakout-Bild (randlos) ---------- */
.full-bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-inline: -50vw; }

/* ---------- Prose (Rechtsseiten / FAQ) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; }
.prose address { font-style: normal; }

/* ---------- Details / FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .3s var(--ease); color: var(--accent-strong); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-item summary .plus::before { left: 50%; top: 4px; bottom: 4px; width: 2.5px; transform: translateX(-50%); }
.faq-item summary .plus::after { top: 50%; left: 4px; right: 4px; height: 2.5px; transform: translateY(-50%); }
.faq-item[open] summary .plus { transform: rotate(135deg); }
.faq-item .faq-body { padding: 0 0 1.4rem; color: var(--ink-2); }
.faq-item .faq-body p { max-width: 68ch; }

/* ---------- misc ---------- */
.eyebrow-img { border-radius: var(--r); box-shadow: var(--shadow); }
.list-reset { list-style: none; padding: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ============================================================
   SEKTIONS-BAUSTEINE (gemeinsame Gestaltungssprache)
   ============================================================ */

/* ---------- Hero: randloser Film über volle Breite ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--cinema); }
.hero__film { position: absolute; inset: 0; }
.hero__film.film { aspect-ratio: auto; border-radius: 0; height: 100%; box-shadow: none; }
.hero__film.film canvas { height: 100%; }
/* ---------- Buehne: gemalter Vorhang (zu/offen), s. vorhang.js. Ohne JS
   steht sofort die offene Buehne da, Text bleibt lesbar. ---------- */
.hero__stage { position: absolute; inset: 0; background: center/cover no-repeat url("/assets/buehne-offen.jpg"); background-color: var(--cinema); }
.js .hero__stage { background-image: url("/assets/buehne-zu.jpg"); transition: background-image .5s linear; }
.js .hero__stage.stage--offen { background-image: url("/assets/buehne-offen.jpg"); }
.vorhang { display: none; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.js .vorhang { display: block; }
.vorhang canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to top, rgba(14,9,6,.86) 0%, rgba(14,9,6,.5) 38%, rgba(14,9,6,.32) 66%, rgba(14,9,6,.5) 100%); }
.hero__inner { position: relative; z-index: 2; color: var(--on-cinema); padding-block: clamp(2.6rem, 6vw, 4.5rem); width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .hero__lead { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 46ch; margin-top: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; align-items: center; }
.hero__anchors { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.7rem; color: rgba(255,255,255,.82); font-size: .95rem; }
.hero__anchors span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__anchors svg { width: 18px; height: 18px; stroke: var(--accent-warm); flex: none; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Vorhang-Oeffnung: das Versprechen ("Film", nicht Vorlage) ist
   das Erste, was passiert, nicht Dekoration am Ende. Zwei Flaechen schliessen
   sich beim Laden und oeffnen sich seitlich zum Hero-Text. ---------- */
.curtain { display: none; position: absolute; inset-block: 0; width: 51%; background: var(--cinema-2); z-index: 5;
  transition: transform 1.05s var(--ease-out); will-change: transform; }
.js .curtain { display: block; }
.curtain--l { left: 0; transform: translateX(0); border-right: 1px solid rgba(255,255,255,.06); }
.curtain--r { right: 0; transform: translateX(0); border-left: 1px solid rgba(255,255,255,.06); }
.curtain-open .curtain--l { transform: translateX(-101%); }
.curtain-open .curtain--r { transform: translateX(101%); }
@media (prefers-reduced-motion: reduce) {
  .js .curtain { display: none; }
}

/* ---------- Trust-/Herkunftsleiste ---------- */
.trust-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; padding-block: 1.1rem; align-items: center; justify-content: center; }
.trust-strip .ts-item { display: inline-flex; align-items: center; gap: .55rem; font-size: .93rem; color: var(--ink-2); font-weight: 500; }
.trust-strip svg { width: 19px; height: 19px; stroke: var(--accent-strong); flex: none; }

/* ---------- Scroll-Szene: Standbilder werden ein Film ---------- */
.scene { position: relative; background: var(--cinema); color: var(--on-cinema); min-height: 280vh; }
.scene__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scene__stage { position: relative; width: min(86vw, 760px); aspect-ratio: 16 / 10; }
.scene__frame { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: #120d0a; opacity: 0; }
.scene__photo { position: absolute; width: 42%; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45); border: 5px solid #fbf6ec; }
.scene__photo canvas, .scene__frame canvas { width: 100%; height: 100%; display: block; }
.scene__title { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 3; opacity: 0; }
.scene__title .kick { font-family: var(--sans); letter-spacing: .28em; text-transform: uppercase; font-size: .8rem; color: rgba(255,255,255,.85); }
.scene__title .names { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin-top: .4rem; }
.scene__cap { position: absolute; left: 50%; bottom: clamp(2rem, 7vh, 5rem); transform: translateX(-50%); z-index: 4; text-align: center; max-width: 40ch; padding-inline: 1rem; }
.scene__cap p { margin: 0 auto; color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.scene__hint { position: absolute; right: 1.2rem; bottom: 1.2rem; font-size: .8rem; color: rgba(255,255,255,.5); z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .scene { min-height: 0; }
  .scene__sticky { position: relative; height: auto; padding-block: clamp(3rem,8vw,6rem); }
}

/* ---------- Kapitel (Ablauf 01-06) ----------
   Ohne JS: einfaches, voll lesbares 3-Spalten-Raster (Rail versteckt, jede
   Karte traegt ihre eigene Nummer+Titel). Erst die Klasse .kapitel--live
   (wird nur per JS gesetzt, siehe common.js kapitelSpy) schaltet auf die
   sticky Rail links + Scroll-Wechsel rechts um -- genau das Vorhang-Muster:
   das Feature existiert nur, wenn JS es aktiviert. */
.kapitel { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.kapitel__rail { display: none; }
.kapitel__list { display: contents; }
.kapitel__item { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line-2); opacity: 1; transition: opacity .5s var(--ease); }
.kapitel__item-no { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); display: block; }
.kapitel__item h3 { margin: .7rem 0 .4rem; }
.kapitel__item p { color: var(--ink-2); }
@media (max-width: 820px) { .kapitel { grid-template-columns: 1fr; } }

/* -- Live-Modus (JS aktiv, kein prefers-reduced-motion) -- */
.kapitel--live { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.kapitel--live .kapitel__rail { display: block; position: sticky; top: clamp(5rem, 14vh, 8rem); }
.kapitel--live .kapitel__rail-no { display: block; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 5.2rem); line-height: 1; color: var(--accent); transition: opacity .35s var(--ease); }
.kapitel--live .kapitel__rail-title { margin-top: .4rem; font-size: 1.25rem; transition: opacity .35s var(--ease); }
.kapitel--live .kapitel__rail.is-swapping .kapitel__rail-no,
.kapitel--live .kapitel__rail.is-swapping .kapitel__rail-title { opacity: 0; }
.kapitel--live .kapitel__list { display: flex; flex-direction: column; gap: clamp(2.5rem, 7vh, 5rem); }
.kapitel--live .kapitel__item { padding-top: 0; border-top: none; opacity: .38; }
.kapitel--live .kapitel__item.is-active { opacity: 1; }
.kapitel--live .kapitel__item-no { display: none; } /* Nummer steht live nur noch in der Rail */
@media (max-width: 820px) {
  /* Sticky-Rail braucht Breite -- unter 820px bleibt es beim lesbaren Grundraster */
  .kapitel--live { display: grid; grid-template-columns: 1fr; }
  .kapitel--live .kapitel__rail { display: none; }
  .kapitel--live .kapitel__item { padding-top: 1.6rem; border-top: 2px solid var(--line-2); opacity: 1; }
  .kapitel--live .kapitel__item-no { display: block; }
}

/* ---------- Looks (Vorlagen) ---------- */
.looks { display: grid; gap: 1.4rem; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, auto); }
@media (max-width: 860px) { .looks { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.look-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.look-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.look-card .film { border-radius: 0; box-shadow: none; aspect-ratio: 16/10; }
.look-card .lc-body { padding: 1.1rem 1.3rem 1.4rem; }
.look-card h3 { font-size: 1.4rem; }
.look-card p { color: var(--ink-2); font-size: .97rem; margin-top: .3rem; }
/* Rhythmus: eine grosse Karte links, zwei kompakte Listen-Karten rechts */
.look-card--feature { grid-column: 1; grid-row: 1 / 3; }
.look-card--feature .film { aspect-ratio: 4/3; }
.look-card--feature h3 { font-size: 1.7rem; }
.look-card--compact { grid-column: 2; display: flex; flex-direction: row; align-items: stretch; }
.look-card--compact .film { aspect-ratio: 1/1; width: 38%; flex: 0 0 auto; }
.look-card--compact .lc-body { padding: .9rem 1.1rem; display: flex; flex-direction: column; justify-content: center; }
.look-card--compact h3 { font-size: 1.15rem; }
.look-card--compact p { font-size: .9rem; }
@media (max-width: 860px) {
  .look-card--feature, .look-card--compact { grid-column: 1; grid-row: auto; }
  .look-card--compact .film { width: 42%; }
}

/* ---------- Beispiele (Vorher/Nachher) ---------- */
.example { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .example { grid-template-columns: 1fr; } }
.example .before { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.example .before .shot { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-sm); transform: rotate(var(--rot, 0deg)); }
.example .before .shot:nth-child(2) { margin-top: 1.4rem; }
.example .before canvas { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Preis ---------- */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { background: var(--cinema); color: var(--on-cinema); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.price-card .amount { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: #fff; }
.price-card .amount sup { font-size: .4em; vertical-align: super; color: var(--accent-warm); }
.price-card .incl { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .75rem; }
.price-card .incl li { display: flex; gap: .7rem; color: var(--on-cinema-2); }
.price-card .incl svg { width: 20px; height: 20px; stroke: var(--accent-warm); flex: none; margin-top: .15rem; }
.price-addon { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 1.2rem 1.3rem; margin-top: 1.2rem; display: flex; gap: 1rem; align-items: flex-start; }
.price-addon svg { width: 26px; height: 26px; stroke: var(--accent-strong); flex: none; }

/* ---------- Herkunft / Wer dahinter steht ---------- */
.herkunft { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem,4vw,3rem); align-items: center; }
@media (max-width: 760px) { .herkunft { grid-template-columns: 1fr; } }

/* ---------- Abschluss-CTA ---------- */
.cta-band { background: var(--accent-wash); border-radius: var(--r-lg); padding: clamp(2.2rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }

/* ---------- Progress / Wizard ---------- */
.wizard-steps { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin-bottom: 2rem; font-size: .92rem; }
.wizard-steps li { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-3); }
.wizard-steps li .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.wizard-steps li[data-done="true"] { color: var(--ink); }
.wizard-steps li[data-done="true"] .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.wizard-steps li[aria-current="step"] .dot { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Foto-Upload ---------- */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 2rem 1.2rem; text-align: center; background: #fff; transition: border-color .2s var(--ease), background .2s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-wash); }
.dropzone svg { width: 40px; height: 40px; stroke: var(--accent-strong); margin: 0 auto .6rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: 1rem; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.photo-thumb img, .photo-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,12,8,.72); color: #fff; border: 0; display: grid; place-items: center; }
.photo-thumb .rm svg { width: 15px; height: 15px; stroke: #fff; }
.photo-thumb .ord { position: absolute; bottom: 4px; left: 4px; font-size: .7rem; background: rgba(20,12,8,.72); color: #fff; border-radius: 4px; padding: 1px 5px; }
.photo-thumb[draggable="true"] { cursor: grab; }

/* ---------- Ablauf-Zeilen ---------- */
.ablauf-row { display: grid; grid-template-columns: 110px 1fr auto; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.ablauf-row .input { padding: .55rem .7rem; }
.ablauf-row .rm { background: none; border: 0; color: var(--ink-3); padding: .4rem; }
.ablauf-row .rm:hover { color: var(--err); }
@media (max-width: 480px) { .ablauf-row { grid-template-columns: 90px 1fr auto; } }

/* ---------- Vorschau (sticky neben Formular) ---------- */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.builder__preview { position: sticky; top: 90px; }
@media (max-width: 960px) { .builder__preview { position: static; } }

/* ---------- Einladung (oeffentlich) ---------- */
.invite-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--cinema); }
.invite-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.2rem; }
.invite-meta .im { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.invite-meta .im h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.invite-meta .im p { color: var(--ink-2); font-size: .97rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); }
.timeline .t { font-weight: 600; }
.timeline .z { color: var(--accent-strong); font-variant-numeric: tabular-nums; font-weight: 600; margin-right: .5rem; }

/* ---------- RSVP / Verwaltung ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.stat .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.price-card .amount, .timeline .z, .scene__title .names, .film-watermark { font-feature-settings: "lnum" 1; }
.stat .n.ok { color: var(--ok); } .stat .n.no { color: var(--accent-strong); }
.stat .l { color: var(--ink-2); font-size: .92rem; margin-top: .3rem; }
.guest-table { width: 100%; border-collapse: collapse; }
.guest-table th, .guest-table td { text-align: left; padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guest-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.guest-table td .pill { font-size: .8rem; padding: .2rem .6rem; border-radius: var(--pill); font-weight: 600; }
.pill.yes { background: var(--ok-wash); color: var(--ok); }
.pill.no { background: var(--err-wash); color: var(--accent-strong); }
@media (max-width: 620px) { .guest-table thead { display: none; } .guest-table tr { display: block; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .8rem; padding: .4rem .7rem; } .guest-table td { border: 0; padding: .35rem .2rem; } }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.4rem,4vw,3rem); align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.summary-line.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .9rem; font-weight: 600; font-size: 1.15rem; }
.testmode { display: inline-flex; align-items: center; gap: .5rem; background: #2d2a12; color: #f0e4a8; border-radius: var(--pill); padding: .3rem .8rem; font-size: .82rem; font-weight: 600; }

/* ---------- 404 ---------- */
.err-page { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 3rem 1rem; }
.err-page .code { font-family: var(--serif); font-size: clamp(5rem, 18vw, 10rem); line-height: .9; color: var(--accent); }
