/* ==========================================================
   Victoria & Daniel · 14. August 2027
   Gemeinsames Stylesheet für alle Seiten (mobil zuerst)

   Gestaltung nach der gedruckten Einladungskarte:
   Elfenbeinpapier, Blindprägung, Goldfolie, sandfarbener Untergrund.
   Eine Schriftfamilie (EB Garamond) wie auf der Karte, dazu die
   Schreibschrift des Umschlags (Great Vibes, SIL Open Font License) für wenige Zeilen.
   ========================================================== */

/* ── Schriften: lokal eingebunden (keine Verbindung zu Google) ── */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Rumänisch: ă ș ț (nur geladen, wenn diese Buchstaben vorkommen) */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Rumänisch: ă ș ț (nur geladen, wenn diese Buchstaben vorkommen) */
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Rumänisch: ă ș ț (nur geladen, wenn diese Buchstaben vorkommen) */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/great-vibes-latin-6.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/great-vibes-latin-ext-6.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ── Farben & Maße ── */
:root {
  --paper:      #F4ECDF;   /* Seite: Elfenbeinpapier */
  --card:       #F9F4EA;   /* aufgelegte Karten, eine Spur heller */
  --card-photo: #EFE5D5;   /* Papierton der fotografierten Karte */
  --sand:       #CCAE92;   /* Untergrund wie auf den Kartenfotos */
  --ink:        #3A2C1D;   /* Schrift */
  --ink-soft:   #6A5743;   /* Schrift der Karte, zweite Ebene */
  --gold:       #96712A;   /* Goldfolie, große Schrift */
  --gold-deep:  #7A5A1C;   /* Goldfolie, kleine Schrift (gut lesbar) */
  --gold-light: #D9BE7A;
  --line:       #DCCDB6;   /* feine Linie auf Papier */
  --line-ink:   #A8957A;   /* Schreiblinie */
  --danger:     #9C2F1D;
  --foil: linear-gradient(100deg, #86641F 0%, #9F7A2C 34%, #CDAE62 50%, #9F7A2C 66%, #86641F 100%);
  --shadow-soft: 0 1px 1px rgba(90,62,30,.10), 0 12px 26px -16px rgba(90,62,30,.42);
  --nav-h:      58px;
  --gutter:     1.25rem;
  --serif:      'EB Garamond', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --script:     'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper) url('/assets/img/papier-5.webp') 0 0 / 320px;
  color: var(--ink);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nobr { white-space: nowrap; }
.script { font-family: var(--script); font-weight: 400; line-height: 1.15; }

/* ── Goldfolie: Schrift mit Glanzstreifen, der beim Scrollen wandert ── */
.foil, .title { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil, .title {
    background-image: var(--foil); background-size: 300% 100%; background-position: 50% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}

/* ── Sandfarbener Untergrund (Start, Antwortkarte, Fuß) ── */
.sand {
  position: relative; color: var(--ink);
  background: var(--sand) url('/assets/img/sand-5.webp') 0 0 / 384px;
  box-shadow: inset 0 16px 22px -18px rgba(70,42,15,.55), inset 0 -16px 22px -18px rgba(70,42,15,.45);
}

/* ── Aufgelegte Karte: Papier mit blindgeprägter Rahmenlinie ── */
.sheet {
  position: relative;
  background: linear-gradient(rgba(255,252,246,.5), rgba(255,252,246,.5)), var(--paper) url('/assets/img/papier-5.webp') 0 0 / 320px;
  box-shadow: var(--shadow-soft);
}
.sheet::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(150,120,80,.24);
  box-shadow: 1px 1px 0 rgba(255,255,255,.85), inset 1px 1px 0 rgba(255,255,255,.85);
}
/* Fotoecken wie bei der Einlegekarte */
.corners::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  --pc: #EFE5D4; --pe: rgba(120,90,50,.5);
  background:
    linear-gradient(135deg, var(--pc) 0, #F8F1E5 calc(50% - 1.5px), var(--pe) calc(50% - 1px), rgba(120,90,50,.18) 50%, transparent calc(50% + 4px)) left top / 40px 40px no-repeat,
    linear-gradient(225deg, var(--pc) 0, #F8F1E5 calc(50% - 1.5px), var(--pe) calc(50% - 1px), rgba(120,90,50,.18) 50%, transparent calc(50% + 4px)) right top / 40px 40px no-repeat,
    linear-gradient(45deg,  var(--pc) 0, #F8F1E5 calc(50% - 1.5px), var(--pe) calc(50% - 1px), rgba(120,90,50,.18) 50%, transparent calc(50% + 4px)) left bottom / 40px 40px no-repeat,
    linear-gradient(315deg, var(--pc) 0, #F8F1E5 calc(50% - 1.5px), var(--pe) calc(50% - 1px), rgba(120,90,50,.18) 50%, transparent calc(50% + 4px)) right bottom / 40px 40px no-repeat;
}

/* ── Navigation ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) var(--gutter) 0 calc(var(--gutter) - .25rem);
  background: rgba(244,236,223,.95) url('/assets/img/papier-5.webp') 0 0 / 320px;
  box-shadow: 0 1px 0 rgba(150,120,80,.28), 0 8px 18px -14px rgba(70,42,15,.5);
}
.nav-mono { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; text-decoration: none; }
.nav-mono img { height: 30px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 .25rem; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
}
.nav-sound {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: .15rem;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--gold-deep);
  transition: opacity .3s ease, visibility .3s;
}
.nav-sound svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-sound .off { stroke: var(--ink-soft); }
.nav-sound[aria-pressed="true"] .off { display: none; }
.nav-sound[aria-pressed="false"] { color: var(--ink-soft); }
.nav-sound.away { opacity: 0; visibility: hidden; }
.nav-sound.nudge { animation: nudge 1.6s ease-in-out 3; }     /* kurzer Hinweis, wenn die Karte ohne Musik aufging */
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(1.1) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .nav-sound.nudge { animation: none; } }
@media (min-width: 900px) { .nav-sound { position: absolute; right: 1.5rem; top: calc(env(safe-area-inset-top) + 7px); margin: 0; } }
/* Sprache: DE · RO (aktuelle Sprache gold, die andere als Link) */
.nav-lang { display: inline-flex; align-items: center; gap: 0; margin-left: auto; margin-right: .6rem; font-size: 1rem; letter-spacing: .06em; }
.nav-sound:not([hidden]) ~ .nav-lang { margin-left: 0; }
.nav-lang > * { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .1rem; }   /* Tippfläche mind. 44 × 44 px */
.nav-lang > :first-child { justify-content: flex-end; padding-right: .35rem; }        /* „DE · RO“ bleibt optisch eng beieinander, */
.nav-lang > * + * { min-width: 54px; justify-content: flex-start; padding-left: 0; }   /* die Tippflächen sind trotzdem groß */
.nav-lang span[aria-current] { color: var(--gold-deep); }
.nav-lang a { color: var(--ink-soft); text-decoration: none; }
.nav-lang a:hover, .nav-lang a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav-lang > * + *::before { content: '·'; display: inline-block; margin-right: .35rem; color: var(--ink-soft); text-decoration: none; }
/* Handy: im aufgeklappten Menü ganz unten (Seiten mit Menü); ohne Menü (Datenschutz) in der Kopfzeile */
.nav-links .nav-lang { justify-content: center; margin: .35rem 0 0; padding-top: .45rem; border-top: 1px solid var(--line); font-size: 1.15rem; letter-spacing: .08em; }
.nav-links .nav-lang > * { min-height: 50px; min-width: 56px; font-size: 1.15rem; border-top: 0; }
.nav-links .nav-lang > :first-child { justify-content: flex-end; }
.nav-links .nav-lang > * + * { min-width: 64px; justify-content: flex-start; }
.nav-links .nav-lang a { color: var(--ink-soft); }
@media (min-width: 900px) {
  .nav-lang, .nav-links .nav-lang { position: absolute; right: calc(1.5rem + 50px); top: calc(env(safe-area-inset-top) + 7px); margin: 0; padding: 0; border: 0; font-size: 1rem; letter-spacing: .06em; }
  .nav-links .nav-lang > * { min-height: 44px; min-width: 44px; font-size: 1rem; }
  .nav-links .nav-lang > * + * { min-width: 54px; }
}
.nav-toggle .bars { position: relative; width: 20px; height: 12px; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, top .25s;
}
.nav-toggle .bars::before { top: 2px; }
.nav-toggle .bars::after  { top: 9px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 5.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 5.5px; transform: rotate(-45deg); }

.nav-links {
  position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top)); left: 0; right: 0;
  display: flex; flex-direction: column; text-align: center;
  background: var(--paper) url('/assets/img/papier-5.webp') 0 0 / 320px;
  box-shadow: 0 22px 30px -20px rgba(70,42,15,.5);
  padding: .5rem var(--gutter) 1.25rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.nav-links.open { transform: none; opacity: 1; visibility: visible; }
.nav-links a {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  font-size: 1.3rem; color: var(--ink); text-decoration: none;
}
.nav-links a + a { border-top: 1px solid var(--line); }
.nav-links a.cta, .nav-links a[aria-current="page"] { color: var(--gold-deep); }

@media (min-width: 900px) {
  .nav { justify-content: center; gap: 2.5rem; padding-left: 2rem; padding-right: 2rem; }
  .nav-toggle:not(.nav-back) { display: none; }
  .nav-links {
    position: static; flex-direction: row; align-items: center; gap: 2.1rem;
    background: none; box-shadow: none; padding: 0;
    transform: none; opacity: 1; visibility: visible; max-height: none; overflow: visible;
  }
  .nav-links a { min-height: 44px; font-size: 1.1rem; color: var(--ink-soft); transition: color .2s; }
  .nav-links a + a { border-top: 0; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.cta { color: var(--gold-deep); text-decoration: underline; }
}

/* ── Typografie ── */
.title {
  text-align: center; font-weight: 400;
  font-size: clamp(2.1rem, 8.6vw, 2.9rem); line-height: 1.12; letter-spacing: .005em;
}
.title::after {
  content: ''; display: block; width: 58px; height: 1px; margin: 1.05rem auto 0;
  background: linear-gradient(90deg, #8A6820, #CDAE62 50%, #8A6820);
}
.lead { color: var(--ink-soft); max-width: 34rem; margin-top: 1.4rem; }
.lead.centered { margin-left: auto; margin-right: auto; text-align: center; }
.small { font-size: 1rem; color: var(--ink-soft); }

/* ── Layout ── */
.section { padding: 4.25rem var(--gutter); }
.wrap { max-width: 54rem; margin: 0 auto; }
@media (min-width: 700px) { .section { padding: 5.75rem 2rem; } }

/* ── Buttons: Goldfolie bzw. Papier ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .65rem 1.5rem; border: 0; border-radius: 2px;
  font-family: var(--serif); font-weight: 500; font-size: 1.125rem; line-height: 1.2; letter-spacing: .015em;
  text-decoration: none; text-align: center; color: #2E2212; cursor: pointer;
  background: linear-gradient(100deg, #BC9545 0%, #CFAE62 26%, #EDDBA3 48%, #CDAA5C 64%, #B89040 100%) 22% 0 / 230% 100%;
  box-shadow: inset 0 1px 0 rgba(255,247,220,.65), inset 0 -1px 0 rgba(90,62,12,.3), 0 1px 2px rgba(70,42,15,.35), 0 8px 16px -10px rgba(70,42,15,.6);
  transition: background-position .7s ease, transform .12s, box-shadow .2s;
}
.btn:hover { background-position: 78% 0; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,247,220,.65), inset 0 -1px 0 rgba(90,62,12,.3), 0 1px 1px rgba(70,42,15,.4); }
.btn.ghost {
  background: linear-gradient(rgba(255,252,246,.6), rgba(255,252,246,.6)), var(--paper) url('/assets/img/papier-5.webp') 0 0 / 320px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(150,113,42,.6), 0 1px 2px rgba(70,42,15,.2);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-deep), 0 1px 2px rgba(70,42,15,.2), 0 8px 16px -12px rgba(70,42,15,.55); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row .btn { flex: 1 1 200px; }

/* ── Fuß ── */
.footer { text-align: center; padding: 3.5rem var(--gutter) calc(3rem + env(safe-area-inset-bottom)); box-shadow: inset 0 16px 22px -18px rgba(70,42,15,.55); }
.footer-mono { width: 84px; height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 1px 0 rgba(255,244,220,.5)); }
.footer-script { font-size: 2.3rem; color: var(--ink); margin-bottom: .6rem; }
.footer-names { font-size: 1.35rem; letter-spacing: .02em; }
.footer p { color: var(--ink); }
.footer-links { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .35rem; font-size: 1.05rem; color: var(--ink); }

/* ==========================================================
   STARTSEITE
   ========================================================== */

/* ── Start: die Klappkarte liegt auf dem Tisch und öffnet sich ── */
.hero {
  --gate-w: min(84vw, 62vh, 440px);
  overflow: hidden; text-align: center;
  min-height: calc(100vh - 30px); min-height: calc(100svh - 30px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;   /* unten bleibt ein Streifen der nächsten Seite sichtbar */
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 1.1rem) var(--gutter) 1.4rem;
}
.hero::before {                                   /* Fensterlicht von links oben, rechts unten dunkler */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(255,238,210,.42), rgba(255,238,210,0) 58%),
    radial-gradient(120% 100% at 100% 100%, rgba(84,50,20,.30), rgba(84,50,20,0) 62%);
}
.hero-light {                                     /* weicher Blätterschatten, der sich ganz langsam bewegt */
  position: absolute; left: -14%; top: -8%; width: min(125vw, 820px); aspect-ratio: 1; pointer-events: none;
  background: url('/assets/img/blattschatten-5.webp') 0 0 / 100% 100% no-repeat; opacity: .5;
  transform-origin: 0 0; animation: sway 19s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-1.6deg) translate3d(-8px, 0, 0); } to { transform: rotate(1.8deg) translate3d(10px, 8px, 0); } }

.gate { position: relative; flex: none; width: var(--gate-w); aspect-ratio: 942 / 1357; perspective: 1700px; z-index: 1; }
.gate-panel {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--card-photo) url('/assets/img/karte-papier-7.webp') 0 0 / 100% 100%;   /* echtes Papier aus dem Kartenfoto */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 2px 4px rgba(70,42,15,.35), 0 22px 36px -18px rgba(70,42,15,.7);
}
/* Prägung wie auf der gedruckten Karte: gut 92 % der Kartenbreite, vom oberen Drittel bis knapp unter die Mitte */
.gate-relief, .gate-live { position: absolute; left: 1.6%; top: 13.7%; width: 96.8%; height: auto; aspect-ratio: 1212 / 820; max-width: none; }
/* Falz links und rechts (Schatten + Lichtkante) und sanfter Lichtverlauf über die Karte */
.gate-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(96,66,30,.30) 0, rgba(96,66,30,.12) .45%, rgba(255,255,255,.6) 1.0%, rgba(96,66,30,.07) 1.5%, rgba(96,66,30,0) 5%),
    linear-gradient(270deg, rgba(96,66,30,.30) 0, rgba(96,66,30,.12) .45%, rgba(255,255,255,.6) 1.0%, rgba(96,66,30,.07) 1.5%, rgba(96,66,30,0) 5%),
    linear-gradient(165deg, rgba(255,251,242,.22), rgba(255,251,242,0) 42%, rgba(96,66,30,.08) 100%);
}
/* aufgelegte Innenkarte: feine Kante mit Schatten, unten von zwei Fotoecken gehalten */
.gate-panel::after {
  content: ''; position: absolute; inset: 1.3% 2.1% 1.5%; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(150,120,80,.26), 1.5px 2px 2.5px rgba(96,66,30,.26), inset 0 0 0 1px rgba(255,255,255,.55);
  background:
    linear-gradient(to top right, #EDE2D0 0, #F6EEE1 calc(50% - 2px), rgba(120,90,50,.5) calc(50% - 1px), rgba(120,90,50,.18) 50%, rgba(120,90,50,0) calc(50% + 5px)) left bottom / 13.5% 9.6% no-repeat,
    linear-gradient(to top left,  #EDE2D0 0, #F6EEE1 calc(50% - 2px), rgba(120,90,50,.5) calc(50% - 1px), rgba(120,90,50,.18) 50%, rgba(120,90,50,0) calc(50% + 5px)) right bottom / 13.5% 9.6% no-repeat;
}
.gate-live { opacity: 0; }
.gate.live .gate-live { opacity: 1; }
.gate.live .gate-relief { visibility: hidden; }
.gate-text { position: absolute; left: 4%; right: 4%; top: 61.6%; color: var(--ink-soft); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.gate-text h1 { font-weight: 400; font-size: calc(var(--gate-w) * .104); line-height: 1.1; text-shadow: none; }
.gate-text .rule { display: block; width: 11%; height: 1px; margin: calc(var(--gate-w) * .032) auto calc(var(--gate-w) * .028); background: linear-gradient(90deg, #8A6820, #CDAE62 50%, #8A6820); }
.gate-invite { font-size: calc(var(--gate-w) * .0565); line-height: 1.28; letter-spacing: .02em; }
.gate-date { margin-top: calc(var(--gate-w) * .036); font-size: calc(var(--gate-w) * .062); letter-spacing: .17em; font-variant-numeric: lining-nums; }
.gate-shade { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity 1.3s ease .25s; pointer-events: none; }

.door {
  position: absolute; top: 0; height: 100%; width: 49%; cursor: pointer;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform 2.3s cubic-bezier(.62, .02, .18, 1); will-change: transform;
}
.door-l { left: 1.06%; transform-origin: 0 50%; transform: translateZ(1px) rotateY(-177deg); }
.door-r { right: 1.06%; transform-origin: 100% 50%; transform: translateZ(1px) rotateY(177deg); transition-delay: .14s; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door-back { transform: rotateY(180deg); }
.door-shadow { position: absolute; inset: 0; transform: translateZ(-.6px); box-shadow: 0 2px 4px rgba(70,42,15,.3), 0 20px 30px -16px rgba(70,42,15,.6); }
/* geschlossen: beim Start (bis das Skript öffnet) und nach Antippen der Karte */
.intro .gate:not(.open) .door, .gate.shut .door { transform: translateZ(1px) rotateY(0deg); }
.intro .gate:not(.open) .gate-shade, .gate.shut .gate-shade { opacity: 1; transition-delay: 1s; }

.hero-under { position: relative; z-index: 1; display: grid; width: 100%; max-width: 25rem; }
.hero-under > * { grid-area: 1 / 1; }
.hero-foot { transition: opacity 1s ease 1.5s; }
.intro .gate:not(.open) ~ .hero-under .hero-foot { opacity: 0; pointer-events: none; }
/* Hinweis, solange die Karte noch geschlossen ist */
.gate-hint { align-self: center; opacity: 0; pointer-events: none; font-size: 1.3rem; line-height: 1.3; transition: opacity .5s ease; }
.gate-hint span { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: 1.02rem; font-style: italic; }
.gate-hint svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.intro .gate:not(.open) ~ .hero-under .gate-hint { opacity: 1; animation: hint 2.6s ease-in-out 1.2s infinite; }
@keyframes hint { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.intro .gate:not(.open) { cursor: pointer; }
.countdown { font-size: 1.1rem; line-height: 1.35; margin-bottom: .85rem; }
.countdown b { font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.hero .btn-row { flex-wrap: nowrap; gap: .6rem; }
.hero .btn-row .btn { flex: 1 1 0; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
.hero .btn.ghost { box-shadow: inset 0 0 0 1px rgba(150,113,42,.5), 0 1px 2px rgba(70,42,15,.35), 0 8px 16px -10px rgba(70,42,15,.6); }
@media (max-width: 359px) { .hero .btn-row .btn { font-size: 1rem; } }
@supports (height: 100svh) {
  .hero { --gate-w: min(84vw, calc((100svh - 248px) * .694), 440px); }
  @media (min-width: 900px) { .hero { --gate-w: min(440px, calc((100svh - 260px) * .694)); } }
}
/* ── Persönlicher Einstieg (Link mit #fuer=Name): Umschlag über dem Platz der Karte ──
   Ebenen von unten nach oben: Schatten 1 · Innenseite 2 · offene Klappe 2 · Kartenschatten 2 · Karte 3 · Tasche 4 · geschlossene Klappe 5 · Vorderseite 6.
   Bewegt wird alles von assets/js/persoenlich.js. */
.pers .gate { z-index: 3; will-change: transform; }
.pers:not(.pers-card) .gate { visibility: hidden; }
.pe { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --ew: 340px; pointer-events: none; }
.pe-l { position: absolute; left: calc(var(--ew) / -2); top: calc(var(--ew) / -3); width: var(--ew); height: calc(var(--ew) * 2 / 3);
  opacity: 0; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pe-l img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.pe-back { z-index: 2; }
.pe-flapw { z-index: 5; will-change: transform; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; backface-visibility: visible; -webkit-backface-visibility: visible; }
.pe-flapw.under { z-index: 2; }
.pe-flap { position: absolute; left: 0; top: 0; width: 100%; height: 59%; transform-origin: 50% 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.pe-flap-out, .pe-flap-in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pe-flap-in { transform: rotateX(180deg); }
/* Klappe ganz offen: flach gezeichnet (siehe persoenlich.js „flat“), Innenseite liegt oberhalb des Falzes, gleiches Bild wie rotateX(180°) */
.pe-flapw.flat, .pe-flapw.flat .pe-flap { transform-style: flat; -webkit-transform-style: flat; }
.pe-flapw.flat .pe-flap-in { bottom: -1px; transform: translateY(calc(-100% + 1px)); }   /* Spitze bleibt, wo sie war; unten 1 px Überlappung: keine Haarlinie zwischen Klappe und Rückwand */
.pe-flapw.flat .pe-flap-out { visibility: hidden; }
.pe-l img.pe-seal { left: 50%; top: 93%; width: 27%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pe-pocket { z-index: 4; }
.pe-l img.pe-cast { top: 0; height: 79%; transform-origin: 50% 0; }
.pe-l img.pe-fshadow { top: -79%; height: 79%; opacity: 0; transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }   /* zum Falz hin weich auslaufend: keine Kante neben dem Umschlag */   /* gespiegelt: Spitze zeigt nach oben wie die offene Klappe */
.pe-fshade { position: absolute; inset: 0; background: #3E2A14; opacity: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pe-seallayer { z-index: 6; }
.pe-l img.pe-seal2 { left: 50%; top: 54.87%; width: 27%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pe-front { z-index: 6; }
.pe-shadow { position: absolute; z-index: 1; left: calc(var(--ew) / -2); top: calc(var(--ew) / -3); width: var(--ew); height: calc(var(--ew) * 2 / 3); opacity: 0;
  background: rgba(70,42,15,.34); box-shadow: 0 0 26px 10px rgba(70,42,15,.34); border-radius: 4px; }
.pe-cshadow { position: absolute; z-index: 2; opacity: 0; background: rgba(70,42,15,.36); box-shadow: 0 0 24px 8px rgba(70,42,15,.36); border-radius: 3px; }
.pe-addr { position: absolute; left: 6%; right: 6%; top: 50%; transform: translateY(-46%); text-align: center; color: #7A6548; }
.pe-fuer { display: block; font-size: calc(var(--ew) * .05); letter-spacing: .04em; margin-bottom: calc(var(--ew) * .012); }
.pe-name { display: inline-block; max-width: 100%; padding: 0 .12em .12em; line-height: 1.12; color: #86693F;
  clip-path: inset(-20% 100% -20% 0); -webkit-clip-path: inset(-20% 100% -20% 0); }
.pe-name.write { clip-path: inset(-20% -2% -20% 0); -webkit-clip-path: inset(-20% -2% -20% 0); transition: clip-path 1.7s cubic-bezier(.45, .05, .35, 1), -webkit-clip-path 1.7s cubic-bezier(.45, .05, .35, 1); }
.pe-skip { position: absolute; z-index: 7; right: .9rem; top: calc(var(--nav-h) + env(safe-area-inset-top) + .5rem); min-height: 44px; padding: 0 .6rem;
  background: none; border: 0; cursor: pointer; font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--ink); text-decoration: underline; text-underline-offset: .18em; opacity: .75; }
.pers .hero { cursor: pointer; }
.pers.pers-card .pe-run { cursor: auto; }
.pe-run .gate-hint { opacity: 0 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-light { animation: none; }
  .door, .gate-shade, .hero-foot, .gate-hint { transition: none; animation: none; }
}

/* ── Auf einen Blick: gesetzt wie die Einlegekarte der Einladung ── */
.stanzas { max-width: 30rem; margin: 2.75rem auto 0; padding: 2.9rem 1.5rem 2.8rem; text-align: center; }
.stanza p { color: var(--ink-soft); }
.stanza .stanza-main { font-size: 1.34rem; line-height: 1.28; color: var(--ink); margin-bottom: .2rem; }
/* Persönliche Seiten von Brautjungfern und Groomsmen: eigener Dresscode-Hinweis */
.stanza .stanza-role { max-width: 30em; margin: .55rem auto 0; font-style: italic; }
.faq-list .answer .role-note { font-style: italic; }
/* „Beispielbilder ansehen“ mit Pfeilen links und rechts, die sanft auf den Link zeigen */
.stanza .dc-hint { display: flex; justify-content: center; align-items: baseline; gap: .55rem; margin-top: .7rem; }
.dc-hint a { color: var(--gold-deep); font-style: italic; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.dc-arrow { display: inline-block; color: var(--gold-deep); font-size: 1.4rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .dc-arrow { animation: dcPulse 1.6s ease-in-out infinite; }
  .dc-arrow.r { animation-name: dcPulseR; }
}
@keyframes dcPulse  { 0%, 100% { transform: translateX(-3px); opacity: .55; } 50% { transform: translateX(3px) scale(1.15); opacity: 1; } }
@keyframes dcPulseR { 0%, 100% { transform: translateX(3px);  opacity: .55; } 50% { transform: translateX(-3px) scale(1.15); opacity: 1; } }
/* Beispielbilder (nur auf den Seiten von Brautjungfern und Groomsmen) */
.dc-gallery { display: flex; gap: .75rem; margin: .8rem -.15rem 1.1rem; padding: 0 .15rem .35rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.dc-gallery figure { flex: none; scroll-snap-align: start; margin: 0; }
.dc-gallery a { display: block; box-shadow: 0 1px 2px rgba(58,44,29,.25), 0 6px 14px -8px rgba(58,44,29,.45); }
.dc-gallery a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.dc-gallery img { display: block; height: 15rem; width: auto; max-width: none; }
.dc-gallery figcaption { max-width: 100%; margin-top: .45rem; font-size: .95rem; line-height: 1.3; font-style: italic; color: var(--ink-soft); }
.dc-gallery figure { display: flex; flex-direction: column; width: min-content; }
.dc-box { max-width: 96vw; max-height: 96svh; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.dc-box::backdrop { background: rgba(28,20,12,.82); }
.dc-box img { display: block; max-width: 96vw; max-height: 88svh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.dc-box p { margin-top: .6rem; text-align: center; font-style: italic; color: #F4ECDF; }
.dc-close { position: absolute; top: -.2rem; right: -.2rem; transform: translate(40%, -40%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #F4ECDF; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* Laptop: alle Bilder einer Rolle in einer Reihe, gleich hoch (Seitenverhältnis kommt aus main.js als --a / --sum) */
@media (min-width: 700px) {
  .dc-gallery { overflow: visible; max-width: calc(var(--sum, 4) * 15rem + var(--gaps, 2.25rem)); }
  .dc-gallery figure { flex: var(--a, 1) 1 0; min-width: 0; width: auto; }
  .dc-gallery img { width: 100%; height: auto; }
}
@media (max-width: 519px) { .dc-close { transform: none; top: .4rem; right: .4rem; } .dc-gallery img { height: 12.5rem; } }   /* Handy: nächstes Bild schaut hervor → man sieht, dass man wischen kann */
.stanza + .stanza::before { content: ''; display: block; width: 46px; height: 1px; margin: 1.45rem auto 1.4rem; background: var(--ink-soft); opacity: .55; }
.stanza a { color: var(--gold-deep); }

/* ── Ablauf: verschlossener Umschlag, solange der Ablauf verborgen ist ── */
.teaser { margin-top: 2.5rem; text-align: center; }
.teaser[hidden], .timeline[hidden] { display: none; }
/* Reihenfolge der Ebenen: Innenseite (2) · Kärtchen (3) · Tasche (4) · Klappe zu (5) bzw. offen (1).
   Die Regeln ohne „.open“ gelten beim Schließen: erst gleitet das Kärtchen zurück, dann fällt die Klappe.
   Die Klappe dreht gleichmäßig, damit die Ebene genau in dem Moment wechselt, in dem sie senkrecht steht. */
.envelope {
  --ew: min(86vw, 340px);
  position: relative; display: block; width: var(--ew); aspect-ratio: 3 / 2; margin: 0 auto 1.2rem;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  perspective: 1100px; -webkit-tap-highlight-color: transparent;
  transition: margin-top .9s cubic-bezier(.45, 0, .55, 1) .35s;
}
.envelope.open { margin-top: calc(var(--ew) * .40); transition: margin-top 1s cubic-bezier(.45, 0, .55, 1); }
.env-back, .env-pocket { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.env-back { z-index: 2; box-shadow: 0 2px 3px rgba(70,42,15,.25), 0 20px 30px -16px rgba(70,42,15,.6); }
.env-pocket { z-index: 4; }
.env-cast { transition: opacity .35s ease .95s; }
.envelope.open .env-cast { opacity: 0; transition: opacity .3s ease; }
.env-note {
  position: absolute; z-index: 3; left: 10%; width: 80%; top: 10%; height: 70%; padding-top: .15rem;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(rgba(255,252,246,.6), rgba(255,252,246,.6)), var(--paper) url('/assets/img/papier-5.webp') 0 0 / 260px;
  box-shadow: 0 1px 3px rgba(70,42,15,.3), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: transform .45s cubic-bezier(.4, 0, .6, 1);
}
.envelope.open .env-note { transform: translateY(-25.7%); transition: transform .95s cubic-bezier(.3, 0, .2, 1) .6s; }
.env-note .script { font-size: 1.55rem; line-height: 1.2; color: var(--ink); }
.teaser-count { font-size: 1rem; line-height: 1.2; color: var(--gold-deep); }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 59%; transform-origin: 50% 0; z-index: 5;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transform: rotateX(0deg); transition: transform .9s cubic-bezier(.45, 0, .55, 1) .35s, z-index 0s linear .8s;
}
.envelope.open .env-flap { z-index: 1; transform: rotateX(180deg); transition: transform 1s cubic-bezier(.45, 0, .55, 1), z-index 0s linear .5s; }
.env-flap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-flap .env-flap-in { transform: rotateX(180deg); overflow: hidden; }
.envelope:focus-visible { outline-offset: 8px; }
.teaser-title { font-size: 1.5rem; line-height: 1.25; }
.teaser-text { margin-top: .35rem; color: var(--ink-soft); }
.teaser-text strong { color: var(--ink); white-space: nowrap; }
.teaser-known { margin-top: .9rem; font-style: italic; color: var(--ink-soft); }
/* Antipp-Hinweis: ein „Finger-Tipp“ mit Welle auf der Klappenspitze, dazu hebt sich die Klappe ein wenig.
   Läuft alle 3,6 Sekunden, bis der Umschlag einmal geöffnet wurde. */
.env-tap { position: absolute; z-index: 6; left: 50%; top: 56.5%; width: 0; height: 0; pointer-events: none; }
.env-tap i { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; opacity: 0; }
.env-tap i:first-child { background: radial-gradient(circle, rgba(150,113,42,.6) 0, rgba(150,113,42,.3) 52%, rgba(150,113,42,0) 72%); }
.env-tap i:last-child { box-shadow: 0 0 0 2px rgba(150,113,42,.85), 0 0 6px rgba(150,113,42,.35); }
@media (prefers-reduced-motion: no-preference) {
  .envelope:not(.open):not(.used) .env-tap i:first-child { animation: tapDot 3.6s ease-out 1.2s infinite; }
  .envelope:not(.open):not(.used) .env-tap i:last-child { animation: tapRing 3.6s ease-out 1.2s infinite; }
  .envelope:not(.open):not(.used) .env-flap { animation: flapHint 3.6s ease-in-out 1.2s infinite; }
}
@keyframes tapDot { 0% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(.9); } 22% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
@keyframes tapRing { 0%, 6% { opacity: 0; transform: scale(.5); } 10% { opacity: 1; } 40% { opacity: 0; transform: scale(3.1); } 100% { opacity: 0; transform: scale(3.1); } }
@keyframes flapHint { 0%, 10% { transform: rotateX(0deg); } 22% { transform: rotateX(24deg); } 40%, 100% { transform: rotateX(0deg); } }
.teaser-hint { margin-bottom: 1.1rem; font-size: 1rem; font-style: italic; color: var(--ink-soft); transition: opacity .4s ease .6s; }
.envelope.open + .teaser-hint { opacity: 0; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .envelope, .envelope.open, .env-flap, .envelope.open .env-flap, .env-cast, .env-note, .envelope.open .env-note, .teaser-hint { transition: none; } }

/* Ablauf (sichtbar ab eine Woche vor der Hochzeit) */
.timeline { max-width: 30rem; margin: 2.75rem auto 0; text-align: center; }
.tl-item + .tl-item::before { content: ''; display: block; width: 1px; height: 2.2rem; margin: 1.1rem auto; background: linear-gradient(#8A6820, #CDAE62); }
.tl-time { font-size: 1.1rem; color: var(--gold-deep); letter-spacing: .04em; }
.tl-name { font-size: 1.6rem; line-height: 1.25; }
.tl-note { color: var(--ink-soft); }
.tag { display: block; margin-top: .15rem; font-style: italic; color: var(--ink-soft); }

.subhead { text-align: center; font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin: 4rem 0 0; color: var(--gold); }

/* ── Lageplan: wie blind ins Papier geprägt, Markierungen in Gold ── */
#fpBlock { margin-top: 2.5rem; }
.fp-wrap { overflow: hidden; }
.fp-wrap::before { display: none; }
.fp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.fp-scroll img { width: max(100%, 940px); max-width: none; height: auto; }   /* Handy: breiter als der Bildschirm, damit die Beschriftung lesbar bleibt */
.map { display: block; width: 100%; height: auto; }
.map-bld { fill: #FBF6EC; stroke: #CDBB9E; stroke-width: 1; stroke-linejoin: round;
  filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.95)) drop-shadow(1.5px 2.5px 1.5px rgba(110,80,40,.30)); }
.map-bld.faded { fill: #F6EFE2; stroke: #D8CBB4; stroke-dasharray: 5 4; filter: none; }
.map-terrace { fill: url(#terr); stroke: #D2BC8E; stroke-width: 1; }
.map-meadow { fill: #EAEBD9; stroke: #C4C5A6; stroke-width: 1; filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.9)) drop-shadow(1px 2px 1px rgba(110,80,40,.2)); }
.map-tree circle { fill: #D5D8BE; }
.map-lake { fill: #DDE4E0; }
.map-tunnel { stroke: #BFAF94; stroke-width: 9; stroke-dasharray: 3 4; fill: none; }
.map-route { stroke: var(--gold-deep); stroke-width: 3.5; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.map-entry { fill: var(--gold-deep); }
.map-lbl { font-family: var(--serif); font-size: 23px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.map-lbl.sm { font-size: 20px; fill: var(--ink-soft); font-style: italic; }
.map-lbl.strong { fill: var(--ink); font-style: normal; }
.map-lbl.start { text-anchor: start; }
.map-lbl.meadow { font-style: italic; fill: #56603C; font-size: 24px; }
.map-lbl.faded { font-size: 18px; fill: #9C8E7A; }
.map-water { font-family: var(--serif); font-style: italic; font-size: 24px; fill: #5E7A80; text-anchor: middle; }
.map-dir { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--ink-soft); }
.map-pin { transform-box: fill-box; transform-origin: 50% 50%; }
.map-pin circle { fill: #D9BE7A; stroke: #FFF8E6; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(70,42,15,.4)); }
.map-pin text { font-family: var(--serif); font-size: 24px; font-weight: 500; fill: #2E2212; text-anchor: middle; dominant-baseline: central; font-variant-numeric: lining-nums; }
.map-pin.p circle { fill: var(--ink); }
.map-pin.p text { fill: #fff; }
/* Markierungen setzen sich nacheinander – in der Reihenfolge des Tages */
@media (prefers-reduced-motion: no-preference) {
  .js #fpBlock .map-pin { opacity: 0; transform: scale(.2); }
  .js #fpBlock.seen .map-pin { opacity: 1; transform: none; transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), opacity .25s; }
  .js #fpBlock.seen .map-pin:nth-of-type(1) { transition-delay: .9s; }
  .js #fpBlock.seen .map-pin:nth-of-type(2) { transition-delay: 1.2s; }
  .js #fpBlock.seen .map-pin:nth-of-type(3) { transition-delay: 1.5s; }
  .js #fpBlock.seen .map-pin.p { transition-delay: .3s; }
  .js #fpBlock .map-route { opacity: 0; }
  .js #fpBlock.seen .map-route { opacity: 1; transition: opacity .6s .55s; }
}
.fp-legend { display: grid; gap: .55rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.fp-leg { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); line-height: 1.4; }
.fp-leg b { font-weight: 400; color: var(--ink); }
.fp-leg i { flex: none; width: 26px; height: 26px; margin-top: .05rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 500; font-size: 1rem; color: #2E2212; background: #D9BE7A; font-variant-numeric: lining-nums; }
.fp-leg i.p { background: #387CAA; color: #fff; }   /* Blau wie das P im Plan */
.fp-note { padding: 0 1.5rem 1.35rem; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
@media (min-width: 700px) { .fp-legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .map-lbl { font-size: 27px; }
  .map-lbl.sm { font-size: 26px; }
  .map-lbl.faded { font-size: 23px; }
  .map-lbl.meadow { font-size: 27px; transform: translateX(12px); }
  .map-lbl.narrow { font-size: 21px; }
  .map-dir { font-size: 23px; }
}
@media (min-width: 900px) { .fp-legend { grid-template-columns: repeat(4, 1fr); } .fp-swipe { display: none; } .fp-scroll img { width: 100%; } }
/* Großer Bildschirm: der Plan darf breiter sein als der Textblock, damit die kleinen Beschriftungen lesbar sind */
@media (min-width: 1000px) { #fpBlock { position: relative; left: 50%; width: min(1120px, 94vw); transform: translateX(-50%); } }

/* ── Menükarte ── */
.menu-card { max-width: 33rem; margin: 2.25rem auto 0; text-align: center; padding: 2.9rem 1.5rem 2.6rem; }
.menu-crest { width: 46px; height: auto; margin: 0 auto .9rem; }
.menu-date { font-style: italic; color: var(--ink-soft); margin-bottom: 1.9rem; }
.course { display: grid; gap: .5rem; }
.course-name { font-weight: 400; font-size: 1.05rem; letter-spacing: .04em; color: var(--gold-deep); }
.dish { font-size: 1.3rem; line-height: 1.38; color: var(--ink); max-width: 25rem; margin: 0 auto; }
.alt { display: grid; gap: .55rem; margin-top: .3rem; }
.alt div { display: grid; gap: 0; align-content: start; }
.alt dt { font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.alt dd { font-size: 1.06rem; line-height: 1.4; color: var(--ink-soft); max-width: 24rem; margin: 0 auto; }
.cake { display: grid; gap: 0; margin-top: .4rem; font-size: 1.06rem; color: var(--ink-soft); }
.cake-label { font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.course-sep { display: block; width: 46px; height: 1px; margin: 1.6rem auto; background: var(--ink-soft); opacity: .55; }
.menu-note { margin-top: 1.9rem; font-style: italic; font-size: 1.02rem; color: var(--ink-soft); }
@media (min-width: 700px) {
  .menu-card { padding: 3.3rem 2.5rem 3rem; }
  .alt { grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 29rem; margin-left: auto; margin-right: auto; }
}

/* ── Anreise ── */
.address-card { max-width: 38rem; margin: 2.5rem auto 0; text-align: center; }
.address-card strong { display: block; font-weight: 400; font-size: 1.4rem; line-height: 1.28; }
.address-card address { font-style: normal; color: var(--ink-soft); margin: .15rem 0 1.25rem; }
.address-card .btn-row .btn { flex-basis: 150px; padding-left: .75rem; padding-right: .75rem; }
.map-box { max-width: 38rem; margin: 1.1rem auto 0; overflow: hidden; background: rgba(150,120,80,.07); box-shadow: inset 0 0 0 1px var(--line); }
.map-consent { padding: 1.5rem 1.25rem; text-align: center; }
.map-consent p { font-size: 1rem; color: var(--ink-soft); margin: .75rem auto 0; max-width: 30rem; }
.map-consent a { color: var(--gold-deep); }
.map-box iframe { display: block; width: 100%; height: 340px; border: 0; }

.travel-list, .faq-list { max-width: 38rem; margin: 2.5rem auto 0; border-top: 1px solid var(--line); }
.travel-list > details, .faq-list > details { border-bottom: 1px solid var(--line); }
.travel-list > details > summary, .faq-list > details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 62px; padding: .9rem .15rem; font-size: 1.28rem; line-height: 1.3;
}
.travel-list summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.travel-list > details > summary::after, .faq-list > details > summary::after {      /* Pluszeichen aus zwei feinen Goldlinien */
  content: ''; flex: none; width: 15px; height: 15px; margin-right: .2rem;
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) 50% 50% / 100% 1.5px no-repeat,
              linear-gradient(var(--gold-deep), var(--gold-deep)) 50% 50% / 1.5px 100% no-repeat;
  transition: transform .3s ease;
}
.travel-list > details[open]:not(.closing) > summary::after, .faq-list > details[open]:not(.closing) > summary::after { transform: rotate(45deg); }
.travel-list .body, .faq-list .answer { overflow: hidden; padding: 0 .15rem 1.3rem; color: var(--ink-soft); }
.travel-list .body p + p, .faq-list .answer p + p { margin-top: .65rem; }
.travel-list .body a, .faq-list .answer a { color: var(--gold-deep); }
.travel-list .body strong, .faq-list .answer strong { font-weight: 500; color: var(--ink); }
.stay-keyword { margin: .8rem 0 1rem !important; padding: .8rem 1rem; text-align: center; font-size: 1.4rem; color: var(--ink);
  background: linear-gradient(rgba(255,252,246,.5), rgba(255,252,246,.5)); box-shadow: inset 0 0 0 1px rgba(150,113,42,.45), inset 0 0 0 4px rgba(255,252,246,.6), inset 0 0 0 5px rgba(150,113,42,.25); }
.stay-contact { display: grid; gap: .6rem; margin: .2rem 0 1rem; }
.stay-contact .btn { width: 100%; font-size: 1.05rem; }
@media (min-width: 640px) { .stay-contact { grid-template-columns: 1fr 1fr; } }
.stay-list + p { margin-top: 1rem !important; }
.stay-deadline strong { color: var(--ink); }
.stay-hotel { margin-top: 1.6rem !important; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.28rem; color: var(--ink); }
.stay-hotel span { display: block; font-size: 1.05rem; color: var(--ink-soft); }
.stay-hotel + p { margin-top: .3rem !important; }
/* Zimmerpreise: dezent zum Aufklappen unter jedem Hotel */
.stay-prices { margin-top: .9rem; }
.stay-prices > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; font-style: italic; font-size: 1.05rem; color: var(--gold-deep); }
.stay-prices > summary::-webkit-details-marker { display: none; }
.stay-prices > summary::after { content: ''; width: .42rem; height: .42rem; margin-top: -.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s ease; }
.stay-prices[open]:not(.closing) > summary::after { transform: rotate(225deg); margin-top: .2rem; }
.stay-prices > .stay-pricebox { overflow: hidden; }
.stay-pricelist { list-style: none; display: grid; gap: .3rem; padding: .2rem 0 .3rem; font-size: 1.02rem; }
.stay-pricelist li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.stay-pricelist li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(122,90,28,.35); transform: translateY(-.3em); }
.stay-pricelist li span:last-child { order: 2; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.stay-pricenote { margin-top: .25rem !important; font-size: .95rem; font-style: italic; }
.stay-head { margin-top: 1.2rem !important; font-style: italic; color: var(--gold-deep); }
.stay-list { list-style: none; display: grid; gap: .45rem; margin-top: .45rem; }
.stay-list li { position: relative; padding-left: 1.15rem; }
.stay-list li::before { content: ''; position: absolute; left: .1rem; top: .78em; width: .5rem; height: 1px; background: var(--gold-deep); }
.tip { max-width: 38rem; margin: 1.6rem auto 0; text-align: center; font-style: italic; color: var(--ink-soft); }
.tip strong { font-weight: 400; color: var(--gold-deep); }

/* ── Rückmeldung: Antwortkarte auf dem Sand ── */
.rsvp-section { padding-left: .75rem; padding-right: .75rem; }
.reply { max-width: 41rem; padding: 3rem 1.35rem 2.4rem; }
.rsvp-note { max-width: 31rem; margin: 1.4rem auto 0; text-align: center; color: var(--ink-soft); }
.rsvp-note strong { color: var(--ink); }
.rsvp-form { margin-top: 2.2rem; display: grid; gap: 1.5rem; }
.row2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .reply { padding: 3.6rem 3rem 3rem; } .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
fieldset { border: 0; min-width: 0; }
fieldset.field { gap: .6rem; }
.field > label, .field > .label, fieldset legend { font-size: 1.08rem; color: var(--ink-soft); }
fieldset legend { margin-bottom: .6rem; }
.field .req { color: var(--gold-deep); }
.field .hint { font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .45rem .15rem .4rem; border-radius: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-ink);
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; font-variant-numeric: lining-nums; /* > 16px verhindert Auto-Zoom auf iPhone */
  color: var(--ink); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A5A1C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .35rem center; padding-right: 1.9rem; text-overflow: ellipsis;
}
.field input::placeholder, .field textarea::placeholder { color: #9A8A74; font-style: italic; opacity: 1; }
.field input:not([type=checkbox]):not([type=radio]):focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); background-color: rgba(217,190,122,.13);
}
.field textarea {                                  /* liniertes Papier */
  min-height: 7.2em; padding: 0 .15rem; resize: vertical; line-height: 1.8em; border-bottom: 0;
  background-image: repeating-linear-gradient(transparent 0, transparent calc(1.8em - 1px), var(--line-ink) calc(1.8em - 1px), var(--line-ink) 1.8em);
  background-attachment: local;
}
.field textarea:focus { box-shadow: none; }
.field.invalid input:not([type=checkbox]):not([type=radio]), .field.invalid select { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.field.invalid .choice span { box-shadow: inset 0 0 0 1px var(--danger); }
.field .err { display: none; font-size: 1.02rem; color: var(--danger); }
.field.invalid .err { display: block; }

/* Auswahl wie auf einer gedruckten Antwortkarte: Kästchen zum Ankreuzen */
.choice-grid { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 519px) { .choice-grid:not(.seg) { grid-template-columns: 1fr; } .choice-grid:not(.seg) .choice span { min-height: 62px; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%;
  min-height: 70px; padding: .7rem .7rem .7rem 2.75rem;
  background: rgba(255,253,248,.55); box-shadow: inset 0 0 0 1px #CDBB9E;
  font-size: 1.16rem; line-height: 1.22; transition: box-shadow .2s, background-color .2s;
}
.choice span small { font-size: .98rem; font-style: italic; color: var(--ink-soft); margin-top: .12rem; }
.choice span::before { content: ''; position: absolute; left: .8rem; top: 50%; width: 21px; height: 21px; margin-top: -11px; background: #FFFDF8; box-shadow: inset 0 0 0 1px #8E7A5E; }
.choice span::after {
  content: ''; position: absolute; left: calc(.8rem + 4px); top: 50%; width: 15px; height: 8px; margin-top: -8px;
  border: solid var(--gold-deep); border-width: 0 0 2.2px 2.2px;
  transform: rotate(-48deg) scale(0); transform-origin: 30% 70%; transition: transform .22s cubic-bezier(.3, 1.7, .5, 1);
}
.choice input:checked + span { background: rgba(217,190,122,.22); box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.choice input:checked + span::after { transform: rotate(-48deg) scale(1); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.choice-grid.seg .choice span { min-height: 54px; padding-top: .45rem; padding-bottom: .45rem; font-size: 1.12rem; }
@media (max-width: 379px) { .choice span { padding-left: 2.4rem; font-size: 1.08rem; } .choice span::before { left: .6rem; } .choice span::after { left: calc(.6rem + 4px); } }
.only-yes[hidden] { display: none; }
.rsvp-form.nested { margin-top: 0; }

/* Personen (Du, Begleitpersonen, Kinder) */
.person-card { display: grid; gap: 1.25rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.person-card[hidden] { display: none; }
.person-head { font-size: 1.3rem; font-style: italic; color: var(--gold-deep); }
.person-name { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); }
.kid-row { grid-template-columns: 1fr; }
@media (min-width: 640px) { .kid-row { grid-template-columns: 1.6fr 1fr; } }
@media (prefers-reduced-motion: no-preference) { .person-card:not([hidden]) { animation: cardIn .35s ease; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Zweiter Hauptgang: erscheint nur bei „Fleisch & Fisch“, Zander ist vorausgewählt */
/* Kinder: Kinder- oder Erwachsenenmenü (Kindermenü vorausgewählt, Erwachsenen-Auswahl erst nach Klick) */
.field.kid-kost { margin-top: -.35rem; }
.field.kid-kost legend { font-size: 1.02rem; font-style: italic; color: var(--ink-soft); }
.field.kid-kost .choice span { min-height: 46px; font-size: 1.05rem; }
.kid-erw { display: grid; gap: 1.25rem; margin-top: -.45rem; padding-left: 1rem; border-left: 1.5px solid rgba(150,113,42,.45); }
.kid-erw[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .kid-erw:not([hidden]) { animation: cardIn .3s ease; } }
.field .hint.inline { font-size: 1rem; }

/* Zustimmung */
.field > label.check, .check { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.08rem; color: var(--ink); line-height: 1.4; }
.check input { flex: none; width: 23px; height: 23px; margin-top: .1rem; accent-color: var(--gold-deep); }
.check a { color: var(--gold-deep); }
.consent-field .check { padding: .8rem .85rem; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.consent-field.invalid .check { box-shadow: inset 0 0 0 1.5px var(--danger); background: rgba(156,47,29,.07); }
.consent-field.invalid .check input { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent-field .err { padding: .35rem .85rem 0; }
.consent-field .err::before, .form-msg.error::before { content: "⚠ "; }
.consent-field.shake .check { animation: shake .4s ease; }
@keyframes shake { 0%,100% { transform: none; } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .consent-field.shake .check { animation: none; } }
.rsvp-form > .btn { width: 100%; min-height: 56px; font-size: 1.22rem; }
@media (min-width: 640px) { .rsvp-form > .btn { width: auto; justify-self: center; padding: 0 3.25rem; } }
.form-msg { text-align: center; font-size: 1.08rem; color: var(--gold-deep); min-height: 1.4em; }
.form-msg.error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript-note { margin-top: 1.5rem; }

/* Fester „Zusagen“-Knopf auf dem Handy */
.sticky-cta {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 150;
  /* versteckt: komplett unter den Bildschirmrand schieben (inkl. iPhone-Home-Balken) und unsichtbar machen */
  transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom))); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s, background-position .7s ease;
}
.sticky-cta.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s ease, opacity .3s ease, visibility 0s, background-position .7s ease; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ==========================================================
   SITZPLAN
   ========================================================== */
.page-hero { padding: calc(var(--nav-h) + 3.25rem) var(--gutter) 2.5rem; text-align: center; }
.page-sub { margin-top: 1.1rem; font-style: italic; color: var(--ink-soft); }
.search-box { max-width: 30rem; margin: 2rem auto 0; position: relative; }
.search-box input {
  width: 100%; min-height: 56px; padding: .7rem 3rem .7rem 1.1rem; border-radius: 0; border: 0; outline: none;
  background: linear-gradient(rgba(255,252,246,.6), rgba(255,252,246,.6)); box-shadow: inset 0 0 0 1px var(--line-ink), var(--shadow-soft);
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search-box input:focus { box-shadow: inset 0 0 0 1.5px var(--gold-deep), var(--shadow-soft); }
.search-box svg { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--gold-deep); fill: none; stroke-width: 1.6; pointer-events: none; }
.search-result { max-width: 30rem; margin: 1rem auto 0; text-align: left; }
.result-card { position: relative; margin-top: .8rem; padding: 1.3rem 1.4rem 1.1rem;
  background: linear-gradient(rgba(255,252,246,.6), rgba(255,252,246,.6)); box-shadow: inset 0 0 0 1px rgba(150,113,42,.5), var(--shadow-soft); }
.result-card .who { font-style: italic; color: var(--gold-deep); }
.result-card .where { font-size: 1.7rem; line-height: 1.2; margin: .05rem 0 .35rem; }
.result-card .mates { font-size: 1.05rem; color: var(--ink-soft); }
.result-card button { margin-top: .5rem; background: none; border: 0; padding: .5rem 0; min-height: 44px; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.result-empty { color: var(--ink-soft); text-align: center; padding: .5rem; }

.tables { max-width: 1100px; margin: 0 auto; padding: 1rem var(--gutter) 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .tables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .tables { grid-template-columns: repeat(3, 1fr); } }
.table-card { padding: 1.5rem 1rem 1.2rem; background: linear-gradient(rgba(255,252,246,.5), rgba(255,252,246,.5)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); transition: box-shadow .3s; }
.table-card.hit { box-shadow: inset 0 0 0 1.5px var(--gold-deep), 0 0 0 4px rgba(217,190,122,.35), var(--shadow-soft); }
.table-card h2 { text-align: center; font-weight: 400; font-size: 1.05rem; font-style: italic; color: var(--gold-deep); }
.table-card h2 strong { display: block; font-style: normal; font-weight: 400; font-size: 1.55rem; line-height: 1.2; color: var(--ink); }
.table-card svg { display: block; width: 100%; max-width: 320px; height: auto; margin: .5rem auto 0; overflow: visible; }
.tbl-circle { fill: #FBF6EC; stroke: var(--gold); stroke-width: 1; }
.tbl-num { font-family: var(--serif); font-size: 17px; fill: var(--gold-deep); text-anchor: middle; dominant-baseline: central; }
.tbl-sub { font-family: var(--serif); font-style: italic; font-size: 11px; fill: var(--ink-soft); text-anchor: middle; dominant-baseline: central; }
.seat circle { fill: #FBF6EC; stroke: #CDBB9E; stroke-width: 1; transition: fill .25s, stroke .25s; }
.seat text { font-family: var(--serif); font-size: 11.5px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.seat.hit circle { fill: #D9BE7A; stroke: var(--gold-deep); stroke-width: 1.5; }
.guest-list { list-style: none; columns: 2; column-gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.guest-list li { padding: .1rem 0; break-inside: avoid; }
.guest-list li.hit { color: var(--gold-deep); font-weight: 500; }
.seating-closed { max-width: 30rem; margin: 0 auto 4rem; padding: 0 var(--gutter); text-align: center; color: var(--ink-soft); }
.seating-closed.big { font-size: 1.4rem; color: var(--ink); margin-bottom: 1.5rem; }

/* ==========================================================
   DANKE, 404 & RECHTLICHES
   ========================================================== */
.center-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 2.5rem .9rem; }
.thanks-card { width: 100%; max-width: 31rem; padding: 3.2rem 1.5rem 2.6rem; text-align: center; }
.thanks-card > img { width: 78px; height: auto; margin: 0 auto 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .thanks-card { animation: cardDown .9s cubic-bezier(.2, .8, .2, 1) both; }
  .thanks-card > img { animation: stamp .7s cubic-bezier(.3, 1.5, .5, 1) .55s both; }
}
@keyframes cardDown { from { opacity: 0; transform: translateY(-26px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
.center-page h1 { font-weight: 400; font-size: clamp(2.1rem, 9vw, 2.8rem); line-height: 1.12; }
.center-page h1::after { content: ''; display: block; width: 58px; height: 1px; margin: 1.05rem auto 1.2rem; background: linear-gradient(90deg, #8A6820, #CDAE62 50%, #8A6820); }
.center-page .msg { font-size: 1.3rem; line-height: 1.38; max-width: 25rem; margin: 0 auto; }
.center-page .sub { margin: .8rem auto 0; color: var(--ink-soft); max-width: 25rem; }
.center-page .sub a { color: var(--gold-deep); }
.center-page .btn-row { margin: 2rem auto 0; max-width: 24rem; flex-direction: column; }
.center-page .btn-row .btn { flex: none; width: 100%; }
.after-note { margin-top: 2rem !important; font-size: 1rem; font-style: italic; }

.legal { max-width: 44rem; margin: 0 auto; padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.legal h1 { font-weight: 400; font-size: clamp(2rem, 8vw, 2.7rem); line-height: 1.15; margin-bottom: 1.75rem; color: var(--gold); }
.legal h2 { font-weight: 500; font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 .5rem; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal p, .legal li { color: #46372A; }
.legal p + p { margin-top: .75rem; }
.legal ul { padding-left: 1.2rem; margin-top: .5rem; }
.legal a { color: var(--gold-deep); }
.legal-toc { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: .5rem; }
.legal-toc a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
@media (min-width: 640px) { .legal-toc { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.legal-date { margin-top: 2rem; font-size: 1rem !important; font-style: italic; color: var(--ink-soft) !important; }
.nav-back { text-decoration: none; }
.back-row { margin-top: 2rem; }

/* ── Schrift erscheint im Papier ──
   Wie das Monogramm im Vorbild-Video, nur rückwärts: Die Schrift taucht in weichen, unregelmäßigen Flecken auf,
   oben etwas früher als unten. Die Maske ist ein Bild mit 40 Stufen (8 × 5, assets/img/erscheinen-1.webp);
   assets/js/main.js wählt die Stufe: auf der Karte nach Zeit (beim Aufklappen), darunter gekoppelt ans Scrollen.
   Die Klassen setzt nur das Skript – ohne Skript, bei „Bewegung reduzieren“ oder wenn das Maskenbild
   nicht lädt, ist einfach alles sofort zu sehen. */
.es-0 { opacity: 0 !important; }
.es {
  -webkit-mask-image: url('/assets/img/erscheinen-1.webp'); mask-image: url('/assets/img/erscheinen-1.webp');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--es-s) * 8) calc(var(--es-s) * 5); mask-size: calc(var(--es-s) * 8) calc(var(--es-s) * 5);
  -webkit-mask-position: calc(var(--es-s) * var(--es-c) * -1 - var(--es-x)) calc(var(--es-s) * var(--es-r) * -1 - var(--es-y));
  mask-position: calc(var(--es-s) * var(--es-c) * -1 - var(--es-x)) calc(var(--es-s) * var(--es-r) * -1 - var(--es-y));
  -webkit-mask-clip: no-clip; mask-clip: no-clip;
}
@media print { .es, .es-0 { opacity: 1 !important; -webkit-mask-image: none !important; mask-image: none !important; } }
/* „Beispielbilder ansehen“ (Brautjungfern/Groomsmen): Tippfläche mind. 44 px hoch */
.dc-hint a { display: inline-flex; align-items: center; min-height: 44px; }

/* Antippen am Handy: kein Doppeltipp-Zoom, Tippen löst sofort aus */
.envelope, .dc-hint a, .dc-open, summary, .nav-toggle, #soundBtn { touch-action: manipulation; }
