/* =====================================================================
   Zukunft Gesundheit Hackathon – Designsystem
   Abgeleitet aus dem offiziellen Branding-Board
   Palette: Teal → Blau → Violett, Navy · Typo: Montserrat
   ===================================================================== */

:root {
  /* Markenfarben */
  --teal:   #10B9A3;
  --blue:   #2563EB;
  --purple: #7C3AED;
  --navy:   #0F1A3C;
  --navy-2: #0A1230;

  /* Neutraltöne */
  --ink:      #0F1A3C;
  --body:     #3B4463;
  --muted:    #6B7391;
  --line:     #E4E8F2;
  --bg:       #FFFFFF;
  --bg-soft:  #F4F6FC;
  --bg-tint:  #EEF1FA;

  /* Verläufe */
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--blue) 52%, var(--purple) 100%);
  --grad-soft: linear-gradient(120deg, rgba(16,185,163,.12), rgba(37,99,235,.12), rgba(124,58,237,.12));

  /* Maße */
  --wrap: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(15,26,60,.35);
  --shadow-lg: 0 40px 90px -40px rgba(15,26,60,.45);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(37,99,235,.6); }
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(124,58,237,.65); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); }
.btn--full { width: 100%; }

/* =====================================================================
   PASSWORT-GATE (Startseite)
   ===================================================================== */
body.gate {
  min-height: 100vh;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, #142252 0%, var(--navy-2) 55%, #060B22 100%);
  overflow: hidden; padding: 24px;
}
.gate__bg { position: fixed; inset: 0; z-index: 0; filter: blur(60px); opacity: .55; }
.blob { position: absolute; width: 42vw; height: 42vw; border-radius: 50%; }
.blob--teal   { background: var(--teal);   top: -8%;  left: -6%;  animation: float 14s ease-in-out infinite; }
.blob--blue   { background: var(--blue);   top: 30%;  right: -8%; animation: float 18s ease-in-out infinite reverse; }
.blob--purple { background: var(--purple); bottom: -14%; left: 30%; animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) scale(1);} 50%{ transform: translateY(-32px) scale(1.06);} }

.gate__card {
  position: relative; z-index: 1;
  width: min(100%, 460px);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 28px;
  padding: 44px 40px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(8px);
}
.gate__logo { margin: 0 auto 26px; width: min(320px, 82%); height: auto; }
.gate__eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700;
  color: var(--blue); margin: 0 0 .4rem;
}
.gate__title { font-size: 1.7rem; margin-bottom: .5rem; }
.gate__sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.gate__form { text-align: left; }
.gate__label {
  display: block; font-size: .8rem; font-weight: 700; color: var(--ink);
  margin-bottom: .4rem; letter-spacing: .01em;
}
.gate__input {
  width: 100%; padding: .95rem 1.1rem; font-size: 1rem; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s; margin-bottom: 1.1rem;
}
.gate__input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); background: #fff; }
.gate__input.is-error { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.gate__msg { color: #E5484D; font-size: .85rem; margin: -.6rem 0 1rem; font-weight: 600; }
.gate__foot {
  margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .01em;
}

/* =====================================================================
   HEADER / NAVIGATION (geschützte Seiten)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Höhe fest im CSS, nicht nur über das height-Attribut im HTML: die globale Regel
   `img { height: auto }` (oben) übersteuert das Attribut. Auf Seiten ohne Navigation
   (presse.php) konnte das Logo dadurch auf volle Spaltenbreite wachsen und lief über
   den 72 px hohen Kopf hinaus – der Text darunter verschwand hinter dem Logo. */
.site-header__brand img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; }
.site-nav a:not(.site-nav__logout).is-active,
.site-nav a:not(.site-nav__logout):hover { color: var(--blue); }
.site-nav a:not(.site-nav__logout).is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.site-nav__logout {
  padding: .5rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem;
}
.site-nav__logout:hover { border-color: var(--purple); color: var(--purple); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 10%, rgba(124,58,237,.12), transparent 60%),
              radial-gradient(50% 70% at 10% 90%, rgba(16,185,163,.14), transparent 60%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 0 84px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 780px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow); margin-bottom: 1.4rem;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero__lead { font-size: 1.18rem; color: var(--body); max-width: 54ch; margin: .2rem auto 1.8rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero .countdown { justify-content: center; }

/* Countdown */
.countdown { display: flex; gap: 12px; margin-top: 2rem; }
.cd {
  min-width: 74px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
}
.cd__n {
  display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd__l {
  display: block; margin-top: .4rem; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700; color: var(--muted);
}
.countdown.is-over { font-weight: 700; color: var(--blue); }
.hero__art { display: grid; place-items: center; margin-bottom: 26px; }
.hero__art img { width: min(340px, 72%); filter: drop-shadow(0 30px 60px rgba(15,26,60,.18)); }

/* Fakten-Leiste */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 2; }
.fact { background: #fff; padding: 1.5rem 1.6rem; }
.fact__k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.fact__v { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-top: .2rem; }
/* Zweiter Fakten-Block (Fließtext statt Kennzahl), z. B. ÖPNV & Parken */
.facts--info { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.facts--info .fact__v { font-size: .95rem; font-weight: 500; line-height: 1.6; color: var(--body); }
.facts--info .fact__v strong { color: var(--ink); font-weight: 800; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section__head p { color: var(--body); font-size: 1.05rem; }

/* Pfeiler-Karten */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); margin-bottom: 1.1rem; font-size: 1.5rem;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; }

/* CTA-Band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grad); color: #fff; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 1.6rem; }

/* Seiten-Platzhalter */
.page-head { background: var(--bg-soft); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .section__eyebrow { text-align: left; }
.placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 48px;
  text-align: center; color: var(--muted); background: var(--bg-soft);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0; margin-top: 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand strong { color: #fff; display: block; font-size: 1rem; }
.site-footer__brand span { font-size: .85rem; }
.site-footer__meta { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.site-footer__meta span:first-child { color: #fff; font-weight: 700; }
.site-footer__hash { margin-top: 6px; }
.site-footer__hash strong {
  color: #fff; font-weight: 800; letter-spacing: .03em;
  border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 1px;
}

/* =====================================================================
   ONE-PAGER: Anker-Offset & Navigation
   ===================================================================== */
section[id], div[id].anchor { scroll-margin-top: 88px; }

.nav-cta {
  padding: .5rem 1.15rem; border-radius: 999px; background: var(--grad);
  color: #fff !important; font-weight: 700; font-size: .9rem;
  box-shadow: 0 10px 24px -12px rgba(37,99,235,.6);
}
.nav-cta:hover { transform: translateY(-1px); }
/* Scroll-Spy: aktiver Abschnitt */
.site-nav a[data-spy].is-active { color: var(--blue); }
.site-nav a[data-spy].is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .people.reveal .person { opacity: 1; transform: none; transition: none; }
  .person__avatar::before, .person__badge { transition: none; }
  html { scroll-behavior: auto; }
  .blob { animation: none !important; }
}

/* =====================================================================
   PERSONEN
   ===================================================================== */
/* Kompaktes Personen-Raster: Karte zeigt nur Foto, Name, Rolle, Organisation –
   die vollständige Vita steht in der Lightbox. Das halbiert die Höhe des Abschnitts,
   ohne dass jemand etwas suchen muss. */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }

/* Gestaffeltes Einblenden beim Hereinscrollen. Der Container selbst animiert nicht,
   damit sich die Bewegungen nicht überlagern – nur die einzelnen Karten. */
.people.reveal { opacity: 1; transform: none; transition: none; }
.people.reveal .person {
  opacity: 0; transform: translateY(20px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.24,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.people.reveal.is-visible .person { opacity: 1; transform: none; }
.person {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
/* Klickfläche = ganze Karte, öffnet das vollständige Profil in der Lightbox */
.person__btn {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; height: 100%; margin: 0; padding: 26px 18px 22px; border: 0;
  background: none; font: inherit; color: inherit; cursor: pointer;
}
.person__btn:focus-visible { outline: 3px solid rgba(37,99,235,.4); outline-offset: -3px; border-radius: var(--radius); }

/* Avatar mit Verlaufsring und Pfeil-Badge – beides erscheint erst bei Hover/Fokus
   und signalisiert, dass die Karte anklickbar ist. */
.person__avatar { position: relative; flex: 0 0 auto; margin-bottom: 14px; line-height: 0; }
.person__avatar::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--grad);
  opacity: 0; transform: scale(.88); transition: opacity .25s ease, transform .25s cubic-bezier(.22,.8,.24,1);
}
.person__btn:hover .person__avatar::before,
.person__btn:focus-visible .person__avatar::before { opacity: 1; transform: scale(1); }
.person__photo {
  position: relative; width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 8px 20px -10px rgba(15,26,60,.4);
}
.person__badge {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue);
  font-size: .9rem; font-weight: 800; line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(15,26,60,.45);
  opacity: 0; transform: scale(.6) translateY(4px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.3,1.4,.5,1);
}
.person__btn:hover .person__badge,
.person__btn:focus-visible .person__badge { opacity: 1; transform: none; }
/* Initialen-Kachel, solange kein Foto vorliegt */
.person__photo--ph, .person-detail__photo--ph {
  display: grid; place-items: center; background: var(--grad); color: #fff;
  font-weight: 800; letter-spacing: .02em;
}
.person__photo--ph { font-size: 2.1rem; }
.person-detail__photo--ph { font-size: 2.6rem; }
.person__body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; min-width: 0; }
.person__name { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 .2rem; line-height: 1.3; }
.person__role {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .01em; margin: 0 0 .15rem; line-height: 1.35;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.person__org { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
/* Nur für Screenreader – nennt die Aktion, die der Pfeil-Badge visuell andeutet */
.u-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.person__link {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; color: var(--blue);
}
.person__link:hover { color: var(--purple); }
.people-more { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }

/* Personen-Profil in der Lightbox */
.person-detail { padding: 34px 30px 32px; text-align: center; }
.person-detail__photo {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px;
  box-shadow: 0 10px 26px -12px rgba(15,26,60,.45); display: block;
}
.person-detail__name { font-size: 1.45rem; line-height: 1.25; margin: 0 0 .2rem; color: var(--ink); }
.person-detail__role {
  font-size: .9rem; font-weight: 700; margin: 0 0 .1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.person-detail__org { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 0 0 1.2rem; }
.person-detail__bio { font-size: .97rem; line-height: 1.65; color: var(--body); margin: 0 0 1.4rem; text-align: left; }

/* =====================================================================
   CHALLENGES (Detailkarten)
   ===================================================================== */
.challenge-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.challenge {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; overflow: hidden;
}
.challenge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.challenge__no {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--muted);
}
.challenge__title { font-size: 1.3rem; margin: .3rem 0 1rem; }
.challenge__block { margin-bottom: .9rem; }
.challenge__k {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 800; color: var(--blue); margin-bottom: .2rem;
}
.challenge__block p { font-size: .93rem; color: var(--body); margin: 0; }
.challenge__owner {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.challenge__owner strong { color: var(--ink); }

/* --- Challenge-Grid (Karten öffnen eine Lightbox) --- */
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.ch-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
/* Klickfläche = ganze Karte (Button-Reset) */
.ch-card__btn {
  display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; border: 0;
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.ch-card__btn:focus-visible { outline: 3px solid rgba(37,99,235,.4); outline-offset: -3px; border-radius: var(--radius); }

.ch-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--grad-soft); overflow: hidden; }
.ch-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: .04em;
}
/* dezentes Owner-Logo unten links auf dem Thumbnail */
.ch-card__logo {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 5px 8px;
  box-shadow: 0 4px 12px -4px rgba(15,26,60,.28); display: inline-flex;
}
.ch-card__logo img { height: 20px; width: auto; display: block; }

.ch-card__meta { display: flex; flex-direction: column; gap: .35rem; padding: 20px 22px 6px; }
.ch-card__no { font-size: .74rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.ch-card__title {
  font-size: 1.12rem; line-height: 1.32; margin: .1rem 0; color: var(--ink); font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.32em * 3);
}
.ch-card__teaser {
  font-size: .92rem; line-height: 1.5; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.5em * 2);
}
.ch-card__owner { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.ch-card__owner strong { color: var(--ink); }

.ch-card__toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 12px 22px 20px; font-size: .84rem; font-weight: 700; color: var(--blue);
}
.ch-card__chev { transition: transform .2s ease; }
.ch-card__btn:hover .ch-card__chev { transform: translateX(3px); }

/* --- Challenge-Lightbox (Modal) --- */
.ch-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.ch-modal.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.ch-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15,26,60,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ch-modal__panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 760px; max-height: 88vh; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 90px -25px rgba(15,26,60,.55);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.75,.3,1), opacity .3s ease;
}
.ch-modal.is-open .ch-modal__panel { transform: none; opacity: 1; }
.ch-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.7rem; line-height: 1;
  box-shadow: 0 4px 14px -4px rgba(15,26,60,.4); transition: background .2s, transform .2s;
}
.ch-modal__close:hover { background: #fff; transform: scale(1.06); }
.ch-modal__body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.ch-modal-open { overflow: hidden; }

.ch-detail__media { position: relative; aspect-ratio: 16 / 9; background: var(--grad-soft); overflow: hidden; }
.ch-detail__media .ch-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-detail__media .ch-card__ph { font-size: 3.4rem; }
.ch-detail__content { padding: 26px 30px 32px; }
.ch-detail__content .ch-card__no { display: block; margin-bottom: .3rem; }
.ch-detail__title { font-size: 1.5rem; line-height: 1.25; margin: .1rem 0 .3rem; color: var(--ink); }
.ch-detail__owner { font-size: .88rem; color: var(--muted); margin: 0 0 1.3rem; }
.ch-detail__owner strong { color: var(--ink); }
.ch-detail__content .challenge__block { margin-bottom: 1.1rem; }

/* --- Öffnungs-Effekt: senkrechte Linie zieht die Box nach links & rechts auf ---
   Progressive Enhancement: Nur dort, wo clip-path zuverlässig animiert wird
   (@supports) und nur ab Tablet-Breite – auf dem Smartphone bleibt das
   bewährte Bottom-Sheet, bei „reduzierte Bewegung" der einfache Fade. */
@media (min-width: 561px) {
  @supports (clip-path: inset(0 calc(50% - 1px))) {
    .ch-modal__panel { transform: none; }
    .ch-modal.is-open .ch-modal__panel {
      opacity: 1; transition: none;
      /* backwards statt both: nach dem Öffnen fällt clip-path wieder auf "none"
         zurück – sonst würde der Schlagschatten dauerhaft abgeschnitten. */
      animation: ch-panel-open .52s cubic-bezier(.22,.8,.24,1) backwards;
    }
    .ch-modal:not(.is-open) .ch-modal__panel {
      animation: ch-panel-close .25s ease forwards;
    }
    .ch-modal.is-open .ch-modal__body  { animation: ch-content-in .38s ease .2s both; }
    .ch-modal.is-open .ch-modal__close { animation: ch-content-in .3s ease .3s both; }
  }
}
@keyframes ch-panel-open {
  0%   { opacity: 1; clip-path: inset(50% calc(50% - 1px) 50% calc(50% - 1px)); }
  34%  { opacity: 1; clip-path: inset(0%  calc(50% - 1px) 0%  calc(50% - 1px)); }
  100% { opacity: 1; clip-path: inset(0% 0% 0% 0%); }
}
@keyframes ch-panel-close {
  0%   { opacity: 1; clip-path: inset(0% 0% 0% 0%); }
  100% { opacity: 1; clip-path: inset(0% calc(50% - 1px) 0% calc(50% - 1px)); }
}
@keyframes ch-content-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-modal, .ch-modal__panel { transition: opacity .01s ease; }
  .ch-modal__panel { transform: none; }
  .ch-modal .ch-modal__panel,
  .ch-modal .ch-modal__body,
  .ch-modal .ch-modal__close { animation: none !important; clip-path: none !important; }
  .ch-modal.is-open .ch-modal__panel { opacity: 1; }
}
@media (max-width: 560px) {
  .ch-modal { padding: 0; align-items: flex-end; }
  .ch-modal__panel { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .ch-modal.is-open .ch-modal__panel { transform: none; }
  .ch-detail__content { padding: 22px 20px 28px; }
}

/* =====================================================================
   PROGRAMM-TIMELINE
   ===================================================================== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tl-day {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
}
.tl-day__date {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.tl-day__date .num {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: var(--grad); font-size: .9rem;
}
.tl-day h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-list li { position: relative; padding-left: 1.1rem; font-size: .92rem; color: var(--body); margin-bottom: .55rem; }
.tl-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.02rem;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; transition: transform .2s; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--body); font-size: .95rem; }

/* =====================================================================
   PARTNER & SPONSOREN
   ===================================================================== */
.partners-tier { text-align: center; margin-bottom: 38px; }
/* Veranstalter + Host-Partner nebeneinander (stapeln auf Mobil) */
.partners-duo { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; margin-bottom: 38px; }
.partners-duo .partners-tier { margin-bottom: 0; }
@media (min-width: 721px) {
  .partners-duo { gap: 0; }
  .partners-duo .partners-tier { padding: 0 44px; }
  .partners-duo .partners-tier + .partners-tier { border-left: 1px solid var(--line); }
}
.partners-tier:last-child { margin-bottom: 0; }
.partners-tier__label {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800;
  color: var(--muted); margin-bottom: 16px;
}
.tier-badge {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px; color: #fff;
  letter-spacing: .1em; font-size: .72rem;
}
.tier-badge--gold   { background: linear-gradient(120deg,#E0A93B,#C6871A); }
.tier-badge--silver { background: linear-gradient(120deg,#9AA3B2,#6E7789); }
.tier-badge--bronze { background: linear-gradient(120deg,#C08457,#9A6238); }

.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner {
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 22px; text-decoration: none; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
a.partner:focus-visible { outline: 3px solid rgba(37,99,235,.4); outline-offset: 2px; }
/* Logos immer in fester Höhe halten – SVGs ohne Pixelmaße dürfen nicht wachsen */
.partner img { width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain; display: block; }
.partner__name { font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; }

/* Tier-Größen (Wichtigkeit): feste Kachelmaße für ein ruhiges Raster */
.tier--lg .partner { width: 232px; height: 116px; }
.tier--lg .partner img { max-height: 56px; }
.tier--lg .partner__name { font-size: 1.05rem; }
.tier--md .partner { width: 204px; height: 100px; }
.tier--md .partner img { max-height: 48px; }
.tier--md .partner__name { font-size: .95rem; }
.tier--sm .partner { width: 176px; height: 84px; padding: 12px 18px; }
.tier--sm .partner img { max-height: 40px; }
.tier--sm .partner__name { font-size: .85rem; }

/* Faktentabellen im Pressebereich */
/* Download-Schaltflächen im Kopf des Pressebereichs (linksbündig, anders als der
   zentrierte .hero__cta auf der Startseite). */
.press-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.press-facts { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95rem; }
.press-facts th, .press-facts td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.press-facts th { width: 26%; color: var(--ink); font-weight: 800; white-space: nowrap; }
.press-facts td { color: var(--body); }
.press-facts em { color: var(--muted); font-style: normal; }
@media (max-width: 620px) {
  .press-facts th, .press-facts td { display: block; width: 100%; }
  .press-facts th { border-bottom: 0; padding-bottom: 2px; }
  .press-facts td { padding-top: 0; }
}

/* Bildergalerie im Pressebereich */
.press-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 1.6rem; }
.press-gallery__item { margin: 0; }
.press-gallery__item a {
  display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft);
  transition: transform .2s, box-shadow .2s;
}
.press-gallery__item a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.press-gallery__item a:focus-visible { outline: 3px solid rgba(37,99,235,.4); outline-offset: 3px; }
.press-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.press-gallery figcaption { font-size: .8rem; line-height: 1.45; color: var(--body); margin-top: .5rem; }
.press-gallery figcaption span { color: var(--muted); }
@media (max-width: 720px) { .press-gallery { grid-template-columns: 1fr; } }

/* Rechtstexte / Fließtext */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { color: var(--body); font-size: .97rem; }
.prose a { color: var(--blue); word-break: break-word; }
.prose a:hover { color: var(--purple); }
.prose .note {
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .9rem; color: var(--muted);
}
.site-footer__legal a { color: rgba(255,255,255,.85); }
.site-footer__legal a:hover { color: #fff; }

/* Ticket-Widget (pretix) */
.ticket-box {
  max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-height: 120px;
}
.ticket-box .pretix-widget-info-message { text-align: center; color: var(--muted); padding: 1rem; }

/* Abschnitts-Trenner: sanfte Sektionsfarbe */
.section--soft + .section { background: #fff; }

/* --- Location: Bildergalerie --- */
.gallery {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px;
}
.gallery__item {
  position: relative; padding: 0; border: 0; margin: 0; cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft);
  display: block; height: 100%;
  box-shadow: 0 10px 30px -20px rgba(15,26,60,.45);
}
/* Erstes Bild als großer Aufmacher, letztes über die volle Restbreite –
   damit gehen 8 Bilder ohne Lücke in genau drei Rasterzeilen auf. */
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item:last-child  { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,26,60,0) 55%, rgba(15,26,60,.35) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery__credit { margin: 10px 2px 0; font-size: .78rem; color: var(--muted); text-align: right; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 120; visibility: hidden; opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lb.is-open { visibility: visible; opacity: 1; transition: opacity .22s ease; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(10,18,48,.92); }
.lb__figure {
  position: relative; max-width: min(1200px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.lb__img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto; display: block;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: #0A1230;
}
.lb__cap { color: rgba(255,255,255,.82); font-size: .9rem; text-align: center; margin: 0; max-width: 70ch; }
.lb__btn {
  position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  width: 48px; height: 48px; border-radius: 999px; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lb__btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.lb__prev { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__prev:hover, .lb__next:hover { transform: translateY(-50%) scale(1.06); }
.lb__close { top: 16px; right: 16px; font-size: 1.6rem; }
body.lb-open { overflow: hidden; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery__item:last-child  { grid-column: span 2; }
  .lb { padding: 12px; }
  .lb__btn { width: 42px; height: 42px; }
  .lb__prev { left: 6px; } .lb__next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
  .gallery__item:hover img { transform: none; }
  .lb { transition: none; }
}

/* --- Location: Karte + CTA --- */
.location-map {
  margin-top: 28px; height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft);
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 28px; background: var(--grad-soft);
}
.map-consent p { max-width: 52ch; color: var(--body); font-size: .95rem; margin: 0; }
.location-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* --- Kontaktformular --- */
.contact-form { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg-soft); font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); background: #fff; }
.contact-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--body); line-height: 1.5; }
.contact-consent input { margin-top: .2rem; flex: 0 0 auto; }
.contact-consent a { font-weight: 700; }
.contact-actions { text-align: center; margin-top: 4px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { max-width: 680px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 14px; font-size: .95rem; font-weight: 600; }
.contact-status--ok { background: rgba(16,185,163,.12); color: #0b7a6b; border: 1px solid rgba(16,185,163,.35); }
.contact-status--err { background: rgba(220,38,38,.08); color: #b42318; border: 1px solid rgba(220,38,38,.28); }
.contact-status a { color: inherit; text-decoration: underline; }

/* --- Cookie-/Datenschutz-Banner --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; margin: 0 auto; max-width: 780px;
  display: flex; gap: 16px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(15,26,60,.45); padding: 16px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .86rem; line-height: 1.5; color: var(--body); }
.cookie-banner .btn { flex: 0 0 auto; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero__art { order: -1; }
  .hero__art img { width: min(300px, 70%); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .challenge-list { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
    display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav__logout { border: 0 !important; padding-left: 0; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .location-map { height: 300px; }
  .location-cta .btn { width: 100%; text-align: center; }
  .contact-form__row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .person__photo { width: 96px; height: 96px; }
  .countdown { gap: 8px; }
  .cd { min-width: 0; flex: 1; padding: 10px 4px; }
  .cd__n { font-size: 1.4rem; }
  .site-footer__inner, .site-footer__meta { text-align: left; justify-content: flex-start; }
}
