@font-face {
  font-family: "DM Serif Display";
  src: url("dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("dm-serif-display-kursiv-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("jost-variabel-latin.woff2") format("woff2");
  font-weight: 100 900; /* variable Datei: echte Achse 100–900 (mit fontTools geprüft) */
  font-style: normal;
  font-display: swap;
}

:root {
  --elfenbein: #F6F1E7;
  --tinte: #2B2622;
  --text: #3D352E;
  --champagner: #A88A5C;       /* Deko: "&", Linien, Unterstreichungen */
  --champagner-text: #7A5F37;  /* kleine Schrift auf Elfenbein (Kontrast >= 4.5:1) */
  --gedaempft: #6B5F52;
  --linie: #E2D9C8;
  --kino: #1F1B18;
  --warnung: #B3261E;
  --champagner-hauch: rgba(168, 138, 92, 0.13); /* Hintergrund Hochzeitstag im Programm */

  /* Maße & Typografie der CTAs */
  --cta-hoehe: 3.5rem;                             /* 56 px Tap-Höhe */
  --cta-sperrung: 0.16em;                          /* wie .nummer / .mehr */

  /* abgeleitet aus Champagner #A88A5C */
  --passepartout-dunkel: rgba(168, 138, 92, 0.75); /* Innenrahmen auf Tinte (Deko) */
  --puls-linie: rgba(168, 138, 92, 0.9);           /* ruhende Goldkante + Pulslinie */
  --puls-hof: rgba(168, 138, 92, 0.18);            /* Hauch zwischen Knopf und Linie */
  --puls-dauer: 2.6s;                              /* Rhythmus wie „Mit Ton ansehen" */
  --puls-kurve: cubic-bezier(0.22, 0.61, 0.36, 1); /* löst sich schnell, verklingt weich */

  /* abgeleitet aus Elfenbein #F6F1E7 (Ton-Knopf über dem Video) */
  --elfenbein-glas: rgba(246, 241, 231, 0.94);
  --ton-puls: rgba(246, 241, 231, 0.45);
  --ton-puls-aus: rgba(246, 241, 231, 0);

  /* abgeleitet aus Tinte #2B2622 */
  --leiste-schatten: rgba(43, 38, 34, 0.38);

  /* Strich-Icons als Alphamasken („black" = nur Alphakanal, sichtbar ist background-color) */
  --icon-haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.2s-6.8-6.3-6.8-11.4a6.8 6.8 0 0 1 13.6 0c0 5.1-6.8 11.4-6.8 11.4z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E");
  --icon-kalender: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='1'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4M12 13.1l1.7 1.7-1.7 1.7-1.7-1.7z'/%3E%3C/svg%3E");
  --icon-raute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 5.5l6.5 6.5-6.5 6.5L5.5 12z'/%3E%3C/svg%3E");
  --icon-extern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5l7-7M5 3.5h5.5V9'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M7 2.5v9M2.5 7h9'/%3E%3C/svg%3E");
  --icon-kasten-haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E");
  --icon-entfernen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");

  /* Antwort-Formular */
  --feld-grund: rgba(255, 255, 255, 0.55);   /* Hauch Papierweiß auf Elfenbein: Feld als Fläche erkennbar */
  --feld-linie: var(--champagner-text);      /* Unterkante 5,3:1 (Eingabefelder brauchen ≥ 3:1) */
  --fehler: var(--warnung);                  /* #B3261E auf Elfenbein 5,9:1 */
  --feld-hoehe: 3rem;                        /* 48 px Tippfläche */

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fett: 600; /* Datumsangaben, <strong> */
  --spalte: 30rem;
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--elfenbein);
  color: var(--tinte);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

strong { font-weight: var(--fett); }

/* Betonung: echte Serif-Kursive (DM Serif Display Italic, selbst gehostet) */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

svg { width: 1.25em; height: 1.25em; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg path[fill="none"] { fill: none; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--champagner); outline-offset: 3px; }

/* ---------- Entwurf-Schild ---------- */
.entwurf {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 8px;
  z-index: 50;
  margin: 0;
  padding: 4px 10px;
  background: var(--warnung);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* ---------- Video ---------- */
.video-bereich { background: var(--kino); }

.video-rahmen {
  position: relative;
  max-width: 35rem;
  margin: 0 auto;
}

.video-rahmen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 896;
  background: var(--kino);
  object-fit: cover;
}

.ton-start {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem 0.5rem calc(1.5rem + 0.14em);
  border: 0;
  border-radius: 2px;
  background: var(--elfenbein-glas);
  color: var(--tinte);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  animation: atmen var(--puls-dauer) ease-in-out infinite;
  transition: background-color 0.2s ease;
}

@keyframes atmen {
  0%, 100% { box-shadow: 0 0 0 0 var(--ton-puls); }
  50% { box-shadow: 0 0 0 10px var(--ton-puls-aus); }
}

.ton-start::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  border: 1px solid var(--champagner);
  border-radius: 1px;
  pointer-events: none;
}

.ton-start svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--champagner-text);
  stroke-width: 1.6;
}

.ton-start:focus-visible {
  outline: 2px solid var(--elfenbein);          /* auf dunklem Video sichtbar */
  outline-offset: 3px;
  animation: none;
}

.ton-start:active { background: var(--elfenbein); }

.steuerung {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.rund {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 27, 24, 0.55);
  color: var(--elfenbein);
}

.rund svg { width: 20px; height: 20px; }

#knopfTon .aus, #knopfTon.stumm .an { display: none; }
#knopfTon.stumm .aus { display: block; }
#knopfPause .play, #knopfPause.pausiert .pause { display: none; }
#knopfPause.pausiert .play { display: block; }

.sprache {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 0.75rem;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  border-radius: 2px;
  background: rgba(31, 27, 24, 0.45);
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.sprache button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: inherit;
  letter-spacing: inherit;
}

.sprache button[aria-pressed="true"] { color: var(--elfenbein); font-weight: 500; }

/* ---------- Titel ---------- */
.titel {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.anrede {
  margin: 0 0 0.25rem;
  color: var(--gedaempft);
  font-size: 1.1875rem;
}

.hook {
  margin: 0.35rem 0 0.6rem;
  color: var(--champagner-text);
  font-family: var(--serif);
  font-size: clamp(1.875rem, 10vw, 2.5rem); /* Versalien: bei 320–414 px einzeilig (DE + ES gemessen) */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.einleitung {
  max-width: 23rem;
  margin: 0 auto 2rem;
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.55;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

h1 span { display: block; }
h1 .und { margin: 0.05em 0; color: var(--champagner); font-size: 0.8em; }

.datum {
  margin: 1.5rem 0 0.2rem;
  font-size: 1.25rem;
  font-weight: var(--fett);
  letter-spacing: 0.2em;
}

.ort {
  margin: 0;
  color: var(--gedaempft);
  font-size: 1.25rem;
}

/* hidden-Attribut (per JS) blendet den Countdown aus, falls kein Text */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--gedaempft);
  font-size: 1.1875rem;
}

.countdown svg { width: 1.3em; height: 1.3em; color: var(--champagner); stroke-width: 1.6; }

.mehr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.mehr svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.4; }

/* ---------- Info-Abschnitte ---------- */
.abschnitte {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 0 1.5rem;
  scroll-margin-top: 1rem;
}

.abschnitt {
  padding: 2.25rem 0;
  border-top: 1px solid var(--linie);
}

/* .zwischentitel = Zwischenzeile (h3) in den Teilen eines Abschnitts: gleiche Schrift wie die Nummer */
.nummer,
.zwischentitel {
  margin: 0 0 0.5rem;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.abschnitt h2,
.zusage h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.125rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.abschnitt .text {
  margin: 0;
  color: var(--text);
}

/* Bild unter dem Text (bild in inhalte.js, z. B. Outfit-Collage im Dresscode) */
.abschnitt-bild {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  margin: 1.25rem auto;
  border: 1px solid var(--linie);
}

/* Teile (teile in inhalte.js): Zwischenzeile mit Luft nach oben, Absatz direkt darunter */
.abschnitt .zwischentitel { margin: 1.25rem 0 0.25rem; }

/* hervorgehobener Satz zwischen den Teilen („Weiß bleibt bitte der Braut vorbehalten.") */
.abschnitt .text.hervorhebung {
  margin-top: 1.25rem;
  color: var(--champagner-text);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.ablauf {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ablauf li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  column-gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linie);
}

.ablauf li:last-child { border-bottom: 0; }

.ablauf time {
  color: var(--champagner-text);
  font-weight: var(--fett);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Hochzeitstag (highlight: true in inhalte.js) */
.ablauf li.highlight {
  margin: 0 -0.75rem;
  padding: 0.9rem 0.75rem;
  background: var(--champagner-hauch);
  box-shadow: inset 3px 0 0 var(--champagner);
  border-bottom-color: transparent;
}

.ablauf li.highlight time { color: var(--tinte); }
.ablauf li.highlight span { color: var(--tinte); }

.links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--linie);
}

.links a {
  --link-icon: var(--icon-raute);               /* Standard (typ „link") */
  --link-zeichen: var(--icon-extern);           /* ↗ öffnet außerhalb */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;                          /* 52 px, ganze Zeile tippbar */
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--linie);
  color: var(--tinte);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}

.links a:last-child { border-bottom: 0; }

.links a[href*="/maps"],
.links a[href*="maps.app.goo.gl"] { --link-icon: var(--icon-route); }

.links a[href$=".ics"] {
  --link-icon: var(--icon-kalender);
  --link-zeichen: var(--icon-plus);             /* + = zum Kalender hinzufügen */
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .links a::before {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--champagner-text);   /* 5,3:1 auf Elfenbein */
    -webkit-mask: var(--link-icon) center / contain no-repeat;
    mask: var(--link-icon) center / contain no-repeat;
  }

  .links a::after {
    content: "";
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    margin-left: auto;
    background-color: var(--champagner);        /* leiser Zusatz, Text trägt die Info */
    -webkit-mask: var(--link-zeichen) center / contain no-repeat;
    mask: var(--link-zeichen) center / contain no-repeat;
    transition: transform 0.2s ease;
  }
}

.links a:focus-visible {
  outline: 2px solid var(--champagner-text);
  outline-offset: 2px;
}

.links a:active { background: var(--champagner-hauch); }

/* „Alle Infos": nur der Fokusrahmen wird auf Elfenbein lesbar (5,3:1) */
.mehr:focus-visible { outline-color: var(--champagner-text); }

/* ---------- Zusage ---------- */
.zusage {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--linie);
  text-align: center;
}

.zusage p {
  margin: 0 0 1.75rem;
  color: var(--text);
}

.knopf {
  --knopf-grund: var(--tinte);                  /* Fläche + Maske des Passepartouts */
  --knopf-rahmen: var(--passepartout-dunkel);
  position: relative;                           /* Bezug für den Puls (::after) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 20rem;
  min-height: var(--cta-hoehe);
  margin: 0 auto 1rem;                          /* 16 px: Platz für den 12-px-Puls */
  /* links + Sperrung: gleicht die Sperrung nach dem letzten Buchstaben aus → optisch mittig */
  padding: 0.75rem 1.25rem 0.75rem calc(1.25rem + var(--cta-sperrung));
  border: 1px solid var(--tinte);
  border-radius: 2px;
  background: var(--knopf-grund);
  color: var(--elfenbein);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--cta-sperrung);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Primär: Passepartout (inset) + ruhende Goldkante (außen) */
.knopf:not(.zweit) {
  margin-top: 1.25rem;                          /* Puls-Luft, falls #zusageText fehlt (kollabiert sonst mit 1.75rem) */
  box-shadow:
    inset 0 0 0 4px var(--knopf-grund),
    inset 0 0 0 5px var(--knopf-rahmen),
    0 0 0 1px var(--puls-linie);
}

/* Häkchen = „Zusage" (gleiches Zeichen wie in der Leiste) */
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .knopf:not(.zweit)::before {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--champagner);        /* 4,6:1 auf Tinte */
    -webkit-mask: var(--icon-haken) center / contain no-repeat;
    mask: var(--icon-haken) center / contain no-repeat;
  }
}

/* Puls: 1px-Linie löst sich von der Goldkante, läuft 12 px nach außen, verklingt */
.knopf:not(.zweit)::after {
  content: "";
  position: absolute;
  top: -2px;                                    /* = Lage der ruhenden Goldkante */
  right: -2px;
  bottom: -2px;
  left: -2px;
  border: 1px solid var(--puls-linie);
  border-radius: 2px;
  opacity: 0;                                   /* ohne Animation unsichtbar */
  pointer-events: none;
  animation: zusage-puls var(--puls-dauer) var(--puls-kurve) infinite;
}

/*
 * Nur Lage (top/right/bottom/left), Deckkraft und ein inset-Hof des
 * Pseudo-Elements werden animiert – kein transform, kein box-shadow-Spread
 * (bleibt eckig), keine deckende Maske (Grund bleibt durchsichtig).
 * Hof-Breite = Abstand der Linie → füllt genau bis zur Knopfkante.
 */
@keyframes zusage-puls {
  0% {
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    opacity: 1;
    box-shadow: inset 0 0 0 0 var(--puls-hof);
  }
  20% { opacity: 0.8; }
  65%, 100% {
    top: -13px; right: -13px; bottom: -13px; left: -13px;
    opacity: 0;
    box-shadow: inset 0 0 0 11px var(--puls-hof);
  }
}

/* Erst atmen, wenn der Gast hinsieht (.einblenden/.da aus app.js;
   ohne IntersectionObserver oder bei Reduced Motion greift das nie) */
.zusage.einblenden:not(.da) .knopf:not(.zweit)::after { animation-play-state: paused; }

/* Tastatur-Fokus: Puls ruht, damit der Fokusrahmen klar bleibt */
.knopf:not(.zweit):focus-visible::after { animation: none; }

/* Sekundär: gleich groß, nur Bronze-Haarlinie (5,3:1), kein Icon, kein Puls */
.knopf.zweit {
  border-color: var(--champagner-text);
  background: transparent;
  color: var(--tinte);
  box-shadow: none;
}

.knopf:focus-visible {
  outline: 2px solid var(--champagner-text);    /* 5,3:1 statt 2,89:1 auf Elfenbein */
  outline-offset: 3px;
}

.knopf:active { transform: translateY(1px); }
.knopf:not(.zweit):active { --knopf-grund: var(--kino); border-color: var(--kino); }
.knopf.zweit:active { background: var(--champagner-hauch); }

/* ---------- Abschluss ---------- */
.abschluss {
  padding: 2.5rem 1.5rem 7rem;
  text-align: center;
  color: var(--gedaempft);
}

.siegel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--champagner);
  border-radius: 50%;
  color: var(--champagner);
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.abschluss p { margin: 0; }

.abschluss .abschluss-satz {
  max-width: 21rem;
  margin: 0 auto;
  color: var(--tinte);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
}

.abschluss .ps {
  max-width: 23rem;
  margin: 1.75rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ---------- Feste Zusage-Leiste ---------- */
.zusage-leiste {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  max-width: 28rem;
  min-height: var(--cta-hoehe);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.5rem calc(1.25rem + var(--cta-sperrung));
  border: 1px solid var(--tinte);
  border-radius: 2px;
  background: var(--tinte);
  color: var(--elfenbein);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--cta-sperrung);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px var(--leiste-schatten), 0 2px 6px -3px var(--leiste-schatten);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.4s ease-out, background-color 0.2s ease;
}

.zusage-leiste.sichtbar { transform: none; }

/* Passepartout wie am Zusage-Knopf */
.zusage-leiste::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  border: 1px solid var(--passepartout-dunkel);
  border-radius: 1px;
  pointer-events: none;
}

.zusage-leiste svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--champagner);                     /* 4,6:1 auf Tinte */
  stroke-width: 1.6;
}

.zusage-leiste:focus-visible {
  outline: 2px solid var(--champagner-text);
  outline-offset: 3px;
}

.zusage-leiste:active { background: var(--kino); }

/* ---------- Hover nur mit Maus (kein „klebender" Hover am Handy) ---------- */
@media (hover: hover) {
  .knopf:not(.zweit):hover {
    --knopf-grund: var(--kino);
    --knopf-rahmen: var(--champagner);
    border-color: var(--kino);
  }
  .knopf:not(.zweit):hover::after { animation: none; }
  .knopf.zweit:hover { background: var(--champagner-hauch); }
  .zusage-leiste:hover { background: var(--kino); }
  .ton-start:hover { background: var(--elfenbein); }
  .links a:hover { background: var(--champagner-hauch); }
  .links a:hover::after { transform: translate(2px, -2px); }   /* ↗ weist nach außen */
  .links a[href$=".ics"]:hover::after { transform: none; }     /* + bleibt ruhig */
}

/* ---------- Hoher Kontrast (Windows) ---------- */
@media (forced-colors: active) {
  .knopf:not(.zweit)::after { display: none; }  /* Puls-Linie würde als Systemfarbe wandern */
  .knopf:not(.zweit) { border-width: 2px; }     /* Hierarchie bleibt ohne Flächenfarbe erkennbar */
  .ton-start { border: 1px solid; }
  .knopf:not(.zweit)::before,
  .links a::before,
  .links a::after {
    forced-color-adjust: none;
    background-color: LinkText;
  }
}

/* ---------- Einblenden ---------- */
.einblenden {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.einblenden.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .einblenden { opacity: 1; transform: none; transition: none; }
  /* Puls aus – die ruhende Goldkante bleibt als Gestaltungselement */
  .knopf:not(.zweit)::after,
  .ton-start { animation: none; }
  .zusage-leiste,
  .knopf,
  .ton-start,
  .links a,
  .links a::after { transition: none; }
  .knopf:active { transform: none; }
  .links a:hover::after { transform: none; }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 48rem) {
  .titel { padding-top: 3.5rem; }
  .video-rahmen video { max-height: 88vh; object-fit: contain; }
}

/* ---------- Ja / Nein ---------- */
.antwort { text-align: left; }

.wahl .knopf { cursor: pointer; }

/* nach der Wahl: Puls aus; gewählter Knopf gefüllt, der andere als Haarlinie */
.wahl.entschieden .knopf::after { animation: none; opacity: 0; }

.wahl.entschieden .knopf[aria-pressed="false"] {
  --knopf-grund: transparent;
  border-color: var(--champagner-text);
  background: transparent;
  color: var(--tinte);
  box-shadow: none;
}

.wahl.entschieden .knopf[aria-pressed="false"]::before { content: none; }

.wahl.entschieden .knopf.zweit[aria-pressed="true"] {
  --knopf-grund: var(--tinte);
  border-color: var(--tinte);
  background: var(--tinte);
  color: var(--elfenbein);
  box-shadow:
    inset 0 0 0 4px var(--knopf-grund),
    inset 0 0 0 5px var(--knopf-rahmen),
    0 0 0 1px var(--puls-linie);
}

/* ---------- Felder ---------- */
.antwort-felder {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.antwort .gruppe {
  min-width: 0;                               /* fieldset schrumpft sonst nicht unter seinen Inhalt */
  margin: 0 0 2rem;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--linie);
}

.antwort .gruppe > legend {
  float: left;                                /* legt die Legende in den Fluss (kein Rahmen-Einschnitt) */
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tinte);
}

.antwort .gruppe > legend + * { clear: both; }

.antwort .flug {
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.antwort .flug > legend {
  float: left;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.antwort .flug > legend + * { clear: both; }

.antwort p.hinweis {
  margin: 0 0 0.75rem;
  color: var(--gedaempft);
  font-size: 1rem;
  line-height: 1.5;
}

.antwort .feld { margin: 0 0 1rem; }

.antwort label:not(.haken) {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.antwort input[type="text"],
.antwort input[type="date"],
.antwort input[type="time"],
.antwort textarea {
  display: block;
  width: 100%;
  min-height: var(--feld-hoehe);
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--feld-linie);
  border-radius: 2px 2px 0 0;
  background: var(--feld-grund);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;                       /* ≥ 16 px: iOS zoomt nicht hinein */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.antwort input[type="date"],
.antwort input[type="time"] { min-width: 0; }

.antwort textarea { min-height: 6rem; resize: vertical; }

.antwort input:focus-visible,
.antwort textarea:focus-visible {
  outline: 2px solid var(--champagner-text);
  outline-offset: 2px;
  border-bottom-color: var(--tinte);
}

/* gleiche Spezifität wie die Feld-Regel oben, steht danach → gewinnt */
.antwort input[aria-invalid="true"],
.antwort textarea[aria-invalid="true"] {
  border-bottom: 2px solid var(--fehler);
}

.antwort p.fehler {
  margin: 0.35rem 0 0;
  color: var(--fehler);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.antwort p.fehler.sammel {
  margin: 0 0 1rem;
  text-align: center;
}

/* Datum + Uhrzeit nebeneinander, wenn Platz ist (ab ca. 340 px Spaltenbreite) */
.antwort .reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  column-gap: 0.75rem;
}

/* ---------- Personen ---------- */
.personen {
  margin: 0;
  padding: 0;
  list-style: none;
}

.personen li { margin: 0 0 0.85rem; }

.personen .person-zeile {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.personen .person-zeile input { flex: 1; }

.entfernen {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--feld-hoehe);
  min-height: var(--feld-hoehe);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--champagner-text);
}

.entfernen::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask: var(--icon-entfernen) center / contain no-repeat;
  mask: var(--icon-entfernen) center / contain no-repeat;
}

.entfernen:focus-visible { outline: 2px solid var(--champagner-text); outline-offset: 2px; }

.plus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
  border: 0;
  background: none;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plus::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
}

.plus:focus-visible { outline: 2px solid var(--champagner-text); outline-offset: 2px; }

/* ---------- Häkchen (eigenes span statt Pseudo-Element an der Checkbox: Firefox-sicher) ---------- */
.haken {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--feld-hoehe);
  padding: 0.35rem 0;
  color: var(--tinte);
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.haken input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.haken .kasten {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--champagner-text);
  border-radius: 2px;
  background: var(--feld-grund);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.haken .kasten::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--elfenbein);
  -webkit-mask: var(--icon-kasten-haken) center / contain no-repeat;
  mask: var(--icon-kasten-haken) center / contain no-repeat;
  opacity: 0;
}

.haken input:checked + .kasten {
  border-color: var(--tinte);
  background: var(--tinte);
}

.haken input:checked + .kasten::after { opacity: 1; }

.haken input:focus-visible + .kasten {
  outline: 2px solid var(--champagner-text);
  outline-offset: 3px;
}

/* ---------- Senden ---------- */
.antwort .knopf.senden { margin-top: 0.5rem; }
.antwort .knopf.senden::before,
.antwort .knopf.senden::after { content: none; }

/* während des Sendens gesperrt (js/formular.js setzt disabled) */
.antwort .knopf.senden:disabled { opacity: 0.6; }

/* ---------- Hotel-Links unter den Hotel-Häkchen (js/formular.js füllt sie aus INHALTE.hotels) ---------- */
.hotel-links {
  margin: -0.2rem 0 0.4rem;
  padding-left: 2.35rem;   /* Kasten 1,5rem + Abstand 0,85rem: bündig mit dem Text des Häkchens */
}

.antwort .hotel-links p {
  margin: 0;
  padding: 0.2rem 0;
  color: var(--gedaempft);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;   /* lange Hotelnamen brechen um (320 px) */
}

/* Link wie die Textlinks der Einladung (.links a): Tinte, 500; dazu Champagner-Unterstreichung, weil er im Satz steht */
.hotel-links a {
  color: var(--tinte);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--champagner);
  text-underline-offset: 0.3em;
  -webkit-tap-highlight-color: transparent;
}

/* Eckdaten unter dem Hotel-Link (info in inhalte.js) */
.hotel-links .hotel-info {
  display: block;
  color: var(--gedaempft);
  font-size: 0.875rem;
  line-height: 1.45;
}

.hotel-links a:focus-visible { outline: 2px solid var(--champagner-text); outline-offset: 2px; }
.hotel-links a:active { background: var(--champagner-hauch); }

@media (hover: hover) {
  .hotel-links a:hover { background: var(--champagner-hauch); }
}

.antwort p.datenschutz {
  max-width: 20rem;
  margin: 0.25rem auto 0;
  color: var(--gedaempft);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Danke ---------- */
.danke { padding: 0.5rem 0 0; outline: none; }

.danke-siegel svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.6;
}

.danke h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.danke-zusammenfassung {
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem 1.25rem 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 2px;
  background: var(--feld-grund);
  text-align: left;
}

.zusage .danke-zusammenfassung p.danke-label {
  margin: 0 0 0.5rem;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.danke-zusammenfassung dl { margin: 0; }

.danke-zusammenfassung dt {
  margin: 0;
  color: var(--gedaempft);
  font-size: 0.9375rem;
}

.danke-zusammenfassung dd {
  margin: 0 0 0.75rem;
  color: var(--tinte);
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.link-knopf {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 0;
  background: none;
  color: var(--champagner-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--champagner);
}

.link-knopf:focus-visible { outline: 2px solid var(--champagner-text); outline-offset: 2px; }

@media (hover: hover) {
  .entfernen:hover,
  .plus:hover,
  .link-knopf:hover { background: var(--champagner-hauch); }
  .haken:hover .kasten { border-color: var(--tinte); }
}

@media (forced-colors: active) {
  .haken .kasten::after,
  .entfernen::before,
  .plus::before { forced-color-adjust: none; background-color: CanvasText; }
  .haken input:checked + .kasten { background: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  .haken .kasten { transition: none; }
}
