/* ==========================================================================
   Koblenzer Oktoberfest – Stylesheet
   Aufbau: Fonts · Tokens · Basis · Komponenten · Sektionen · Unterseiten
   ========================================================================== */

/* ---------- Fonts (selbst gehostet, kein Google-CDN → DSGVO-freundlich) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-normal-latin.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Marke */
  --night-950: #04112a;
  --night-900: #061633;
  --night-800: #071b3b;
  --night-700: #0c2a55;
  --night-600: #143c73;
  --blue-500: #0079bf;
  --blue-600: #0a63a0;
  --blue-700: #0b4f82;
  --blue-100: #dbe8f6;
  --blue-50: #eef4fb;
  --gold-300: #ffd977;
  --gold-400: #ffc93c;
  --gold-500: #f5b222;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --ink: #0d1b30;
  --ink-soft: #44546a;
  --line: #dfe6ef;
  --line-strong: #c9d4e2;
  --red: #d7262c;

  /* Zeltplan-Kategorien (Farben wie im Plan) */
  --cat-premium: #e3262b;
  --cat-1: #f7cf3c;
  --cat-2: #0d4fa3;
  --cat-3: #f06fc0;
  --cat-vip-group: #4ccfe6;
  --cat-vip-single: #3a9e34;

  /* Typo */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-1: 0 1px 2px rgb(7 27 59 / 0.06), 0 6px 18px -6px rgb(7 27 59 / 0.1);
  --shadow-2: 0 2px 6px rgb(7 27 59 / 0.06), 0 24px 48px -16px rgb(7 27 59 / 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Rautenmuster (bayerische Raute) als wiederverwendbares SVG */
  --raute-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='40' viewBox='0 0 24 40'%3E%3Cpath d='M12 0 24 20 12 40 0 20Z' fill='%230079bf'/%3E%3C/svg%3E");
  --raute-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='80' viewBox='0 0 48 80'%3E%3Cpath d='M24 0 48 40 24 80 0 40Z' fill='%23dbe8f6'/%3E%3C/svg%3E");
  --raute-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='80' viewBox='0 0 48 80'%3E%3Cpath d='M24 0 48 40 24 80 0 40Z' fill='%23ffffff' fill-opacity='.045'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--gold-400); }

::selection { background: var(--gold-400); color: var(--night-800); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--gold-400);
  color: var(--night-800);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--gold {
  background: var(--gold-400);
  color: var(--night-800);
  box-shadow: 0 8px 22px -8px rgb(245 178 34 / 0.7), inset 0 -3px 0 rgb(0 0 0 / 0.08);
}
.btn--gold:hover { background: var(--gold-300); transform: translateY(-1px); }

.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }

.btn--ghost { border-color: rgb(255 255 255 / 0.45); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }

.btn--outline { border-color: var(--line-strong); color: var(--night-800); background: var(--paper); }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-700); }

.btn--lg { min-height: 56px; padding: 0.85em 1.75em; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.5em 1.05em; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--gold-400); }

/* ---------- Kleine Bausteine ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.on-dark .eyebrow { color: var(--gold-400); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--blue-50);
  color: var(--blue-700);
}

.rauten-band {
  height: 24px;
  background-color: #fff;
  background-image: var(--raute-blue);
  background-size: 14.4px 24px;
  background-position: 0 0;
}

/* Abschnitte */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--dark {
  background-color: var(--night-800);
  background-image: var(--raute-white);
  background-size: 48px 80px;
  color: #e9eef6;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  color: var(--night-800);
}
.section-head .lead,
.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
}
.section--dark .lead { color: #c3cfe0; }

/* Scroll-Reveal (nur mit JS aktiv) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--night-800);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(7 27 59 / 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand .logo { width: 128px; height: auto; fill: currentColor; }
.is-scrolled .brand,
.is-solid .brand { color: var(--blue-500); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__list a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__list a:hover { background: rgb(255 255 255 / 0.12); }
.is-scrolled .nav__list a:hover,
.is-solid .nav__list a:hover { background: var(--blue-50); }
.nav__list a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--gold-400); border-radius: 0; }

.nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.12); }
.is-scrolled .icon-btn:hover,
.is-solid .icon-btn:hover { background: var(--blue-50); }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; }
  .header__social { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--night-800) var(--raute-white);
    background-size: 48px 80px;
    color: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s 0.25s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    padding: 14px 4px;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
  }
  .nav__list a:hover { background: none; color: var(--gold-400); }
  .nav__extra { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav-open .site-header { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; }
  .nav-open .site-header .brand { color: #fff; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 479px) {
  .header__cta { display: none; }
}

/* ==========================================================================
   Hero mit Koblenz-Silhouette
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(680px, min(100svh, 1000px));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 45% at 72% 100%, rgb(255 168 60 / 0.38), transparent 70%),
    radial-gradient(60% 40% at 10% 0%, rgb(0 121 191 / 0.35), transparent 70%),
    linear-gradient(180deg, #04112a 0%, #0a2550 42%, #17508f 78%, #2b65a3 100%);
}

/* Sternenhimmel */
.hero__stars {
  position: absolute;
  inset: 0 0 35%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 6% 18%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 14% 42%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 23% 8%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 31% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 39% 14%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 47% 47%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 55% 22%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 6%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 71% 36%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 79% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 87% 28%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 94% 9%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 51% 62%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 9% 66%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 35% 58%, #fff 50%, transparent 52%);
  opacity: 0.75;
}
.hero__stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 18% 24%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 10%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 68% 26%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 90% 44%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 1; } }

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + clamp(20px, 5vh, 64px));
  padding-bottom: clamp(170px, 17vw, 270px);
}
.hero__text { max-width: 640px; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #cfe0f5;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.85em;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__badge .icon { width: 1.05em; height: 1.05em; color: var(--gold-400); }

.hero__title {
  margin: 0 0 0.28em;
  font-size: clamp(3.1rem, min(8.6vw, 10.5svh), 7.25rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-shadow: 0 6px 40px rgb(4 17 42 / 0.45);
}
.hero__title .num {
  display: block;
  margin-bottom: 0.12em;
  font-size: 0.48em;
  color: var(--gold-400);
  letter-spacing: 0;
}
.hero__title .line { display: block; }

.hero__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.35em;
  margin-bottom: 0.6em;
  font-size: clamp(1.5rem, min(3.2vw, 4.2svh), 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero__dates .sep { color: var(--gold-400); }
.hero__dates-note { font-size: 0.62em; font-weight: 700; }

.hero__lead {
  max-width: 34em;
  margin-bottom: 1.8em;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: #d6e2f2;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__person {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: max(-40px, calc((100vw - var(--container)) / 2 - 60px));
  width: auto;
  height: min(86%, 860px);
  pointer-events: none;
  filter: drop-shadow(0 30px 50px rgb(4 17 42 / 0.5));
}

.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  pointer-events: none;
}
.skyline {
  width: 100%;
  height: auto;
  min-height: 150px;
}
.skyline__body { fill: var(--night-900); }
.skyline__windows path {
  fill: #ffcb57;
  animation: lights-on 0.6s var(--ease-out) both;
  animation-delay: calc(0.4s + var(--i) * 14ms);
}
.skyline__windows path:nth-child(3n) { fill: #ffdb8a; }
.skyline__windows path:nth-child(4n + 1) { fill: #f7b544; }
.skyline__windows path:nth-child(7n + 3) {
  animation: lights-on 0.6s var(--ease-out) both, flicker 9s ease-in-out infinite;
  animation-delay: calc(0.4s + var(--i) * 14ms), calc(var(--i) * -0.61s);
}
.skyline__windows path:nth-child(11n + 5) { opacity: 0.25; }
.skyline__beacon {
  fill: #ff3b30;
  filter: drop-shadow(0 0 8px #ff3b30);
  animation: beacon 2.4s steps(1, end) infinite;
}
@keyframes lights-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes flicker {
  0%, 40%, 100% { opacity: 1; }
  48%, 70% { opacity: 0.18; }
}
@keyframes beacon {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.15; }
}

@media (max-width: 899px) {
  .hero__text { max-width: 560px; }
  /* Handy und Tablet: groß unter den Buttons, nur Kopf bis Schürze sichtbar – der Rest liegt hinter der Skyline bzw.
     unter dem Rand (Bild 1008 × 1600, das untere gute Viertel wird abgeschnitten) */
  .hero__person {
    --person-w: min(94vw, 480px);
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: var(--person-w);
    height: auto;
    margin: -12px max(-10vw, -40px) calc(var(--person-w) * -0.44) auto;
    opacity: 1;
  }
  .hero__content { padding-bottom: 0; }
}
@media (max-width: 599px) {
  .hero__content { padding-top: calc(var(--header-h) + 12px); }
  .hero__eyebrow { gap: 8px; margin-bottom: 14px; font-size: 0.8125rem; }
  .hero__badge { padding: 0.3em 0.7em; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.4em; }
  .hero__ctas .btn--lg { min-height: 52px; padding: 0.7em 1.3em; font-size: 1rem; }
}

/* ---------- Nächster-Termin-Band (Sockel der Silhouette) ---------- */
.next {
  position: relative;
  z-index: 2;
  padding: 26px 0 34px;
  background: var(--night-900);
  color: #fff;
}
.next__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px 40px;
}
.next__label {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.next__title {
  margin: 0 0 4px;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  color: #fff;
}
.next__meta { margin: 0; color: #b9c7da; font-weight: 600; }

.countdown {
  display: flex;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  display: grid;
  justify-items: center;
  min-width: 72px;
  padding: 10px 8px 8px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 0.05);
}
.countdown__num {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1;
}
.countdown__lbl {
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0c8;
}
.next.is-live .countdown,
.next.is-over .countdown { display: none; }
.next__live {
  display: none;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
}
.next.is-live .next__live { display: inline-flex; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgb(255 77 77 / 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgb(255 77 77 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(255 77 77 / 0); }
}

@media (max-width: 899px) {
  .next__inner { grid-template-columns: 1fr; }
  .countdown__unit { min-width: 0; flex: 1; }
  .next .btn { justify-self: start; }
}

/* ==========================================================================
   Intro / Festzelt
   ========================================================================== */
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.intro__text h2 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  color: var(--night-800);
}
.intro__text p { color: var(--ink-soft); }
.intro__text strong { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  list-style: none;
}
.stats li {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-600);
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}

.intro__media { position: relative; padding: 0 0 56px 40px; }
.intro__photo-main {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
}
.intro__photo-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--cream);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
}
.stamp {
  position: absolute;
  right: -18px;
  bottom: 18px;
  width: 148px;
  height: 148px;
  color: var(--night-800);
}
.stamp__ring { animation: spin 26s linear infinite; transform-origin: center; }
.stamp text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--night-800);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 959px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { max-width: 620px; }
  .stamp { right: 0; width: 120px; height: 120px; }
}
@media (max-width: 479px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Programm
   ========================================================================== */
.program__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 44px;
  padding: 0.5em 1.15em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.segmented button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--night-800);
  box-shadow: var(--shadow-1);
}
.program__note { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

.weeks { list-style: none; }
.week {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 18px 36px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.week:first-child { border-top: 0; }
.week__num {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.week__title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--night-800);
}
.week__events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.program.is-filtered .week.is-past { display: none; }

/* Keine kommenden Termine (nach der Saison): Hinweis auf die nächste Saison */
.program-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  margin: 24px 0 8px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #f2dfae;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, #fff7e2, #fffdf7);
}
.program-empty[hidden],
.program:not(.is-filtered) .program-empty { display: none; }
.program-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold-400);
  color: var(--night-800);
}
.program-empty__icon .icon { width: 28px; height: 28px; }
.program-empty h3 { margin: 4px 0 8px; font-size: clamp(1.375rem, 2.6vw, 1.75rem); color: var(--night-800); }
.program-empty p { margin: 0 0 16px; max-width: 46em; color: var(--ink-soft); }
.program-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 559px) {
  .program-empty { grid-template-columns: 1fr; }
}

.tickets-empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  background: #fff7e2;
  border: 1px solid #f2dfae;
  font-weight: 600;
  color: var(--night-800);
}
.tickets-empty[hidden] { display: none; }
.tickets-empty .icon { flex: none; margin-top: 2px; color: var(--gold-500); }
.tickets-empty a { color: var(--blue-600); }

.event {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 16px 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s;
}
.event:hover { box-shadow: var(--shadow-1); }
.event__date {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 74px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--night-800);
  color: #fff;
  line-height: 1.1;
  text-align: center;
}
.event__dow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.event__day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
}
.event__month { font-size: 0.8125rem; font-weight: 700; }
.event__title {
  margin: 0.4em 0 0.3em;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--night-800);
}
.event__acts { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.event__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.event__time {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.event__flag {
  position: absolute;
  top: -12px;
  right: 16px;
  display: none;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.event__past-cta { display: none; }

/* Status (per JS anhand des Datums gesetzt) */
.event.is-next {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgb(255 201 60 / 0.35), var(--shadow-2);
}
.event.is-next .event__flag,
.event.is-live .event__flag { display: inline-flex; }
.event.is-next .event__flag { background: var(--gold-400); color: var(--night-800); }
.event.is-live { border-color: var(--red); }
.event.is-live .event__flag { background: var(--red); color: #fff; }

.event.is-past { background: transparent; border-style: dashed; }
.event.is-past .event__date { background: #93a3b8; }
.event.is-past .event__day { color: #fff; }
.event.is-past .event__title { color: var(--ink-soft); }
.event.is-past .event__ticket { display: none; }
.event.is-past .event__past-cta { display: inline-flex; }

@media (max-width: 959px) {
  .week { grid-template-columns: 1fr; padding-block: 28px; }
}
@media (max-width: 679px) {
  .week__events { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tickets (ditix-Shop)
   ========================================================================== */
.tickets {
  background-color: var(--blue-50);
  background-image: linear-gradient(180deg, var(--blue-50) 0%, rgb(238 244 251 / 0.86) 100%), var(--raute-light);
  background-size: auto, 48px 80px;
}
.tickets__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.facts { display: grid; gap: 12px; list-style: none; margin-top: 8px; }
.facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.facts .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.facts strong { display: block; color: var(--night-800); line-height: 1.3; }
.facts span { display: block; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.5; }

.shop-card {
  position: relative;
  min-height: 460px;
  padding: clamp(12px, 2vw, 24px);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-2);
}
.shop-card__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  transition: opacity 0.3s;
}
.shop-card.is-loaded .shop-card__loading { opacity: 0; pointer-events: none; }
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.shop-card__fallback {
  margin: 14px 4px 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 959px) {
  .tickets__grid { grid-template-columns: 1fr; }
  .tickets__aside { order: 2; }
}

/* ==========================================================================
   Zeltplan & Preise
   ========================================================================== */
.tent__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.plan {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  cursor: zoom-in;
}
.plan img { border-radius: var(--radius-s); }
.plan__hint {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--night-800);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.tent__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.cats { display: grid; gap: 10px; list-style: none; }
.cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
}
.cat__swatch {
  width: 18px;
  height: 30px;
  background: var(--swatch);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.cat__name { margin: 0; font-weight: 800; color: var(--night-800); line-height: 1.3; }
.cat__blocks { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.cat__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--night-800);
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
}
.cat__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.cat--vip { background: linear-gradient(135deg, #fffaf0, #fff); border-color: #f2dfae; }
.tent__note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--blue-50);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.tent__note .icon { color: var(--blue-600); margin-top: 2px; }

@media (max-width: 959px) {
  .tent__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VIP-Wiesnbox
   ========================================================================== */
.vip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.vip__media { position: relative; }
.vip__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-l);
}
.vip__price {
  position: absolute;
  left: -16px;
  bottom: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  background: var(--gold-400);
  color: var(--night-800);
  box-shadow: var(--shadow-2);
  line-height: 1.1;
}
.vip__price small { display: block; font-size: 0.8125rem; font-weight: 700; }
.vip__price strong { font-family: var(--font-display); font-size: 2.125rem; font-weight: 900; }
.vip h2 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
.checklist { display: grid; gap: 12px; margin: 24px 0 32px; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--night-800);
  stroke-width: 3;
}
.vip__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.groups {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-l);
  background: rgb(255 255 255 / 0.04);
}
.groups__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgb(255 201 60 / 0.14);
  color: var(--gold-400);
}
.groups__icon .icon { width: 30px; height: 30px; }
.groups h3 { margin: 0 0 0.3em; font-size: 1.5rem; }
.groups p { margin: 0; color: #c3cfe0; }

@media (max-width: 959px) {
  .vip__grid { grid-template-columns: 1fr; }
  .vip__media { max-width: 560px; }
  .vip__price { left: 12px; }
  .groups { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Kulinarik
   ========================================================================== */
.food__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.menu-card {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.menu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: #fff var(--raute-blue);
  background-size: 10.8px 18px;
}
.menu-card h3 { font-size: 1.75rem; color: var(--night-800); margin-top: 8px; }
.menu { list-style: none; margin: 18px 0 0; }
.menu li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line-strong);
}
.menu li:last-child { border-bottom: 0; }
.menu__name { font-weight: 700; color: var(--night-800); }
.menu__note { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: var(--blue-600); white-space: nowrap; }
.menu-card__foot { margin: 18px 0 0; font-size: 0.9375rem; color: var(--ink-soft); }

.food__side { display: grid; gap: 20px; grid-template-rows: 1fr auto; }
.food__photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-l);
}
.pay-card {
  padding: 22px 24px;
  border-radius: var(--radius-l);
  background: var(--night-800);
  color: #dfe7f2;
}
.pay-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4em;
  font-size: 1.375rem;
  color: #fff;
}
.pay-card h3 .icon { color: var(--gold-400); }
.pay-card p { margin: 0 0 12px; font-size: 0.9375rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.pay-methods li {
  padding: 0.25em 0.7em;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

@media (max-width: 959px) {
  .food__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Galerie & Lightbox
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: 12px;
  list-style: none;
}
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(6) { grid-row: span 2; }
.gallery li:nth-child(8) { grid-column: span 2; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--night-700);
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 767px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery li:nth-child(6) { grid-row: span 1; }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(4 17 42 / 0.97);
  color: #fff;
}
.lightbox::backdrop { background: rgb(4 17 42 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in 0.2s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(12px, env(safe-area-inset-right)) 12px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c3cfe0;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 64px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 10px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  background: rgb(255 255 255 / 0.1);
}
.lightbox__nav:hover { background: rgb(255 255 255 / 0.2); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__caption { padding: 12px 20px 20px; text-align: center; color: #c3cfe0; font-size: 0.9375rem; }
.lightbox--single .lightbox__nav { display: none; }

@media (max-width: 599px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { top: auto; bottom: -56px; translate: none; }
}

/* ==========================================================================
   Historie
   ========================================================================== */
.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
}
.history__text h2 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); color: var(--night-800); }
.history__text p { color: var(--ink-soft); }
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--blue-100), var(--blue-500));
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 2px;
  width: 18px;
  height: 28px;
  background: var(--blue-500);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.timeline li:last-child::before { background: var(--gold-500); }
.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--night-800);
}
.timeline p { margin: 2px 0 0; color: var(--ink-soft); }

@media (max-width: 959px) {
  .history__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Anfahrt & Infos
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
}
.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.info-card h3 { margin: 0; font-size: 1.25rem; color: var(--night-800); }
.info-card p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.info-card address { font-style: normal; font-size: 0.9375rem; color: var(--ink-soft); }
.info-card .card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

.rules {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.rules__box {
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--paper);
  border: 1px solid var(--line);
}
.rules__box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--night-800);
}
.rules__box--no h3 .icon { color: var(--red); }
.rules__box--yes h3 .icon { color: var(--cat-vip-single); }
.rules__list {
  columns: 2;
  column-gap: 28px;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.rules__box--yes .rules__list { columns: 1; }
.rules__list li {
  break-inside: avoid;
  position: relative;
  padding: 4px 0 4px 18px;
}
.rules__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--line-strong);
  rotate: 45deg;
}

@media (max-width: 1099px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .info-grid { grid-template-columns: 1fr; }
  .rules__list { columns: 1; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__aside h2 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); color: var(--night-800); }
.faq__actions { display: grid; gap: 10px; justify-items: start; margin-top: 24px; }

.accordion { display: grid; gap: 10px; }
.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.accordion details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-1); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--night-800);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon {
  flex: none;
  color: var(--blue-600);
  transition: transform 0.25s var(--ease-out);
}
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion__body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.9875rem;
}
.accordion__body p:last-child,
.accordion__body ul:last-child { margin-bottom: 0; }
.accordion__body ul { padding-left: 1.2em; margin-bottom: 1em; }

@media (max-width: 959px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}

/* ==========================================================================
   Mitmachen (Jobs & Sponsoring)
   ========================================================================== */
.join {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--blue-600);
  background-image: var(--raute-white);
  background-size: 48px 80px;
}
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.join-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--paper);
}
.join-card--dark { background: var(--night-800); color: #dfe7f2; }
.join-card h2 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--night-800); }
.join-card--dark h2 { color: #fff; }
.join-card p { margin: 0 0 12px; color: var(--ink-soft); }
.join-card--dark p { color: #c3cfe0; }
.join-card .btn { margin-top: auto; }

@media (max-width: 767px) {
  .join__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Partner & Presse
   ========================================================================== */
.partner-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, #fff7e2, #fffdf7);
  border: 1px solid #f2dfae;
}
.partner-feature img { width: 160px; height: auto; }
.partner-feature p { margin: 0; color: var(--ink-soft); }
.partner-feature strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--night-800); }

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
}
.partners a,
.partners span {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.partners a:hover { border-color: var(--blue-100); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.partners img { max-width: 100%; max-height: 64px; width: auto; object-fit: contain; }

.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 24px 28px;
  border-radius: var(--radius-l);
  background: var(--blue-50);
}
.press h3 { margin: 0 0 4px; font-size: 1.375rem; color: var(--night-800); }
.press p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.press__links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 559px) {
  .partner-feature { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: -1px;
  background: var(--night-800);
  color: #b9c7da;
}
.footer__skyline {
  display: block;
  width: 100%;
  height: auto;
  min-height: 110px;
  object-fit: cover;
  object-position: 50% 100%;
  background: var(--paper);
}
.site-footer--cream .footer__skyline { background: var(--cream); }
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-block: 40px 48px;
}
.footer__brand .logo { width: 150px; fill: #fff; margin-bottom: 14px; }
.footer__claim {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.footer__social { display: flex; gap: 8px; }
.footer__social .icon-btn { border: 1px solid rgb(255 255 255 / 0.18); color: #fff; }
.footer__social .icon-btn:hover { background: rgb(255 255 255 / 0.1); }
.footer__col h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer__col ul { list-style: none; display: grid; gap: 4px; }
.footer__col a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
}
.footer__bottom p { margin: 0; }

@media (max-width: 959px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__main { grid-template-columns: 1fr; }
}

/* ---------- Mobile Ticket-Leiste ---------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(6 22 51 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta__text { font-size: 0.875rem; line-height: 1.3; }
.mobile-cta__text strong { display: block; font-size: 0.9375rem; }
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
}

/* ==========================================================================
   Unterseiten (Sponsoring, Rechtliches)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(60% 60% at 85% 100%, rgb(255 168 60 / 0.25), transparent 70%),
    linear-gradient(180deg, #04112a 0%, #0c2a55 100%);
  color: #fff;
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 0.3em; }
.page-hero p { max-width: 42em; font-size: 1.125rem; color: #c3cfe0; margin: 0; }
.breadcrumb { margin-bottom: 18px; font-size: 0.9375rem; font-weight: 600; }
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.package {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
}
.package--top { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgb(255 201 60 / 0.3), var(--shadow-2); }
.package__tier {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.package h2 { margin: 6px 0 4px; font-size: 1.75rem; color: var(--night-800); }
.package__price {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--night-800);
}
.package ul { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; font-size: 0.9375rem; color: var(--ink-soft); }
.package li { display: flex; gap: 10px; align-items: flex-start; }
.package li .icon { color: var(--cat-vip-single); margin-top: 3px; width: 1.05em; height: 1.05em; stroke-width: 3; }
.package .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 1023px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .packages { grid-template-columns: 1fr; }
}

.prose { max-width: 760px; }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 1.625rem; color: var(--night-800); }
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--blue-600); }

/* ==========================================================================
   Kontakt & Anfragen (kontakt.html)
   ========================================================================== */
.contact__chooser {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--night-800);
}
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  list-style: none;
}
.topic {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.topic:hover { border-color: var(--blue-100); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.topic[aria-current="true"] {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgb(255 201 60 / 0.35), var(--shadow-1);
}
.topic__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.topic[aria-current="true"] .topic__icon { background: var(--gold-400); color: var(--night-800); }
.topic__text strong { display: block; line-height: 1.3; color: var(--night-800); }
.topic__text small { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
.topic__arrow { color: var(--blue-600); transition: transform 0.2s var(--ease-out); }
.topic:hover .topic__arrow { transform: translateX(3px); }

/* Ausgeblendete Formulare, Meldungen und Bestätigungen wirklich ausblenden (display-Regeln überstimmen sonst „hidden“) */
.contact [hidden] { display: none !important; }
/* Bis das Skript übernimmt, keine Formulare zeigen (beim Direktaufruf nur das gewünschte, Regel in kontakt.astro) */
.contact-pending [data-contact-form] { display: none; }
/* Direktaufruf (kontakt.html?thema=…): nur das Formular – Titel und Einleitung stehen im Seitenkopf */
.contact-direct .contact__chooser,
.contact-direct .topics,
.contact-direct .contact-form__head { display: none; }
.contact-direct .contact__forms { margin-top: 0; }
.contact-direct .contact.section { padding-top: clamp(28px, 5vw, 56px); }
.contact__switch { display: none; margin: 28px 0 0; color: var(--ink-soft); }
.contact-direct .contact__switch { display: block; }

.contact__forms { margin-top: clamp(28px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 16px); }
.contact__forms > * + * { margin-top: 24px; }

.contact-form,
.contact-success {
  max-width: 880px;
  padding: clamp(20px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-2);
}
.contact-form { scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-form__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-strong);
}
.contact-form__head h2 { margin: 2px 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--night-800); }
.contact-form__head h2:focus { outline: none; }
.contact-form__head p { margin: 0; color: var(--ink-soft); }
.contact-form__head a { color: var(--blue-600); }
.contact-form__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-400);
  color: var(--night-800);
}
.contact-form__icon .icon { width: 26px; height: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--half { grid-column: span 1; }
.field > label,
.field legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--night-800);
}
.field legend { margin-bottom: 8px; }
.req { margin-left: 2px; color: var(--red); }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230a63a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.field input::placeholder,
.field textarea::placeholder { color: #8292a8; }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgb(0 121 191 / 0.15);
}
.field__help { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.field__error {
  display: flex;
  gap: 6px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #b3141a;
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #b3141a; color: #fff; font-size: 0.75rem; }
.field.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b3141a; }

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.choices--long { grid-template-columns: 1fr; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover { border-color: var(--blue-500); }
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.field.is-invalid .choice { border-color: #e9a3a5; }
.choice--single { border: 0; padding: 4px 0; min-height: 0; background: transparent; font-weight: 500; }
.choice--single:hover { border: 0; }
.choice--single:has(input:checked) { background: transparent; }
.choice--single a { color: var(--blue-600); }
.field--consent { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.field--consent .choice { color: var(--ink-soft); font-size: 0.875rem; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: #fdecec;
  color: #8f1015;
  font-weight: 700;
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 22px;
}
.contact-form__actions .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

.contact-success { text-align: center; }
.contact-success:focus { outline: none; }
.contact-success__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--night-800);
}
.contact-success__icon .icon { width: 30px; height: 30px; stroke-width: 3; }
.contact-success h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--night-800); }
.contact-success p { max-width: 34em; margin: 0 auto 20px; color: var(--ink-soft); }

@media (max-width: 639px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .contact-form__head { grid-template-columns: 1fr; }
  .contact-form__actions .btn { width: 100%; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
