/* Gestaltung 1:1 nach baufinanz-dueren.de (WordPress/Elementor-Kit):
   Farben, Schrift (Raleway, lokal gehostet), Kopf, Fuß, Buttons und Umbruchpunkte
   1600 / 1300 / 1024 / 880 / 767 px wie auf der Hauptseite. */

@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/raleway-400.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/raleway-500.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/raleway-600.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/raleway-700.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/raleway-800.woff2') format('woff2'); }

:root {
  /* globale Farben der Hauptseite */
  --primary: #1A3569;     /* Dunkelblau: Buttons, Überschriften */
  --secondary: #3C59AD;   /* Blau: Icons, Kopf beim Scrollen, Menü */
  --text: #191919;
  --muted: #7C829A;       /* Grau-Blau: Linien, Kleingedrucktes */
  --light: #F0F2F9;       /* Hellblau-Grau: Kästen */
  --orange: #f0a63a;      /* Gelb-Orange: Pill „Die Teilnahme … ist kostenlos.“ (wie „Beratung buchen“ in den Mails) */
  --orange-text: #1a1206; /* dunkle Schrift auf Orange (gut lesbar) */
  /* Farben des Infoabend-Plakats (oberer Abschnitt) */
  --poster-blue: #323D8D; /* Logo-Blau */
  --navy: #1C2350;
  --gold: #D9B56C;
  --navy-label: #C9CEEA;
  --white: #FFFFFF;
  --font: 'Raleway', Sans-serif;
  --pad-x: 80px;          /* seitlicher Rand wie Hauptseite */
  --radius: 10px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Seitengrund = Logo-Blau des oberen Abschnitts: so ist auch der Bereich der iPhone-Notch oben blau
   (Safari färbt ihn nach dem Seitenhintergrund). Der eigentliche Inhalt ist weiß hinterlegt. */
html { scroll-behavior: smooth; scroll-padding-top: 16px; background: var(--white); }
body { margin: 0; font-family: var(--font); font-size: 18px; font-weight: 400; line-height: 1.5em; color: var(--text); background: var(--white); }
/* Handy: Hintergrund (und damit die Browser-Leiste oben) nur blau, solange der blaue Kopfbereich oben ist – siehe topbar.js */
@media (max-width: 767px) { html.top-blue, html.top-blue body { background: var(--poster-blue); } }
main, .site-footer { background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0 0 .5em; }
h1 { color: var(--white); font-size: 60px; font-weight: 600; line-height: 1em; letter-spacing: -.04em; }
h2 { color: var(--primary); font-size: 52px; font-weight: 400; line-height: 1.3em; letter-spacing: -.04em; }
h2 strong { font-weight: 600; }
h3 { color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1.4em; letter-spacing: -.04em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.narrow { max-width: 1200px; } /* derzeit ungenutzt: Anmeldung ist so breit wie Datumsfeld + Siegel (Wunsch Nov. 2026) */

/* Überschrift mit Farbverlauf (wie „.h2-alt-text“ der Hauptseite) */
.h2-alt-text { background: linear-gradient(90deg, #1a3569 0, #6c82c1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }

/* Glas-Pille (wie „.gradient-box“ der Hauptseite) */
.gradient-box { display: inline-block; margin: 0 0 20px; padding: 10px 15px; border-radius: 120px; background: linear-gradient(180deg, rgba(255,255,255,.1) 0, rgba(178,202,239,.1) 100%); color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.5em; }

/* Abschnitts-Etikett auf Weiß */
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 16px; border-radius: 120px; background: var(--light); color: var(--secondary); font-size: 16px; font-weight: 700; }

/* ---------- Buttons (Elementor-Kit der Hauptseite) ---------- */
.button-main { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 27px; border: 0; border-radius: 120px; background: var(--primary); color: var(--white); font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.5em; text-decoration: none; cursor: pointer; transition: .3s; }
.button-main .button-icon { display: inline-flex; line-height: 0; padding: 12px; border-radius: 50px; background: var(--secondary); transition: .3s; }
.button-main .button-icon svg { width: 14px; height: 14px; }
.button-main:hover, .button-main:focus-visible { box-shadow: 0 0 10px #fff; transform: scale(1.05); outline: none; }
.button-main:hover .button-icon { transform: rotate(45deg); }
.button-main .icon-down svg { transform: rotate(135deg); }
.button-main:hover .icon-down { transform: none; }
.button-main:focus-visible { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--secondary); }
.button-main:disabled { opacity: .6; cursor: wait; transform: none; }
.button-secondary { background: var(--secondary); }
.button-secondary .button-icon { background: var(--primary); }

.button-block { width: 100%; padding-top: 18px; padding-bottom: 18px; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 120px; font-family: var(--font); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: .3s; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-outline { border-color: var(--secondary); color: var(--secondary); background: var(--white); }
.btn:hover { transform: scale(1.03); }

/* ---------- Kopf (1:1 Hauptseite) ---------- */
/* Kopf liegt über dem blauen oberen Abschnitt und scrollt mit der Seite nach oben weg */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 555; padding-top: env(safe-area-inset-top); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 10px var(--pad-x) 0; }
.header-logo img { width: 241px; height: auto; }
.header-nav { display: flex; gap: 57px; }
.header-nav a { position: relative; color: var(--white); font-size: 18px; font-weight: 500; line-height: 1.5em; letter-spacing: -.02em; text-decoration: none; }
/* Unterstrich schiebt sich ein (Elementor „underline / slide“) */
.header-nav a::after { content: ''; position: absolute; bottom: 0; left: 100%; width: 10px; height: 3px; background: var(--white); opacity: 0; transition: .3s; }
.header-nav a:hover::after, .header-nav a:focus-visible::after { left: 0; width: 100%; opacity: 1; }
/* Menü-Knopf: bleibt beim Scrollen oben rechts stehen (nur Tablet/Handy); blauer Grund, damit er auch über weißen Abschnitten sichtbar ist */
.menu-toggle { display: none; position: fixed; top: 26px; right: var(--pad-x); z-index: 600; align-items: center; justify-content: center; padding: .25em; border: 1px solid var(--white); border-radius: 50px; background: var(--secondary); color: var(--white); font-size: 22px; cursor: pointer; box-shadow: 0 4px 14px rgba(28,35,80,.3); }
.menu-toggle svg { width: 1em; height: 1em; fill: currentColor; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
/* Klappmenü: blaues Panel von oben – egal, wie weit gescrollt wurde */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; z-index: 590; max-height: 100vh; overflow-y: auto; background: var(--secondary); border-bottom: 2px solid var(--primary); }
.mobile-menu a { display: block; padding: 15px; border-bottom: 1px solid var(--white); color: var(--white); font-size: 16px; font-weight: 500; text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--primary); }
.mobile-menu .mobile-menu-logo { padding: 0 var(--pad-x); }
.mobile-menu .mobile-menu-logo:hover { background: none; }
.mobile-menu-logo img { width: 230px; }
@media (min-width: 1025px) { .mobile-menu { display: none !important; } }

/* ---------- Oberer Abschnitt im Stil des Infoabend-Plakats (Variante A2) ---------- */
.hero { position: relative; overflow: hidden; background: var(--poster-blue); color: var(--white); padding: calc(150px + env(safe-area-inset-top)) 0 172px; font-variant-numeric: lining-nums; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: url('/assets/hero-haus.webp') right bottom / cover no-repeat; }
/* Logo-Blau ins Foto überblenden – Verlauf wie auf dem Plakat */
.hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(50,61,141,1) 0%, rgba(50,61,141,.92) 20%, rgba(50,61,141,.8) 38%, rgba(50,61,141,.42) 65%, rgba(50,61,141,.14) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 920px; margin: 0 0 16px; font-size: 78px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.hero-lead { max-width: 720px; margin: 0 0 20px; font-size: 24px; line-height: 1.4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.button-navy { background: var(--navy); }
.button-navy .button-icon { background: var(--secondary); }
/* Freie Plätze unter dem Untertitel: Navy-Schild, Gold-Zahl, blinkender Punkt („live“).
   Knopf „Jetzt Platz sichern“ entfernt (Wunsch Nov. 2026) – ist das Schild aus, fällt die ganze Zeile weg */
.hero-cta { align-items: center; }
.hero-cta:has(> .seats-badge[hidden]) { display: none; }
.hero-cta:has(> .seats-badge[hidden]) + .pill-gold { margin-top: 0; }
/* gleiche Höhe, Schrift und Innenabstand wie der Knopf (.button-main: 12px oben/unten + 38px Icon = 62px) */
.seats-badge { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 62px; margin: 0; padding: 12px 27px; border-radius: 120px; background: rgba(28,35,80,.55); border: 1px solid rgba(255,255,255,.22); color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.5em; }
.seats-badge[hidden] { display: none; }
.seats-badge strong { color: var(--gold); font-size: 18px; font-weight: 800; }
.seats-badge strong:empty { display: none; }
.seats-badge.full #seats-label::before { content: '– '; } /* „Ausgebucht – Warteliste offen“ */
.live-dot { margin-right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217,181,108,.7); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(217,181,108,.7); } 100% { box-shadow: 0 0 0 10px rgba(217,181,108,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Pill „kostenlos“: Gelb-Orange (Wunsch Nov. 2026, vorher Gold), Navy-Schrift */
.pill-gold { display: inline-block; margin: 20px 0 0; padding: 6px 18px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 16px; font-weight: 700; }

/* Datumsfeld + Siegel: überlappen den blauen Bereich wie auf dem Plakat, beide gleich hoch */
.eckdaten { background: var(--light); padding-bottom: 20px; font-variant-numeric: lining-nums; }
/* --eck-h = gemeinsame Höhe von Datumsfeld und Siegel (natürliche Höhe des Datumsfelds, gemessen je Umbruchpunkt) */
.eckdaten-row { --eck-h: 340px; position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 32px; margin-top: -140px; margin-bottom: 0; }
.date-box { flex: 1; min-height: var(--eck-h); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 36px 48px; border-radius: 28px; background: var(--navy); box-shadow: 0 24px 60px rgba(28,35,80,.28); color: var(--white); }
.date-top { display: flex; flex-direction: column; gap: 8px; }
.weekday { color: var(--navy-label); font-size: 20px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.date { color: var(--gold); font-size: 84px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.date-line { height: 2px; background: rgba(255,255,255,.16); }
.date-details { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.date-item { display: flex; align-items: flex-start; gap: 14px; }
.date-item svg { width: 32px; height: 32px; flex: none; }
.date-strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.3; }
.date-sub { display: block; margin-top: 2px; color: var(--navy-label); font-size: 18px; }
/* Ort klickbar: Auswahl Google Maps / Apple Karten */
.nav-choice { position: relative; }
.nav-choice summary { list-style: none; cursor: pointer; }
.nav-choice summary::-webkit-details-marker { display: none; }
.nav-choice summary:hover .date-strong { text-decoration: underline; text-underline-offset: 4px; }
.nav-choice summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.nav-menu { position: absolute; z-index: 5; top: calc(100% + 10px); left: 0; min-width: 230px; display: flex; flex-direction: column; padding: 8px; border-radius: 14px; background: var(--white); box-shadow: 0 16px 40px rgba(28,35,80,.3); }
.nav-menu-title { padding: 6px 12px; color: var(--muted); font-size: 13px; }
.nav-menu a { padding: 12px; border-radius: 10px; color: var(--navy); font-size: 17px; font-weight: 600; text-decoration: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--light); outline: none; }
/* Siegel: genau so hoch wie das Datumsfeld, Breite folgt dem Seitenverhältnis */
.seal { flex: none; display: block; }
.js-seal .date-box { min-height: 0; } /* mit JavaScript übernimmt das Siegel die echte Höhe */
.seal img { display: block; height: var(--eck-h); width: auto; box-shadow: 0 20px 50px rgba(28,35,80,.3); }

/* ---------- Inhalt ---------- */
.block { padding-top: 90px; padding-bottom: 90px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.two-col.reverse > img { order: 2; }
.photo { border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(26,53,105,.12); }
.portrait { max-height: 640px; width: 100%; object-fit: cover; object-position: top; }
.magazine { max-width: 320px; justify-self: center; }

.venue { background: linear-gradient(118deg, var(--secondary) 19.71%, var(--primary) 77.03%); color: var(--white); padding: 90px 0; }
.venue h2 { color: var(--white); }
.venue-logo { max-width: 420px; justify-self: center; }
.link-arrow { color: var(--white); font-weight: 700; text-underline-offset: 4px; }
.link-arrow::after { content: ' ↗'; }

/* ---------- Anmeldung ---------- */
.signup { background: var(--light); padding: 90px 0; }
.signup h2 { margin-bottom: .3em; }
/* Formular steht direkt unter dem Datumsfeld (Wunsch Nov. 2026) – kein großer Abstand dazwischen */
.eckdaten + .signup { padding-top: 24px; }
.seat-hint { color: var(--secondary); font-weight: 700; }
.seat-hint:empty { display: none; } /* leer, wenn freie Plätze ausgeschaltet */
form { margin-top: 24px; padding: 36px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(26,53,105,.08); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.span2 { grid-column: span 2; }
.grid-street { grid-template-columns: 3fr 1fr; align-items: end; }
.grid-city { grid-template-columns: 1fr 2fr; align-items: end; }
/* dezenter Hinweis „optional“ hinter dem Feldnamen */
.optional { margin-left: 4px; color: #9aa0b4; font-size: 12px; font-weight: 400; }
.char-count { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: 12px; }
.char-count #questions-count { flex: none; }
.address-note { margin: 0; padding: 0 18px 16px; font-size: 13px; line-height: 1.5; }
/* Aufklapper für die (freiwillige) Adresse – ruhige, hellblau hinterlegte Fläche ohne Rahmen */
.address-toggle { margin: 4px 0 16px; border-radius: 12px; background: var(--light); transition: background .3s; }
.address-toggle summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; color: var(--primary); font-size: 16px; cursor: pointer; list-style: none; transition: background .3s; }
.address-toggle summary::-webkit-details-marker { display: none; }
.address-toggle summary strong { font-weight: 700; }
.address-toggle summary .address-text { color: #5a6585; }
.address-toggle summary strong { color: var(--primary); }
.address-toggle summary:hover { background: #e8ecf7; }
.address-toggle summary:focus-visible { outline: 3px solid rgba(60,89,173,.3); outline-offset: 2px; }
.address-plus { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); transition: transform .3s; }
.address-plus::before, .address-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: #fff; }
.address-plus::after { transform: rotate(90deg); transition: transform .3s; }
.address-toggle[open] .address-plus::after { transform: rotate(0); }
.address-toggle[open] summary:hover { background: none; }
.address-toggle .grid { margin: 0; padding: 4px 18px 16px; }
.address-toggle .grid + .grid { padding-top: 0; }
label { display: block; font-size: 16px; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 16px; border: 1px solid #d5daea; border-radius: var(--radius); background: var(--white); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; }
/* Auswahlfeld (Anzahl Plätze) so hoch wie die anderen Felder – auch in Safari/iPhone */
select { -webkit-appearance: none; appearance: none; height: auto; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A3569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(60,89,173,.2); }
input[type=checkbox] { accent-color: var(--secondary); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 600; }
.check input { width: 18px; height: 18px; margin-top: .2em; flex: none; }
.check.small { font-size: 14px; font-weight: 400; line-height: 1.5em; }
fieldset { margin: 20px 0; padding: 16px 18px; border: 1px solid #d5daea; border-radius: var(--radius); }
/* Abgeschaltete Formularteile (Adresse, Fragen vorab): nur eine unsichtbare Hülle, kein Rahmen, falls wieder eingeschaltet */
.form-off { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0 6px; font-size: 16px; font-weight: 700; color: var(--primary); }
.note { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.error { min-height: 1em; color: #b42318; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.result { margin-top: 24px; padding: 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(26,53,105,.08); } /* gleiche Karte wie das Formular */
.result::before { content: ''; display: block; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 26px no-repeat; }
#waitlisted::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2350' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 28px no-repeat; }
.result-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.result-cta { margin-top: 48px; text-align: center; }

/* ---------- Fuß (1:1 Hauptseite) ---------- */
.site-footer { position: relative; background: var(--white); }
/* Verwaltung: kleines Schloss ganz unten rechts, fast unsichtbar (Tippfläche trotzdem 36 px groß) */
.admin-link { position: absolute; right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--muted); opacity: .15; transition: opacity .3s; }
.admin-link svg { width: 14px; height: 14px; }
.admin-link:hover, .admin-link:focus-visible { opacity: .7; }
/* Geheimer Zähler links neben dem Schloss: echte gebuchte Plätze, ohne Beschriftung (nur für Eingeweihte) */
.seat-counter { position: absolute; right: calc(44px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); height: 36px; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; opacity: 1; user-select: none; }
.seat-counter:empty { display: none; }
/* Verwaltung: kleines Schloss ganz unten rechts, fast unsichtbar (Tippfläche trotzdem 36 px groß) */
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 45px var(--pad-x); }
.footer-top { display: flex; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; flex: 1 1 410px; }
.footer-brand img { width: 198px; }
.footer-brand p { margin: 0; font-size: 16px; line-height: 1.5em; }
.footer-links { display: flex; justify-content: space-between; gap: 40px; flex: 0 0 auto; padding-right: 20px; }
.footer-menu { display: flex; flex-direction: column; gap: 10px; align-self: flex-end; padding-bottom: 10px; }
.footer-menu a, .footer-social a { color: var(--text); font-size: 16px; line-height: 1.5em; text-decoration: none; transition: color .3s; }
.footer-menu a:hover, .footer-social a:hover { color: var(--primary); }
.footer-social { list-style: none; margin: 0; padding: 0 0 10px; align-self: flex-end; }
.footer-social li { display: flex; }
.footer-social li + li { margin-top: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; }
.footer-social svg { width: 20px; height: 20px; fill: var(--secondary); transition: fill .3s; }
.footer-social a:hover svg { fill: var(--text); }
.footer-contact { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto; padding: 27px 20px 10px; border-radius: var(--radius); background: var(--light); }
.footer-contact h3 { margin: 0; color: var(--text); }
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.footer-contact li + li { margin-top: 10px; }
.footer-contact svg { width: 22px; height: 22px; flex: none; fill: var(--secondary); }
.footer-contact a { color: var(--text); text-decoration: none; transition: color .3s; }
.footer-contact a:hover { color: var(--secondary); }
.footer-divider { margin: 30px 0; border: 0; border-top: 1px solid var(--muted); }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-bottom, .footer-bottom a { color: var(--muted); font-size: 16px; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 40px; }

/* ---------- Umbruchpunkte wie Hauptseite ---------- */
@media (min-width: 1601px) {
  .footer-brand { flex-basis: 473px; }
  .footer-brand img { width: 331px; }
  .footer-brand p, .footer-menu a, .footer-social a, .footer-contact li { font-size: 18px; }
  .footer-bottom, .footer-legal { gap: 50px; }
  .footer-bottom, .footer-bottom a { font-size: 20px; }
}
@media (max-width: 1300px) {
  :root { --pad-x: 32px; }
  .header-inner { padding-top: 0; }
  .header-logo img { width: 230px; }
  .header-nav { gap: 32px; }
  .header-nav a { font-size: 16px; }
  .hero { padding-top: calc(110px + env(safe-area-inset-top)); }
  .hero h1 { font-size: 66px; }
  .gradient-box { font-size: 16px; }
  .footer-inner { padding: 50px var(--pad-x) 35px; }
  .footer-top { gap: 30px; }
  .footer-brand { flex: 0 0 250px; }
  .footer-links { flex: 1 1 auto; gap: 20px; padding-right: 0; }
  .footer-menu { width: 160px; }
}
@media (max-width: 1024px) {
  body { font-size: 16px; }
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  .button-main { font-size: 16px; }
  .button-main .button-icon { padding: 15px; }
  .seats-badge { min-height: 0; padding: 10px 22px; font-size: 16px; }
  .seats-badge strong { font-size: 16px; }
  .header-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero h1 { font-size: 54px; }
  .hero-lead { font-size: 20px; }
  .hero-photo { width: 75%; }
  .eckdaten-row { --eck-h: 244px; }
  .date-box { padding: 28px 32px; gap: 18px; }
  .date { font-size: 64px; }
  .date-strong { font-size: 20px; }
  .date-sub { font-size: 16px; }
  .block, .venue, .signup { padding-top: 70px; padding-bottom: 70px; }
  .two-col { gap: 40px; }
  .footer-top { gap: 20px; }
  .footer-brand { flex-basis: 200px; }
  .footer-links { gap: 15px; }
  .footer-menu { width: 145px; }
  .footer-contact { width: 230px; }
}
@media (max-width: 880px) {
  :root { --pad-x: 22px; }
  .header-logo img, .mobile-menu-logo img { width: 191px; }
  .menu-toggle { top: 18px; }
  .hero { padding-top: calc(112px + env(safe-area-inset-top)); }
  .eckdaten-row { gap: 20px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse > img { order: 0; }
  .footer-inner { padding: 20px var(--pad-x) 52px; } /* unten Platz für das Verwaltungs-Schloss */
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { flex: none; }
  .footer-brand img { width: 235px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
  .footer-menu, .footer-social { width: 40%; flex-grow: 1; }
  .footer-contact { width: 100%; padding: 20px; gap: 40px; justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-legal { gap: 20px; }
}
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .hero { padding-bottom: 146px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 18px; }
  .pill-gold { font-size: 14px; padding: 6px 14px; }
  /* Foto auf dem Handy unten, Verlauf von oben, damit der Text lesbar bleibt */
  .hero-photo { width: 100%; background-position: 70% bottom; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(50,61,141,1) 0%, rgba(50,61,141,.92) 40%, rgba(50,61,141,.6) 75%, rgba(50,61,141,.3) 100%); }
  .eckdaten-row { --eck-h: 220px; flex-direction: column; align-items: center; margin-top: -120px; }
  .date-box { align-self: stretch; min-height: 0; padding: 24px 22px; }
  .date { font-size: 52px; }
  .date-details { flex-direction: column; gap: 14px; }
  .gradient-box { margin-bottom: 16px; font-size: 14px; }
  /* Siegel klein in der rechten unteren Ecke des Datumsfelds (wie ein Aufkleber), statt allein darunter */
  .eckdaten-row { display: block; }
  .seal { position: absolute; right: calc(var(--pad-x) + 16px); bottom: 18px; }
  .seal img { height: 124px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
  .date-details .date-item:last-child { padding-right: 82px; } /* Platz für das Siegel neben der Adresse */
  .footer-links { flex-direction: column; align-items: center; gap: 30px; }
  .footer-menu, .footer-social { width: 100%; align-self: center; align-items: center; text-align: center; }
  .footer-social li { display: flex; justify-content: center; }
  form { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .grid.grid-street { grid-template-columns: 2fr 1fr; }
  .grid.grid-city { grid-template-columns: 1fr 2fr; }
  .button-main { padding: 12px 22px; }
}

/* Handy kompakt (Wunsch Nov. 2026): das Namensfeld soll schon beim Öffnen der Seite zu sehen sein –
   kleineres Logo, engere Abstände, flacheres Datumsfeld mit dem Siegel oben rechts neben dem Datum */
@media (max-width: 767px) {
  .header-logo img, .mobile-menu-logo img { width: 150px; }
  .hero { padding-top: calc(80px + env(safe-area-inset-top)); padding-bottom: 124px; }
  .hero h1 { margin-bottom: 10px; font-size: 34px; }
  .hero-lead { margin-bottom: 14px; font-size: 16px; }
  .pill-gold { margin-top: 14px; }
  .eckdaten-row { margin-top: -108px; }
  .date-box { padding: 16px 18px 18px; gap: 12px; }
  .date-top { gap: 2px; padding-right: 62px; }
  .weekday { font-size: 14px; }
  .date { font-size: 42px; }
  .date-details { gap: 10px; }
  .date-item { gap: 10px; }
  .date-item svg { width: 24px; height: 24px; }
  .date-strong { font-size: 18px; }
  .date-sub { font-size: 14px; line-height: 1.35; }
  .date-details .date-item:last-child { padding-right: 0; }
  .date-line { display: none; } /* Trennlinie würde unter dem Siegel durchlaufen */
  .seal { top: 14px; bottom: auto; right: calc(var(--pad-x) + 14px); }
  .seal img { height: 92px; }
  .eckdaten { padding-bottom: 8px; }
  .eckdaten + .signup { padding-top: 14px; }
  .signup h2 { margin-bottom: 0; }
  form { margin-top: 10px; padding: 18px; }
}

/* sehr schmale Handys (z. B. 360 px): Datum etwas kleiner, damit es nicht ans Siegel stößt */
@media (max-width: 380px) {
  .date { font-size: 37px; }
}

/* iPhone (viewport-fit=cover): Inhalte im Querformat nicht unter die Notch schieben */
.container, .header-inner, .footer-inner {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

/* Datenschutzhinweise (/datenschutz) */
.legal-page .site-header { position: relative; background: var(--poster-blue); }
.legal { background: var(--white); }
.legal-inner { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { color: var(--primary); font-size: clamp(30px, 5vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 20px; }
.legal h2 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
/* Seiten /absagen und /erinnerung-abbestellen (Links aus der Erinnerungs-Mail) */
form.termin-actions, .termin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.termin-page main { min-height: 100vh; }
.termin .note { margin-top: 32px; }
.legal-box { margin: 16px 0; padding: 16px 20px; border-left: 4px solid var(--secondary); border-radius: 0 var(--radius) var(--radius) 0; background: var(--light); }
.legal-box p { margin: 0; }
.legal-back { margin-top: 40px; }

/* Einwilligungs-Hinweis Meta-Pixel (consent.js) – „Erlauben“ und „Ablehnen“ gleich groß */
#consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1000; max-width: 720px; margin: 0 auto; padding: 18px 20px; border-radius: 16px; background: var(--white); color: var(--text); box-shadow: 0 10px 40px rgba(28,35,80,.28); font-size: 14px; line-height: 1.5; }
#consent p { margin: 0 0 14px; }
#consent a { color: var(--secondary); }
.consent-buttons { display: flex; gap: 10px; }
.consent-buttons button { flex: 1; padding: 11px 16px; border: 2px solid var(--primary); border-radius: 999px; background: var(--white); color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }

/* Schmale Handys: Schild „Noch … Plätze frei“ etwas kleiner, damit „Ausgebucht – Warteliste offen“ in eine Zeile passt */
@media (max-width: 420px) {
  .seats-badge { padding: 8px 16px; font-size: 15px; }
  .seats-badge strong { font-size: 15px; }
}
