/* SV Riedmoos – Designsystem
   Ein Satz Bausteine für alle Seiten: Seitenkopf, Abschnittskopf, Karte mit Icon-Kachel,
   Raster, Buttons. Systemschrift (SF Pro auf Apple-Geräten), Wappengrün als Akzent. */

:root {
  /* Farbprofil: genau drei Farben – Weiß (Grund), Dunkelgrün (Text, Buttons, Bühnen), Mint (Akzent).
     Inhalte stehen auf Weiß; Menüleiste, Kopfbereiche, Hero, Finder, Mitglieder-Band und Footer sind dunkelgrün. */
  --pitch: #0c2a14;
  --mint: #acd6b1;
  --white: #fff;

  --green: var(--pitch);
  --on-accent: var(--white);
  --ink: var(--pitch);
  --muted: rgba(12, 42, 20, .72);
  --line: rgba(12, 42, 20, .1);
  --chalk: rgba(12, 42, 20, .035);
  --surface-2: var(--white);
  --mint-soft: rgba(172, 214, 177, .35);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 28px;
  --r: 20px;
  --r-sm: 12px;
  --nav-h: 52px;
  --section: clamp(64px, 8vw, 112px);
  --gap: clamp(14px, 1.6vw, 20px);
  --ease: cubic-bezier(.22, .8, .25, 1);
}

/* Dunkle Bühnen: gleiche Bausteine, umgekehrte Werte */
.phead, .hero, .section--dark, .join, .footer, .nav, .search, .lightbox, .tile--dark, .tile--mint, .plan--featured, .consent__box, .leave__box, .mapbox__placeholder {
  --green: var(--white);
  --on-accent: var(--pitch);
  --ink: var(--white);
  --muted: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .12);
  --chalk: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .08);
  --mint-soft: rgba(255, 255, 255, .12);
  color: var(--ink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background: var(--white);
  font: 400 17px/1.5 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--pitch); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.spacer { height: var(--section); }

/* ---------- Icons ---------- */
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--flip { transform: scaleX(-1); }
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--mint-soft); color: var(--green); font-size: 22px;
}
.badge--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
.badge--glass { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--mint-soft); color: var(--green); font-size: 18px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.iconbtn:hover { background: var(--green); color: var(--on-accent); text-decoration: none; }
.iconbtn:disabled { opacity: .35; cursor: default; background: var(--mint-soft); color: var(--green); }

/* ---------- Typo ---------- */
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.038em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.016em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush { padding-top: var(--section); }
.section--dark { position: relative; background: var(--pitch); color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .75); }
.section--grey { background: var(--chalk); }
.section--flush + .section--flush { padding-top: var(--section); }
.section--dark { position: relative; background: var(--pitch); color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .75); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--center { align-items: center; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.actions--center { justify-content: center; }

/* Seitenkopf – auf allen Unterseiten gleich, im Stil des Heros */
.phead { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--pitch); padding: 132px 0 clamp(56px, 7vw, 88px); }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 120% at 100% 0%, var(--pitch-2) 0%, var(--pitch) 60%); }
.phead--photo { min-height: min(68svh, 620px); display: flex; flex-direction: column; justify-content: flex-end; }
.phead--photo::before { background: linear-gradient(to top, rgba(12, 42, 20, .96) 0%, rgba(12, 42, 20, .6) 50%, rgba(12, 42, 20, .35) 100%); z-index: -2; }
.phead__bg { position: absolute; inset: 0; z-index: -3; }
.phead__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-out both; }
.phead__inner { position: relative; }
.phead h1 { max-width: 20ch; margin-top: 18px; font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.phead .lead { max-width: 54ch; margin-top: 18px; color: rgba(255, 255, 255, .8); animation: fadeUp .8s var(--ease) .3s both; }
.phead .actions { margin-top: 28px; animation: fadeUp .8s var(--ease) .45s both; }
.phead .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.phead .btn:not(.btn--ghost):not(.btn--light) { background: #fff; border-color: #fff; color: var(--pitch); }
.phead .more { color: #fff; }
.phead__media { margin-top: clamp(32px, 4vw, 48px); animation: fadeUp .9s var(--ease) .5s both; }
.phead__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-xl); }
.reveal { overflow: hidden; padding-bottom: .06em; }
.reveal > span { display: block; animation: lineUp 1s var(--ease) both; }
.pitchlines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; pointer-events: none; }
.pitchlines path, .pitchlines circle { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s var(--ease) .2s forwards; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .6); animation: fadeUp .6s var(--ease) both; }
.crumbs a { color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }
.crumbs .i { font-size: 12px; }
.crumbs span { color: #fff; }

/* Abschnittskopf */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.shead .lead { margin-top: 8px; max-width: 52ch; }

/* Karte – die einzige Kartenform der Website */
.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.6vw, 32px); background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); }
.section--grey .card { background: var(--surface-2); }
.card > .badge { margin-bottom: 8px; }
.card > p { color: var(--muted); }
.card > p + p { margin-top: 2px; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.card__foot--stack { flex-direction: column; align-items: flex-start; }

/* Info-Liste */
.info { display: grid; gap: 14px; margin: 18px 0 4px; }
.info li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.info .i { font-size: 20px; color: var(--green); margin-top: 2px; }
.info span { display: block; font-size: 13px; color: var(--muted); letter-spacing: -0.01em; }
.info strong, .info a { font-weight: 500; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 980px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--on-accent); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .i { font-size: 18px; }
.btn:hover { background: transparent; border-color: var(--green); color: var(--green); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 32px; padding: 5px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--on-accent); }
.btn--light { background: #fff; border-color: #fff; color: var(--pitch); }
.btn--light:hover { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--pitch); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; color: var(--green); }
.more .i { font-size: 14px; transition: transform .2s var(--ease); }
.more:hover .i { transform: translateX(2px); }

/* ---------- Navigation: schwebende Glas-Leiste ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; transition: top .3s var(--ease); }
.nav__bar {
  position: relative; z-index: 3; pointer-events: auto;
  display: flex; align-items: center; gap: 16px; height: 58px;
  max-width: 1120px; margin-inline: auto; padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(12, 42, 20, .66); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 12px 40px rgba(12, 42, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color .3s, height .3s var(--ease), box-shadow .3s;
}
.nav.is-scrolled { top: 8px; }
.nav.is-scrolled .nav__bar { height: 52px; background: rgba(12, 42, 20, .84); }
.nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 30px; height: auto; }
.nav__links { flex: 1; display: flex; justify-content: center; }
.nav__links > ul { display: flex; gap: 2px; }
.nav__links > ul > li > a { display: block; padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; transition: background-color .2s, color .2s; }
.nav__links > ul > li > a:hover, .nav__links > ul > li > a[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.nav__cta { background: #fff; border-color: #fff; color: var(--pitch); min-height: 42px; padding: 8px 18px; font-size: 14px; font-weight: 600; }
.nav__cta:hover { background: transparent; border-color: #fff; color: #fff; }
.nav__toggle { display: none; }

.flyout {
  position: fixed; top: 84px; left: 50%; width: min(1120px, calc(100vw - 2 * var(--gutter))); transform: translate(-50%, -8px);
  border-radius: 28px; color: #fff;
  background: rgba(12, 42, 20, .88); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 60px rgba(12, 42, 20, .3);
  visibility: hidden; opacity: 0; transition: opacity .22s ease, transform .22s var(--ease), visibility 0s .22s;
}
.has-flyout.is-open .flyout { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: opacity .22s ease, transform .22s var(--ease); }
.flyout__inner { display: flex; gap: 64px; padding: 32px 40px 36px; }
.flyout__label { font-size: 12px; color: #fff; margin-bottom: 12px; letter-spacing: 0; font-weight: 600; }
.flyout__col a { color: rgba(255, 255, 255, .88); font-size: 14px; display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.flyout__col a:hover { color: #fff; text-decoration: none; }
.flyout__big a { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; padding: 3px 0; color: #fff; }
.flyout__big a:hover { color: #fff; }
.flyout__grid { display: grid; grid-template-columns: repeat(2, auto); column-gap: 40px; }
.flyout__grid a { font-size: 16px; font-weight: 500; }
.flyout__icons a { font-size: 15px; padding: 6px 0; }
.flyout__icons .i { font-size: 18px; color: #fff; }
.nav__scrim {
  position: fixed; inset: 0; z-index: 0; background: rgba(12, 42, 20, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility 0s .22s;
}
.nav.is-open .nav__scrim { opacity: 1; visibility: visible; transition: opacity .22s; pointer-events: auto; }
.mobile { display: none; }

@media (max-width: 1023px) {
  .nav { top: 10px; }
  .nav__links, .nav__cta { display: none; }
  .nav__bar { justify-content: space-between; height: 54px; padding-right: 6px; }
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 0; cursor: pointer; color: #fff; }
  .nav__burger, .nav__burger::before { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s; }
  .nav__burger { position: relative; transform: translateY(-3px); }
  .nav__burger::before { content: ""; position: absolute; top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__burger { transform: translateY(0) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(-6px) rotate(-90deg); }
  .mobile {
    display: block; position: fixed; inset: 0; z-index: 1; pointer-events: auto;
    height: 100svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 86px max(var(--gutter), 24px) calc(32px + env(safe-area-inset-bottom)); color: #fff;
    background: var(--pitch);
    animation: menuIn .3s var(--ease);
  }
  .mobile__list > li > a, .mobile summary { font-size: 26px !important; padding: 16px 0 !important; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .mobile[hidden] { display: none; }
  .mobile__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .mobile__list > li > a, .mobile summary { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: #fff; cursor: pointer; }
  .mobile__list > li > a .i, .mobile summary .i { font-size: 22px; color: #fff; }
  .mobile summary { list-style: none; }
  .mobile summary::-webkit-details-marker { display: none; }
  .mobile summary::after { content: "+"; margin-left: auto; font-weight: 300; color: rgba(255, 255, 255, .6); }
  .mobile details[open] summary::after { content: "–"; }
  .mobile details ul { padding: 0 0 12px 36px; }
  .mobile details a { display: block; padding: 6px 0; font-size: 16px; color: rgba(255, 255, 255, .85); }
  .mobile__label { font-size: 12px; color: #fff; margin: 10px 0 2px 36px; font-weight: 600; }
  .mobile__cta { width: 100%; margin-top: 20px; background: #fff; border-color: #fff; color: var(--pitch); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(92svh, 860px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 clamp(120px, 12vw, 150px); background: var(--pitch);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: kenburns 24s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(12, 42, 20, 0) 0%, rgba(12, 42, 20, .55) 60%),
    linear-gradient(to top, rgba(12, 42, 20, .96) 0%, rgba(12, 42, 20, .55) 45%, rgba(12, 42, 20, .25) 100%);
}
.hero__pitch { stroke: rgba(255, 255, 255, .22); }
.hero__pitch path, .hero__pitch circle { animation-delay: .3s; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 40px; align-items: end; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 18px; animation: fadeUp .7s var(--ease) .1s both; }
.hero__kicker .i { font-size: 18px; }
.hero__title { font-size: clamp(52px, 9vw, 120px); line-height: .95; letter-spacing: -0.05em; }
.hero__title > span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title > span > span { display: block; animation: lineUp 1s var(--ease) both; }
.hero__title > span:nth-child(2) > span { animation-delay: .12s; }
.hero__title > span:nth-child(3) > span { animation-delay: .24s; color: #fff; }
.hero__lead { color: rgba(255, 255, 255, .82); max-width: 40ch; margin-top: 24px; animation: fadeUp .8s var(--ease) .5s both; }
.hero__actions { animation: fadeUp .8s var(--ease) .65s both; }

.today {
  padding: 22px; border-radius: var(--r); color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  animation: fadeUp .8s var(--ease) .85s both;
}
.today__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.today__head .i { font-size: 18px; }
.today__list { display: grid; gap: 2px; margin: 12px 0 14px; }
.today__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.today__list li:last-child { border-bottom: 0; }
.today__list a { color: #fff; font-weight: 500; }
.today__list time { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.today__live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 2px; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: pulse 2s infinite; }
.today__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #fff; opacity: .85; }
.today__more .i { font-size: 12px; }

/* Ticker */
.ticker { position: relative; z-index: 1; display: flex; align-items: center; overflow: hidden; }
.ticker__track { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker ul { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover ul { animation-play-state: paused; }
.ticker li { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; white-space: nowrap; }
.hero__ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: rgba(12, 42, 20, .55); border-top: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: fadeUp .8s var(--ease) 1s both; }
.ticker__label { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: 0 14px; border-radius: 999px; background: #fff; color: var(--pitch); font-size: 13px; font-weight: 700; flex: none; }
.ticker__label .i { font-size: 16px; }
.hero__ticker a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; }
.hero__ticker a:hover { color: #fff; text-decoration: none; }
.hero__ticker li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-right: 18px; }
.hero__ticker time { color: #fff; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sashIn { to { clip-path: inset(0 0 0 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(172, 214, 177, 0); } 100% { box-shadow: 0 0 0 0 rgba(172, 214, 177, 0); } }


/* ---------- News ---------- */
.rail { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: var(--gap); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail .ncard { width: min(380px, 80vw); scroll-snap-align: start; }
.rail__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.ncard > a { display: flex; flex-direction: column; height: 100%; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); }
.section--grey .ncard > a { background: var(--surface-2); }
.ncard > a:hover { text-decoration: none; }
.ncard > a:hover h3 { color: var(--green); }
.ncard__media { overflow: hidden; }
.ncard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.ncard > a:hover .ncard__media img { transform: scale(1.04); }
.ncard__body { padding: 20px 24px 26px; display: grid; gap: 8px; }
.ncard__body h3 { transition: color .2s; }
.ncard__body > p:last-child { color: var(--muted); font-size: 15px; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 980px; background: var(--mint-soft); color: var(--green); font-weight: 600; font-size: 12px; }

.feature { margin-bottom: var(--gap); }
.feature a { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; color: var(--ink); }
.feature a:hover { text-decoration: none; }
.feature__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.feature__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature__body > p:not(.meta) { color: var(--muted); font-size: 18px; }

.article { max-width: calc(860px + 2 * var(--gutter)); margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; font-size: 15px; color: var(--muted); }
.article__meta li { display: inline-flex; align-items: center; gap: 8px; }
.article__meta .i { font-size: 18px; color: var(--green); }
.article__img img { width: 100%; border-radius: var(--r-xl); max-height: 80vh; object-fit: contain; background: var(--chalk); }
.article__body { max-width: 680px; padding: 40px 0 var(--section); font-size: 19px; line-height: 1.65; }
.article__body p + p { margin-top: 1.1em; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Finder ---------- */
.finder { position: relative; }
.finder__head { text-align: center; max-width: 640px; margin: 0 auto 32px; display: grid; justify-items: center; gap: 14px; }
.finder__years { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; margin: 0 auto; }
.chip {
  min-width: 74px; min-height: 44px; padding: 8px 16px; border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff;
  font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease);
}
.chip:hover { border-color: #fff; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--pitch); }
.select { position: relative; max-width: 520px; margin: 0 auto; }
.select__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 20px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
  font: inherit; font-size: 18px; font-weight: 500; text-align: left; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s, background-color .2s;
}
.select__btn:hover, .select__btn[aria-expanded="true"] { border-color: #fff; background: rgba(255, 255, 255, .12); }
.select__btn .i { font-size: 20px; }
.select__value { flex: 1; }
.select__btn:not(.is-set) .select__value { color: rgba(255, 255, 255, .75); }
.select__chev { transform: rotate(90deg); transition: transform .2s var(--ease); }
.select__btn[aria-expanded="true"] .select__chev { transform: rotate(-90deg); }
.select__list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); max-height: 340px; overflow-y: auto; padding: 6px;
  border-radius: 18px; background: #fff; color: var(--pitch); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); outline: none;
  animation: fadeUp .2s var(--ease);
}
.select__list li { display: flex; align-items: baseline; gap: 14px; padding: 11px 14px; border-radius: 12px; cursor: pointer; }
.select__list li strong { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; }
.select__list li span { font-size: 14px; color: rgba(12, 42, 20, .72); }
.select__list li.is-active { background: rgba(12, 42, 20, .06); }
.select__list li[aria-selected="true"] { background: var(--pitch); color: #fff; }
.select__list li[aria-selected="true"] span { color: rgba(255, 255, 255, .8); }
.finder__result { max-width: 820px; margin: 28px auto 0; display: grid; gap: 12px; }
.finder__result:empty { display: none; }
.fcard { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--r); padding: 22px 24px; animation: fadeUp .35s var(--ease) both; }
.fcard h3 { font-size: 22px; }
.fcard ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.fcard li { display: inline-flex; align-items: center; gap: 6px; }
.fcard li .i { color: #fff; }
.section--dark .age { background: #fff; color: var(--pitch); }
.section--dark .btn { background: #fff; border-color: #fff; color: var(--pitch); }
.section--dark .iconbtn { background: rgba(255, 255, 255, .1); color: #fff; }
.section--dark .iconbtn:hover { background: #fff; color: var(--pitch); }
.section--dark .finder__fallback a { color: #fff; }
.fcard__actions { display: flex; gap: 10px; align-items: center; }
.finder__fallback { columns: 2; max-width: 600px; margin: 24px auto 0; }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(440px, 44vw, 560px); border-radius: var(--r-xl); color: var(--ink); }
.tile:hover { text-decoration: none; }
.tile__text { position: relative; display: grid; justify-items: start; gap: 10px; padding: clamp(28px, 3.6vw, 44px); }
.tile__text h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.035em; margin-top: 6px; }
.tile__text p { font-size: 17px; max-width: 34ch; }
.tile__text .more { margin-top: 4px; }
.tile:hover .more .i { transform: translateX(3px); }
.tile--photo { color: #fff; }
.tile--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12, 42, 20, .85), rgba(12, 42, 20, .1) 65%); }
.tile--photo:hover > img { transform: scale(1.04); }
.tile--photo p { color: rgba(255, 255, 255, .85); }
.tile--photo .more, .tile--dark .more { color: #fff; }
.tile--dark { background: var(--pitch); }
.tile--dark p { color: rgba(255, 255, 255, .78); }
.tile--light { background: var(--chalk); border: 1px solid var(--line); }
.tile--light p { color: var(--muted); }
.tile--mint { background: var(--pitch); }
.tile--mint p { color: rgba(255, 255, 255, .78); }
.tile--mint .more { color: #fff; }
.tile--mint .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.tile__img { margin-top: auto; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__img { transform: scale(1.03); }
.tile--dark .tile__img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.tile__year { margin: auto 0 -0.12em clamp(24px, 3vw, 40px); font-size: clamp(110px, 15vw, 200px); line-height: .8; font-weight: 800; letter-spacing: -0.06em; color: var(--mint, #acd6b1) !important; }

/* ---------- Mitglied-Band mit Schärpe ---------- */
.join { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, rgba(172, 214, 177, .12), transparent 70%), var(--pitch); border-top: 1px solid var(--line); color: #fff; text-align: center; padding: var(--section) 0; }
.join .pitchlines { stroke: rgba(255, 255, 255, .16); }
.join__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.join__crest { width: 64px; margin-bottom: 20px; }
.join h2 { font-size: clamp(34px, 5vw, 60px); }
.join .lead { color: rgba(255, 255, 255, .85); margin: 16px auto 0; max-width: 36ch; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--gap); }
.logos li { position: relative; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.logos li:hover { border-color: var(--mint); }
.logos img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; mix-blend-mode: multiply; }
.logos--strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Sponsoren: freigestellte Logos, einfarbig ---------- */
.sponsorband { overflow: hidden; }
.logoband { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logoband::-webkit-scrollbar { display: none; }
.logoband.is-dragging { cursor: grabbing; }
.logoband ul { display: flex; align-items: center; width: max-content; }
.logoband img { pointer-events: none; -webkit-user-drag: none; }
.logoband li { flex: none; display: grid; place-items: center; width: clamp(150px, 16vw, 210px); height: 96px; padding: 0 clamp(18px, 2.4vw, 32px); }
.logoband img, .logowall img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; opacity: .9; transition: opacity .2s; }
.logoband li:hover img, .logowall li:hover img { opacity: 1; }
.logowall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 48px 40px; align-items: center; }
.logowall li { display: grid; place-items: center; height: 90px; }
.logowall img { max-height: 76px; }

/* ---------- Mannschaften ---------- */
.tcard { display: flex; flex-direction: column; height: 100%; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: background-color .2s; }
.tcard:hover { text-decoration: none; }
.tcard:hover h3 { color: var(--green); }
.tcard__media { overflow: hidden; }
.tcard__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.tcard:hover .tcard__media img { transform: scale(1.04); }
.tcard__body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.tcard__title { display: flex; align-items: center; gap: 14px; }
.tcard__title h3 { transition: color .2s; }
.tcard__title p { font-size: 14px; color: var(--muted); }
.tcard__rows { display: grid; gap: 6px; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.tcard__rows li { display: flex; align-items: center; gap: 8px; }
.tcard__rows .i { color: var(--green); font-size: 16px; }
.tcard--compact:hover { background: var(--mint-soft); }
.age { display: inline-grid; place-items: center; flex: none; min-width: 52px; height: 44px; padding: 0 8px; border-radius: 13px; background: var(--pitch); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }

.teamgrid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
.teamgrid__media img, .nophoto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xl); }
.teamgrid__info { position: sticky; top: 96px; }
.nophoto { display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--chalk); color: var(--muted); }
.nophoto .i { font-size: 48px; color: var(--mint); }

.pager { display: flex; justify-content: space-between; gap: 24px; padding-block: 40px 64px; }
.pager a { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.pager a:hover { color: var(--green); text-decoration: none; }
.pager small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.pager .i { font-size: 20px; color: var(--green); }
.pager__next { text-align: right; }

/* ---------- Personen ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr)); gap: 28px var(--gap); }
.person { display: grid; gap: 2px; align-content: start; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--mint); margin-bottom: 12px; }
.person__img--empty { display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--pitch); }
.person__img--empty .i { font-size: 40px; opacity: .45; }
.person__img--empty span { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; opacity: .7; }
.person h3 { font-size: 18px; }
.person p { color: var(--muted); font-size: 14px; }
.person__actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Verein ---------- */
.timeline { display: grid; gap: clamp(48px, 7vw, 88px); }
.era { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: var(--gap) 48px; }
.era__head { position: sticky; top: 100px; align-self: start; display: grid; gap: 12px; justify-items: start; }
.era__years { display: inline-block; padding: 5px 12px; border-radius: 980px; background: var(--pitch); color: #fff; font-size: 14px; font-weight: 600; }
.era__events { display: grid; gap: 12px; }
.era__when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green) !important; font-weight: 600; }
.era__events h3 { margin-top: -2px; }

.steps .card { counter-increment: none; }

.docs { display: grid; gap: 10px; }
.docs a { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: var(--r); background: var(--chalk); border: 1px solid var(--line); color: var(--ink); transition: background-color .2s; }
.section--grey .docs a { background: var(--surface-2); }
.docs a:hover { background: var(--mint-soft); text-decoration: none; }
.docs strong { display: block; font-size: 17px; font-weight: 600; }
.docs span { color: var(--muted); font-size: 14px; }
.docs__dl { display: grid; justify-items: center; color: var(--green) !important; }
.docs__dl .i { font-size: 22px; }
.docs__dl small { font-size: 11px; font-weight: 600; }

/* ---------- Beiträge ---------- */
.plans { align-items: stretch; }
.plan { position: relative; }
.plan__note { font-size: 14px; min-height: 2.9em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 6px; }
.plan__price strong { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.ticks { display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.ticks .i { color: var(--green); font-size: 18px; margin-top: 2px; }
.plan--featured { background: var(--pitch) !important; border-color: var(--pitch) !important; color: #fff; }

.plan__flag { position: absolute; top: 28px; right: 24px; background: #fff; color: var(--pitch) !important; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; }
.note { display: grid; grid-template-columns: 22px 1fr; gap: 14px; margin-top: var(--gap); padding: 20px 24px; border-radius: var(--r); background: var(--mint-soft); font-size: 14px; color: var(--muted); }
.note > .i { font-size: 22px; color: var(--green); }
.note ul { display: grid; gap: 4px; }

/* ---------- Formulare ---------- */
.formwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.formwrap > div > p { color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 500; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--chalk); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.section--grey .card .field input, .section--grey .card .field select, .section--grey .card .field textarea { background: #fff; border-color: var(--line); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green) !important; box-shadow: 0 0 0 4px rgba(172, 214, 177, .2); background: var(--surface-2) !important; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 15px; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: #ffb4a8; }

/* ---------- Gaststätte ---------- */
.hours { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 16px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--green); font-weight: 600; }
.rounded img { border-radius: var(--r-xl); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 980px; background: var(--surface-2); font-size: 15px; font-weight: 500; }
.pills .i { color: var(--green); font-size: 18px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.quote__who { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; color: var(--ink) !important; }
.quote__who span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; margin: 2em 0 .5em; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--pitch); border-top: 1px solid var(--line); color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: -0.01em; padding: 56px 0 32px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; color: #fff !important; letter-spacing: -0.02em; }
.footer__brand:hover { text-decoration: none; }
.footer__brand small { display: block; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .55); }
.footer__brand img { width: 40px; height: auto; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; transition: background-color .2s, color .2s; }
.footer__social a:hover { background: #fff; color: var(--pitch); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
.footer__cols h2 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.footer__cols li { padding: 4px 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__legal ul { display: flex; gap: 20px; }

/* ---------- Responsiv ---------- */
/* ---------- Suche in der Menüleiste ---------- */
.nav__search {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8);
  font: inherit; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s;
}
.nav__search:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav__search .i { font-size: 17px; }
.nav__search kbd { font: inherit; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }

.search { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: calc(88px + env(safe-area-inset-top)) var(--gutter) var(--gutter); background: rgba(12, 42, 20, .55); }
.search[hidden] { display: none; }
.search__box { position: relative; display: flex; flex-direction: column; width: min(680px, 100%); max-height: min(78svh, 680px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; background: var(--pitch); color: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; animation: fadeUp .25s var(--ease); }
.search__field { display: flex; align-items: center; gap: 12px; padding: 18px 64px 18px 22px; border-bottom: 1px solid var(--line); }
.search__field .i { font-size: 22px; color: #fff; }
.search__field input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 20px; outline: none; }
.search__field input::placeholder { color: rgba(255, 255, 255, .45); }
.search__close { position: absolute; top: 14px; right: 14px; }
.search__hint { padding: 18px 22px 22px; }
.search__hint p { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.search__hint a, .search__results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; color: #fff; }
.search__hint a:hover, .search__results a:hover, .search__results a.is-active { background: rgba(255, 255, 255, .08); text-decoration: none; }
.search__hint .i { color: #fff; font-size: 18px; }
.search__results { overflow-y: auto; padding: 8px 22px 16px; }
.search__results:empty { display: none; }
.search__results .badge { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.search__results strong { display: block; font-weight: 600; font-size: 15px; }
.search__results small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.search__results > li > a > span:nth-child(2) { flex: 1; min-width: 0; }
.search__results em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.search__empty { padding: 18px 0; color: rgba(255, 255, 255, .7); }

/* ---------- Filterleiste ---------- */
.section--filter { padding-bottom: 0; }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; padding: 10px; border-radius: 999px; background: var(--chalk); border: 1px solid var(--line); }
.filterbar__search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; padding: 0 16px; height: 46px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.filterbar__search:focus-within { border-color: var(--pitch); box-shadow: 0 0 0 4px rgba(172, 214, 177, .45); }
.filterbar__search .i { font-size: 18px; color: var(--muted); }
.filterbar__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.filterbar__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--sm { min-width: 0; min-height: 40px; padding: 6px 16px; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.chip--sm[aria-pressed="true"] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.filterbar__empty { display: flex; align-items: center; gap: 10px; padding: 20px 24px; border-radius: var(--r); background: var(--chalk); color: var(--muted); margin-bottom: 20px; }
.filterbar__empty[hidden] { display: none; }
[data-filter-item][hidden], [data-filter-group][hidden] { display: none !important; }

/* ---------- News-Artikel: Text und Bild im Gleichgewicht ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.article__text { max-width: 640px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.article__meta li { display: inline-flex; align-items: center; gap: 8px; }
.article__meta .i { font-size: 18px; color: var(--pitch); }
.article__body { font-size: 19px; line-height: 1.7; padding: 0; max-width: none; }
.article__body p + p { margin-top: 1.1em; }
.article__body p:first-child::first-letter { font-size: 3.1em; float: left; line-height: .9; font-weight: 700; margin: .06em .1em 0 0; color: var(--pitch); }
.article__share { display: flex; align-items: center; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article__share span { margin-right: 6px; }
.article__share .is-done { background: var(--pitch); color: #fff; }
.article__media { position: sticky; top: 96px; display: grid; gap: 10px; }
.article__main { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--chalk); border: 1px solid var(--line); }
.article__main img { width: 100%; max-height: 560px; object-fit: contain; transition: transform .5s var(--ease); }
.article__main:hover img { transform: scale(1.02); }
.article__count, .article__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(12, 42, 20, .78); color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.article__zoom { padding: 8px; font-size: 16px; }
.article__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.article__thumbs a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.article__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.article__thumbs a:hover img { opacity: .8; }
.article__caption { font-size: 13px; color: var(--muted); }
.pager--news { border-top: 1px solid var(--line); margin-top: var(--section); padding-top: 28px; }
.pager--news a { max-width: 46%; font-size: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 42, 20, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: grid; gap: 12px; justify-items: center; padding: 72px 72px 32px; max-width: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100svh - 160px); object-fit: contain; border-radius: 14px; }
.lightbox figcaption { color: rgba(255, 255, 255, .75); font-size: 14px; text-align: center; max-width: 60ch; }
.lightbox .iconbtn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; font-size: 20px; }
.lightbox .iconbtn:hover { background: #fff; color: var(--pitch); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }

@media (max-width: 1023px) {
  .nav__search span, .nav__search kbd { display: none; }
  .nav__search { width: 44px; height: 44px; padding: 0; justify-content: center; margin-left: auto; }
  .article { grid-template-columns: 1fr; }
  .article__media { position: static; order: -1; }
  .article__main img { max-height: 420px; }
  .filterbar { border-radius: var(--r); }
}
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teamgrid, .formwrap, .feature a { grid-template-columns: 1fr; }
  .teamgrid__info { position: static; }
  .hero__inner { grid-template-columns: 1fr; }
  .today { max-width: 420px; }
  .logos--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos--strip li:nth-child(n + 10) { display: none; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4, .tiles, .era, .gallery { grid-template-columns: 1fr; }
  .era__head { position: static; }
  .phead__media img { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .tile { min-height: 0; border-radius: var(--r); }
  .tile--photo { min-height: 420px; }
  .tile__img { margin-top: 12px; }
  .tile__year { margin-top: 12px; }
  .hero { min-height: 0; padding: 110px 0 100px; }
  .phead { padding-top: 108px; }
  .ticker__label span { display: none; }
  .ticker__label { padding: 0 10px; }
  .fcard { grid-template-columns: auto 1fr; }
  .fcard__actions { grid-column: 1 / -1; }
  .chip { min-width: 0; flex: 1 0 calc(25% - 8px); padding-inline: 6px; }
  .form { grid-template-columns: 1fr; }
  .plan__note { min-height: 0; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--strip li:nth-child(n + 7) { display: none; }
  .feature__media img { min-height: 0; aspect-ratio: 4 / 3; }

  .pager a { font-size: 16px; }
  .docs a { padding: 16px; gap: 14px; }
}

.has-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-reveal [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ticker ul, .logoband ul { animation: none !important; }
  .logoband { overflow-x: auto; }
  .ticker__track { overflow-x: auto; }
}

.search__field input::-webkit-search-cancel-button { display: none; }

/* =====================================================================
   Ruhiger Look: Bento-Kacheln, Geländeplan, Duoton-Bilder
   ===================================================================== */
.duo { filter: grayscale(1) contrast(1.05) brightness(.95); }
.tile--photo .duo { filter: grayscale(1) contrast(1.1) brightness(.8); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bento .tile { min-height: 380px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.bento .tile--wide { grid-column: span 2; }
.bento .tile--dark { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; border: 0; }
.bento .tile--light { background: #fff; }
.bento .tile--light:hover { border-color: var(--pitch); }
.bento .tile--photo { border: 0; }
.bento .tile--photo::after { background: linear-gradient(to bottom, rgba(12, 42, 20, .88), rgba(12, 42, 20, .35)); }
.bento .tile__text h3 { font-size: clamp(24px, 2.4vw, 30px); }
.tile__plan { padding: 12px 20px 12px 0; }
.tile__plan .plan { width: 100%; height: auto; }

.minitl { display: grid; grid-template-columns: repeat(4, 1fr); margin: auto clamp(28px, 3.6vw, 44px) clamp(28px, 3.6vw, 40px); padding-top: 18px; border-top: 2px solid var(--pitch); }
.minitl li { position: relative; padding-top: 14px; display: grid; gap: 2px; }
.minitl li::before { content: ""; position: absolute; top: -26px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--pitch); box-shadow: 0 0 0 4px #fff; }
.minitl b { font-size: 20px; letter-spacing: -0.03em; }
.minitl span { font-size: 13px; color: var(--muted); }
.ministeps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: auto clamp(28px, 3.6vw, 44px) clamp(28px, 3.6vw, 40px); }
.ministeps li { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--chalk); font-size: 14px; font-weight: 500; }
.ministeps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pitch); color: #fff; font-size: 13px; font-weight: 700; }

/* Geländeplan (Farben stehen direkt im SVG, hier nur Schrift und Animation) */
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan .plan__label { fill: #fff; font-family: var(--font); font-weight: 600; text-anchor: middle; letter-spacing: -.01em; }
.plan .plan__label--s { font-weight: 500; fill-opacity: .8; }
.plan .plan__outline, .plan .plan__marks { stroke-dasharray: 3200; stroke-dashoffset: 3200; transition: stroke-dashoffset 2.2s var(--ease); }
.plan .plan__label, .plan .plan__pill { opacity: 0; transition: opacity .8s ease 1.1s; }
.in .plan .plan__outline, .in .plan .plan__marks, .planbox .plan .plan__outline, .planbox .plan .plan__marks { stroke-dashoffset: 0; }
.in .plan .plan__label, .in .plan .plan__pill, .planbox .plan .plan__label, .planbox .plan .plan__pill { opacity: 1; }
.planbox { max-width: 760px; margin: 0 auto; padding: clamp(16px, 3vw, 40px); border-radius: var(--r-xl); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }

/* =====================================================================
   Geschichte: wechselnde Layouts
   ===================================================================== */
.hist-era { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--pitch); color: #fff; font-size: 13px; font-weight: 600; }
.hist-era--light { background: #fff; color: var(--pitch); }
.hist-head { display: grid; gap: 12px; justify-items: start; margin-bottom: 36px; }
.hist-head h2 { font-size: clamp(30px, 4vw, 48px); }
.hist-head--center { justify-items: center; text-align: center; }
.hcard { display: grid; gap: 6px; align-content: start; padding: 26px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.hcard:hover { border-color: var(--pitch); transform: translateY(-3px); }
.hcard__when { font-size: 13px; font-weight: 700; color: var(--pitch); letter-spacing: .01em; }
.hcard h3 { font-size: 20px; }
.hcard > p:last-child { color: var(--muted); }

/* 1) Großes Jahr + Karten */
.hist-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hist-intro__year { display: grid; font-size: clamp(120px, 20vw, 280px); line-height: .82; font-weight: 800; letter-spacing: -0.07em; color: var(--pitch); }
.hist-intro__year span:last-child { color: #acd6b1; }
.hist-stack { display: grid; gap: 12px; }

/* 2) Zahlenband */
.hist-stats { position: relative; isolation: isolate; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stats li { display: grid; gap: 6px; padding: 28px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.stats strong { font-size: clamp(48px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { color: rgba(255, 255, 255, .75); font-size: 15px; }

/* 3) Zickzack-Zeitstrahl mit Fortschrittslinie */
.zig { position: relative; display: grid; gap: 28px; padding: 8px 0; }
.zig__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.zig__line span { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: var(--pitch); transition: height .15s linear; }
.zig__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.zig__item--l .hcard { grid-column: 1; }
.zig__item--r .hcard { grid-column: 2; }
.zig__dot { position: absolute; left: 50%; top: 30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--pitch); z-index: 1; }

/* 4) Zitat */
.hist-quote { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.hist-quote .wrap { display: grid; justify-items: center; gap: 24px; }
.hist-quote blockquote { margin: 0; max-width: 24ch; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; color: #fff; }
.hist-quote__who { color: rgba(255, 255, 255, .72); }

/* 5) Zwei Spalten mit Liste */
.hist-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hist-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hist-list b { font-size: 15px; color: var(--pitch); }
.hist-list h3 { font-size: 19px; margin-bottom: 4px; }
.hist-list p { color: var(--muted); }

/* 6) Bildbruch mit Parallax */
.hist-break { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 180px) 0; color: #fff; }
.hist-break__img { position: absolute; inset: -15% 0; z-index: -2; will-change: transform; }
.hist-break__img img { width: 100%; height: 100%; object-fit: cover; }
.hist-break::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 42, 20, .82); }
.hist-break .hist-head h2 { color: #fff; }
.hist-break .hcard { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hist-break .hcard__when { color: #fff; opacity: .8; }
.hist-break .hcard > p:last-child { color: rgba(255, 255, 255, .78); }
.hist-break .hcard:hover { border-color: #fff; }

/* 7) Abschluss */
.hist-next__inner { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 640px; margin: 0 auto; }

/* =====================================================================
   Animationen: Varianten fürs Einblenden, Zahlen, Bilder
   ===================================================================== */
.has-reveal [data-reveal][data-anim="left"] { transform: translateX(-40px); }
.has-reveal [data-reveal][data-anim="right"] { transform: translateX(40px); }
.has-reveal [data-reveal][data-anim="scale"] { transform: scale(.94); }
.has-reveal [data-reveal].in { transform: none; }
.has-reveal .shead[data-reveal] h2 { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .1s; }
.has-reveal .shead[data-reveal].in h2 { clip-path: inset(0 0 0 0); }
.ncard__media img, .tcard__media img { transform: scale(1.08); transition: transform 1.2s var(--ease); }
.in .ncard__media img, .in .tcard__media img, [data-reveal].in .ncard__media img { transform: scale(1); }
.ncard > a:hover .ncard__media img, .tcard:hover .tcard__media img { transform: scale(1.04); transition-duration: .5s; }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tile--dark { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hist-intro__grid { grid-template-columns: 1fr; }
  .hist-intro__year { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile--wide { grid-column: auto; }
  .tile__plan { padding: 0 12px 16px; }
  .ministeps { grid-template-columns: 1fr; }
  .zig__line { left: 8px; }
  .zig__dot { left: 8px; }
  .zig__item { grid-template-columns: 1fr; padding-left: 36px; gap: 0; }
  .zig__item--l .hcard, .zig__item--r .hcard { grid-column: 1; }
  .hist-list li { grid-template-columns: 1fr; gap: 4px; }
  .has-reveal [data-reveal][data-anim="left"], .has-reveal [data-reveal][data-anim="right"] { transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .plan path { stroke-dashoffset: 0 !important; }
  .plan .plan__label { opacity: 1 !important; }
  .has-reveal .shead[data-reveal] h2 { clip-path: none; }
  .ncard__media img, .tcard__media img { transform: none; }
}

/* Dropdown auf Weiß (Filter) */
.select--light { flex: 0 0 240px; margin: 0; max-width: none; }
.select--light .select__btn { height: 46px; border-radius: 999px; border-color: var(--line); background: #fff; color: var(--pitch); font-size: 15px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.select--light .select__btn:hover, .select--light .select__btn[aria-expanded="true"] { border-color: var(--pitch); background: #fff; }
.select--light .select__btn:not(.is-set) .select__value { color: var(--pitch); }
.select--light .select__btn .i { font-size: 18px; }
.select--light .select__list { border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(12, 42, 20, .16); }
@media (max-width: 760px) { .select--light { flex: 1 1 100%; } }

/* ---------- Schnellzugriff unter dem Hero: ruhige Leiste ---------- */
.quick { position: relative; z-index: 2; margin-top: -1px; background: #fff; border-bottom: 1px solid var(--line); }
.quick ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick li + li { border-left: 1px solid var(--line); }
.quick a { display: flex; align-items: center; gap: 14px; padding: 26px 22px; color: var(--pitch); transition: background-color .2s; }
.quick a:hover { background: var(--chalk); text-decoration: none; }
.quick__icon { font-size: 26px; flex: none; }
.quick a > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.quick strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.quick small { font-size: 14px; color: var(--muted); }
.quick__go { font-size: 18px; opacity: .45; transition: transform .2s var(--ease), opacity .2s; }
.quick a:hover .quick__go { transform: translateX(3px); opacity: 1; }
@media (max-width: 1023px) {
  .quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .quick li:nth-child(3) { border-left: 0; }
  .quick li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .quick ul { grid-template-columns: 1fr; }
  .quick li + li { border-left: 0; border-top: 1px solid var(--line); }
  .quick a { padding: 18px var(--gutter); }
}

/* ---------- Handy: randlos, oben und unten grün ---------- */
html { background: var(--pitch); }
body { min-height: 100svh; }
main { background: #fff; }
.nav { top: calc(14px + env(safe-area-inset-top)); }
.nav.is-scrolled { top: calc(8px + env(safe-area-inset-top)); }
.hero { padding-top: calc(140px + env(safe-area-inset-top)); }
.phead { padding-top: calc(132px + env(safe-area-inset-top)); }
.footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.flyout { top: calc(84px + env(safe-area-inset-top)); }
@media (max-width: 1023px) {
  .nav { top: calc(10px + env(safe-area-inset-top)); }
  .mobile { padding-top: calc(86px + env(safe-area-inset-top)); }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(110px + env(safe-area-inset-top)); }
  .phead { padding-top: calc(108px + env(safe-area-inset-top)); }
  .nav, .nav.is-scrolled { left: env(safe-area-inset-left); right: env(safe-area-inset-right); }
}

@media (max-width: 760px) {
  .search { padding: 0; background: var(--pitch); }
  .search__box { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding-top: env(safe-area-inset-top); }
  .search__field { padding: 16px 64px 16px 20px; }
  .search__close { top: calc(10px + env(safe-area-inset-top)); }
  .search__field input { font-size: 18px; }
}

@media (max-width: 760px) {
  .logowall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .logowall li { height: 56px; }
  .logowall img { max-height: 44px; }
}

.mobile__all { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; }
.mobile__all .i { font-size: 16px; }

/* Cookie-Einstellungen */
.consent { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.consent__box { pointer-events: auto; width: min(560px, 100%); background: var(--pitch); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 22px 22px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: translateY(24px); opacity: 0; transition: transform .35s var(--ease), opacity .35s ease; }
.consent.is-in .consent__box { transform: none; opacity: 1; }
.consent__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.consent__head h2 { font-size: 19px; letter-spacing: -0.02em; }
.consent__box > p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.consent__opts { display: grid; gap: 10px; margin: 14px 0 4px; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.consent__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: #acd6b1; flex: none; }
.consent__opt strong { display: block; font-size: 15px; }
.consent__opt small { display: block; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.consent__more { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; }
.consent__links { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; }
.consent__links a { color: rgba(255, 255, 255, .75); }
@media (max-width: 560px) {
  .consent__actions .btn { flex: 1 1 100%; justify-content: center; }
  .consent__more { margin: 0 auto; }
}
.footer__cookie { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__cookie:hover { text-decoration: underline; }

/* Hinweis externe Links */
.leave { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(12, 42, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.leave.is-in { opacity: 1; }
.leave__box { width: min(440px, 100%); background: var(--pitch); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 28px 24px 22px; text-align: center; display: grid; justify-items: center; gap: 12px; transform: scale(.96); transition: transform .25s var(--ease); }
.leave.is-in .leave__box { transform: none; }
.leave__box h2 { font-size: 21px; letter-spacing: -0.02em; }
.leave__box p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.leave__box strong { color: #fff; word-break: break-word; }
.leave__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; width: 100%; }
@media (max-width: 480px) { .leave__actions .btn { flex: 1 1 100%; justify-content: center; } }
html.is-locked { overflow: hidden; }

/* Karte (Zwei-Klick-Lösung) */
.mapbox { position: relative; border-radius: 24px; overflow: hidden; height: clamp(400px, 42vw, 520px); background: var(--pitch); }
.mapbox__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: #fff; background: radial-gradient(60% 80% at 50% 0%, rgba(172, 214, 177, .14), transparent 70%), var(--pitch); }
.mapbox__placeholder h3 { font-size: 22px; letter-spacing: -0.02em; }
.mapbox__placeholder p { max-width: 46ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.mapbox__placeholder a:not(.btn) { color: #fff; text-decoration: underline; }
.mapbox__always { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); margin-top: 4px; cursor: pointer; }
.mapbox__always input { accent-color: #acd6b1; width: 16px; height: 16px; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox.is-loaded .mapbox__placeholder { display: none; }
@media (max-width: 640px) { .mapbox { height: auto; min-height: 460px; } }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prose code { font-size: .92em; background: var(--grey, #f2f4f2); padding: 1px 6px; border-radius: 6px; }

/* Feinschliff kleine Bildschirme */
.filterbar__search { flex: 1 1 220px; min-width: 0; }
.docs__dl small { font-size: 12px; }
.field small { font-size: 13px; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  .filterbar__search { flex-basis: 100%; }
  .phead h1 { font-size: clamp(30px, 9.4vw, 40px); letter-spacing: -0.035em; }
}
.pager a { min-width: 0; }
.pager a > span, .pager a > div { min-width: 0; overflow-wrap: break-word; }
.pager .i { flex: none; }
@media (max-width: 480px) { .pager--news { gap: 16px; } .pager--news a { max-width: 50%; font-size: 15px; gap: 8px; } }
/* Größere Tippflächen auf Touch-Geräten */
@media (pointer: coarse) {
  .footer__cols a, .footer__legal a, .footer__cookie { display: inline-block; padding-block: 8px; }
  .footer__cols li { padding: 0; }
  .more { padding-block: 10px; }
  .crumbs a { padding-block: 8px; }
  .prose a, .check a { padding-block: 4px; }
}
@media (pointer: coarse) {
  .info a, .today__list a, .today__more { display: inline-block; padding-block: 8px; }
}
.leave[hidden], .consent[hidden], .consent__opts[hidden], .consent__actions [hidden] { display: none !important; }
.minitl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) {
  .minitl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; border-top: 0; padding-top: 0; }
  .minitl li { border-top: 2px solid var(--pitch); padding-top: 14px; }
  .minitl li::before { top: -7px; }
}
.footer__legal ul { flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer__cookie { white-space: nowrap; text-align: left; }
@media (max-width: 480px) {
  .mapbox .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .mapbox .actions .btn { justify-content: center; }
}
.footer__cookie { color: rgba(255, 255, 255, .78); font-size: inherit; }
.footer__cookie:hover { color: #fff; }
