/* =====================================================================
   UtopiaGaming Events – Designsystem
   Abgeleitet vom Designsystem der Lübeck LAN (Tokens, Typo-Rollen,
   Spacing, Hairlines, Motion). Eigene Identität: Vereinslogo, teal als
   Plattform-Akzent, Akzentfarbe je Event (--accent).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #050508;
  --bg-1: #0a0f18;
  --bg-2: #0d1524;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --text-2: rgba(234, 240, 255, 0.72);
  --text-3: rgba(234, 240, 255, 0.58);
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-2: #00bfff;
  --teal: #00d3b6;
  --cyan: #00ffff;
  --brand-bg: rgba(37, 99, 235, 0.12);
  --brand-line: rgba(37, 99, 235, 0.35);
  --red: #ef4444;
  --green: #22c55e;
  --gold: #ffbf3c;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-3: rgba(255, 255, 255, 0.14);
  --sh-1: 0 10px 30px rgba(0, 0, 0, 0.5);
  --sh-2: 0 18px 50px rgba(0, 0, 0, 0.6);

  /* Plattform-Akzent; Eventseiten überschreiben --accent */
  --accent: var(--teal);

  --f: "Segoe UI", Roboto, Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --tx: 12px; --ts: 13px; --tb: 16px; --tm: 18px; --tl: 20px; --tl2: 24px;
  --th1: clamp(26px, 3vw, 34px);
  --th2: clamp(36px, 5vw, 58px);
  --td: clamp(44px, 6vw, 80px);
  --lh-tight: 1.04; --lh-snug: 1.15; --lh-base: 1.6; --lh-loose: 1.7;
  --ls-tight: -0.035em; --ls-snug: -0.02em; --ls-base: -0.01em;
  --ls-wide: 0.06em; --ls-wider: 0.12em; --ls-widest: 0.22em;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-xs: 6px; --r-sm: 8px; --r-md: 14px; --r-lg: 18px;
  --max: 1200px; --max-prose: 720px; --max-wide: 1600px; --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 100ms; --dur: 200ms; --dur-slow: 380ms;
  color-scheme: dark;
}
@media (min-width: 1536px) { :root { --max: 1360px; --max-prose: 800px; } }
@media (max-width: 767.98px) {
  :root {
    --th1: clamp(24px, 6vw, 30px); --th2: clamp(30px, 7.5vw, 44px); --td: clamp(36px, 10vw, 52px);
    --s7: 32px; --s8: 40px; --s9: 56px; --s10: 72px;
  }
}
@media (max-width: 479.98px) {
  :root {
    --th1: clamp(22px, 7vw, 28px); --th2: clamp(28px, 8vw, 40px); --td: clamp(32px, 10vw, 44px);
    --s6: 24px; --s7: 28px; --s8: 36px; --s9: 48px; --s10: 60px;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--f);
  font-size: var(--tb);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand-2); color: var(--bg); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 1.5px solid var(--brand-2);
  outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--f);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: var(--th2); font-weight: 800; line-height: var(--lh-tight); }
h2 { font-size: var(--th1); font-weight: 800; line-height: var(--lh-snug); }
h3, h4, h5, h6 { font-size: var(--tl); font-weight: 700; line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }

.visually-hidden {
  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: var(--s3); left: var(--s3); z-index: 9999;
  padding: var(--s2) var(--s4); background: var(--text); color: var(--bg);
  font-size: var(--ts); font-weight: 600; border-radius: var(--r-sm);
  transform: translateY(calc(-100% - var(--s4)));
  transition: transform .15s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout-Primitive ---------- */
.c { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--s6); }
.c--prose { max-width: calc(var(--max-prose) + 2 * var(--s6)); }
.c--wide { max-width: min(var(--max-wide), 92vw); }
@media (max-width: 639.98px) { .c { padding-inline: var(--s5); } .c--wide { max-width: var(--max); } }
@media (max-width: 379.98px) { .c { padding-inline: var(--s4); } }

.section { position: relative; padding-block: var(--s9); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.section--compact { padding-block: var(--s8); }
.section--alt { background: var(--bg-1); }
.section--accent { background: var(--bg-2); }
.section--divider { border-top: 1px solid var(--line); }
@media (max-width: 767.98px) { .section { padding-block: var(--s8); } .section--compact { padding-block: var(--s7); } }

.stack { display: flex; flex-direction: column; gap: var(--s5); }
.stack--sm { gap: var(--s3); }
.stack--lg { gap: var(--s7); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (max-width: 959.98px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Typo-Bausteine ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--tx); font-weight: 600; line-height: 1.4;
  text-transform: uppercase; letter-spacing: var(--ls-widest);
  color: var(--brand-2);
}
.kicker--muted { color: var(--text-3); }
.kicker--accent { color: var(--accent); }
.rule { display: block; width: 56px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.lead { max-width: var(--max-prose); font-size: var(--tl); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); color: var(--text-2); }
.grad-text {
  background: linear-gradient(90deg, var(--brand-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--text-2); }
.small { font-size: var(--ts); color: var(--text-3); }
.link {
  color: var(--brand-2); text-decoration: underline; text-decoration-color: var(--brand-line);
  text-underline-offset: 4px; transition: color var(--dur) var(--ease);
}
.link:hover { color: var(--text); }

.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s7); }
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--s4) var(--s6); }
.section-head__text { display: flex; flex-direction: column; gap: var(--s3); max-width: var(--max-prose); }
.section-head p { color: var(--text-2); }

/* Prose (Fließtext aus dem Backend) */
.prose { color: var(--text-2); font-size: var(--tb); line-height: var(--lh-loose); max-width: var(--max-prose); }
.prose > * + * { margin-top: var(--s4); }
.prose p { max-width: 68ch; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand-2); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 4px; }
.prose a:hover { color: var(--text); }
.prose h3 { margin-top: var(--s6); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: var(--s5); }
.prose ul li + li, .prose ol li + li { margin-top: var(--s2); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.prose ol { padding-left: var(--s5); }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote {
  margin: var(--s5) 0 0; padding: var(--s3) 0 var(--s3) var(--s5);
  border-left: 2px solid var(--accent); color: var(--text);
}
.prose--lead { font-size: var(--tm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px var(--s5);
  font-family: var(--f); font-size: var(--tb); font-weight: 700; line-height: 1.2;
  letter-spacing: var(--ls-base); text-align: center; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-d); border-color: var(--brand-d); box-shadow: 0 5px 20px rgba(37, 99, 235, .4); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--brand-2); color: var(--brand-2); }
.btn--ghost:hover { background: rgba(0, 191, 255, .1); }
.btn--outline { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn--outline:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn--sm { padding: var(--s2) var(--s4); font-size: var(--ts); }
.btn--lg { padding: 14px var(--s6); font-size: var(--tm); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
@media (max-width: 479.98px) {
  .btn-row--stack { flex-direction: column; align-items: stretch; }
  .btn { white-space: normal; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 5px var(--s3); border-radius: 999px;
  font-size: var(--tx); font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  border: 1px solid var(--line-3); background: var(--surface); color: var(--text-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge--plain::before { display: none; }
.badge--success { color: var(--teal); border-color: rgba(0, 211, 182, .45); background: rgba(0, 211, 182, .1); }
.badge--success::before { box-shadow: 0 0 8px var(--teal); }
.badge--info { color: var(--brand-2); border-color: rgba(0, 191, 255, .45); background: rgba(0, 191, 255, .08); }
.badge--info::before { background: transparent; border: 1px solid currentColor; }
.badge--warning { color: var(--gold); border-color: rgba(255, 191, 60, .45); background: rgba(255, 191, 60, .1); }
.badge--danger { color: #ff8a8a; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .12); }
.badge--live { color: var(--cyan); border-color: rgba(0, 255, 255, .45); background: rgba(0, 255, 255, .08); }
.badge--live::before { animation: pulse-dot 1.6s var(--ease) infinite; }
.badge--closed, .badge--muted { color: var(--text-3); }
/* Frei pflegbare Tags (Farbe aus dem Backend) */
.badge--tag { --tag: var(--brand-2); color: var(--tag); border-color: color-mix(in srgb, var(--tag) 55%, transparent); background: color-mix(in srgb, var(--tag) 14%, transparent); }
.badge--tag::before { display: none; }
.badge-row .badge--tag, .event-card__badges .badge--tag { text-transform: none; letter-spacing: .02em; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
  transition: height var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity var(--dur-slow) var(--ease);
}
.site-header.is-scrolled { height: calc(var(--header-h) - var(--s3)); border-bottom-color: var(--line-3); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background-color: rgba(10, 15, 24, .72); }
  .site-header.is-scrolled::before { opacity: 1; }
}
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); flex-shrink: 0; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; padding-left: var(--s3); border-left: 1px solid var(--line-3); }
.brand__name { font-size: var(--tb); font-weight: 800; letter-spacing: var(--ls-snug); }
.brand__sub { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--teal); }
.nav-list { display: flex; align-items: center; gap: var(--s1); list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; padding: var(--s3);
  font-size: var(--tb); font-weight: 600; color: var(--text-2); white-space: nowrap;
  border-radius: var(--r-sm); transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s2); height: 2px;
  background: var(--brand-2); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--s2); }
@media (min-width: 1000px) and (max-width: 1119.98px) {
  .nav-link { padding: var(--s2); font-size: 15px; }
  .nav-link::after { left: var(--s2); right: var(--s2); bottom: 2px; }
  .nav-list { gap: 0; }
}
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  position: relative; width: 44px; height: 44px; padding: 11px 10px; margin-right: -10px; color: var(--text);
}
.burger span:not(.visually-hidden) { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 1px; }
@media (max-width: 999.98px) {
  .site-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 379.98px) {
  .brand__sub { display: none; }
  .brand img { height: 34px; }
}

/* Mobiles Menü (Vollbild) */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.97);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  /* sofort sichtbar, damit der Fokus direkt in das Menü gesetzt werden kann */
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), visibility 0s;
}
.mobile-nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  height: var(--header-h); padding-inline: var(--s5); border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.mobile-nav__close { width: 44px; height: 44px; margin-right: -8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--text-2); }
.mobile-nav__close:hover { color: var(--text); background: var(--surface); }
.mobile-nav__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s6) var(--s5) var(--s8); display: flex; flex-direction: column; gap: var(--s6); }
.mobile-nav__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); list-style: none; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s2); font-size: var(--tl); font-weight: 700;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-nav__link:hover, .mobile-nav__link[aria-current="page"] { color: var(--brand-2); padding-left: var(--s4); }
.mobile-nav__link svg { width: 18px; height: 18px; color: var(--text-3); }
.mobile-nav__body > * { transform: translateY(14px); transition: transform var(--dur-slow) var(--ease); }
.mobile-nav.is-open .mobile-nav__body > * { transform: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (Startseite & Eventseiten) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(78svh, 760px);
  padding-block: var(--s9);
  background:
    radial-gradient(64% 80% at 82% 6%, rgba(0, 191, 255, .14) 0%, transparent 58%),
    radial-gradient(70% 90% at 12% 96%, rgba(37, 99, 235, .18) 0%, transparent 60%),
    linear-gradient(155deg, var(--bg-1) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line);
}
.hero--compact { min-height: 0; padding-block: var(--s9) var(--s8); }
.hero__backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide {
  position: absolute; inset: -6%; opacity: 0;
  background-size: cover; background-position: center;
  filter: blur(14px) saturate(.9) brightness(.8);
  transform: scale(1.05);
  animation: hero-fade var(--hero-dur, 18s) linear infinite;
}
.hero__slide:first-child { opacity: .4; }
@keyframes hero-fade { 0% { opacity: .4; transform: scale(1.06); } 28% { opacity: .4; } 33% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(68% 80% at 82% 6%, rgba(37, 99, 235, .22) 0%, transparent 58%),
    radial-gradient(120% 100% at 20% 100%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5, 5, 8, .7) 0%, rgba(5, 5, 8, .55) 50%, rgba(5, 5, 8, .9) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 68%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hero__inner--single { grid-template-columns: minmax(0, 1fr); }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); min-width: 0; }
.hero__title { font-size: var(--td); font-weight: 800; line-height: var(--lh-tight); max-width: 22ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .55); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
/* Kurze, feste Überschriften bleiben in einer Zeile – Schrift skaliert mit der Breite */
.hero__title--fit { max-width: none; white-space: nowrap; font-size: min(var(--td), 7.4vw); }
.hero__lead { max-width: 52ch; font-size: var(--tm); line-height: var(--lh-base); color: var(--text-2); text-wrap: pretty; }
.hero__lead strong { color: var(--text); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--text-2); font-size: var(--tb); }
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__meta svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 959.98px) {
  .hero { min-height: 0; padding-block: var(--s8); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s7); }
}

/* Spotlight-Panel (nächstes Event im Home-Hero) */
.spotlight {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-3); border-radius: var(--r-lg);
  background: rgba(10, 15, 24, .72); box-shadow: var(--sh-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.spotlight:hover { border-color: var(--brand-2); transform: translateY(-3px); }
.spotlight__media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); }
.spotlight__title { font-size: var(--tl2); font-weight: 800; letter-spacing: var(--ls-snug); line-height: var(--lh-snug); }
.spotlight__more { display: inline-flex; align-items: center; gap: var(--s2); color: var(--brand-2); font-weight: 700; font-size: var(--ts); }
.spotlight__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.spotlight:hover .spotlight__more svg { transform: translateX(4px); }

/* ---------- Figure ---------- */
.figure { margin: 0; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.figure__frame {
  position: relative; width: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-1); box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-3-2 { aspect-ratio: 3 / 2; } .ratio-4-3 { aspect-ratio: 4 / 3; } .ratio-1-1 { aspect-ratio: 1; }
@media (hover: hover) { a.figure:hover .figure__frame, .figure a:hover .figure__frame { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-3); } }
.figure figcaption { color: var(--text-3); font-size: var(--ts); line-height: var(--lh-loose); }

/* Platzhalter-Cover für Events ohne Bild */
.cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--s4);
  background:
    radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 60%),
    radial-gradient(90% 90% at 0% 100%, rgba(37, 99, 235, .35) 0%, transparent 60%),
    linear-gradient(150deg, var(--bg-2), var(--bg));
}
.cover-fallback::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cover-fallback::after {
  content: ""; position: absolute; inset: 22% 30%; opacity: .16;
  background: url("https://static.pein-gbr.de/2026/01/16/UGVerein.svg") center / contain no-repeat;
  filter: grayscale(1) brightness(1.6);
}

/* ---------- Event-Cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--s6); list-style: none; }
.event-card {
  --accent: var(--card-accent, var(--teal));
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.event-card:hover, .event-card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface-2); }
.event-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.04); }
.event-card__badges { position: absolute; left: var(--s3); top: var(--s3); right: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.event-card__badges .badge { background-color: rgba(5, 5, 8, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.event-card__badges .badge--tag { background-color: color-mix(in srgb, var(--tag) 22%, rgba(5, 5, 8, .85)); }
.event-card__body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); flex: 1; }
.event-card__category { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--accent); }
.event-card__title { font-size: var(--tl); font-weight: 800; letter-spacing: var(--ls-snug); line-height: var(--lh-snug); }
.event-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.event-card__meta { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--ts); color: var(--text-2); }
.event-card__meta span { display: inline-flex; align-items: flex-start; gap: var(--s2); }
.event-card__meta svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.event-card__teaser { font-size: var(--ts); line-height: var(--lh-base); color: var(--text-2); }
.event-card__footer { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line-2); }
.event-card__cta { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--ts); font-weight: 700; color: var(--brand-2); }
.event-card__cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.event-card:hover .event-card__cta svg { transform: translate(2px, -2px); }
.event-card__hint { font-size: var(--ts); color: var(--text-3); }
.event-card--featured { grid-column: span 2; }
.event-card--featured .event-card__media { aspect-ratio: 21 / 9; }
.event-card--featured .event-card__title { font-size: var(--tl2); }
@media (max-width: 759.98px) { .event-card--featured { grid-column: auto; } .event-card--featured .event-card__media { aspect-ratio: 16 / 9; } }

/* Vergangene Events: kompakter, gedämpft */
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s4); list-style: none; }
.archive-item {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s4); align-items: center;
  padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.archive-item:hover, .archive-item:focus-within { background: var(--surface); border-color: var(--line-3); }
.archive-item__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.archive-item__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.85); transition: filter var(--dur) var(--ease); }
.archive-item:hover .archive-item__media img { filter: none; }
.archive-item__media .cover-fallback { padding: var(--s2); }
.archive-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.archive-item__title { font-size: var(--tb); font-weight: 700; letter-spacing: var(--ls-base); }
.archive-item__title a::after { content: ""; position: absolute; inset: 0; }
.archive-item__meta { font-size: var(--ts); color: var(--text-3); }
.archive-item__link { font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--brand-2); }

/* Filter-Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.chip {
  display: inline-flex; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: var(--ts); font-weight: 600;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chip:hover, .chip[aria-current="true"] { color: var(--text); border-color: var(--brand-2); background: var(--surface-2); }

/* Leerer Zustand */
.empty { padding: var(--s6); border: 1px dashed var(--line-3); border-radius: var(--r-md); color: var(--text-2); text-align: center; }

/* ---------- Eventseite ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--s3); margin: 0; }
.fact {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.fact:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface-2); }
.fact__icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.fact__icon svg { width: 14px; height: 14px; }
.fact dt { display: flex; align-items: center; gap: var(--s2); margin-bottom: 4px; font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-3); }
.fact dd { margin: 0; font-size: var(--tb); font-weight: 700; line-height: var(--lh-snug); color: var(--text); overflow-wrap: break-word; hyphens: manual; }
.fact dd small { display: block; margin-top: 2px; font-weight: 400; color: var(--text-2); font-size: var(--ts); line-height: var(--lh-base); }

.notice {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding: var(--s4) var(--s5);
  border-block: 1px solid var(--line-2);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
  color: var(--text);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.notice--danger { border-left-color: var(--red); background: linear-gradient(90deg, rgba(239, 68, 68, .1), transparent 72%); }
.notice--danger svg { color: var(--red); }
.notice--muted { border-left-color: var(--line-3); background: var(--surface); color: var(--text-2); }
.notice__body { display: flex; flex-direction: column; gap: var(--s1); }
.notice__body strong { font-weight: 700; }

/* Bildleiste */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 26%); gap: var(--s4); overflow-x: auto; padding-bottom: var(--s3); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; list-style: none; }
.strip li { scroll-snap-align: start; }
.strip .figure__frame { aspect-ratio: 4 / 3; }
@media (max-width: 639.98px) { .strip { grid-auto-columns: 72%; } }

/* Info-Raster (Abschnitte mit Elementen) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s6) var(--s7); }
.info-item { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line-3); min-width: 0; }
.info-item h3 { font-size: var(--tm); }
.info-item .prose { font-size: var(--ts); }
.info-item .prose p { max-width: none; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s5); list-style: none; }
.feature {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-3px); }
.feature__icon { font-size: 28px; line-height: 1; }
.feature h3 { font-size: var(--tm); }
.feature .prose { font-size: var(--ts); }

/* Preise */
.price-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); list-style: none; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s5); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.price-row__label { font-weight: 600; }
.price-row__note { grid-column: 1 / -1; font-size: var(--ts); color: var(--text-3); }
.price-row__amount { font-size: var(--tl); font-weight: 800; color: var(--accent); white-space: nowrap; text-align: right; }
.price-row__member { display: block; font-size: var(--ts); font-weight: 600; color: var(--text-2); }

/* Programm */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--s6) var(--s8); }
.schedule-day h3 { margin-bottom: var(--s4); font-size: var(--tm); }
.timeline { list-style: none; border-left: 1px solid var(--line-3); }
.timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0 var(--s3) var(--s5); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: calc(var(--s3) + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline time, .timeline .timeline__time { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline__title { color: var(--text); }
.timeline__desc { grid-column: 2; font-size: var(--ts); color: var(--text-2); }
@media (max-width: 479.98px) { .timeline li { grid-template-columns: 1fr; gap: 0; } .timeline__desc { grid-column: 1; } }

/* FAQ / Textbausteine */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; font-weight: 700; cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: var(--tl); color: var(--accent); transition: transform var(--dur) var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .prose { padding-bottom: var(--s5); }

/* Downloads & Kontakte */
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); list-style: none; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.link-list a:hover { color: var(--brand-2); padding-left: var(--s4); }
.link-list__label { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.link-list__label small { font-weight: 400; color: var(--text-3); font-size: var(--ts); }
.link-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s5); list-style: none; }
.person {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.person:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--sh-1); }
.person__head { display: flex; align-items: center; gap: var(--s4); }
.person__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--text);
  background: radial-gradient(130% 120% at 20% 25%, rgba(0, 191, 255, .35), rgba(37, 99, 235, .25) 60%, var(--bg-2));
  border: 1px solid var(--line-3);
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__role { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--brand-2); }
.person__name { font-size: var(--tl); font-weight: 700; letter-spacing: var(--ls-snug); }
.person__bio { font-size: var(--ts); line-height: var(--lh-loose); color: var(--text-2); }
.person__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3);
  border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-bg);
  color: var(--brand-2); font-size: var(--ts); font-weight: 600;
}
.pill:hover { border-color: var(--brand-2); }

/* Tagebuch */
.diary { display: flex; flex-direction: column; gap: var(--s9); counter-reset: diary; }
.diary-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s7); align-items: start; scroll-margin-top: calc(var(--header-h) + var(--s5)); }
.diary-entry:nth-child(even) .diary-entry__media { order: 2; }
.diary-entry__media { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: calc(var(--header-h) + var(--s5)); }
.diary-entry__body { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.diary-entry__date { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--accent); }
.diary-entry__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--s2); list-style: none; }
.diary-entry__thumbs a { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.diary-entry__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.diary-entry__thumbs a:hover img { transform: scale(1.06); }
.diary-nav { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
@media (max-width: 959.98px) {
  .diary-entry { grid-template-columns: 1fr; gap: var(--s5); }
  .diary-entry:nth-child(even) .diary-entry__media { order: 0; }
  .diary-entry__media { position: static; }
}

/* Galerie */
/* Galerie: Raster mit großem ersten Bild, randlose Kacheln, Bildunterschrift beim Überfahren */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); grid-auto-rows: 180px; grid-auto-flow: dense; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.gallery__item { min-width: 0; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6n + 4) { grid-row: span 2; }
.gallery--single .gallery__item:first-child { grid-column: 1 / -1; grid-row: span 3; }
@media (max-width: 559.98px) { .gallery { grid-auto-rows: 150px; } .gallery__item:first-child { grid-column: 1 / -1; } }
.gallery__figure { margin: 0; height: 100%; }
.gallery__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--r-md); background: var(--bg-2); isolation: isolate; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s var(--ease); }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 8, .75), rgba(5, 5, 8, 0) 55%); opacity: 0; transition: opacity .3s var(--ease); }
.gallery__zoom { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(5, 5, 8, .55); backdrop-filter: blur(4px); opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--s3) var(--s4); color: #fff; font-size: var(--ts); line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
@media (hover: hover) {
  .gallery__link:hover img { transform: scale(1.05); }
  .gallery__link:hover::after, .gallery__link:hover .gallery__zoom, .gallery__link:hover .gallery__caption { opacity: 1; transform: none; }
}
.gallery__link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.gallery__link:focus-visible::after, .gallery__link:focus-visible .gallery__zoom, .gallery__link:focus-visible .gallery__caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery__caption { opacity: 1; transform: none; } .gallery__link:has(.gallery__caption)::after { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gallery__link img, .gallery__zoom, .gallery__caption { transition: none; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 5, 8, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; border-radius: var(--r-md); box-shadow: var(--sh-2); }
.lightbox p { margin-top: var(--s3); color: var(--text-2); font-size: var(--ts); text-align: center; }
.lightbox__close { position: fixed; top: var(--s4); right: var(--s4); width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 24px; }
.lightbox__nav--prev { left: var(--s4); } .lightbox__nav--next { right: var(--s4); }

/* Standort */
.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.location address { font-style: normal; color: var(--text-2); line-height: var(--lh-loose); }
.location address strong { color: var(--text); }
@media (max-width: 759.98px) { .location { grid-template-columns: 1fr; gap: var(--s5); } }

/* Mini-Kalender */
.cal { width: 100%; max-width: 380px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--s4); }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }
.cal__title { font-weight: 800; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: var(--ts); }
.cal__dow { color: var(--text-3); font-size: var(--tx); font-weight: 700; padding-bottom: var(--s1); }
.cal__day { padding: 6px 0; border-radius: var(--r-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cal__day.is-active { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Formulare ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
.form__section { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s5); border-top: 1px solid var(--line); }
.form__section:first-of-type { border-top: 0; padding-top: 0; }
.form__section h3 { font-size: var(--tm); }
.form__section p { color: var(--text-2); font-size: var(--ts); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-3); }
.field .req { color: var(--accent); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: var(--s3) var(--s4);
  font: inherit; font-size: var(--tb); color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-3); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); background: rgba(0, 191, 255, .04); }
.field select option { background: var(--bg-1); color: var(--text); }
.field textarea { min-height: 120px; line-height: var(--lh-base); resize: vertical; }
.check {
  grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text-2); font-size: var(--ts); line-height: var(--lh-base); cursor: pointer;
}
.check strong { color: var(--text); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-2); }
.check a { color: var(--brand-2); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); flex-wrap: wrap; padding-top: var(--s5); border-top: 1px solid var(--line); }
.form__actions p { max-width: 60ch; color: var(--text-3); font-size: var(--ts); }
@media (max-width: 767.98px) {
  .form { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: max(16px, 1em); }
  .form__actions .btn { width: 100%; }
}

/* Registrierungsbereich */
.register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s8); align-items: start; }
.register__aside { display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: calc(var(--header-h) + var(--s5)); }
@media (max-width: 1023.98px) { .register { grid-template-columns: 1fr; gap: var(--s6); } .register__aside { position: static; } }

/* ---------- Status-/Infoseiten ---------- */
.status-page { padding-block: var(--s10); }
.status-page__code { font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--brand-2); }
.status-page__icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.status-page__icon svg { width: 26px; height: 26px; }
.error-list { display: flex; flex-direction: column; gap: var(--s2); padding-left: var(--s4); border-left: 2px solid var(--red); list-style: none; color: var(--text-2); }

/* CTA-Band */
.cta-band { border-top: 1px solid var(--line-3); background: var(--bg-1); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); align-items: center; }
.cta-band__inner .btn-row { justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 1023.98px) { .cta-band__inner { grid-template-columns: 1fr; gap: var(--s5); } .cta-band__inner .btn-row { justify-content: flex-start; flex-wrap: wrap; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: var(--bg-1); padding-block: var(--s8) var(--s6); }
.site-footer__wordmark {
  position: absolute; left: 50%; bottom: -.32em; z-index: -1; transform: translateX(-50%);
  font-size: clamp(4rem, 17vw, 18rem); font-weight: 800; line-height: .8; letter-spacing: var(--ls-tight);
  white-space: nowrap; opacity: .06; pointer-events: none; user-select: none;
}
.site-footer__wordmark span { color: var(--teal); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s7); padding-bottom: var(--s7); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s4); }
.footer-brand img { height: 48px; width: auto; align-self: flex-start; }
.footer-brand p { max-width: 36ch; color: var(--text-2); font-size: var(--ts); line-height: var(--lh-loose); }
.footer-col h2 { font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.footer-col a { color: var(--text-2); font-size: var(--ts); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--brand-2); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--ts); }
.site-footer__bottom a:hover { color: var(--brand-2); }
.footer-btn { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 959.98px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* Vorschau-Hinweis (unveröffentlichte Events) */
.preview-bar { position: sticky; top: 0; z-index: 1200; padding: var(--s2) var(--s4); background: var(--gold); color: #1a1400; font-size: var(--ts); font-weight: 700; text-align: center; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero__slide:first-child { opacity: .4; }
  .event-card:hover, .feature:hover, .person:hover, .spotlight:hover, .btn--primary:hover { transform: none; }
  .mobile-nav__body > * { transform: none; }
}

/* ---------- Packliste (Eventseite + /packliste) ---------- */
.packlist + .packlist { margin-top: var(--s7); }
.packlist__title { font-size: var(--tl); margin-bottom: var(--s2); }
.packlist__desc { margin-bottom: var(--s4); }
.packlist__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s5) var(--s6); }
.packlist__group { break-inside: avoid; }
.packlist__cat { font-size: var(--tb); color: var(--brand-2); margin-bottom: var(--s2); }
.packlist__items { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.packlist__items li { display: flex; gap: var(--s2); align-items: flex-start; line-height: 1.4; }
.packlist__items small { display: block; color: var(--text-3); font-size: var(--ts); }
.packlist__box { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--line-3, rgba(255, 255, 255, .3)); border-radius: 4px; }
.packlist__qty { color: var(--text-3); }
.packlist__opt { margin-left: var(--s1); padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--tx); color: var(--text-3); white-space: nowrap; }
.packlist__actions { margin-top: var(--s6); }
.packpage__foot { margin-top: var(--s7); }

/* Druck */
@media print {
  .site-header, .site-footer, .mobile-nav, .cta-band, .hero__backdrop, .hero__veil { display: none !important; }
  body { background: #fff; color: #000; }
  .packpage__actions, .preview-bar { display: none !important; }
  .packpage { padding: 0; }
  .packpage .kicker, .packlist__cat, .packlist__qty, .packlist__items small, .packlist__opt, .packpage__foot { color: #333 !important; }
  .packlist__box { border-color: #000; }
  .packlist__groups { gap: 12px 24px; }
}

/* Rückmeldeseiten der bisherigen Formular-Endpunkte */
.status-page ul:not([class]) { padding-left: var(--s5); list-style: disc; color: var(--text-2); }
.status-page ul:not([class]) li + li { margin-top: var(--s1); }
.status-page > .c > p:not([class]) { color: var(--text-2); }

/* ---------- Interaktiver Eventkalender ---------- */
.ecal { --bar: var(--teal); }
.ecal__toolbar { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.ecal__toolbar[hidden] { display: none; }
.ecal__title { min-width: 0; flex: 0 1 auto; font-size: var(--tl2); font-weight: 800; letter-spacing: var(--ls-snug); margin: 0 var(--s2); }
.ecal__nav {
  width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3); border-radius: 50%; color: var(--text-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ecal__nav:not(:disabled):hover { color: var(--brand-2); border-color: var(--brand-2); background: rgba(0, 191, 255, .08); }
.ecal__nav:disabled { opacity: .3; cursor: default; }
.ecal__nav svg { width: 18px; height: 18px; transform: rotate(180deg); }
.ecal__nav--next svg { transform: none; }
.ecal__today { margin-left: auto; }

.ecal__month + .ecal__month { margin-top: var(--s8); }
.ecal.is-enhanced .ecal__month { display: none; margin-top: 0; }
.ecal.is-enhanced .ecal__month.is-active { display: block; }
.ecal.is-enhanced .ecal__month-title { display: none; }
.ecal__month-title { font-size: var(--tl); margin-bottom: var(--s4); }

.ecal__grid { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.ecal__head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--bg-1); border-bottom: 1px solid var(--line); }
.ecal__head span { padding: var(--s2) var(--s3); font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-3); }
.ecal__head span.is-weekend { color: var(--text-2); }
.ecal__week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 30px repeat(var(--lanes, 1), 26px) 10px;
  row-gap: 3px; min-height: 92px;
}
.ecal__week + .ecal__week { border-top: 1px solid var(--line-2); }
.ecal__day { grid-row: 1 / -1; border-left: 1px solid var(--line-2); padding: 6px var(--s2); }
.ecal__day:nth-child(1) { border-left: 0; }
.ecal__day.is-weekend { background: rgba(255, 255, 255, .02); }
.ecal__day.is-out .ecal__num { color: rgba(234, 240, 255, .25); }
.ecal__num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; font-size: var(--ts); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ecal__day.is-today .ecal__num { background: var(--brand); color: #fff; font-weight: 800; }

.ecal__bar {
  position: relative; z-index: 1; display: flex; align-items: center; min-width: 0;
  margin: 0 4px; padding: 0 var(--s2);
  border-radius: 6px; border: 1px solid color-mix(in srgb, var(--bar) 70%, transparent);
  background: color-mix(in srgb, var(--bar) 24%, var(--bg-1));
  color: var(--text); font-size: var(--tx); font-weight: 700; line-height: 1;
  box-shadow: inset 3px 0 0 var(--bar);
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.ecal__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecal__bar:hover, .ecal__bar:focus-visible { background: color-mix(in srgb, var(--bar) 45%, var(--bg-1)); box-shadow: inset 3px 0 0 var(--bar), 0 4px 14px color-mix(in srgb, var(--bar) 35%, transparent); transform: translateY(-1px); }
.ecal__bar.cont-before { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.ecal__bar.cont-after { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ecal__bar.is-past { filter: saturate(.45); opacity: .7; }
.ecal__bar.is-past:hover { filter: none; opacity: 1; }

.ecal__agenda { list-style: none; display: flex; flex-direction: column; margin-top: var(--s5); border-top: 1px solid var(--line); }
.ecal__agenda li { --bar: var(--teal); }
.ecal__agenda a {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center;
  padding: var(--s3) var(--s2) var(--s3) var(--s4); border-bottom: 1px solid var(--line-2);
  box-shadow: inset 3px 0 0 var(--bar);
  transition: background var(--dur) var(--ease);
}
.ecal__agenda a:hover { background: var(--surface); }
.ecal__agenda-date { font-size: var(--ts); font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ecal__agenda-title { font-weight: 700; }
.ecal__empty { margin-top: var(--s4); color: var(--text-3); font-size: var(--ts); }
.ecal__hint { margin-top: var(--s5); }

@media (max-width: 767.98px) {
  .ecal__head span { padding: var(--s2) 0; text-align: center; }
  .ecal__week { grid-template-rows: 28px repeat(var(--lanes, 1), 8px) 8px; min-height: 56px; }
  .ecal__day { padding: 4px 0; text-align: center; }
  .ecal__num { min-width: 22px; height: 22px; font-size: var(--tx); }
  .ecal__bar { margin: 0 2px; padding: 0; border-radius: 3px; border: 0; background: var(--bar); box-shadow: none; }
  .ecal__bar.is-past { opacity: .5; }
  .ecal__bar span { display: none; }
  .ecal__title { font-size: var(--tl); }
  .ecal__agenda a { grid-template-columns: minmax(0, 1fr) auto; }
  .ecal__agenda-date { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ecal__bar:hover { transform: none; } }
.chip--tag { --tag: var(--brand-2); gap: 6px; align-items: center; }
.chip--tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag); }
.chip--tag:hover, .chip--tag[aria-current="true"] { border-color: var(--tag); background: color-mix(in srgb, var(--tag) 16%, transparent); }

/* Personen-Karten: gleiche Höhe je Reihe, Aktionen immer unten, Buttons ohne Umbruch */
.people > li { display: flex; }
.people > li > .person { flex: 1; height: 100%; }
.pill { white-space: nowrap; line-height: 1.2; padding: 6px var(--s3); }
.pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.people { grid-auto-rows: 1fr; } /* alle Karten gleich hoch – auch über Reihen hinweg */

/* Termin-Bereich auf Eventseiten (kompakt) */
.termin {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5) var(--s7);
  padding: var(--s5) var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.termin__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.termin__date { font-size: var(--tl2); }
.termin__info .btn { margin-top: var(--s2); }
.termin .cal { max-width: 300px; padding: var(--s3); }
.termin .cal__head { margin-bottom: var(--s2); }
.termin .cal__day { padding: 3px 0; }
.termin .stack { flex-direction: row; flex-wrap: wrap; gap: var(--s4); }
@media (max-width: 639.98px) { .termin { padding: var(--s4); } .termin .cal { max-width: none; width: 100%; } }
.termin { display: inline-flex; max-width: 100%; justify-content: flex-start; align-items: center; }
.termin > .stack { flex: 0 0 auto; }
.termin .cal { width: 280px; max-width: 100%; }
@media (max-width: 639.98px) { .termin { display: flex; } .termin > .stack { flex: 1 1 100%; } .termin .cal { width: 100%; } }

/* Kompakte Hinweise (unter „Das erwartet dich“) */
.hints { list-style: none; display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.hint {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding: var(--s3) var(--s4); border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.hint svg { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.hint__body { display: flex; flex-direction: column; gap: 2px; font-size: var(--ts); }
.hint__body strong { color: var(--text); font-weight: 700; }
.hint__body .prose { font-size: var(--ts); line-height: var(--lh-base); }

/* Zusatzfragen & Ja/Nein-Auswahl im Anmeldeformular */
.field__help { font-size: var(--ts); color: var(--text-3); line-height: var(--lh-base); }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice > legend { padding: 0; margin-bottom: var(--s2); font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-3); }
.choice__options { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opt span {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 10px var(--s4);
  border: 1px solid var(--line-3); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03);
  font-weight: 600; font-size: var(--ts); color: var(--text-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.choice__opt span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-3); flex-shrink: 0; }
.choice__opt input:checked + span { color: var(--text); border-color: var(--brand-2); background: rgba(0, 191, 255, .08); }
.choice__opt input:checked + span::before { border-color: var(--brand-2); background: var(--brand-2); box-shadow: inset 0 0 0 2px var(--bg); }
.choice__opt input:focus-visible + span { outline: 1.5px solid var(--brand-2); outline-offset: 3px; }
.timeline__time--none { color: var(--text-3); font-weight: 400; }

/* Termin: ohne äußeren Kasten, mittig ausgerichtet */
.termin { display: flex; width: 100%; justify-content: center; align-items: center; gap: var(--s5) var(--s8); padding: 0; border: 0; border-radius: 0; background: none; }
@media (max-width: 639.98px) { .termin { flex-direction: column; align-items: stretch; } .termin__info { align-items: center; text-align: center; } }

/* ---------- Schutzkonzept ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s4); list-style: none; }
.promise {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s6) var(--s5) var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--surface) 55%);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.promise:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-4px); }
.promise__num { position: absolute; top: -.18em; right: var(--s3); font-size: 88px; font-weight: 800; line-height: 1; color: var(--accent); opacity: .12; pointer-events: none; }
.promise__icon, .rule-card__icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.promise__icon svg, .rule-card__icon svg { width: 24px; height: 24px; }
.promise h3 { font-size: var(--tm); }
.promise p { font-size: var(--ts); color: var(--text-2); line-height: var(--lh-base); }

.audience__tabs { display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); margin-bottom: var(--s6); border: 1px solid var(--line-3); border-radius: 999px; background: var(--surface); }
.audience__tabs[hidden] { display: none; }
.audience__tab { padding: var(--s2) var(--s5); border-radius: 999px; font-weight: 700; font-size: var(--ts); color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.audience__tab:hover { color: var(--text); }
.audience__tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.audience__tab:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.audience__panel + .audience__panel { margin-top: var(--s7); }
.audience__heading { margin-bottom: var(--s4); font-size: var(--tl); }
.audience.is-tabbed .audience__panel + .audience__panel { margin-top: 0; }
.audience.is-tabbed .audience__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.audience.is-tabbed .audience__panel:not([hidden]) { animation: sk-in var(--dur-slow) var(--ease); }
@keyframes sk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s3); list-style: none; }
.rule-card { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rule-card strong { display: block; margin-bottom: 2px; font-size: var(--tb); }
.rule-card p { font-size: var(--ts); color: var(--text-2); line-height: var(--lh-base); }
.rule-card__icon { width: 40px; height: 40px; }
.rule-card__icon svg { width: 20px; height: 20px; }

.quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); list-style: none; align-items: start; }
.quiz-card { border: 1px solid var(--line-3); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.quiz-card summary { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); cursor: pointer; list-style: none; }
.quiz-card summary::-webkit-details-marker { display: none; }
.quiz-card summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: var(--r-lg); }
.quiz-card__q { font-weight: 600; line-height: var(--lh-base); }
.quiz-card__hint { align-self: flex-start; padding: 4px var(--s3); border-radius: 999px; border: 1px dashed var(--line-3); font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-3); }
.quiz-card:hover .quiz-card__hint { color: var(--brand-2); border-color: var(--brand-2); }
.quiz-card[open] .quiz-card__hint { display: none; }
.quiz-card__a { display: flex; flex-direction: column; gap: var(--s2); padding: 0 var(--s5) var(--s5); animation: sk-in var(--dur-slow) var(--ease); }
.quiz-card__verdict { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--tm); font-weight: 800; }
.quiz-card__verdict svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #fff; }
.quiz-card__a p { font-size: var(--ts); color: var(--text-2); line-height: var(--lh-base); }
.quiz-card__ref { font-size: var(--tx); color: var(--text-3); }
.quiz-card--ok[open] { border-color: color-mix(in srgb, var(--green) 55%, transparent); background: linear-gradient(160deg, rgba(34, 197, 94, .12), var(--surface) 60%); }
.quiz-card--ok .quiz-card__verdict { color: var(--green); }
.quiz-card--ok .quiz-card__verdict svg { background: var(--green); }
.quiz-card--no[open] { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: linear-gradient(160deg, rgba(239, 68, 68, .12), var(--surface) 60%); }
.quiz-card--no .quiz-card__verdict { color: var(--red); }
.quiz-card--no .quiz-card__verdict svg { background: var(--red); }

.sk-emergency { margin-bottom: var(--s7); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s5); list-style: none; margin-bottom: var(--s7); }
.step { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--s2); border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 800; }
.step h3 { font-size: var(--tm); }
.step p { font-size: var(--ts); color: var(--text-2); line-height: var(--lh-base); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s4); }
.help-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.guardian {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: center; margin-bottom: var(--s7); padding: var(--s6);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), var(--surface) 65%);
}
.guardian__photo { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.guardian__photo img, .guardian__photo > span:first-child {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent);
}
.guardian__photo > span:first-child { display: flex; align-items: center; justify-content: center; background: var(--bg-2); font-size: 56px; font-weight: 800; color: var(--accent); }
.guardian__badge { position: absolute; right: 2px; bottom: 6px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--bg); border: 3px solid var(--bg-1); }
.guardian__badge svg { width: 22px; height: 22px; }
.guardian__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); min-width: 0; }
.guardian__body h3 { font-size: var(--th1); }
.guardian__role { display: inline-block; margin-left: var(--s2); padding: 3px var(--s3); border-radius: 999px; vertical-align: middle; font-size: var(--ts); font-weight: 700; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.guardian__body > p { max-width: 62ch; color: var(--text-2); }
@media (max-width: 639.98px) { .guardian { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: var(--s5); } .guardian__body { align-items: center; } .guardian__photo { width: 128px; height: 128px; } .guardian__role { margin: var(--s2) 0 0; } }
.help-card__label { font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent); }
.help-card h3 { font-size: var(--tm); }
.help-card__links { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); list-style: none; }
.help-card__links a { display: inline-flex; align-items: flex-start; gap: var(--s2); font-size: var(--ts); color: var(--text-2); overflow-wrap: anywhere; transition: color var(--dur) var(--ease); }
.help-card__links a:hover { color: var(--brand-2); }
.help-card__links svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.sk-para { display: inline-block; min-width: 4.5em; margin-right: var(--s3); color: var(--accent); font-variant-numeric: tabular-nums; }
.doc-card {
  position: sticky; top: calc(var(--header-h) + var(--s5));
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding: var(--s6);
  border: 1px solid var(--line-3); border-radius: var(--r-lg); background: var(--bg-1); box-shadow: var(--sh-1);
}
.doc-card__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 76px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-3); color: var(--text-2); }
.doc-card__icon svg { width: 28px; height: 28px; }
.doc-card__icon span { position: absolute; bottom: -8px; right: -10px; padding: 2px 6px; border-radius: var(--r-xs); background: var(--red); color: #fff; font-size: var(--tx); font-weight: 800; }
.doc-card h3 { font-size: var(--tl); }
.doc-card__meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin: 0; }
.doc-card__meta dt { font-size: var(--tx); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-3); }
.doc-card__meta dd { margin: 0; font-weight: 700; }
.doc-card .btn { align-self: stretch; justify-content: center; }
@media (max-width: 959.98px) { .doc-card { position: static; } }
@media (prefers-reduced-motion: reduce) { .promise, .promise:hover { transform: none; } .quiz-card__a, .audience.is-tabbed .audience__panel:not([hidden]) { animation: none; } }

/* Impressum & Barrierefreiheit */
.legal-toc { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.legal-toc a { padding: 6px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: var(--ts); font-weight: 600; color: var(--text-2); }
.legal-toc a:hover, .legal-toc a:focus-visible { border-color: var(--brand-line); color: var(--text); }
.legal-address { font-style: normal; }
.legal-facts { grid-template-columns: 1fr; }
.legal-hotline, .legal-feedback { margin-top: var(--s7); }
.legal-hotline .notice__body, .legal-feedback .notice__body { display: flex; flex-direction: column; gap: var(--s2); }
.legal-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0; font-size: var(--ts); }
.legal-dl dt { color: var(--text-3); }
.legal-dl dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.legal-checks { display: grid; gap: var(--s3); margin: 0; }
.legal-checks dt { font-weight: 700; color: var(--text); }
.legal-checks dd { margin: 0 0 var(--s2); color: var(--text-2); font-size: var(--ts); line-height: var(--lh-base); }
#anbieter, #vorstand, #jugendschutz, #kennnummern, #verantwortung, #barrierefreiheit, #hinweise { scroll-margin-top: 90px; }
@media (max-width: 559.98px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: var(--s2); } }

/* Gewählter Ausschnitt des Titelbilds (Fokuspunkt + Vergrößerung, siehe focus_style()) */
.focus-img { object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%); scale: var(--fz, 1); }
/* Kompaktes Eventlayout (wenig Inhalt): Beschreibung und Eckdaten neben dem Anmeldeformular */
.event--compact .section { padding-block: var(--s8); }
.event--compact .register__aside { position: static; }
.facts--stack { grid-template-columns: 1fr; }
.facts--stack .fact { padding-block: var(--s3); }
/* Zusatztermine (Vortreffen …) im Kalender: Farbe der Terminart, gestrichelter Rand, Streifen in der Eventfarbe */
.ecal { --bar-parent: var(--teal); }
.ecal__bar--appt { border-style: dashed; box-shadow: inset 3px 0 0 var(--bar-parent); background: color-mix(in srgb, var(--bar) 16%, var(--bg-1)); }
.ecal__bar--appt:hover, .ecal__bar--appt:focus-visible { box-shadow: inset 3px 0 0 var(--bar-parent), 0 4px 14px color-mix(in srgb, var(--bar) 35%, transparent); }
.ecal__agenda li.is-appt a { box-shadow: inset 3px 0 0 var(--bar-parent); border-left: 0; }
.ecal__agenda li.is-appt .ecal__agenda-title small { color: var(--text-2); font-weight: 400; }
.ecal__type { border-color: var(--bar); color: var(--bar); }
/* ===== Termine & Kalender: eine Karte – Kopfband (Hauptzeitraum), Zeitleiste, Kalender mit Export ===== */
.sched { --event: var(--accent); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.sched__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s5); padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--event) 12%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--event); }
.sched__kicker { flex-basis: 100%; font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--event); }
.sched__range { margin: 0; font-size: var(--tl2); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--text); font-variant-numeric: tabular-nums; }
.sched__sub { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); color: var(--text-2); font-size: var(--ts); }
.sched__sub span + span::before { content: "·"; margin-right: var(--s3); color: var(--text-3); }
.sched__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.sched__body--solo { grid-template-columns: 1fr; }
.sched__cal { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-left: 1px solid var(--line); background: color-mix(in srgb, var(--bg-1) 55%, transparent); }
.sched__body--solo .sched__cal { border-left: 0; }
.sched__actions { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }

/* Zeitleiste: Datum | Linie mit Punkt in der Farbe der Terminart | Inhalt (keine Farbflächen) */
.tl { --type: var(--text-3); list-style: none; margin: 0; padding: var(--s5) var(--s6); display: flex; flex-direction: column; }
.tl__item { --dot: var(--type); position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: var(--s4); padding-bottom: var(--s4); scroll-margin-top: calc(var(--header-h) + var(--s5)); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: calc(3.2rem + var(--s4)); top: 1.35rem; bottom: -.35rem; width: 2px; transform: translateX(-1px); background: var(--line-2); }
.tl__item:last-child::before { display: none; }
.tl__body { position: relative; padding-left: var(--s4); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tl__body::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 3px solid var(--dot); }
.tl__date { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl__day { font-size: var(--tl); font-weight: 800; color: var(--text); }
.tl__mon { margin-top: 3px; font-size: var(--tx); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-3); }
.tl__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); font-size: var(--ts); color: var(--text-2); }
.tl__meta { row-gap: 0; }
.tl__meta span + span::before { content: "·"; margin-right: var(--s3); color: var(--text-3); }
.tl__type { margin: 0; line-height: 1.3; font-size: var(--tx); font-weight: 800; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--dot); }
.tl__title { margin: 0; font-size: var(--tb); font-weight: 700; color: var(--text); }
.tl__desc, .tl__note { margin: 0; font-size: var(--ts); color: var(--text-2); line-height: var(--lh-base); }
.tl__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl__links { margin: var(--s1) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--ts); }
.tl__link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(0, 191, 255, .45); border-radius: var(--r-sm); background: rgba(0, 191, 255, .06); color: var(--brand-2); font-weight: 700; text-decoration: none; line-height: 1.2; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tl__link:hover, .tl__link:focus-visible { background: rgba(0, 191, 255, .14); border-color: var(--brand-2); outline: none; }
.tl__link svg { width: 13px; height: 13px; }
.tl__hint { color: var(--text-3); }
.tl__place { display: flex; gap: 6px; align-items: baseline; }
.tl__place svg { width: 13px; height: 13px; flex-shrink: 0; transform: translateY(2px); color: var(--text-3); }
.tl__item.is-done { opacity: .55; }
.tl__item.is-hl .tl__body { background: color-mix(in srgb, var(--dot) 10%, transparent); border-radius: var(--r-sm); }

/* Hauptveranstaltung: gefüllter, größerer Punkt in der Eventfarbe, Abschnitt dezent hinterlegt */
.tl__item--main { --dot: var(--event); }
.tl__item--main .tl__body { padding: var(--s2) var(--s3) var(--s2) var(--s4); border-radius: var(--r-sm); background: color-mix(in srgb, var(--event) 9%, transparent); }
.tl__item--main .tl__body::before { left: -7px; top: .65rem; width: 14px; height: 14px; border: 0; background: var(--event); box-shadow: 0 0 0 4px color-mix(in srgb, var(--event) 25%, transparent); }
.tl__item--main .tl__day { color: var(--event); }

/* Kalender in der Karte: Monate nebeneinander, Hauptzeitraum als Band, Zusatztermine als Ring + Punkt */
.sched .cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: var(--s4); }
.sched .cal { max-width: none; padding: 0; border: 0; background: none; }
.sched .cal__head { margin-bottom: var(--s2); }
.sched .cal__title { font-size: var(--ts); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-2); }
.sched .cal__grid { gap: 3px 0; }
.sched .cal__day { position: relative; padding: 6px 0; margin: 0 1px; border-radius: var(--r-xs); }
.sched .cal__day.is-active { margin: 0; border-radius: 0; background: color-mix(in srgb, var(--event) 22%, transparent); box-shadow: none; color: var(--text); font-weight: 700; }
.sched .cal__day.is-active.is-start { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.sched .cal__day.is-active.is-end { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.sched .cal__day.has-marks { color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--mark); background: color-mix(in srgb, var(--mark) 16%, transparent); border-radius: var(--r-sm); cursor: default; }
.tl__meta span { white-space: nowrap; }
.sched .cal__day.is-hl { background: color-mix(in srgb, var(--mark, var(--event)) 40%, transparent); color: var(--text); }

@media (max-width: 899.98px) {
  .sched__body { grid-template-columns: 1fr; }
  .sched__cal { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 559.98px) {
  .sched__head, .tl, .sched__cal { padding-left: var(--s4); padding-right: var(--s4); }
  .tl__item { grid-template-columns: 2.6rem minmax(0, 1fr); gap: var(--s3); }
  .tl__item::before { left: calc(2.6rem + var(--s3)); }
  .tl__body { padding-left: var(--s3); }
  .sched__actions .btn { flex: 1 1 100%; justify-content: center; }
}
