/* =====================================================================
   Block 20 Borussen - static editorial design system
   ===================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #202124;
  --muted: #5f6670;
  --muted-2: #6b7280;
  --bg: #f4f6f8;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #d8dee6;
  --line-dark: rgba(255, 255, 255, .16);
  --black: #070707;
  --black-2: #121212;
  --yellow: #f5d400;
  --yellow-2: #ffe35a;
  --yellow-3: #c5a900;
  --success-bg: #ecfdf3;
  --success-line: #7dd39a;
  --success-text: #115e2f;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --danger-text: #991b1b;
  --muted-3: #c3cad3;
  --container: 1060px;
  --gutter: clamp(16px, 3vw, 28px);
  /* Sticky-Offset unter der Topbar (min-height 60px + 2px gelbe Kante). */
  --sticky-top: 74px;
  /* Avatar-Fallback ohne Profilfoto, rotierend über den Mitglieder-Index. */
  --ava-1: linear-gradient(135deg, #f5d400, #1a1a1a);
  --ava-2: linear-gradient(135deg, #1a1a1a, #4a4a4a);
  --ava-3: linear-gradient(135deg, #c5a900, #070707);
  --ava-4: linear-gradient(135deg, #2f3136, #0a0a0a);
  --side-rail: clamp(28px, 5.8vw, 96px);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .08);
  --shadow: 0 16px 44px rgba(17, 24, 39, .10);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .22);
  --font-display: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --easing: var(--ease);

  /* Compatibility with the previous static demo pages. */
  --color-black: var(--black);
  --color-night: var(--bg);
  --color-graphite: var(--ink-2);
  --color-yellow: var(--yellow);
  --color-yellow-soft: var(--yellow-2);
  --color-yellow-deep: var(--yellow-3);
  --color-white: #ffffff;
  --color-paper: var(--bg);
  --color-cream: var(--bg-2);
  --color-line: var(--line);
  --color-muted: var(--muted);
  --color-text: var(--ink);
  --color-text-soft: var(--muted);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-surface-3: var(--bg-2);
  --radius-pill: 999px;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  min-width: 0;
  /* clip statt hidden: hidden macht body zum Scroll-Container und
     bricht position:sticky (Scrub-Hero). clip schneidet nur ab. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 212, 0, .045), transparent 220px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Edge-to-edge: header, content, ticker and footer span the full viewport width.
   Inner content stays centered via .container — no outer frame, no side rails. */
.ticker,
main,
.nav,
.footer {
  width: 100%;
  margin-inline: auto;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 4.6rem;
}

h2 {
  font-size: 2.7rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.15rem; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.18rem; }
}

strong {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Desktop nutzt maximal ~70% der Viewport-Breite: Inhalte bleiben eine
   kompakte Spalte, damit die Seite mobil und am Desktop sehr ähnlich wirkt.
   Die gesamte Inhaltsspalte (Hero-Video + alle Sections) hat exakt die
   Hero-Breite; die Section-Hintergründe bluten NICHT mehr randlos aus, sondern
   bilden eine zentrierte Spalte. Links und rechts bleiben dadurch überall
   gleichfarbige Ränder (body-Hintergrund) sichtbar – wie schon beim Hero oben.
   Header- und Footer-Inhalt richten sich auf dieselbe Spaltenbreite aus. */
@media (min-width: 981px) {
  .container,
  .page-hero__inner { max-width: var(--container); }

  main {
    max-width: var(--container);
    margin-inline: auto;
  }

  /* Einheitlich gefärbte Ränder links/rechts hinter der Inhaltsspalte.
     Header-/Footer-Balken bleiben randlos dunkel, ihr Inhalt fluchtet aber
     mit der Inhaltsspalte — die Ausrichtung passiert in einer späten
     Media-Query am Dateiende (nach den Basis-Regeln), s. „Spalten-Fluchtung". */
  body { background: #050505; }
}

/* =====================================================================
   Top-Bar: klassische Navigationsleiste oben (alle Seiten, mobile first)
   Mobil: Burger + Logo + Login. Ab 981px: Inline-Links statt Burger.
   ===================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .96), rgba(7, 7, 7, .9)),
    repeating-linear-gradient(135deg, #050505 0 18px, rgba(255, 255, 255, .14) 18px 21px, #161616 21px 39px);
  color: #fff;
  border-bottom: 2px solid var(--yellow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.topbar [hidden] { display: none !important; }
.topbar__inner {
  width: 100%;
  max-width: min(calc(var(--container) + 120px), 100%);
  margin-inline: auto;
  min-height: 60px;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__burger {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(245, 212, 0, .5);
  background: rgba(7, 7, 7, .6);
  cursor: pointer;
}
.topbar__burger-lines { display: grid; gap: 5px; }
.topbar__burger-lines i {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--yellow);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.topbar__burger:hover { border-color: var(--yellow); }
.topbar__burger:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
body.menu-open .topbar__burger-lines i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .topbar__burger-lines i:nth-child(2) { opacity: 0; }
body.menu-open .topbar__burger-lines i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.topbar__brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #fff;
}
.topbar__brand:hover { color: #fff; }
.topbar__brand img { width: 38px; height: 38px; flex: none; }
.topbar__brand-txt { display: flex; flex-direction: column; min-width: 0; }
.topbar__brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.topbar__brand-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__links {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.topbar__link {
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.topbar__link:hover,
.topbar__link:focus-visible { background: rgba(245, 212, 0, .16); color: #fff; outline: none; }
.topbar__link.is-active { color: var(--yellow); }
.topbar__actions {
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Mitglieder-Login: bewusst der auffälligste Punkt der Leiste. */
.topbar__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(245, 212, 0, .25);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.topbar__login:hover { background: var(--yellow-2); color: var(--black); transform: translateY(-1px); }
.topbar__login:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.topbar__login-ic { display: grid; place-items: center; }
.topbar__login-ic svg { width: 17px; height: 17px; }
@media (max-width: 520px) {
  .topbar__login-label { display: none; }
  .topbar__login { padding: 9px 12px; }
  .topbar__brand-sub { display: none; }
}
@media (min-width: 981px) {
  .topbar__burger { display: none; }
  .topbar__links { display: flex; }
  .topbar__inner { min-height: 68px; }
}
/* Schmale Desktops: Leiste kompakt halten, damit nichts umbricht. */
@media (min-width: 981px) and (max-width: 1280px) {
  .topbar__brand-sub { display: none; }
  .topbar__link { padding: 9px 8px; font-size: 13.5px; }
  .topbar__inner { gap: 8px; }
}

.text-nowrap {
  white-space: nowrap;
}

.section {
  padding-block: clamp(42px, 6vw, 78px);
  background: var(--bg);
}

.section--alt,
.section--cream {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--black);
  color: #fff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: rgba(255, 255, 255, .72);
}

.section--home-light {
  background: var(--bg);
}

.section--home-dark {
  background:
    linear-gradient(135deg, rgba(245, 212, 0, .08), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 16px),
    var(--black);
  color: #fff;
  border-block: 1px solid rgba(245, 212, 0, .22);
}

.section--home-dark h2,
.section--home-dark h3,
.section--home-dark h4 {
  color: #fff;
}

.section--home-dark p,
.section--home-dark .section-title p,
.section--home-dark .editorial-copy p {
  color: rgba(255, 255, 255, .76);
}

.section--home-dark .section-kicker {
  color: rgba(255, 255, 255, .68);
}

.section--home-dark .btn--ghost {
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

.section--home-dark .btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.section--home-dark .board-card h3,
.section--home-dark .board-card p,
.section--home-dark .board-card__role,
.section--home-dark .next-match h3,
.section--home-dark .next-match p,
.section--home-dark .current-layout__match h3,
.section--home-dark .current-layout__match p {
  color: var(--black);
}

.section--home-dark .next-match__meta,
.section--home-dark .current-layout__match .section-kicker {
  color: var(--muted);
}

/* Gelber Marker-Akzent in Überschriften auf hellen Flächen */
.mark-yellow {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding-inline: 2px;
}

/* Rollierender Wochenkalender (Termine-Sektion) */
.weekcal__year {
  margin: 22px 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(7, 7, 7, .6);
}
.weekcal__year:first-child { margin-top: 0; }
.weekcal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
}
.weekcal__week {
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid rgba(7, 7, 7, .18);
  border-radius: 6px;
  background: transparent;
  color: rgba(7, 7, 7, .55);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: default;
}
.weekcal__kw {
  display: block;
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .7;
}
.weekcal__week.has-events {
  background: var(--yellow);
  border-color: rgba(7, 7, 7, .8);
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  transition: transform .15s var(--ease);
}
.weekcal__week.has-events:hover { transform: scale(1.12); }
.weekcal__week.is-current { outline: 2px solid var(--black); outline-offset: 1px; }
.weekcal__week.is-active { transform: scale(1.12); outline: 2px solid rgba(7, 7, 7, .8); }
.weekcal__week:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.weekcal__detail { display: grid; gap: 10px; margin-top: 16px; max-width: 640px; }
@media (max-width: 520px) {
  .weekcal__grid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
  .weekcal__week { font-size: 11px; border-radius: 4px; }
}

/* Stammtisch-Banner in "Aktuelles und Termine" */
.stammtisch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: rgba(255, 223, 0, .06);
  border: 1px solid rgba(255, 223, 0, .25);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm, 6px);
}
.stammtisch-banner h3 { margin: 0 0 6px; }
/* Auf hellen Sektionen: kräftigerer Hintergrund, Akzent dunkel statt gelb */
.section--home-light .stammtisch-banner { background: rgba(255, 223, 0, .14); }
.section--home-light .stammtisch-banner__meta strong { color: var(--black); }
.stammtisch-banner p { margin: 0; max-width: 62ch; }
.stammtisch-banner__meta { margin-top: 10px !important; font-size: 14px; opacity: .9; }
.stammtisch-banner__meta strong { color: var(--yellow); }

/* FAQ (Anmeldeseite) */
.faq { max-width: 720px; }
.faq__item {
  border: 1px solid rgba(7, 7, 7, .14);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  margin-top: 10px;
}
.faq__item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 18px;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 18px 16px; margin: 0; }

/* Galerie-Teaser auf der Startseite */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-teaser__item {
  padding: 0;
  border: 0;
  cursor: zoom-in;
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(7, 7, 7, .08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery-teaser__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.gallery-teaser__item:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gallery-teaser__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 920px) { .gallery-teaser { grid-template-columns: repeat(2, 1fr); } }

/* Spieltags-Streifen unterm Hero (per JS gefüllt, ohne nächstes Spiel hidden) */
.matchday-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  padding: 14px var(--gutter);
  background:
    repeating-linear-gradient(135deg, rgba(7, 7, 7, .055) 0 16px, transparent 16px 34px),
    linear-gradient(135deg, #f5d400 0%, #ffdf00 55%, #e8c700 100%);
  color: var(--black);
  border-block: 1px solid rgba(7, 7, 7, .86);
  text-decoration: none;
  font-weight: 800;
  transition: filter .2s var(--ease);
}
.matchday-strip:hover { filter: brightness(1.05); }
.matchday-strip[hidden] { display: none; }
.matchday-strip__label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--black);
  color: var(--yellow);
  border-radius: 999px;
}
.matchday-strip__teams { font-size: clamp(15px, 2vw, 18px); font-weight: 900; }
.matchday-strip__when { font-weight: 600; opacity: .85; }
.matchday-strip__count {
  font-variant-numeric: tabular-nums;
  padding: 4px 12px;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-weight: 900;
}

.section--contact-yellow {
  padding-block: clamp(58px, 7vw, 92px);
  background:
    repeating-linear-gradient(135deg, rgba(7, 7, 7, .055) 0 16px, transparent 16px 34px),
    linear-gradient(135deg, #f5d400 0%, #ffdf00 55%, #e8c700 100%);
  color: var(--black);
  border-block: 1px solid rgba(7, 7, 7, .86);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(22px, 3vw, 34px);
  flex-wrap: wrap;
}

.section-title h2 {
  max-width: 760px;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow .dot {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 212, 0, .20);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.text-muted { color: var(--muted); }
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.form-disclaimer {
  font-size: 12px;
}
/* Header */
.ticker {
  position: sticky;
  top: 0;
  z-index: 92;
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--yellow);
  color: var(--black);
  border-bottom: 1px solid rgba(7, 7, 7, .28);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  contain: layout paint;
}

.ticker__track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker-run 36s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__line {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.ticker__line span::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  font-size: 10px;
  font-weight: 900;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  position: sticky;
  top: 34px;
  z-index: 80;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .94), rgba(7, 7, 7, .86)),
    repeating-linear-gradient(135deg, #050505 0 18px, rgba(255, 255, 255, .16) 18px 21px, #161616 21px 39px, rgba(255, 255, 255, .12) 39px 42px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  max-width: min(calc(var(--container) + 260px), calc(100vw - 64px));
  min-height: 96px;
  margin-inline: auto;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 18px;
}

.brand-menu,
.nav-menu {
  position: relative;
  z-index: 2;
}

.brand-menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-menu {
  flex: 0 1 auto;
}

.nav-menu__trigger {
  min-height: 48px;
  width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 212, 0, .62);
  border-radius: 999px;
  background: rgba(7, 7, 7, .70);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 10px 28px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.nav-menu__trigger::after {
  display: none;
}

.nav-menu__burger {
  width: 26px;
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.nav-menu__burger span {
  width: 100%;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}

.nav-menu__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-menu__trigger:hover,
.nav-menu[data-open="true"] .nav-menu__trigger {
  border-color: rgba(245, 212, 0, 1);
  background: rgba(245, 212, 0, .16);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10),
    0 14px 34px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.nav-menu__trigger:hover .nav-menu__burger span,
.nav-menu[data-open="true"] .nav-menu__burger span {
  background: #fff;
}

.nav-menu[data-open="true"] .nav-menu__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-menu[data-open="true"] .nav-menu__burger span:nth-child(2) {
  opacity: 0;
}

.nav-menu[data-open="true"] .nav-menu__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.nav .brand {
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
  text-align: left;
}

.brand__mark {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5d400;
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  overflow: hidden;
}

.brand__mark svg,
.brand__mark img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.brand__type {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav .brand__type {
  align-items: flex-start;
  justify-content: center;
  min-height: 66px;
  gap: 5px;
  transform: translateY(3px);
}

.brand__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.brand__sub {
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-family: var(--font-body);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   Rechte Aktions-Gruppe (Kontakt-Icon + Account-Pill)
   ========================================================= */

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__actions .user-badge { margin-left: 0; }
.nav-contact {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 7, 7, .70);
  border: 1px solid rgba(245, 212, 0, .58);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.nav-contact:hover { border-color: rgba(245, 212, 0, 1); background: rgba(245, 212, 0, .16); transform: translateY(-1px); }
.nav-contact svg { width: 19px; height: 19px; }

.nav-popover {
  position: absolute;
  left: 80px;
  top: calc(100% + 14px);
  width: min(380px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  padding: 22px 24px 24px;
  display: grid;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  color: var(--black);
  border: 1px solid rgba(7, 7, 7, .78);
  border-radius: 7px;
  background:
    radial-gradient(circle at left 50%, rgba(7, 7, 7, .98) 0 13px, transparent 14px),
    radial-gradient(circle at right 50%, rgba(7, 7, 7, .98) 0 13px, transparent 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, .34), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(120, 78, 0, .18), transparent 28%),
    linear-gradient(135deg, #f7dc45 0%, #efc62b 52%, #d8a915 100%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .38),
    inset 0 0 0 2px rgba(255, 244, 132, .28),
    inset 0 -18px 42px rgba(73, 45, 0, .12);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.brand-menu[data-open="true"] .nav-popover,
.nav-menu[data-open="true"] .nav-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-popover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
}

.nav-popover::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(7, 7, 7, .30);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 132, .18),
    0 0 0 1px rgba(255, 244, 132, .12);
  pointer-events: none;
}

.nav-popover__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 8px;
  border-bottom: 1px dashed rgba(7, 7, 7, .30);
  color: rgba(7, 7, 7, .66);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.mobile-menu__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-popover__columns {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.nav-popover__columns::after {
  display: none;
}

.nav-popover__section {
  width: auto;
  min-width: 0;
  padding-inline: 4px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nav-popover__heading {
  display: grid;
  gap: 4px;
  min-height: 56px;
  margin-bottom: 10px;
  padding: 10px 12px 9px;
  border: 1px solid rgba(7, 7, 7, .72);
  background:
    linear-gradient(90deg, rgba(255, 225, 0, .10), transparent 44%),
    linear-gradient(135deg, #070707 0%, #171717 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 68, .14),
    0 2px 0 rgba(7, 7, 7, .18);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.nav-popover__heading span {
  color: var(--yellow);
  font-size: 1.02rem;
  font-weight: 840;
}

.nav-popover__heading small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 680;
}

.nav-popover__list {
  display: grid;
  gap: 0;
}

.nav-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  font-weight: 680;
  white-space: nowrap;
  transition: color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.nav-popover .nav-link {
  width: 100%;
  border-color: rgba(7, 7, 7, .20);
  color: rgba(7, 7, 7, .80);
  font-weight: 840;
}

.nav-popover .nav-link::after {
  color: rgba(7, 7, 7, .64);
}

.nav-popover .nav-link:hover,
.nav-popover .nav-link.is-active {
  color: var(--black);
  border-color: rgba(7, 7, 7, .44);
}

.nav-popover__action {
  margin-top: auto;
  padding-top: 14px;
}

.nav-link::after {
  content: "→";
  color: rgba(245, 212, 0, .54);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yellow);
  border-color: rgba(245, 212, 0, .34);
  transform: translateX(3px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-login {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 13px 18px;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.nav-popover .nav-login {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 4px;
  background: #ffe100;
  color: var(--black);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, .18),
    0 2px 0 rgba(0, 0, 0, .18);
}

.nav-popover .nav-login:hover,
.nav-popover .nav-login.is-active {
  background: #ffea2a;
  color: var(--black);
}

.nav-login:hover,
.nav-login.is-active {
  background: var(--yellow-2);
  color: var(--black);
  transform: translateY(-1px);
}

.user-badge {
  position: relative;
  margin-left: auto;
  z-index: 3;
}

.user-badge[hidden] {
  display: none;
}

.user-badge__button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 212, 0, .58);
  border-radius: 999px;
  background: rgba(7, 7, 7, .70);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 10px 28px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.user-badge__button::after {
  content: "v";
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.user-badge__button:hover,
.user-badge[data-open="true"] .user-badge__button {
  border-color: rgba(245, 212, 0, .86);
  background: rgba(245, 212, 0, .16);
  transform: translateY(-1px);
}

.user-badge__button:hover::after,
.user-badge[data-open="true"] .user-badge__button::after {
  color: #fff;
}

.user-badge__avatar {
  display: none;
}

.user-badge__meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.user-badge__label {
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.user-badge__name {
  max-width: 130px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge__name[hidden] {
  display: none;
}

.user-badge__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 8px;
  display: grid;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  border: 1px solid rgba(245, 212, 0, .54);
  border-radius: 6px;
  background: rgba(7, 7, 7, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.user-badge__menu::before {
  content: "";
  position: absolute;
  right: 20px;
  top: -10px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(245, 212, 0, .54);
  border-top: 1px solid rgba(245, 212, 0, .54);
  background: rgba(7, 7, 7, .98);
  transform: rotate(45deg);
}

.user-badge__menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.user-badge:hover .user-badge__menu,
.user-badge:focus-within .user-badge__menu,
.user-badge[data-open="true"] .user-badge__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-badge__menu a,
.user-badge__menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.user-badge__menu [hidden] {
  display: none;
}

.user-badge__menu button {
  width: 100%;
}

.user-badge__menu a:hover,
.user-badge__menu button:hover {
  background: var(--yellow);
  color: var(--black);
}

.user-badge__admin {
  color: var(--yellow);
  border: 1px solid rgba(245, 212, 0, .4);
  margin-bottom: 4px;
}

/* === Hauptnavigation: fixierte linke „Menü"-Lasche + Drawer (alle Breiten) ===
   Mobil/Tablet (≤1100px): schlanke Linkliste.
   Desktop (≥1101px): breiter Drawer mit Vorschau-Aside im Mega-Stil. */
body { --drawer-w: min(90vw, 340px); }

.menu-tab {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 1002;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 9px;
  border: 0;
  cursor: pointer;
  color: var(--black);
  background: var(--yellow);
  border-radius: 0 13px 13px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), background .2s var(--ease);
}
.menu-tab:hover { background: var(--yellow-2); }
.menu-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.menu-tab__arrow { width: 20px; height: 20px; display: grid; place-items: center; transition: transform .35s var(--ease); }
.menu-tab__arrow svg { width: 20px; height: 20px; }
.menu-tab__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.menu-open .menu-tab { transform: translateY(-50%) translateX(var(--drawer-w)); }
body.menu-open .menu-tab__arrow { transform: rotate(180deg); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }

.menu-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: var(--drawer-w);
  padding: 14px 0 16px;
  color: #fff;
  background: linear-gradient(180deg, #141414, #070707);
  border-right: 3px solid var(--yellow);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .5);
  transform: translateX(-100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform .35s var(--ease), visibility .35s var(--ease);
}
body.menu-open .menu-drawer { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }

.menu-drawer__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--line-dark);
}
/* Schlanker Kopf: Logo links, Schließen-Knopf rechts */
.menu-drawer__head--slim { justify-content: space-between; padding: 0 14px 10px; border-bottom: 0; }
.menu-drawer__logo { display: inline-flex; }
.menu-drawer__logo img { width: 38px; height: 38px; }
.brand--drawer { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.brand--drawer .brand__mark { width: 42px; height: 42px; }
.brand--drawer .brand__mark svg,
.brand--drawer .brand__mark img { width: 40px; height: 40px; }
.brand--drawer .brand__name { font-size: 15px; font-weight: 800; line-height: 1.1; }
.brand--drawer .brand__sub { font-size: 12px; color: rgba(255, 255, 255, .55); }
.menu-drawer__close {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.menu-drawer__close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Navigationszeilen — alle im „Aktuelles und Termine"-Stil (Icon + Titel + Untertitel + Pfeil) */
/* Kompakt gehalten, damit das Menü nie scrollen muss */
.menu-drawer__links { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 8px 12px 2px; }
.menu-drawer__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.menu-drawer__item:hover,
.menu-drawer__item:focus-visible {
  background: rgba(245, 212, 0, .16);
  border-color: rgba(245, 212, 0, .5);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}
.menu-drawer__ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: rgba(245, 212, 0, .12);
  border: 1px solid rgba(245, 212, 0, .22);
}
.menu-drawer__ic svg { width: 17px; height: 17px; }
.menu-drawer__txt { flex: 1; min-width: 0; }
.menu-drawer__title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.menu-drawer__sub { display: block; font-size: 11px; color: rgba(255, 255, 255, .56); margin-top: 1px; }
.menu-drawer__chev { flex: none; color: rgba(255, 255, 255, .35); transition: transform .18s var(--ease), color .18s var(--ease); }
.menu-drawer__chev svg { width: 16px; height: 16px; }
.menu-drawer__item:hover .menu-drawer__chev,
.menu-drawer__item:focus-visible .menu-drawer__chev { color: var(--yellow); transform: translateX(2px); }
/* Genau ein aktiver Eintrag: die Sektion im Viewport bzw. die aktuelle Seite */
.menu-drawer__item.is-active { background: rgba(245, 212, 0, .14); border-color: rgba(245, 212, 0, .4); }
.menu-drawer__item.is-active .menu-drawer__ic { color: var(--black); background: var(--yellow); border-color: var(--yellow); }
.menu-drawer__item.is-active .menu-drawer__title { color: var(--yellow); }

/* Fußzeile: Login + Kontakt als zwei Aktionen */
.menu-drawer__foot {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 12px 0;
  border-top: 1px solid var(--line-dark);
}
.menu-drawer__action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
/* Die Klassenregel setzt display:inline-flex und würde sonst die native
   [hidden]-Regel überschreiben. Der Mitgliederbereich darf Gästen weder Platz
   wegnehmen noch als abgeschnittene dritte Aktion erscheinen. */
.menu-drawer__action[hidden] { display: none !important; }
.menu-drawer__action:hover,
.menu-drawer__action:focus-visible { background: rgba(245, 212, 0, .16); border-color: rgba(245, 212, 0, .45); color: #fff; outline: none; }
/* Mitglieder-Login im Drawer: gelb hervorgehoben, sofort auffindbar */
.menu-drawer__action--login { background: var(--yellow); border-color: var(--yellow); color: var(--black); font-weight: 900; }
.menu-drawer__action--login .menu-drawer__action-ic { color: var(--black); }
.menu-drawer__action--login:hover,
.menu-drawer__action--login:focus-visible { background: var(--yellow-2); border-color: var(--yellow-2); color: var(--black); }
.menu-drawer__action-ic { display: grid; place-items: center; color: var(--yellow); }
.menu-drawer__action-ic svg { width: 17px; height: 17px; }

/* Desktop: gleicher Drawer, aber als kompaktes Panel — links, vertikal mittig,
   Höhe nach Inhalt (ca. halbe Bildschirmhöhe) statt randvoll. */
@media (min-width: 1101px) {
  body { --drawer-w: 360px; }
  .menu-drawer {
    top: 50%;
    bottom: auto;
    height: auto;
    max-height: min(82vh, 600px);
    transform: translate(-100%, -50%);
    border-radius: 0 16px 16px 0;
    padding-bottom: 18px;
  }
  body.menu-open .menu-drawer { transform: translate(0, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-tab,
  .menu-tab__arrow,
  .menu-backdrop,
  .menu-dock,
  .menu-drawer { transition: none; }
}

@media (max-width: 1100px) {
  .nav-popover,
  .nav-contact {
    display: none;
  }

  .nav__inner {
    max-width: 100%;
  }

  .user-badge:hover .user-badge__menu,
  .user-badge:focus-within .user-badge__menu {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .user-badge[data-open="true"] .user-badge__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

}

@media (max-width: 620px) {
  .ticker {
    height: 30px;
    font-size: 11px;
  }

  .nav {
    top: 30px;
  }

  .nav__inner {
    min-height: 92px;
  }

  .brand__mark {
    width: 52px;
    height: 52px;
  }

  .brand__mark svg,
  .brand__mark img {
    width: 50px;
    height: 50px;
  }

  .nav .brand__type {
    min-height: 52px;
  }

  .brand__sub {
    display: none;
  }

  .user-badge__button {
    min-height: 42px;
    padding: 7px 12px;
  }

  .user-badge__meta {
    display: grid;
  }

  .mobile-menu .nav-link {
    padding: 10px 0;
  }

}

/* Buttons */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform .16s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    box-shadow .2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .10);
}

.btn--primary:hover {
  background: var(--yellow-2);
  color: var(--black);
}

.btn--dark {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.btn--dark:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

/* Auf gelbem Grund darf der dunkle Button beim Hover nicht gelb werden (sonst unsichtbar). */
.section--contact-yellow .btn--dark:hover {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: #fff;
}

.btn--ghost,
.btn--ghost-light {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .48);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Destruktive Aktionen (Löschen) heben sich von "Bearbeiten" ab. */
.btn--danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger-text);
}

.btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.email-link,
.email-inline {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.email-link:hover,
.email-inline:hover {
  color: var(--yellow);
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: #fff;
}

.hero {
  aspect-ratio: 1672 / 941;
  min-height: min(400px, calc(100svh - 160px));
  display: grid;
  align-items: end;
  border-bottom: 1px dashed rgba(245, 212, 0, .30);
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .76), rgba(7, 7, 7, .48) 44%, rgba(7, 7, 7, .16)),
    linear-gradient(180deg, rgba(7, 7, 7, .02), rgba(7, 7, 7, .62));
  pointer-events: none;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  filter: saturate(.96) contrast(1.05);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--hero-bg) var(--hero-position, center) / contain no-repeat;
  transition: opacity 1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  right: clamp(14px, 2.8vw, 28px);
  bottom: clamp(14px, 2.8vw, 28px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(7, 7, 7, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-indicator {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  opacity: .86;
  transition: width .22s var(--ease), background .22s var(--ease), opacity .22s var(--ease);
}

.carousel-indicator.is-active {
  width: 28px;
  background: var(--yellow);
  opacity: 1;
}

.carousel-indicator:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-carousel .carousel-indicators {
  right: 16px;
  bottom: 14px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(38px, 5vw, 62px) var(--gutter) clamp(30px, 4vw, 46px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .62fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
}

.hero__grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero__copy {
  max-width: 840px;
}

.hero h1 {
  max-width: 900px;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 5px 28px rgba(0, 0, 0, .48);
}

.hero__lede {
  max-width: 700px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  font-weight: 550;
}

.hero__ctas,
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__ctas {
  margin-top: 20px;
}

.hero__panel {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed rgba(245, 212, 0, .28);
  border-radius: var(--radius-lg);
  background: rgba(7, 7, 7, .66);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero__panel h2 {
  color: #fff;
  font-size: 1.4rem;
}

.hero__panel p {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero__fact {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.hero__fact strong {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.hero__fact span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .66);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.youtube-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-sm);
}

.youtube-feature__poster,
.youtube-feature iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.youtube-feature__poster {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  border: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .86), rgba(7, 7, 7, .54)),
    var(--youtube-poster, url("../img/photos/stadion-choreo.jpg")) center / cover no-repeat;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.youtube-feature__poster h3 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.youtube-feature__poster p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .75);
}

.youtube-feature__play {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
}

.youtube-feature iframe {
  display: block;
  border: 0;
}

.next-match {
  display: grid;
  grid-template-columns: minmax(76px, 92px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.next-match__date {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 900;
  text-align: center;
}

.next-match__date strong {
  display: block;
  font-size: 1.62rem;
  line-height: .9;
}

.next-match__date span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.next-match__body {
  display: grid;
  align-content: center;
  gap: 6px;
}

.next-match__body h3 {
  max-width: 15ch;
  font-size: clamp(1.12rem, 1.55vw, 1.55rem);
  line-height: 1.1;
}

.next-match__meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-carousel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow);
}

.home-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity .7s var(--ease), transform 3.8s linear;
  transform: scale(1.03);
}

.home-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-carousel__slide picture,
.home-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-carousel__slide img {
  object-fit: cover;
}

.page-hero {
  padding: clamp(48px, 7vw, 82px) var(--gutter);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .78)),
    image-set(
      url("../img/photos/fanraum-sammlung.webp") type("image/webp"),
      url("../img/photos/fanraum-sammlung.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero--block20 {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .72)),
    image-set(
      url("../img/photos/fanraum-sammlung.webp") type("image/webp"),
      url("../img/photos/fanraum-sammlung.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--fotoalbum {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .90), rgba(7, 7, 7, .62)),
    image-set(
      url("../img/photos/gruppenfoto-auswaerts.webp") type("image/webp"),
      url("../img/photos/gruppenfoto-auswaerts.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--contact,
.page-hero--membership {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .66)),
    image-set(
      url("../img/photos/fanraum-theke.webp") type("image/webp"),
      url("../img/photos/fanraum-theke.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--members,
.page-hero--profile,
.page-hero--member-profile,
.page-hero--admin {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .72)),
    image-set(
      url("../img/photos/fanclub-fahne.webp") type("image/webp"),
      url("../img/photos/fanclub-fahne.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--impressum {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .94), rgba(7, 7, 7, .70)),
    image-set(
      url("../img/photos/stadion-banner.webp") type("image/webp"),
      url("../img/photos/stadion-banner.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--datenschutz {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .94), rgba(7, 7, 7, .70)),
    image-set(
      url("../img/photos/stadion-blockblick.webp") type("image/webp"),
      url("../img/photos/stadion-blockblick.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero--merch {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .68)),
    image-set(
      url("../img/photos/fanraum-portrait.webp") type("image/webp"),
      url("../img/photos/fanraum-portrait.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.page-hero__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 840px;
  color: #fff;
}

.page-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
}

.page-hero--image {
  min-height: 420px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--page-hero-image, url("../img/brand/hero-vorstand.webp")) var(--page-hero-position, center) / cover no-repeat;
  transform: scale(1.02);
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .90), rgba(7, 7, 7, .54) 48%, rgba(7, 7, 7, .18)),
    linear-gradient(180deg, rgba(7, 7, 7, .18), rgba(7, 7, 7, .88));
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.crumbs a:hover {
  color: var(--yellow);
}

.crumbs .sep {
  opacity: .55;
}

@media (max-width: 900px) {
  .hero {
    aspect-ratio: auto;
    min-height: auto;
  }

  .hero__grid,
  .current-layout {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .next-match {
    grid-template-columns: 1fr;
  }

  .next-match__date {
    min-height: 70px;
  }

  .home-carousel {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: center top;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, .48), rgba(7, 7, 7, .72)),
      linear-gradient(90deg, rgba(7, 7, 7, .68), rgba(7, 7, 7, .32));
  }

  .hero__inner {
    padding-block: 52px 44px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8.2vw, 2.45rem);
  }

  .hero__ctas .btn,
  .cta-row .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .current-layout__match {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .home-carousel__slide {
    transition: none;
    transform: none;
  }
}

/* Component grids */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

/* Aktuelles & Termine: news cards next to an upcoming-events rail */
.current-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
  align-items: start;
}
.current-grid--events-only {
  grid-template-columns: 1fr;
}
.current-grid--events-only .current-grid__events {
  max-width: 620px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.current-grid__events #events-list {
  display: grid;
  gap: 12px;
}
@media (max-width: 860px) {
  .current-grid { grid-template-columns: 1fr; gap: 20px; }
}

.card,
.event,
.tile,
.product,
.value,
.form,
.auth-card,
.gate,
.member-toolbar,
.faq-item,
.contact-info,
.info-panel,
.step-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card,
.tile,
.product,
.step-card {
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.card:hover,
.tile:hover,
.product:hover,
.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, .35);
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media,
.product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #171717, #2a2a2a);
  color: rgba(255, 255, 255, .52);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card__media--photo,
.product__media--photo,
.media-frame[data-lightbox-src] {
  cursor: zoom-in;
}

.card__media--photo:focus-visible,
.product__media--photo:focus-visible,
.media-frame[data-lightbox-src]:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.card__media img,
.product__media img,
.gallery-item img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media::after,
.product__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  pointer-events: none;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.card__meta {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card__title {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.16;
}

.card__excerpt {
  flex: 1;
  margin-bottom: 16px;
}

.card__cta {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.event {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.event__date {
  width: 70px;
  flex: 0 0 auto;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  text-align: center;
}

.event__day {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.event__month {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event__body {
  min-width: 0;
}

.event__tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event__tag--away {
  background: var(--black);
  color: var(--yellow);
}

.event__tag--home {
  background: var(--yellow);
  color: var(--black);
}

.event__tag--birthday {
  background: var(--yellow);
  color: var(--black);
}

/* Glückwunsch-Box unter Geburtstags-Einträgen im Wochenkalender */
.congrats {
  margin-top: 6px;
}

.congrats__list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.congrats__list strong {
  color: var(--ink);
}

.congrats__hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.congrats__done {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.congrats__error {
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 12.5px;
}

.congrats__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.congrats__form input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line, rgba(0, 0, 0, .15));
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
}

.event__title {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.event__meta {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.current-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.current-layout__match {
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.editorial-split,
.welcome,
.contact-grid,
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 6vw, 66px);
  align-items: center;
}

.editorial-copy p + p,
.welcome p + p,
.legal p + p {
  margin-top: 14px;
}

.media-frame,
.welcome__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow);
}

.media-frame::after,
.welcome__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .32));
  pointer-events: none;
}

.welcome__visual {
  background:
    image-set(
      url("../img/photos/fanraum-portrait.webp") type("image/webp"),
      url("../img/photos/fanraum-portrait.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.quote-box {
  margin-top: 24px;
  padding: 20px;
  border-left: 5px solid var(--yellow);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.55;
}

.value-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.value-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.value-grid,
.steps-grid,
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

/* Geschichte — vertikale Timeline (Bild ↔ Text) mit Spotlight */
/* Mobile-first: saubere vertikale Timeline mit linker Schiene + Knotenpunkten.
   Alle Schritte voll sichtbar (kein Hover/Spotlight nötig). */
.timeline {
  position: relative;
  display: grid;
  gap: 30px;
  margin-top: 28px;
}
.timeline__step {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 22px;
  border-left: 2px solid rgba(245, 212, 0, .45);
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.timeline__node {
  position: relative;
  order: -1;
  justify-self: start;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--yellow);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .14);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.timeline__node::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(245, 212, 0, .35);
}
.timeline__step.is-active .timeline__node {
  background: var(--yellow);
  color: var(--black);
}
.timeline__media {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.timeline__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.timeline__text { max-width: 100%; }
.timeline__text h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.timeline__text p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Desktop: alternierender Zeitstrahl mit Mittelachse + Hover-Spotlight */
@media (min-width: 1101px) {
  .timeline { gap: clamp(30px, 5vw, 58px); margin-top: 40px; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--yellow), var(--yellow-3));
    border-radius: 2px;
  }
  .timeline__step {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    padding-left: 0;
    border-left: 0;
  }
  .timeline__step > * { grid-row: 1; }
  .timeline.has-active .timeline__step:not(.is-active) { opacity: 1; }
  .timeline__node {
    grid-column: 2;
    order: 0;
    justify-self: center;
    z-index: 1;
    padding: 10px 18px;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .16);
  }
  .timeline__node::before { display: none; }
  .timeline__step.is-active .timeline__node { transform: scale(1.06); }
  .timeline__media { max-width: 430px; }
  .timeline__step.is-active .timeline__media img { transform: scale(1.05); }
  .timeline__text {
    max-width: 430px;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .timeline__step:hover .timeline__text,
  .timeline__step:focus-within .timeline__text,
  .timeline__step.is-active .timeline__text { opacity: 1; transform: none; }
  .timeline__step[data-pos="left"] .timeline__media { grid-column: 1; justify-self: end; }
  .timeline__step[data-pos="left"] .timeline__text { grid-column: 3; justify-self: start; text-align: left; }
  .timeline__step[data-pos="right"] .timeline__media { grid-column: 3; justify-self: start; }
  .timeline__step[data-pos="right"] .timeline__text { grid-column: 1; justify-self: end; text-align: right; }
}

.value,
.step-card,
.tile {
  padding: 24px;
}

.value__num,
.step-card__num {
  margin-bottom: 18px;
  color: var(--yellow-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.value h3,
.step-card h3,
.tile h3 {
  margin-bottom: 8px;
}

.tile {
  position: relative;
  display: block;
  min-height: 190px;
}

.tile__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
}

.tile__icon svg {
  width: 22px;
  height: 22px;
}

.tile__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted-2);
  font-weight: 900;
}

.membership-panel {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 212, 0, .96), rgba(255, 227, 90, .82));
  color: var(--black);
}

.membership-panel h2,
.membership-panel h3,
.membership-panel p,
.membership-panel strong {
  color: var(--black);
}

.membership-panel p {
  max-width: 680px;
}

.membership-panel h3 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.merch-plan {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(7, 7, 7, .82);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at right 10%, rgba(255, 255, 255, .26), transparent 25%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #f7dc45 0%, #efc62b 56%, #d8a915 100%);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.merch-plan p,
.merch-plan strong {
  color: rgba(7, 7, 7, .76);
}

.merch-plan__list {
  padding: 22px;
  border: 1px dashed rgba(7, 7, 7, .30);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .22);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.board-intro {
  margin-bottom: clamp(26px, 4vw, 40px);
}

.board-stack {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.board-card {
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(7, 7, 7, .78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.board-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black);
}

.board-card__photo picture,
.board-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.board-card__photo img {
  object-fit: cover;
  object-position: var(--board-photo-position, center);
}

.board-card__photo--melanie {
  --board-photo-position: 50% 48%;
}

.board-card__photo--tim {
  --board-photo-position: 50% 45%;
}

.board-card__body {
  padding: 22px;
  background:
    radial-gradient(circle at right 18%, rgba(255, 255, 255, .34), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #f7dc45 0%, #efc62b 56%, #d8a915 100%);
}

.board-card__role {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(7, 7, 7, .32);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-card p {
  margin-top: 10px;
  color: rgba(7, 7, 7, .76);
}

/* Vorstand — dynamisches Gruppenfoto + lebendige Karten */
.media-frame--team {
  min-height: 0;
  aspect-ratio: 5 / 6;
}
/* Gruppenfoto in 3 Hover-Zonen (Tim / Michael / Melanie) */
.media-frame--team .team-zones {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
}
.team-zone {
  flex: 1;
  position: relative;
}
.team-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, .62);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.media-frame--team[data-active] .team-zone::after {
  opacity: 1;
}
.media-frame--team .team-zone.is-active::after {
  opacity: 0;
}
.team-zone__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.team-zone.is-active .team-zone__name {
  opacity: 1;
  transform: none;
}

/* Verbindung Foto-Zone ⇄ Porträtkarte */
.board-grid--home.has-active .board-card:not(.is-active) {
  opacity: .5;
  filter: saturate(.7);
}
.board-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px var(--yellow), var(--shadow);
}

.board-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), opacity .22s var(--ease), filter .22s var(--ease);
}
.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.board-card__photo img {
  transition: transform .55s var(--ease);
}
.board-card:hover .board-card__photo img {
  transform: scale(1.06);
}

/* Vorstand mobil: Tap-Hinweis + Einzelkarte (≤900px). Desktop bleibt Hover-Grid. */
.board-tap-hint { display: none; }
@media (max-width: 900px) {
  .media-frame--team { cursor: pointer; }
  .board-tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 13px 16px;
    border: 1px dashed rgba(255, 255, 255, .30);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
  }
  .board-tap-hint[hidden] { display: none; }
  .board-tap-hint svg { color: var(--yellow); flex: none; }

  /* Karten erst nach Tap sichtbar — nur die gewählte Person erscheint groß. */
  .board-grid--home .board-card { display: none; }
  .board-grid--home.has-active .board-card.is-active { display: grid; }
  .board-grid--home.has-active .board-card:not(.is-active) { display: none; opacity: 1; filter: none; }
}

.board-work {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(245, 212, 0, .72);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .10), transparent 48%),
    rgba(245, 212, 0, .12);
  color: #fff;
}

.board-work p {
  max-width: 760px;
  color: rgba(255, 255, 255, .76);
}

.home-contact {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.home-contact__pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border: 1px solid rgba(7, 7, 7, .28);
  border-radius: 999px;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-contact h2 {
  max-width: 960px;
  color: var(--black);
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: .95;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .home-contact h2 {
    font-size: clamp(1.5rem, 8.2vw, 2.35rem);
  }
}

.home-contact > p {
  max-width: 660px;
  color: var(--black);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 560;
}

.home-contact__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn--outline-dark {
  border-color: rgba(7, 7, 7, .92);
  background: transparent;
  color: var(--black);
}

.btn--outline-dark:hover {
  background: var(--black);
  color: #fff;
}

.home-contact__mail {
  margin-top: 4px;
  color: var(--black);
  font-size: .96rem;
}

.home-contact__mail button {
  color: var(--black);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Desktop menu concept previews */
.menu-concepts-body {
  background:
    linear-gradient(90deg, #141414 0 var(--side-rail), transparent var(--side-rail) calc(100% - var(--side-rail)), #141414 calc(100% - var(--side-rail)) 100%),
    radial-gradient(circle at 50% 0, rgba(245, 212, 0, .16), transparent 32%),
    var(--bg);
}

.menu-concepts {
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 86px);
}

.menu-concepts__intro,
.menu-concepts__grid {
  max-width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.menu-concepts__intro {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.menu-concepts__intro h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: .9;
  text-transform: uppercase;
}

.menu-concepts__intro p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-weight: 620;
}

.menu-concepts__back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-concepts__grid {
  display: grid;
  gap: 24px;
}

.menu-concept-card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.menu-concept-card__meta {
  padding-top: 10px;
}

.menu-concept-card__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.menu-concept-card__meta h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: .95;
}

.menu-prototype {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(7, 7, 7, .18);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}

.menu-prototype::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .82), rgba(7, 7, 7, .20) 58%, rgba(7, 7, 7, .64)),
    image-set(
      url("../img/photos/stadion-blockblick.webp") type("image/webp"),
      url("../img/photos/stadion-blockblick.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  opacity: .94;
}

.menu-prototype--ticket::after,
.menu-prototype--rail::after,
.menu-prototype--bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(245, 212, 0, .08) 18px 22px);
  pointer-events: none;
}

.menu-prototype--ticket {
  min-height: 420px;
}

.menu-prototype__brand,
.menu-prototype__stage,
.matchday-card,
.concept-menu,
.rail-menu,
.matchday-menu {
  position: relative;
  z-index: 1;
}

.menu-prototype__brand {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  color: #fff;
  text-align: right;
}

.menu-prototype__brand span,
.menu-prototype__stage strong,
.matchday-menu strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  white-space: nowrap;
}

.menu-prototype__brand small,
.menu-prototype__stage small,
.matchday-card small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
}

.concept-menu {
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(330px, calc(100% - 36px));
}

.concept-menu summary,
.matchday-menu summary {
  list-style: none;
  cursor: pointer;
}

.concept-menu summary::-webkit-details-marker,
.matchday-menu summary::-webkit-details-marker {
  display: none;
}

.concept-menu summary {
  width: max-content;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(245, 212, 0, .78);
  border-radius: 999px;
  background: rgba(7, 7, 7, .82);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.concept-menu__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
}

.concept-menu__panel {
  margin-top: 12px;
  padding: 18px;
  display: grid;
  gap: 2px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), transparent 32%),
    repeating-linear-gradient(0deg, rgba(7, 7, 7, .08) 0 1px, transparent 1px 9px),
    var(--yellow);
  color: var(--black);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.concept-menu__club {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(7, 7, 7, .42);
}

.concept-menu__club img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
}

.concept-menu__club strong {
  color: var(--black);
  font-size: 1rem;
  white-space: nowrap;
}

.concept-menu__club small {
  color: rgba(7, 7, 7, .64);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-menu__panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 7, 7, .16);
  color: var(--black);
  font-weight: 900;
}

.concept-menu__panel a::after {
  content: ">";
  font-family: var(--font-mono);
}

.concept-menu__panel a:hover {
  transform: translateX(4px);
}

.menu-prototype--rail::before {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .72), rgba(7, 7, 7, .18)),
    image-set(
      url("../img/photos/fanclub-fahne.webp") type("image/webp"),
      url("../img/photos/fanclub-fahne.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.rail-menu {
  width: 244px;
  min-height: 100%;
  padding: 18px 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, .96), rgba(7, 7, 7, .82)),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(245, 212, 0, .13) 13px 16px);
  border-right: 1px solid rgba(245, 212, 0, .34);
  box-shadow: 18px 0 54px rgba(0, 0, 0, .32);
}

.rail-menu__home {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rail-menu__home img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--yellow);
}

.rail-menu nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rail-menu nav a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .82);
  font-weight: 850;
}

.rail-menu nav a:hover {
  border-color: var(--yellow);
  background: rgba(245, 212, 0, .12);
  color: #fff;
  transform: translateX(5px);
}

.rail-menu nav span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.menu-prototype__stage {
  position: absolute;
  left: 288px;
  bottom: 28px;
  display: grid;
  gap: 6px;
}

.menu-prototype__stage strong {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: .95;
}

.menu-prototype--bar {
  padding: 18px;
}

.menu-prototype--bar::before {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .66), rgba(7, 7, 7, .18) 56%, rgba(7, 7, 7, .72)),
    image-set(
      url("../img/photos/gruppenfoto-auswaerts.webp") type("image/webp"),
      url("../img/photos/gruppenfoto-auswaerts.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.matchday-menu {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid rgba(245, 212, 0, .55);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, .78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .30);
}

.matchday-menu details {
  display: flex;
}

.matchday-menu summary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.matchday-menu__bars {
  width: 22px;
  display: grid;
  gap: 4px;
}

.matchday-menu__bars span {
  height: 3px;
  border-radius: 999px;
  background: var(--black);
}

.matchday-menu nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.matchday-menu nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.matchday-menu nav a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.matchday-menu strong {
  margin-left: auto;
  padding-right: 10px;
  font-size: 1rem;
}

.matchday-card {
  position: absolute;
  left: 34px;
  bottom: 30px;
  width: min(420px, calc(100% - 68px));
  padding: 18px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, .74);
}

.matchday-card span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.matchday-card strong {
  color: #fff;
  font-size: 2.2rem;
  line-height: .95;
}

@media (max-width: 900px) {
  .menu-concept-card {
    grid-template-columns: 1fr;
  }

  .menu-prototype {
    min-height: 420px;
  }

  .rail-menu {
    width: 100%;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 212, 0, .34);
  }

  .rail-menu nav,
  .matchday-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-prototype__stage {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .matchday-menu,
  .matchday-menu details {
    display: grid;
  }
}

@media (max-width: 900px) {
  .editorial-split,
  .welcome,
  .contact-grid,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .media-frame,
  .welcome__visual {
    min-height: 280px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .home-contact__actions .btn {
    width: min(100%, 360px);
  }

  .merch-plan {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery-seasons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.gallery-season {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.gallery-season:hover,
.gallery-season.is-active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.gallery-albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: start;
  gap: 10px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gallery-tab {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.gallery-tab:hover,
.gallery-tab.is-active {
  background: var(--black);
  color: #fff;
}

.gallery-album {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.gallery-album:hover,
.gallery-album.is-active {
  border-color: rgba(7, 7, 7, .46);
  background: var(--black);
  color: #fff;
}

.gallery-album__media {
  min-height: 70px;
  display: block;
  overflow: hidden;
  background: var(--black);
}

.gallery-album__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-album__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-album__body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
}

.gallery-album__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-album__event {
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  opacity: .72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-album__count {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  opacity: .62;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  gap: 12px;
}

.gallery-page .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  grid-auto-rows: auto;
  gap: 10px;
}

.gallery-page .gallery-item,
.gallery-page .gallery-item:nth-child(1),
.gallery-page .gallery-item:nth-child(4),
.gallery-page .gallery-item:nth-child(6) {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.gallery-page .gallery-item::after {
  padding: 34px 12px 11px;
  font-size: 12px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: #fff;
  cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 6;
  grid-row: span 4;
}

.gallery-item:nth-child(4) {
  grid-column: span 5;
}

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0;
  padding: 46px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .74));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gallery-item:not(.gallery-item--photo) {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 82px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 520px) {
  .gallery-albums {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 70px 18px 26px;
  background: rgba(0, 0, 0, .88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
}

.lightbox__img {
  width: min(1100px, calc(100vw - 36px));
  height: min(74vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: #111;
  color: rgba(255, 255, 255, .56);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lightbox__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__caption {
  max-width: min(1100px, calc(100vw - 36px));
  margin-top: 14px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* Forms */
.form {
  position: relative;
  padding: clamp(22px, 4vw, 36px);
}

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

.form__turnstile {
  min-height: 1px;
  margin-top: 18px;
}

.form__turnstile[hidden] {
  display: none;
}

.form__fieldset {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.form__fieldset legend {
  padding-inline: 8px;
  color: var(--ink);
  font-weight: 850;
}

.form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form__row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}

.field label .opt {
  color: var(--muted);
  font-weight: 500;
}

/* CMS: Zusatzoptionen unter einem Textfeld (ausblenden / Schriftgroesse).
   Bewusst kompakt und in einer Zeile, damit die Feldliste nicht auseinanderfaellt. */
.field-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: -1px;
}

.field-opts .field-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.field .field-opts input[type="checkbox"],
.field label.field-opt > input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--yellow, #f5d400);
}

.field .field-opts select {
  width: auto;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12.5px;
}

.field input,
.field select,
.field textarea,
.member-toolbar input[type="search"],
.member-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.member-toolbar input[type="search"]:focus,
.member-toolbar select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 212, 0, .34);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form__note,
.info-note {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
}

.form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form__success,
.form__error {
  display: none;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
}

.form__success {
  border: 1px solid var(--success-line);
  background: var(--success-bg);
  color: var(--success-text);
}

.form__error {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.form__success.is-visible,
.form__error.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .form__row.cols-2 {
    grid-template-columns: 1fr;
  }

  .form__actions .btn {
    width: 100%;
  }
}

/* Contact, legal, FAQ */
.contact-info,
.info-panel,
.legal-card {
  padding: 24px;
}

.contact-info {
  background: var(--black);
  color: #fff;
}

.contact-info h3,
.contact-info strong {
  color: var(--yellow);
}

.contact-info p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
}

.contact-info a {
  color: #fff;
  border-bottom: 1px solid var(--yellow);
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
}

.social:hover {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.faq-item p {
  padding: 0 18px 18px;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.legal ul,
.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.legal li + li,
.check-list li + li {
  margin-top: 8px;
}

/* Internal screens kept stable */
.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 56px var(--gutter);
  background: var(--bg-2);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 34px;
}

.auth-card h1 {
  font-size: 1.7rem;
}

.auth-card p.lede {
  margin: 8px 0 24px;
}

.auth-card .brand-mini,
.gate__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--yellow);
}

.auth-help {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-login {
  display: grid;
  justify-content: center;
}

.auth-divider[hidden],
.google-login[hidden] {
  display: none;
}

.gate {
  padding: 34px;
  text-align: center;
}

.member-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.member-toolbar input[type="search"] {
  min-width: min(100%, 280px);
  flex: 1;
}

.admin-panel,
.admin-form,
.admin-table-wrap,
.submission-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 14px;
}

/* Mitglieder-Tabelle hat 11 Spalten (inkl. Foto-OK): breite Mindestbreite,
   damit alle Angaben voll lesbar bleiben — der Wrap scrollt horizontal. */
.admin-table.members-table {
  min-width: 1320px;
}
.admin-table.members-table th,
.admin-table.members-table td {
  white-space: nowrap;
}

.admin-table th {
  padding: 12px 16px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.admin-table span {
  color: var(--muted);
  font-size: 12px;
}

.status-select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* CMS-Mitgliedertabelle */
.members-table { min-width: 920px; }
.members-table td { vertical-align: middle; }
.member-thumb {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}
.member-thumb--empty {
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.members-table .member-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  color: #1d1d1d;
}
.member-status--aktiv { background: #c8eccd; }
.member-status--vorstand { background: var(--yellow); }
.member-status--passiv { background: #e6e8ec; }
.member-status--inaktiv { background: #f4cccc; }
.members-table tr.is-inactive { opacity: .55; }
.members-table .cms-row__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cms-subhead h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
/* Tabelle ist die Hauptübersicht — die Liste im Generic-Editor darunter ausblenden */
[data-tab-panel="mitglieder"] #editor-members .mini-list { display: none; }

.submission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.submission-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.submission-card__media {
  min-height: 150px;
  background: var(--black);
  cursor: zoom-in;
}

.submission-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submission-card__body {
  padding: 18px;
}

.mini-list {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.mini-list__item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.mini-list__item span {
  color: var(--muted);
  font-size: 12.5px;
}

/* CMS editors (config-driven create/edit/list) */
.cms-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cms-form .field { margin-bottom: 12px; }
.cms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cms-row > span:first-child { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.cms-row__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cms-row__actions span { font-size: inherit; }

#album-cancel[hidden] { display: none !important; }
[data-content-href][hidden] { display: none !important; }

.member-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #151515;
  color: #fff;
}
.member-count-badge[hidden] { display: none !important; }
.member-count-badge__number {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.member-count-badge__label {
  padding-left: 18px;
  border-left: 1px solid #454545;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.member-count-badge__label span {
  display: block;
  margin-top: 3px;
  color: #ccc;
  font-size: .8rem;
  font-weight: 400;
}

/* The CMS owns the wording; this section supplies a consistent reading rhythm. */
#block20 .editorial-split { align-items: start; }
#block20 .editorial-copy { min-width: 0; }
#block20 h2 { margin-bottom: 24px; font-size: clamp(2rem, 3.3vw, 2.8rem); }
#block20 .editorial-copy > p {
  max-width: 60ch;
  color: #4a5059;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}
#block20 .editorial-copy > p + p { margin-top: 20px; }
#block20 .quote-box {
  margin-top: 28px;
  padding: 0 0 0 20px;
  border-left-width: 3px;
  background: transparent;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}
#block20 .home-carousel { margin-top: 54px; }
@media (max-width: 900px) {
  #block20 .home-carousel { margin-top: 0; }
}
@media (max-width: 420px) {
  .member-count-badge { gap: 14px; padding: 16px 18px; }
  .member-count-badge__label { padding-left: 14px; }
  .member-count-badge__number { font-size: 2.4rem; }
}


.member-profile {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.member-profile__photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.member-profile__photo picture,
.member-profile__photo img {
  display: block;
  width: 100%;
}

.member-profile__photo img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.member-profile__sheet {
  display: grid;
  gap: 18px;
}

.profile-ticket {
  padding: 22px;
  border: 1px solid rgba(7, 7, 7, .82);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #f7dc45 0%, #efc62b 56%, #d8a915 100%);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.profile-ticket__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(7, 7, 7, .34);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-ticket h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
}

.profile-ticket__nick {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 850;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-fact {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-fact span,
.profile-story__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-fact strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.profile-story {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-story p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 760;
}

.profile-fun-list {
  display: grid;
  gap: 10px;
}

.profile-fun-list li {
  display: grid;
  grid-template-columns: minmax(116px, .42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-fun-list b {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-edit {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
  .submission-card {
    grid-template-columns: 1fr;
  }

  .submission-card__media {
    min-height: 220px;
  }

  .member-profile {
    grid-template-columns: 1fr;
  }

  .member-profile__photo img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .profile-facts,
  .profile-fun-list li {
    grid-template-columns: 1fr;
  }
}

.product {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product__media {
  aspect-ratio: 4 / 3;
}

.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product__title {
  color: var(--ink);
  font-weight: 900;
}

.product__price {
  margin-top: 4px;
  color: var(--yellow-3);
  font-family: var(--font-display);
  font-weight: 900;
}

.product__desc {
  flex: 1;
  margin-top: 8px;
  font-size: 13.5px;
}

.product__cta {
  margin-top: 16px;
}

dialog {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .7fr));
  gap: 34px;
}

/* Kompakte Variante: eine Zeile statt Vier-Spalten-Grid */
.footer--compact .footer__row {
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.footer--compact .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer--compact .brand__type { align-items: center; }
.footer--compact .footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}
.footer--compact .footer__nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13.5px;
}
.footer--compact .footer__quick {
  display: flex;
  gap: 10px;
}
.footer--compact .footer__quick a,
.footer--compact .footer__quick button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer--compact .footer__quick a:hover,
.footer--compact .footer__quick button:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.footer--compact .footer__quick svg { width: 17px; height: 17px; }
.footer--compact .brand__sub { display: none; }
@media (max-width: 720px) {
  .footer--compact .footer__row { justify-content: center; text-align: center; }
}

.footer h4 {
  margin-bottom: 12px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer p {
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.footer a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14.5px;
}

.footer .email-link {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14.5px;
  text-decoration: none;
}

.footer a:hover,
.footer .email-link:hover {
  color: var(--yellow);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__social a,
.footer__social button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .82);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.footer__social a:hover,
.footer__social button:hover {
  border-color: var(--yellow);
  background: rgba(245, 212, 0, .12);
  color: var(--yellow);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__base {
  max-width: var(--container);
  margin-inline: auto;
  /* rechts Platz für die schwebende Login/Kontakt-Pille (Minimal-Chrome) */
  padding: 16px var(--gutter) 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer__base a {
  display: inline;
  padding: 0;
  font-size: inherit;
}

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 160;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.consent p {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

  .consent {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  .consent__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .ticker,
  .nav,
  .mobile-menu,
  .footer,
  .consent,
  .btn,
  .members-sheet,
  .members-detail,
  .members-layout__side,
  .members-bar,
  .members-chips {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* CMS: einzelne Textzeilen und ganze Bereiche ausblenden.
   Wird von hydrateContent() ueber "<key>__hidden" / "section.<id>__hidden"
   gesetzt. display:none statt [hidden], weil das hidden-Attribut von
   display-Regeln (z. B. .value-strip span) ueberstimmt wuerde. */
.is-cms-hidden { display: none !important; }

/* ============================================================
   Hero · Loop-Video (Seedance) — niedriger Header, ohne Gruppe
   Ersetzt den alten Scroll-Scrub-Hero. Logo/Fahne/Text/Atmosphäre
   sind ins Video gebrannt (Variante B).
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.hero-video {
  position: relative;
  width: 100%;
  background: #050505;
  overflow: hidden;
  line-height: 0;
  display: flex;
  justify-content: center;
}
/* Bewusst kompakter als früher: das Video ist ein Banner, kein Vollbild.
   Ohne Beschnitt (Wappen/Fahne bleiben ganz); am Desktop zusätzlich auf
   die Inhaltsbreite begrenzt, damit es nicht die ganze Seite einnimmt. */
.hero-video__media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  object-position: center center;
}
@media (min-width: 981px) {
  /* main liefert jetzt die Spaltenbreite + Ränder; das Video füllt die Spalte. */
  .hero-video__media { max-width: 100%; }
}

/* Willkommens-Zeile direkt unter dem Hero-Video */
.hero-welcome {
  background: #050505;
  color: #fff;
  text-align: center;
  padding: clamp(20px, 4vw, 34px) var(--gutter) clamp(26px, 4.5vw, 40px);
  border-bottom: 1px solid rgba(245, 212, 0, .3);
}
.hero-welcome h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.12;
}
.hero-welcome h1 .accent { color: var(--yellow); }
.hero-welcome p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(13.5px, 1.6vw, 15.5px);
}

/* =====================================================================
   Spalten-Fluchtung (Desktop): Header-/Footer-Inhalt auf die Breite der
   Inhaltsspalte (Hero) ausrichten. Bewusst am Dateiende, damit diese
   Regeln die Basis-Breiten von .topbar__inner/.footer__row überschreiben.
   ===================================================================== */
@media (min-width: 981px) {
  .topbar__inner,
  .footer--compact .footer__row,
  .footer__grid {
    max-width: var(--container);
  }
}

/* =====================================================================
   Profil (Steckbrief bearbeiten) — Desktop-Layout
   Formular + Löschzone stehen als eigene Karten unter dem Steckbrief
   (siehe profil.html); hier nur Abstände + Desktop-Verfeinerung.
   ===================================================================== */
/* Basis (alle Breiten): Abstand, den vorher der Sheet-Grid-gap lieferte */
.member-profile + .profile-edit { margin-top: 18px; }

/* Fragen aus der Vorstands-Config: sauberer vertikaler Rhythmus */
#edit-questions { display: grid; gap: 16px; margin-bottom: 16px; }

@media (min-width: 981px) {
  .member-profile { gap: clamp(28px, 4vw, 48px); }

  /* Foto begleitet die Steckbrief-Karten beim Scrollen (Topbar ist sticky) */
  .member-profile__photo { position: sticky; top: 76px; }

  .member-profile + .profile-edit { margin-top: 32px; }

  /* Dynamische Fragen 2-spaltig; Textareas (Fun Fact, Moment) volle Breite */
  #edit-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #edit-questions .field:has(textarea) { grid-column: 1 / -1; }

  #delete-zone { margin-top: 32px; }
}

/* =====================================================================
   Mitgliederverzeichnis (public/mitglieder.html) — Design B
   Facetten-Sidebar mit Trefferzahlen, Karten-/Listen-Ansicht,
   Geburtstagsstreifen, Filter-Sheet und Detail-Overlay.
   Markup: public/mitglieder.html · Logik: initMembersDirectory() in content.js

   Bewusst am Dateiende: .crumbs--light und die beiden <dialog>-Varianten
   müssen die Basisregeln weiter oben überschreiben (.crumbs ist weiß auf
   dunklem Hero, dialog bringt eigenen Radius/Schatten mit). Ein einfacher
   Klassenselektor genügt dafür hier — keine Spezifitäts-Eskalation nötig.
   ===================================================================== */

/* Der ganze Bereich steckt in einer .section, weil main ab 981px auf
   schwarzem Grund sitzt; das Hellgrau kommt von .section. */
.section--members {
  padding-block: clamp(26px, 4vw, 40px) clamp(44px, 6vw, 76px);
}

/* Horizontal scrollende Reihen (Statistik, Sprungpillen, Geburtstage) statt
   Umbruch. Achtung: keiner dieser Container darf Vorfahre der sticky Sidebar
   sein — overflow auf einem Vorfahren bricht position:sticky. */
.members-stats,
.members-jump,
.members-bdays__scroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.members-stats::-webkit-scrollbar,
.members-jump::-webkit-scrollbar,
.members-bdays__scroll::-webkit-scrollbar {
  display: none;
}

/* --- Kopfbereich ---------------------------------------------------- */
.crumbs--light {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}

.crumbs--light a:hover {
  color: var(--yellow-3);
}

.crumbs__current {
  color: var(--ink);
}

.members-head__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.5px;
  color: var(--ink);
}

.members-head__lede {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 14.5px;
}

.members-stats {
  display: flex;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-stats b {
  color: var(--ink);
  font-weight: 700;
}

.members-stats__sep {
  color: var(--line);
}

.members-jump {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.members-jump__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.members-jump__link:hover {
  border-color: rgba(17, 17, 17, .3);
  color: var(--ink);
}

/* Nötig, weil display in der Klasse die UA-Regel [hidden]{display:none} schlägt
   — sonst zeigt #admin-link „Vorstandsbereich" auch einfachen Mitgliedern. */
.members-jump__link[hidden] {
  display: none;
}

.members-jump__link--primary {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  font-weight: 800;
}

.members-jump__link--primary:hover {
  border-color: var(--black);
  color: #fff;
}

.members-jump__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
}

.members-consent {
  margin-top: 18px;
  border-left: 4px solid var(--yellow);
}

.members-consent h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.members-consent p {
  margin: 0 0 12px;
}

.members-consent .cta-row {
  align-items: center;
}

/* --- Geburtstagsstreifen ------------------------------------------- */
.members-bdays {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.members-bdays__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-bdays__label {
  display: inline-flex;
  flex: none;
  align-self: center;
  align-items: center;
  gap: 7px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-bdays__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 212, 0, .2);
}

.members-bdays__pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--bg-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.members-bdays__pill:hover {
  border-color: rgba(17, 17, 17, .3);
  background: var(--surface);
}

.members-bdays__date {
  min-width: 44px;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.members-bdays__name {
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.members-bdays__age {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.members-bdays__all {
  flex: none;
  align-self: center;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* --- Zweispaltiges Layout ------------------------------------------ */
.members-layout {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .members-layout__side {
    display: none;
  }
}

@media (min-width: 901px) {
  .members-layout {
    display: grid;
    /* minmax(0,1fr) ist Pflicht, sonst sprengen lange Namen die Spalte. */
    grid-template-columns: 274px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .members-layout__side {
    position: sticky;
    top: var(--sticky-top);
  }
}

/* --- Filter-Panel (Sidebar + Sheet teilen sich diesen Baustein) ----- */
.members-filters {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.members-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.members-filters__title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.members-filters__reset {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.members-filters__close {
  display: none;
  width: 38px;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.members-filters__search {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  margin-bottom: 16px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
}

.members-filters__group {
  margin-bottom: 16px;
}

.members-filters__group:last-child {
  margin-bottom: 0;
}

.members-filters__label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.members-filters__status {
  display: grid;
  gap: 5px;
}

.members-filters__months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.members-filters__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.members-facet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.members-facet:hover:not(:disabled) {
  border-color: rgba(17, 17, 17, .3);
}

.members-facet.is-active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

/* Facetten ohne Treffer bleiben im Layout stehen, sind aber ausgegraut. */
.members-facet.is-empty {
  color: var(--muted-3);
  cursor: default;
}

.members-facet--status {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: var(--radius);
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.members-facet__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: .7;
}

.members-facet--month {
  min-height: 34px;
  padding: 4px 2px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
}

.members-facet--letter {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.members-filters__footer {
  display: none;
}

/* Sheet-Variante: dieselben Bausteine, alles auf 44px Mindesthöhe. */
.members-filters--sheet {
  padding: 14px var(--gutter) 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.members-filters--sheet .members-filters__title {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 900;
  text-transform: none;
}

.members-filters--sheet .members-filters__close {
  display: inline-flex;
}

.members-filters--sheet .members-filters__search {
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
}

.members-filters--sheet .members-filters__status {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.members-filters--sheet .members-facet--status {
  min-height: 44px;
  border-radius: 10px;
  font-size: 13.5px;
}

.members-filters--sheet .members-filters__months {
  gap: 6px;
}

.members-filters--sheet .members-facet--month {
  min-height: 44px;
  border-radius: 9px;
  font-size: 11.5px;
}

.members-filters--sheet .members-filters__alpha {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.members-filters--sheet .members-facet--letter {
  width: auto;
  height: auto;
  min-height: 40px;
  border-radius: var(--radius);
  font-size: 12px;
}

.members-filters--sheet .members-filters__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface) 30%);
}

.members-filters__clear,
.members-filters__apply {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}

.members-filters__clear {
  flex: none;
}

.members-filters__apply {
  flex: 1;
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

/* --- Ergebnis-Toolbar ---------------------------------------------- */
.members-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.members-bar__filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.members-bar__filter.is-active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.members-bar__filter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .75;
}

@media (min-width: 901px) {
  .members-bar__filter {
    display: none;
  }
}

.members-view {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-2);
}

.members-view__btn {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.members-view__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .14);
}

.members-sort {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
}

.members-bar__count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-bar__export {
  flex: none;
}

/* --- Filter-Chips -------------------------------------------------- */
.members-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* Siehe .members-jump__link[hidden]: display in der Klasse schlägt die UA-Regel. */
.members-chips[hidden] {
  display: none;
}

.members-chips__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.members-chips__x {
  color: var(--yellow);
  font-size: 14px;
  line-height: 1;
}

.members-chips__reset {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Karten-Ansicht ------------------------------------------------ */
.members-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

@media (min-width: 561px) {
  .members-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr));
  }
}

.members-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.members-card:hover {
  border-color: rgba(17, 17, 17, .35);
  box-shadow: var(--shadow);
}

.members-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.members-card__badge {
  position: absolute;
  top: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-card__badge--board {
  left: 7px;
  background: var(--yellow);
  color: var(--black);
}

.members-card__badge--honor {
  right: 7px;
  background: rgba(7, 7, 7, .78);
  color: var(--yellow);
}

/* Gegenstück zu .members-row__initials / .members-detail__initials: ohne
   eigene Farbe erbten die Initialen --ink von .members-card und stünden
   damit dunkel auf den dunklen Gradienten --ava-1…4. */
.members-card__initials {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

.members-card__body {
  display: grid;
  gap: 2px;
  padding: 11px 12px 13px;
}

.members-card__name {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.members-card__nick {
  color: var(--muted);
  font-size: 12.5px;
}

.members-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--bg-2);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Listen-Ansicht ------------------------------------------------ */
.members-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.members-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-2);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.members-row:last-child {
  border-bottom: 0;
}

.members-row:hover {
  background: var(--surface-2);
}

.members-row__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius);
}

.members-row__initials {
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
}

.members-row__main {
  min-width: 0;
}

.members-row__nameline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.members-row__name {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-row__badge {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.members-row__star {
  flex: none;
  color: var(--yellow-3);
  font-size: 12px;
}

/* display:block, weil die Zeile ein <span> ist (Kinder eines <button> dürfen nur
   Phrasing Content sein) — inline greift text-overflow: ellipsis nicht. */
.members-row__sub {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-row__end {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.members-row__date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 750;
}

.members-row__chevron {
  color: var(--muted-2);
  font-weight: 900;
}

/* --- Leerzustand --------------------------------------------------- */
.members-empty {
  padding: 38px 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

/* Ladefehler statt „keine Treffer": gleiche Hülle, aber durchgezogener roter
   Rand — der gestrichelte Rand liest sich als „hier ist nichts", nicht als
   „hier ist etwas schiefgegangen". */
.members-empty--error {
  border-style: solid;
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.members-empty--error .members-empty__title {
  color: var(--danger-text);
}

/* color explizit: der Titel ist ein <p> und erbt sonst das globale --muted. */
.members-empty__title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.members-empty__text {
  margin-top: 5px;
  font-size: 13.5px;
}

.members-empty__btn {
  min-height: 40px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* --- Avatare (Karte, Zeile, Detail teilen sich Bild + Gradient) ----- */
.members-card__media picture,
.members-row__avatar picture,
.members-detail__media picture,
.members-card__media img,
.members-row__avatar img,
.members-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.members-ava--t1 { background: var(--ava-1); }
.members-ava--t2 { background: var(--ava-2); }
.members-ava--t3 { background: var(--ava-3); }
.members-ava--t4 { background: var(--ava-4); }

/* --- Sheet + Detail: natives <dialog> im Top Layer ------------------
   showModal() liefert Focus-Trap, Escape, aria-modal und Fokus-Rückgabe
   ohne eigenen Code und umgeht den z-index-Wettbewerb mit Topbar/Ticker/
   Lightbox. Die UA-Defaults (padding 1em, border, max-width) müssen weg. */
.members-sheet,
.members-detail {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  color: var(--ink);
}

.members-sheet {
  width: 100%;
  max-height: 86vh;
  margin: auto auto 0;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: none;
}

.members-sheet::backdrop {
  background: rgba(7, 7, 7, .55);
  backdrop-filter: blur(2px);
}

.members-detail {
  width: min(440px, calc(100% - 2 * var(--gutter)));
  max-height: 88vh;
  margin: auto;
  overflow-y: auto;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.members-detail::backdrop {
  background: rgba(7, 7, 7, .62);
  backdrop-filter: blur(3px);
}

/* showModal() sperrt das Scrollen nicht selbst. */
body.members-modal-open {
  overflow: hidden;
}

.members-detail__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.members-detail__initials {
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
}

.members-detail__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(7, 7, 7, .6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.members-detail__body {
  padding: 18px;
}

.members-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.members-detail__name {
  font-size: 1.25rem;
  font-weight: 900;
}

.members-detail__badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-detail__badge--board {
  background: var(--yellow);
  color: var(--black);
}

.members-detail__badge--honor {
  background: var(--black);
  color: var(--yellow);
}

.members-detail__nick {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.members-detail__rows {
  margin-top: 12px;
}

.members-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-block: 9px;
  border-bottom: 1px solid var(--bg-2);
  font-size: 13.5px;
}

.members-detail__k {
  color: var(--muted);
}

.members-detail__v {
  font-weight: 800;
  text-align: right;
}

.members-detail__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--black);
  font-size: 13.5px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.members-detail__link:hover {
  color: var(--yellow-3);
}

@media (min-width: 561px) {
  .members-head__title { font-size: 2.6rem; }
}

@media (min-width: 981px) {
  .members-head__title { font-size: 3rem; }
}

/* ============================================================
   CMS-Usability (Vorstandsbereich /cms)
   ============================================================ */

/* Toast: kurzes Feedback unten in der Mitte für jede Speicher-Aktion. */
.cms-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  max-width: min(92vw, 480px);
  padding: 12px 20px;
  border: 1px solid var(--success-line);
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.cms-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cms-toast--error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Zähler-Badge an den CMS-Tabs (offene Anfragen/Bestellungen/Fotos). */
.cms-tab-badge[hidden] {
  display: none;
}

.cms-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* Klickbare KPI-Kacheln im Überblick (Button-Reset auf Kachel-Optik). */
.tile--link {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.tile--link:hover {
  border-color: var(--black);
}

/* Zeile dimmen, während ein Sofort-Speichern läuft. */
.admin-table tr.is-saving {
  opacity: .55;
}

/* Zweistufige CMS-Navigation: Gruppenzeile (schwarz aktiv) + Sub-Zeile (gelb aktiv). */
.cms-nav__groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cms-nav__group {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.cms-nav__group:hover,
.cms-nav__group.is-active {
  background: var(--black);
  color: #fff;
}

.cms-nav__subs[hidden] {
  display: none;
}

.cms-nav__subs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 8px 0;
}

.cms-nav__sub {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
}

.cms-nav__sub:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.cms-nav__sub.is-active {
  background: var(--yellow);
  color: #111;
}

/* Texte-Tab: Gruppen als Accordion (Rezept wie .faq__item, eigene Klassen). */
.cms-acc {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cms-acc__head {
  position: relative;
  padding: 14px 44px 14px 18px;
  cursor: pointer;
  list-style: none;
}

.cms-acc__head::-webkit-details-marker {
  display: none;
}

.cms-acc__head h3 {
  display: inline;
  font-size: 1.05rem;
}

.cms-acc__head::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--muted);
}

.cms-acc[open] > .cms-acc__head::after {
  content: "–";
}

.cms-acc__body {
  padding: 0 18px 16px;
}

/* Speicherleiste im Texte-Tab: erscheint nur bei ungespeicherten Änderungen. */
.cms-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Profi-Ansicht: technische Feldnamen standardmäßig verstecken. */
#content-fields code {
  display: none;
}

#content-fields.show-keys code {
  display: inline;
}

/* Erweitert-Bereich in den Generic-Editoren: Entwicklerfelder (Keys,
   Reihenfolge, Bildpfade) standardmäßig eingeklappt. */
.cms-adv {
  margin: 4px 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.cms-adv summary {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.cms-adv summary::-webkit-details-marker {
  display: none;
}

.cms-adv summary::before {
  content: "▸ ";
}

.cms-adv[open] summary::before {
  content: "▾ ";
}

.cms-adv__body {
  display: grid;
  gap: 14px;
  padding: 2px 14px 14px;
}

/* Vorschau des aktuellen Bildes über dem Upload-Feld. */
.cms-thumb {
  display: block;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

/* Bearbeiten-Kontext: Hinweiszeile im Formular … */
.cms-editing-note {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(245, 212, 0, .14);
  font-size: 14px;
  font-weight: 600;
}

/* … plus markierte Zeile in Mini-Liste bzw. Mitgliedertabelle. */
.cms-row.is-editing {
  background: rgba(245, 212, 0, .14);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.members-table tr.is-editing td {
  background: rgba(245, 212, 0, .14);
}

.members-table tr.is-editing td:first-child {
  box-shadow: inset 3px 0 0 var(--yellow);
}

/* Der Spitzname wird auf schmalen Screens in die Namensspalte gezogen
   (die eigene Spalte ist dort ausgeblendet). */
.member-nick-inline {
  display: none;
}

/* Mitgliedertabelle mobil: Detailspalten ausblenden statt Scrollzwang.
   Muss am Dateiende stehen, damit sie die min-width-/nowrap-Regeln der
   Tabelle weiter oben kaskadisch schlägt. */
@media (max-width: 700px) {
  .admin-table.members-table {
    min-width: 0;
  }

  .admin-table.members-table th,
  .admin-table.members-table td {
    padding: 10px 8px;
    white-space: normal;
  }

  /* Spalten 1 und 3–8 (Foto, Spitzname, Geburtstag, E-Mail, Telefon,
     Lieblingsspieler, Seit) ausblenden — übrig bleiben Name (mit Spitzname
     als zweiter Zeile), Status, Foto-OK und Aktionen. Die colspan-Zelle
     der Leermeldung bleibt sichtbar. */
  .members-table th:nth-child(1),
  .members-table td:nth-child(1):not([colspan]),
  .members-table th:nth-child(n+3):nth-child(-n+8),
  .members-table td:nth-child(n+3):nth-child(-n+8) {
    display: none;
  }

  .member-nick-inline {
    display: block;
  }

  .members-table .cms-row__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .members-table .cms-row__actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* --- CMS-Fotoalben: Accordion-Liste mit Bildraster ------------------- */
.album-admin-list {
  display: grid;
  gap: 4px;
}

/* Meta-Zeile unter dem Albumtitel im Accordion-Kopf. */
.cms-acc__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.cms-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.cms-img-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.cms-img-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.cms-img-card.is-pending img {
  opacity: .55;
}

.cms-img-card__badge {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1d1d1d;
  font-size: 11px;
  font-weight: 800;
}

.cms-img-card__caption {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
}

.cms-img-card__flag {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cms-img-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cms-upload-btn {
  cursor: pointer;
}

/* Designprüfung September 2026: zugängliche Bedienung und kleine Ansichten. */
dialog.lightbox { width:100%; height:100%; max-width:none; max-height:none; margin:0; border:0; }
dialog.lightbox:not([open]) { display:none; }
dialog.lightbox::backdrop { background:rgba(0,0,0,.88); }
body:has(dialog.lightbox[open]) { overflow:hidden; }
.board-selector { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.board-selector button { color:inherit; border-color:currentColor; min-height:44px; }
.board-selector button[aria-pressed="true"] { background:var(--yellow); color:#111; border-color:var(--yellow); }
.hero-welcome__actions { justify-content:center; margin-top:20px; }
.hero-welcome__actions .btn--ghost { color:inherit; border-color:currentColor; }
.page-hero .btn--ghost { color:white; border-color:rgba(255,255,255,.8); }
input, select, textarea { font-size:16px; }
.form__note, .form small, .form .text-muted { font-size:14px; line-height:1.6; }
#protected-content:has(#admin-tabs) .value__num,
#protected-content:has(#admin-tabs) [id^="kpi-"],
#protected-content:has(#admin-tabs) [id^="fees-kpi-"] { color:#292600 !important; }
.cms-editor-disclosure { margin-top:20px; border:1px solid #d5d5cd; border-radius:12px; padding:16px; }
.cms-editor-disclosure > summary { cursor:pointer; font-weight:750; padding:8px 0; }
.cms-editor-disclosure .cms-form { margin-top:16px; }
.gallery-album__title { white-space:normal; overflow:visible; text-overflow:clip; }
.gallery-result-title { grid-column:1/-1; margin:16px 0 4px; scroll-margin-top:100px; }
.privacy-toc { padding:20px; background:#f4f3ed; border-radius:12px; margin-bottom:28px; }
.privacy-toc ol { columns:2; padding-left:24px; }
.privacy-toc li { break-inside:avoid; margin:8px 0; }
.privacy-top { display:inline-block; margin:12px 0 24px; }
#profile-id { display:none; }
.cart-jump { position:sticky; top:80px; z-index:20; display:block; padding:14px 18px; background:var(--yellow); color:#111; border:1px solid #111; border-radius:10px; font-weight:750; margin-bottom:18px; }
.cart-jump[hidden] { display:none; }
#cart-panel[hidden] { display:none; }
.cart-item-edit { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.cart-item-edit label { display:grid; gap:4px; font-size:14px; }
.cart-item-edit input { max-width:90px; }
.profile-preview { margin-bottom:24px; }
.profile-preview > summary { cursor:pointer; font-weight:750; padding:14px 0; }
#profile-edit-form { scroll-margin-top:100px; }
@media(min-width:901px) {
 .members-table td:last-child,.members-table th:last-child { position:sticky; right:0; background:var(--surface); box-shadow:-4px 0 8px rgba(0,0,0,.06); }
}
.fixture-list { display:grid; gap:12px; }
.fixture-list article { padding:16px; border:1px solid #d3d3cd; border-radius:12px; }
.fixture-list h3 { font-size:18px; margin:6px 0; }
.fixture-filter { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.fixture-filter select { max-width:100%; padding:10px; }
@media(max-width:900px) {
 .topbar__brand,.topbar__brand-txt,.topbar__actions,.user-badge { min-width:0; }
 .topbar__brand { flex:1 1 0; overflow:hidden; }
 .topbar__brand-name { max-width:100%; }
 .topbar__brand-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .topbar__actions { flex-shrink:0; }
 .user-badge__button { max-width:145px; min-width:0; }
 .user-badge__name { max-width:90px; }
 .user-badge__button::after { flex-shrink:0; }
 .cms-nav__groups,.cms-nav__subs { flex-wrap:wrap; overflow:visible; gap:6px; }
 .cms-nav__group,.cms-nav__sub { white-space:normal; min-height:44px; padding:8px 12px; }
 .page-hero--admin { min-height:0; padding:24px 0; }
 [data-tab-panel] .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 [data-tab-panel] .tile { padding:16px 10px; }
 .gallery-albums { grid-template-columns:1fr; gap:8px; }
 .gallery-album { display:grid; grid-template-columns:64px 1fr; text-align:left; }
 .gallery-album__media { height:64px; min-height:0; }
 .gallery-album__body { padding:8px 12px; }
 .gallery-album__event { display:none; }
 .footer--compact .footer__nav { flex-basis:100%; justify-content:center; gap:12px 20px; flex-wrap:wrap; }
 .footer--compact .footer__row > p { flex-basis:100%; }
 .footer__base { text-align:center; justify-content:center; }
 .footer__base > span { flex-basis:100%; }
 .footer__base a { display:inline-block; padding:4px 0; }
 .form__fieldset { padding:12px 0; border-left:0; border-right:0; }
 .privacy-toc ol { columns:1; }
 .admin-table { min-width:0 !important; width:100%; }
 .admin-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .admin-table tbody { display:grid; gap:14px; }
 .admin-table tr { display:grid; padding:12px; border:1px solid #d5d5cd; border-radius:10px; }
 .admin-table td { display:block; width:auto; min-width:0; padding:8px 0; overflow-wrap:anywhere; }
 .members-table td { order:3; }
 .members-table td:nth-child(2) { order:0; }
 .members-table td:nth-child(9) { order:1; }
 .members-table td:last-child { order:2; }
 .admin-table td::before { content:attr(data-label); display:block; font-size:12px; font-weight:750; color:#555; }
 .admin-table td:has([colspan])::before { content:none; }
}
@media(max-width:360px) {
 .topbar__inner { gap:8px; padding-inline:10px; }
 .topbar__brand-sub { display:none; }
 .topbar__brand svg { width:32px; flex-shrink:0; }
 .topbar__brand-name { font-size:12px; }
 .topbar__login { min-width:44px; padding:10px; }
 .user-badge__button { max-width:100px; padding:8px; }
 .user-badge__name { max-width:60px; }
}
