/* ============================================================
   AHCG Heritage – main.css
   Klassisches PHP-Theme, natives CSS, kein Build-Step.
   Familie "Cobalt+Cream", ein Akzent (Rot). Dark Mode per Variablen-Swap.
   ============================================================ */

/* ---------- Fonts (self-hosted, font-display: swap) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/playfair-500.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/playfair-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/archivo-500.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/archivo-600.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --c-bg: #f3f2ec;
  --c-bg-tint: #e9e8e0;
  --c-ink: #1d222b;
  --c-muted: #5b6272;
  --c-navy-950: #12192a;
  --c-navy-900: #1a2438;
  --c-navy-700: #2b3d5f;
  --c-red: #a63a35;
  --c-red-hover: #8f2f2b;

  --c-border: rgba(43, 61, 95, 0.16);
  --c-card: #ffffff;
  --c-card-shadow: 0 1px 2px rgba(18, 25, 42, 0.06);
  --c-card-shadow-hover: 0 14px 34px rgba(18, 25, 42, 0.16);

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 3px;
  --header-h: 134px; /* 8px Rand + 118px Logo + 8px Rand: Leiste enthaelt das Logo komplett */
  --shell: 1200px;
  --pad-x: clamp(1.1rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  --fs-hero: clamp(2.6rem, 1.7rem + 4vw, 5rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-stat: clamp(2.4rem, 1.6rem + 3vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #12192a;
    --c-bg-tint: #1a2438;
    --c-ink: #eef0ee;
    --c-muted: #a3adc2;
    --c-navy-950: #0c1220;
    --c-navy-900: #141d30;
    --c-navy-700: #33456a;
    --c-red: #cf5b53;
    --c-red-hover: #e07067;

    --c-border: rgba(163, 173, 194, 0.22);
    --c-card: #1c2740;
    --c-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --c-card-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, source { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-red); }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* Anker-Offset unter dem Sticky-Header */
:where(section[id], .anchor-alias, .links-group__title) { scroll-margin-top: calc(var(--header-h) + 20px); }
.anchor-alias { display: block; position: relative; height: 0; }

/* ---------- Utilities ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--c-red); color: #fff; padding: 0.6em 1em;
  border-radius: var(--radius); text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

.section-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
/* Gleiche linke Kante wie .section-shell (durchgehende Fluchtlinie auf der
   Seite): der Aussenrahmen spannt die volle Shell-Breite, nur der Text/Inhalt
   selbst bleibt schmal - statt eigenstaendig auf 760px zentriert zu sein,
   was bei breiten Viewports einen anderen linken Rand ergeben wuerde. */
.section-narrow { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.section-narrow .section-title, .section-narrow .ahcg-prose { max-width: 760px; }
.section-pad { padding-block: var(--section-y); }
.section-tint { background: var(--c-bg-tint); }
.band-dark { background: var(--c-navy-950); color: var(--c-bg); }

.section-title {
  font-size: var(--fs-h2);
  margin: 0 0 clamp(1.4rem, 3vw, 2.4rem);
  color: var(--c-ink);
}
.section-title--light { color: #f3f2ec; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.95em 1.6em; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--c-red); color: #f6f3ee; }
.btn--primary:hover { background: var(--c-red-hover); transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: #f3f2ec; border-color: rgba(243, 242, 236, 0.65); }
.btn--ghost:hover { background: rgba(243, 242, 236, 0.14); transform: translateY(-1px); border-color: #f3f2ec; }
.btn--ghost:active { transform: scale(0.98); }

/* Fokusring durchgaengig */
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; border-radius: 2px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-transparent { background: transparent; border-bottom-color: transparent; }
.site-header__inner {
  height: 100%; max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex; align-items: center; gap: 1.5rem;
}
/* Badge dreifache Ursprungsgroesse (3x44px), solange die Seite ganz oben
   steht (.is-top via JS-Sentinel): haengt bewusst unter die 68px-Bar in den
   Hero (wie das grosse Badge der Original-Seite). Beim Scrollen schrumpft
   es auf 52px: 8px margin-top + 52px = exakt mittig in der 68px-Leiste. */
.site-header__brand { margin-right: auto; display: inline-flex; align-items: center; align-self: flex-start; margin-top: 8px; flex-shrink: 0; overflow: hidden; max-height: calc(var(--header-h) - 16px); }
.site-header__logo { height: 118px; width: auto; aspect-ratio: 294 / 192; transition: height 0.3s ease; }
.site-header.is-top .site-header__logo { height: 118px; }
@media (prefers-reduced-motion: reduce) {
  .site-header__logo { transition: none; }
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.7rem); list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  font-family: var(--ff-body); font-weight: 500; font-size: 0.98rem;
  text-decoration: none; color: var(--c-ink); white-space: nowrap;
  padding-block: 0.4em; position: relative;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0.05em;
  height: 2px; background: var(--c-red); transition: right 0.25s ease;
}
.site-nav__link:hover::after { right: 0; }
.site-nav__cta { padding: 0.7em 1.2em; font-size: 0.95rem; }

/* Dropdown-Untermenue (z. B. "Links" mit den 3 Original-Unterpunkten) */
.site-nav__item--has-submenu { position: relative; }
.site-nav__item--has-submenu > .site-nav__link::before {
  content: ""; display: inline-block; margin-right: 3px; width: 0; height: 0;
  border-style: solid; border-width: 4px 4px 0 4px; border-color: currentColor transparent transparent transparent;
  vertical-align: middle;
}
.site-nav__submenu {
  list-style: none; margin: 0; padding: 0.5em 0; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(18, 25, 42, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s ease, transform 0.15s ease;
}
.site-nav__item--has-submenu:hover .site-nav__submenu,
.site-nav__item--has-submenu:focus-within .site-nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__sublink {
  display: block; padding: 0.55em 1em; font-family: var(--ff-body); font-size: 0.92rem;
  color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.site-nav__sublink:hover { background: var(--c-bg-tint); color: var(--c-red); }

/* Zustand ueber dem Hero: helle Schrift */
.site-header.is-transparent .site-nav__link { color: #f3f2ec; }
.site-header.is-transparent .site-nav__toggle-bar,
.site-header.is-transparent .site-nav__toggle-bar::before,
.site-header.is-transparent .site-nav__toggle-bar::after { background: #f3f2ec; }

.site-nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer; margin-left: auto;
}
.site-nav__toggle-box { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.site-nav__toggle-bar, .site-nav__toggle-bar::before, .site-nav__toggle-bar::after {
  content: ""; display: block; width: 26px; height: 2px; background: var(--c-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-nav__toggle-bar { position: relative; }
.site-nav__toggle-bar::before { position: absolute; top: -8px; left: 0; }
.site-nav__toggle-bar::after { position: absolute; top: 8px; left: 0; }
.nav-open .site-nav__toggle-bar { background: transparent; }
.nav-open .site-nav__toggle-bar::before { transform: translateY(8px) rotate(45deg); background: #f3f2ec; }
.nav-open .site-nav__toggle-bar::after { transform: translateY(-8px) rotate(-45deg); background: #f3f2ec; }

/* Mobile-Overlay: scrollbare Liste (100dvh, iOS-sicher), linksbuendig,
   Untermenues als Akkordeon hinter einem Chevron-Button, eingerueckt mit
   roter Fuehrungslinie. Waehrend das Menue offen ist, steht die Seite
   dahinter still (html.nav-open). */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  height: 100dvh;
  background: var(--c-navy-950);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1rem) 1.6rem 3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
html.nav-open { overflow: hidden; }
/* Header liegt ueber dem Overlay (X-Button); bei offenem Menue darf er
   sonst keine Taps schlucken. */
html.nav-open .site-header { pointer-events: none; background: transparent; border-bottom-color: transparent; }
html.nav-open .site-nav__toggle { pointer-events: auto; }
.mobile-nav__list { list-style: none; margin: 0 auto; padding: 0; max-width: 430px; text-align: left; }
.mobile-nav__item {
  border-bottom: 1px solid rgba(243, 242, 236, 0.1);
  opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--reveal-i, 0) * 40ms);
}
.mobile-nav.is-open .mobile-nav__item { opacity: 1; transform: none; }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mobile-nav__link {
  display: block; flex: 1; padding: 0.55em 0;
  font-family: var(--ff-display); font-size: clamp(1.35rem, 5vw, 1.7rem);
  color: #f3f2ec; text-decoration: none;
}
.mobile-nav__link--cta { color: var(--c-red); }
.mobile-nav__item--cta { border-bottom: 0; }
/* Chevron-Button: grosszuegige Touch-Flaeche, dreht sich beim Aufklappen. */
.mobile-nav__subtoggle {
  flex: 0 0 auto; width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(243, 242, 236, 0.07); border: 0; border-radius: 8px; cursor: pointer;
}
.mobile-nav__subtoggle span {
  display: block; width: 10px; height: 10px;
  border-right: 2px solid #f3f2ec; border-bottom: 2px solid #f3f2ec;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s ease;
}
.mobile-nav__subtoggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-2px, -2px); }
.mobile-nav__sublist {
  list-style: none; margin: 0 0 0.9em; padding: 0 0 0 1.1em;
  border-left: 2px solid var(--c-red);
}
.mobile-nav__sublink {
  display: block; padding: 0.5em 0;
  font-family: var(--ff-body); font-size: 1.08rem;
  color: rgba(243, 242, 236, 0.88); text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav__item, .mobile-nav__subtoggle span { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  color: #f3f2ec; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 25, 42, 0.68) 0%, rgba(18, 25, 42, 0.48) 34%, rgba(18, 25, 42, 0.18) 70%, rgba(18, 25, 42, 0.06) 100%),
    linear-gradient(0deg, rgba(18, 25, 42, 0.55) 0%, rgba(18, 25, 42, 0) 45%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--shell); width: 100%; margin-inline: auto;
  padding-inline: var(--pad-x); padding-top: var(--header-h);
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; margin: 0 0 0.5em;
  color: #fbfaf5; max-width: 15ch; letter-spacing: -0.02em;
}
.hero__lead { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); font-weight: 600; max-width: 44ch; margin: 0 0 2rem; color: rgba(246, 244, 238, 0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Club: Editorial-Split + Stat-Strip ---------- */
.club { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.club__split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.club__text { max-width: 65ch; align-self: start; }
.club__figure { margin: 0; min-height: 100%; border-radius: var(--radius); overflow: hidden; }
.club__figure picture { display: block; height: 100%; }
.club__figure img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--radius); }

.stat-strip {
  list-style: none; margin: clamp(2.6rem, 5vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 3rem);
}

.club__videos { margin: clamp(2.6rem, 5vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.club__video { margin: 0; }
.club__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; }
.club__video figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--c-muted); }
@media (max-width: 780px) {
  .club__videos { grid-template-columns: 1fr; }
}
.stat { text-align: left; }
.stat__num { display: block; font-family: var(--ff-display); font-weight: 600; font-size: var(--fs-stat); line-height: 1; color: var(--c-navy-700); }
.stat__label { display: block; margin-top: 0.5em; font-size: 0.95rem; color: var(--c-muted); }
@media (prefers-color-scheme: dark) {
  .stat__num { color: var(--c-ink); }
}

/* ---------- Vorstand: Personen-Grid ---------- */
.vorstand__body ul.ahcg-people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem);
}
.vorstand__body ul.ahcg-people li { padding: 0; border-left: 2px solid var(--c-red); padding-left: 1rem; }
.ahcg-person-name { display: block; font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; color: var(--c-ink); }
.ahcg-person-role { display: block; margin-top: 0.15em; color: var(--c-muted); font-size: 0.95rem; }
.vorstand__body a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }
.vorstand-lead { margin: clamp(1.6rem, 3vw, 2.2rem) 0 1.2rem; max-width: 65ch; color: var(--c-muted); }
/* Ansprechpartner als einheitliches Karten-Raster statt loser h3/p-Kette. */
.vorstand-contacts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.7rem);
}
@media (max-width: 900px) { .vorstand-contacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vorstand-contacts { grid-template-columns: 1fr; } }
.vorstand-contact { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--c-card-shadow); padding: 1.3rem 1.4rem; }
.vorstand-contact h3 { margin: 0 0 0.55rem; font-size: 1.05rem; color: var(--c-ink); }
.vorstand-contact p, .vorstand-contact ul { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--c-muted); text-align: left; }
.vorstand-contact ul { list-style: none; padding: 0; }
.vorstand-contact li { margin-bottom: 0.3em; }
.vorstand-contact li:last-child { margin-bottom: 0; }
.vorstand-contact a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Stammtische ---------- */
/* ---------- Stammtisch-Karte (Leaflet + OpenStreetMap) ---------- */
.stammtische__map-wrap { margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.stammtische__map {
  height: clamp(320px, 45vw, 480px); width: 100%; border-radius: var(--radius);
  border: 1px solid var(--c-border); overflow: hidden;
  /* Bone statt reinem Weiss, solange Kacheln nachladen. */
  background: var(--c-bg-tint);
}
/* Eigener Pin statt Leaflets Standard-Marker: einfacher roter Punkt mit
   weissem Ring, passend zum Marken-Akzent. */
.ahcg-map-pin span {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-red); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(18, 25, 42, 0.45);
}
.leaflet-popup-content-wrapper { border-radius: var(--radius); font-family: var(--ff-body); }
.leaflet-popup-content { margin: 0.7em 1em; font-size: 0.92rem; }
.leaflet-popup-content strong { font-family: var(--ff-display); font-size: 1rem; }
.ahcg-map-pin__link { color: var(--c-red); font-weight: 600; text-decoration: none; }
.ahcg-map-pin__link:hover { color: var(--c-red-hover); text-decoration: underline; }

.stammtische__intro { max-width: 65ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.stammtische__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); align-items: stretch; }
@media (min-width: 1280px) { .stammtische__grid { grid-template-columns: repeat(4, 1fr); } }
.stammtische__photo { margin: 0; height: 100%; min-height: 200px; border-radius: var(--radius); overflow: hidden; }
.stammtische__photo picture { display: block; height: 100%; }
.stammtische__photo img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.stammtisch-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--c-card-shadow); padding: 1.2rem 1.3rem; }
.stammtisch-card h3 { margin: 0 0 0.7rem; font-size: 1.2rem; color: var(--c-ink); }
.stammtisch-card p { margin: 0 0 0.85rem; font-size: 0.92rem; line-height: 1.6; color: var(--c-muted); }
.stammtisch-card p:last-child { margin-bottom: 0; }
.stammtisch-card a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
/* Feld-Label "Informationen bei:" als klare Trennung zum Kontakt-Block. */
.stammtisch-card__label {
  display: block; color: var(--c-ink); font-weight: 600;
  margin-top: 0.3rem; padding-top: 0.75rem; border-top: 1px solid var(--c-border);
}

/* ---------- Vereinssatzung: Download-Button ---------- */
.ahcg-prose a.ahcg-download,
a.ahcg-download {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: 0.5rem; padding: 0.8em 1.4em;
  border: 1px solid var(--c-navy-700); color: var(--c-navy-700);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
a.ahcg-download:hover { background: var(--c-navy-700); color: var(--c-bg); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  a.ahcg-download { border-color: var(--c-ink); color: var(--c-ink); }
  a.ahcg-download:hover { background: var(--c-ink); color: var(--c-navy-950); }
}
/* Auf dem dunklen Aufnahmeantrag-Band als Primaer-Button (Bone auf Rot,
   AA-Kontrast in beiden Farbmodi) statt Navy-auf-Navy. */
.aufnahme a.ahcg-download { background: var(--c-red); color: #f6f3ee; border-color: var(--c-red); }
.aufnahme a.ahcg-download:hover { background: var(--c-red-hover); border-color: var(--c-red-hover); color: #f6f3ee; }

/* ---------- Aufnahmeantrag: dunkles Band + Formular ---------- */
.aufnahme .section-title { text-align: left; }
.ahcg-prose--light, .ahcg-prose--light p, .ahcg-prose--light li { color: rgba(243, 242, 236, 0.92); }
.ahcg-prose--light a { color: #e6b7b2; }
.aufnahme .wpcf7 { margin-top: 1.5rem; }
.aufnahme label { display: block; margin-bottom: 1rem; font-weight: 500; color: #f3f2ec; }
.aufnahme input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.aufnahme textarea,
.aufnahme select {
  display: block; width: 100%; margin-top: 0.4em;
  background: rgba(243, 242, 236, 0.06);
  border: 1px solid rgba(243, 242, 236, 0.34);
  color: #f3f2ec; padding: 0.7em 0.85em; border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 1rem;
}
.aufnahme input::placeholder, .aufnahme textarea::placeholder { color: rgba(243, 242, 236, 0.55); }
.aufnahme input:focus, .aufnahme textarea:focus, .aufnahme select:focus { border-color: var(--c-red); outline: 2px solid var(--c-red); outline-offset: 1px; }
.aufnahme .wpcf7-submit,
.aufnahme input[type="submit"] {
  margin-top: 0.5rem; background: var(--c-red); color: #f6f3ee;
  border: 0; padding: 0.95em 1.8em; border-radius: var(--radius);
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.aufnahme input[type="submit"]:hover { background: var(--c-red-hover); transform: translateY(-1px); }
.aufnahme .wpcf7-not-valid-tip { display: block; margin-top: 0.35em; color: #f2b8b3; font-size: 0.9rem; }
.aufnahme .wpcf7-response-output { margin: 1rem 0 0; padding: 0.8em 1em; border-radius: var(--radius); border: 1px solid rgba(243, 242, 236, 0.34); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); }
.news-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--c-card-shadow); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.25s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--c-card-shadow-hover); }
.news-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.news-card__media { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--c-bg-tint); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__monogram { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--ff-display); font-size: 3rem; color: var(--c-navy-700); background: var(--c-bg-tint); }
.news-card__date { display: block; padding: 1.1rem 1.2rem 0; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--c-muted); text-transform: uppercase; }
.news-card__title { display: block; padding: 0.3rem 1.2rem 0; font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; color: var(--c-ink); }
.news-card__excerpt { display: block; padding: 0.6rem 1.2rem 0; color: var(--c-muted); font-size: 0.98rem; }
.news-card__cta {
  display: block; margin-top: auto; padding: 1rem 1.2rem 1.2rem;
  color: var(--c-red); font-weight: 600; font-size: 0.92rem;
}
.news-card:hover .news-card__cta { color: var(--c-red-hover); }
.news__more { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--c-red); }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Termine: Foto-Band + Tabelle ---------- */
/* Panorama (5,2:1): auf Desktop volles Seitenverhaeltnis (alle Wagen sichtbar),
   auf schmalen Screens greift min-height und object-fit croppt zur Mitte. */
.termine__band { position: relative; width: 100%; aspect-ratio: 4797 / 928; min-height: 200px; overflow: hidden; }
.termine__band img { width: 100%; height: 100%; object-fit: cover; }

.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; }
.ahcg-prose .tablepress, .ahcg-prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-variant-numeric: tabular-nums; }
.table-scroll > .tablepress, .table-scroll > table { margin: 0; }
.ahcg-prose .tablepress th, .ahcg-prose table th { text-align: left; font-family: var(--ff-body); font-weight: 600; color: var(--c-ink); padding: 0.7em 0.9em; border-bottom: 1px solid var(--c-navy-700); }
.ahcg-prose .tablepress td, .ahcg-prose table td { padding: 0.7em 0.9em; border-bottom: 1px solid var(--c-border); vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.ahcg-prose .tablepress tr:last-child td { border-bottom: 0; }
.ahcg-prose .tablepress td a, .ahcg-prose table td a { overflow-wrap: anywhere; word-break: break-word; }


/* ---------- Galerie: Alben-Uebersicht -> Thumbnail-Raster -> Lightbox ---------- */
.gallery-view { display: none; }
.gallery-view.is-active { display: block; }
.gallery-intro { color: var(--c-muted); max-width: 60ch; margin: 0 0 clamp(1.5rem, 3vw, 2.2rem); }

.album-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.album-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: none; padding: 0; text-align: left; display: block;
  background: var(--c-navy-950); font: inherit; color: inherit;
}
.album-card picture, .album-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.album-card img { object-fit: cover; transition: transform 0.4s ease; }
.album-card:hover img { transform: scale(1.045); }
.album-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,18,32,0.88) 0%, rgba(12,18,32,0.35) 45%, rgba(12,18,32,0) 65%);
}
.album-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; z-index: 1; }
.album-card__meta {
  display: block; color: rgba(255,255,255,0.72); font-size: 0.76rem;
  letter-spacing: 0.02em; margin-bottom: 0.3rem; font-variant-numeric: tabular-nums;
}
.album-card__title { display: block; color: #f6f3ee; font-family: var(--ff-display); font-size: 1.1rem; line-height: 1.25; }
.album-card:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4em; background: none; border: none;
  color: var(--c-red); font-family: var(--ff-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; padding: 0; margin-bottom: 1.4rem;
}
.back-link:hover { color: var(--c-red-hover); }
.detail-head { margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }
.detail-head h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); color: var(--c-ink); }
.detail-head span { display: block; color: var(--c-muted); font-size: 0.9rem; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }

/* Einheitlich hohe Karten (wie .album-card, aspect-ratio 4/5) statt Masonry
   mit wechselnder Hoehe je nach Foto-Seitenverhaeltnis. */
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.thumb {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  border: none; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden;
  background: var(--c-bg-tint);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.thumb:hover img { transform: scale(1.03); filter: brightness(1.04); }
.thumb:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(12,18,32,0.97);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(3.5rem,8vw,5rem) clamp(1rem,6vw,4rem) clamp(4.5rem,9vw,6rem); }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 1.2rem 1.5rem; color: rgba(255,255,255,0.82);
  font-family: var(--ff-body); font-size: 0.9rem;
}
.lightbox__counter { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lightbox__close { background: none; border: none; color: rgba(255,255,255,0.82); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.lightbox__close:hover { color: #fff; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); color: #fff; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox__nav:hover { background: var(--c-red); border-color: var(--c-red); }
.lightbox__nav--prev { left: clamp(0.6rem, 3vw, 2rem); }
.lightbox__nav--next { right: clamp(0.6rem, 3vw, 2rem); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.5rem 1.3rem; text-align: center; color: rgba(255,255,255,0.78); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) {
  .album-card img, .thumb img { transition: none; }
}

/* ---------- Artikel-Overlay: "Weiterlesen" blendet den Bericht auf derselben
   Seite ein (gleiches Prinzip wie die Galerie-Lightbox), statt zu navigieren. ---------- */
.article-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(12,18,32,0.85);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: clamp(4.5rem, 8vw, 6rem) 1rem clamp(2rem, 6vw, 4rem);
}
.article-overlay.is-open { display: flex; }
.article-overlay__panel {
  /* Aussenbreite wie die vollen Seiten-Sections (--shell, 1200px); Fliesstext
     bleibt zur Lesbarkeit auf 760px zentriert, das Beitragsbild darf die
     volle Panel-Breite nutzen. */
  position: relative; background: var(--c-bg); color: var(--c-ink);
  width: 100%; max-width: var(--shell); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.article-overlay__close {
  position: absolute; top: 0.9rem; right: 0.9rem; background: var(--c-bg-tint);
  border: 1px solid var(--c-border); color: var(--c-ink); width: 38px; height: 38px;
  border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.article-overlay__close:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.article-overlay__date, .article-overlay__title, .article-overlay__body {
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.article-overlay__date { color: var(--c-muted); font-size: 0.9rem; margin-top: 0; margin-bottom: 0.4rem; padding-right: 2.5rem; }
.article-overlay__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 0; margin-bottom: 1.2rem; padding-right: 2.5rem; }
.article-overlay__hero { margin: 0 0 1.4rem; }
.article-overlay__hero img { width: 100%; border-radius: var(--radius); display: block; }
.article-overlay__hero:empty { display: none; }
.article-overlay__body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Regalia ---------- */
.regalia__body img { border-radius: var(--radius); }
.regalia__intro { max-width: 65ch; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
/* Preistabelle ueber volle Breite; Bildspalten fest, Name normal umbrechend,
   Preis nowrap rechtsbuendig (der globale break-word-Fallback fuer URLs darf
   hier Namen/Preise nicht zeichenweise zerreissen). */
/* Termine: feste, identische Spaltenbreiten ueber alle Monatstabellen hinweg
   (table-layout:fixed statt Inhalts-abhaengiger Auto-Breite je Tabelle). */
#termine .tablepress { table-layout: fixed; }
#termine .tablepress .column-1 { width: 16%; }
#termine .tablepress .column-2 { width: 34%; }
#termine .tablepress .column-3 { width: 50%; }

.regalia .tablepress { width: 100%; }
.regalia .tablepress .column-1,
.regalia .tablepress .column-2 { width: 140px; }
.regalia .tablepress .column-1 img,
.regalia .tablepress .column-2 img { max-width: 140px; height: auto; }
.regalia .tablepress .column-3 { min-width: 200px; overflow-wrap: normal; word-break: normal; }
.regalia .tablepress .column-4 { white-space: nowrap; text-align: right; overflow-wrap: normal; word-break: normal; }

/* ---------- Links + Woerterbuch-Accordion ---------- */
.links-group { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.links-group:last-child { margin-bottom: 0; }
.links-group__title { font-size: var(--fs-h3); margin: 0 0 1rem; color: var(--c-ink); }
.links-dict { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-card); }
.links-dict__summary { cursor: pointer; padding: 1em 1.2em; font-weight: 600; font-family: var(--ff-body); list-style: none; }
.links-dict__summary::-webkit-details-marker { display: none; }
.links-dict__summary::after { content: " +"; color: var(--c-red); font-weight: 700; }
.links-dict[open] .links-dict__summary::after { content: " \2212"; }
.links-dict__body { padding: 0 1.2em 1.2em; }

/* Technisches Woerterbuch: TablePress bringt DataTables (jquery.datatables.min.js)
   bereits mit eingebauter Suche (durchsucht alle Spalten, hier Deutsch+Englisch)
   und Pagination mit – kein eigenes Such-JS noetig, nur ins Heritage-Design stylen. */
.links-dict .dt-layout-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8em; margin: 0 0 1em; }
.links-dict .dt-layout-table { display: block; margin-bottom: 1em; }
.links-dict .dt-search { display: flex; align-items: center; gap: 0.6em; margin-left: auto; }
.links-dict .dt-search label { margin: 0; font-weight: 600; white-space: nowrap; }
.links-dict .dt-input {
  font: inherit; color: var(--c-ink); background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0.55em 0.85em;
  min-width: 220px;
}
.links-dict .dt-input:focus { outline: 2px solid var(--c-navy-700); outline-offset: 2px; }
.links-dict .dt-length { display: flex; align-items: center; gap: 0.5em; }
.links-dict .dt-length select { font: inherit; color: var(--c-ink); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0.4em 0.6em; }
.links-dict .dt-info { color: var(--c-muted); font-size: 0.92rem; }
.links-dict .dt-paging { margin-left: auto; }
.links-dict .dt-paging-button {
  font: inherit; color: var(--c-ink); background: var(--c-bg); cursor: pointer;
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0.35em 0.7em; margin-left: 0.3em;
}
.links-dict .dt-paging-button.current { background: var(--c-navy-700); color: var(--c-bg); border-color: var(--c-navy-700); }
.links-dict .dt-paging-button.disabled { opacity: 0.4; cursor: default; }
@media (max-width: 640px) {
  .links-dict .dt-search { margin-left: 0; width: 100%; }
  .links-dict .dt-input { width: 100%; min-width: 0; }
}

/* Technische Informationen + Ersatzteile: erste Spalte in beiden Tabellen
   gleich breit (300px, passt fuer "Vehicle Identification No. (VIN)" und die
   laengste URL), damit die zweiten Spalten buendig untereinander beginnen. */
#links-technische-informationen ~ .links-group__body .tablepress,
#links-ersatzteile ~ .links-group__body .tablepress { table-layout: fixed; }
#links-technische-informationen ~ .links-group__body .tablepress .column-1,
#links-ersatzteile ~ .links-group__body .tablepress .column-1 { width: 300px; }

/* Befreundete Clubs: Laendernamen-Spalte fest breit genug (gleiche Ursache:
   Auto-Breite gibt der langen URL-Spalte fast die ganze Tabelle,
   "Deutschland"/"Niederlande"/"Frankreich" brechen dadurch in zwei Zeilen). */
/* Mobil: zweispaltige Link-Tabellen stapeln (Link oben, Beschreibung darunter),
   sonst quetschen die festen/nowrap-Spalten den Text auf Ein-Wort-Zeilen. */
@media (max-width: 640px) {
  #links-technische-informationen ~ .links-group__body .tablepress tr,
  #links-ersatzteile ~ .links-group__body .tablepress tr { display: block; padding: 0.55em 0; border-bottom: 1px solid var(--c-border); }
  #links-technische-informationen ~ .links-group__body .tablepress tr:last-child,
  #links-ersatzteile ~ .links-group__body .tablepress tr:last-child { border-bottom: 0; }
  #links-technische-informationen ~ .links-group__body .tablepress td,
  #links-ersatzteile ~ .links-group__body .tablepress td { display: block; width: auto; border-bottom: 0; padding: 0.15em 0.2em; }
  #links-technische-informationen ~ .links-group__body .tablepress .column-1,
  #links-ersatzteile ~ .links-group__body .tablepress .column-1 { width: auto; white-space: normal; font-weight: 600; }

  /* Termine: 3 Spalten (Datum/Veranstaltung/Link) stapeln, Kopfzeile ist
     dabei redundant. Sonst bricht das Datum zeichenweise um. */
  #termine .tablepress, #termine .tablepress tbody { display: block; width: 100%; }
  #termine .tablepress thead { display: none; }
  #termine .tablepress tr { display: block; padding: 0.55em 0; border-bottom: 1px solid var(--c-border); }
  #termine .tablepress tr:last-child { border-bottom: 0; }
  #termine .tablepress td { display: block; border-bottom: 0; padding: 0.12em 0.2em; }
  /* Desktop-Prozentbreiten (16/34/50%) aufheben - hoehere Spezifitaet noetig */
  #termine .tablepress td.column-1, #termine .tablepress td.column-2, #termine .tablepress td.column-3 { width: auto; }
  #termine .tablepress td.column-1 { font-weight: 600; }

  /* Befreundete Clubs: Flagge + Land nebeneinander, URL in voller Breite
     darunter. Sonst zerfaellt die URL in Zwei-Zeichen-Zeilen. */
  #links-befreundete-clubs ~ .links-group__body .tablepress { table-layout: auto; }
  #links-befreundete-clubs ~ .links-group__body .tablepress tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.6em; padding: 0.55em 0; border-bottom: 1px solid var(--c-border); }
  #links-befreundete-clubs ~ .links-group__body .tablepress tr:last-child { border-bottom: 0; }
  #links-befreundete-clubs ~ .links-group__body .tablepress td { display: block; width: auto; border-bottom: 0; padding: 0.1em 0; }
  #links-befreundete-clubs ~ .links-group__body .tablepress td.column-2 { font-weight: 600; white-space: normal; }
  #links-befreundete-clubs ~ .links-group__body .tablepress td.column-3 { flex-basis: 100%; }
}
#links-befreundete-clubs ~ .links-group__body .tablepress { table-layout: fixed; }
#links-befreundete-clubs ~ .links-group__body .tablepress .column-1 { width: 70px; }
#links-befreundete-clubs ~ .links-group__body .tablepress .column-2 { width: 150px; white-space: nowrap; }

/* ---------- Prose ---------- */
.ahcg-prose { color: var(--c-ink); }
.ahcg-prose > :first-child { margin-top: 0; }
.ahcg-prose h2 { font-size: var(--fs-h2); margin: 1.6em 0 0.6em; }
.ahcg-prose h3 { font-size: var(--fs-h3); margin: 1.5em 0 0.5em; }
.ahcg-prose p, .ahcg-prose li { line-height: 1.7; }
/* Blocksatz + automatische Silbentrennung NUR fuer echten Langtext in
   breiten Spalten (Club, Historie). In schmalen Kontexten (Stammtisch-
   Karten, Link-Spalten etc.) reisst Blocksatz kurze <br>-Zeilen (Adressen)
   unschoen auseinander und die Silbentrennung bricht Woerter mitten durch -
   dort bleibt es bei normalem Flattersatz. text-align-last:left haelt die
   letzte Absatzzeile linksbuendig statt sie auseinanderzuziehen. */
.club__text p, .historie__body p {
  hyphens: auto; -webkit-hyphens: auto;
  text-align: justify; text-align-last: left;
}
.ahcg-prose a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }
.ahcg-prose a:hover { color: var(--c-red-hover); }
.ahcg-prose img { border-radius: var(--radius); margin: 1rem 0; height: auto; }
.ahcg-prose ul, .ahcg-prose ol { padding-left: 1.3em; }
.ahcg-prose ul li { margin-bottom: 0.35em; }
.ahcg-prose--cols { columns: 2 300px; column-gap: clamp(1.5rem, 4vw, 3rem); }
.ahcg-prose--cols ul { margin-top: 0; }
.ahcg-prose--cols h2, .ahcg-prose--cols h3, .ahcg-prose--cols img { break-inside: avoid; }
.ahcg-prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3em 1.2em; }
.ahcg-prose dt { font-weight: 600; }
.ahcg-prose dd { margin: 0; color: var(--c-muted); }

/* ---------- Single / Archiv ---------- */
.prose-wrap { padding-top: var(--header-h); }
.prose-wrap__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--pad-x); }
.single-post__date { color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.85rem; margin: 0 0 0.5rem; }
.single-post__title { font-size: var(--fs-h2); margin: 0 0 1.5rem; }
.single-post__hero img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.single-post__body { max-width: 72ch; }
.single-post__back { margin-top: 2.5rem; }
.pager { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-950); color: #d7dce6; }
.site-footer__inner { max-width: var(--shell); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) var(--pad-x) 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.site-footer__logo img, .site-footer__brand img { height: 52px; width: auto; }
.site-footer__tagline { font-family: var(--ff-display); font-size: 1.1rem; margin-top: 0.8rem; color: #f3f2ec; }
.site-footer__heading { font-family: var(--ff-body); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa5ba; margin: 0 0 1rem; }
.site-footer__address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #d7dce6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bar-inner { max-width: var(--shell); margin: 0 auto; padding: 1.2rem var(--pad-x); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; }
.site-footer__bar p { margin: 0; font-size: 0.85rem; color: #8b96ab; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.85rem; }
.site-footer__legal a { color: #8b96ab; }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Reveal-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--reveal-i, 0) * 60ms); will-change: opacity, transform; }
.js .reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-nav__toggle { display: inline-flex; }
  /* Mobil: Badge wieder in der Leiste zentriert, ohne Ueberhang. */
  .site-header__brand { align-self: center; margin-top: 0; }
  .site-header__logo, .site-header.is-top .site-header__logo { height: 56px; }
  .club__split { grid-template-columns: 1fr; }
  .club__figure { order: -1; min-height: 0; }
  .club__figure img { min-height: 260px; max-height: 420px; object-position: 50% 80%; }
  .stammtische__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  /* Auf hohen schmalen Screens croppt object-fit:cover das breite Hero-Foto
     horizontal so stark, dass die Standard-Mitte genau in die Luecke
     zwischen den beiden Wagen faellt (nur Rasen/Zaun sichtbar). Bildausschnitt
     auf den linken Sprite verschieben, der dort vollstaendig hineinpasst. */
  .hero__img { object-position: 20% center; }
}
@media (max-width: 640px) {
  .stammtische__grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: 1fr; }
  /* Hero: das Querformat-Foto unbeschnitten in voller Breite zeigen
     (beide Wagen sichtbar wie auf Desktop), Headline darunter auf Navy
     statt als Overlay ueber dem stark gecroppten Bild. */
  .hero { min-height: 0; display: block; background: var(--c-navy-950); padding-top: var(--header-h); }
  .hero__media { position: relative; aspect-ratio: 1600 / 1131; }
  .hero__img { object-position: center; }
  .hero__scrim { display: none; }
  .hero__content { padding-top: 1.6rem; padding-bottom: 2.4rem; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .ahcg-prose--cols { columns: 1; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* ---------- #healeys: YouTube-Klick-zum-Laden-Facade ---------- */
.healeys__intro { max-width: 65ch; margin: 0 0 1.5rem; }
.healeys__video { max-width: 900px; }
.healeys__play {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 540px;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: #000;
}
.healeys__thumb { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.88; transition: opacity 0.2s ease; }
.healeys__play:hover .healeys__thumb, .healeys__play:focus-visible .healeys__thumb { opacity: 1; }
.healeys__play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(29, 34, 43, 0.75); transition: background-color 0.2s ease, transform 0.15s ease;
}
.healeys__play-icon::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff;
}
.healeys__play:hover .healeys__play-icon, .healeys__play:focus-visible .healeys__play-icon {
  background: var(--c-red); transform: translate(-50%, -50%) scale(1.06);
}
.healeys__video iframe { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 540px; border: 0; border-radius: var(--radius); }
.healeys__credit { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--c-muted); }
