/* ==========================================================================
   Crefelder CSD e.V. – Website
   Modernes, aufgeräumtes Design-System (Pride-Akzente, dezent gesetzt)
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-konform) ---------- */

@font-face {
  font-family: "Clash Display";
  src: url("../assets/fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("../assets/fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */

:root {
  --bg: #fbfaf9;            /* warmes, fast-weißes Off-White */
  --surface: #ffffff;
  --ink: #17151c;          /* tiefes, leicht violettes Anthrazit */
  --ink-72: rgba(23, 21, 28, 0.72);
  --ink-56: rgba(23, 21, 28, 0.56);
  --ink-38: rgba(23, 21, 28, 0.38);
  --cream: #fbfaf9;
  --cream-72: rgba(251, 250, 249, 0.72);
  --cream-56: rgba(251, 250, 249, 0.56);

  /* Feste dunkle Fläche für bewusst immer-dunkle Elemente (Footer, CTA-Band,
     dunkler Button, Zitat-Kachel) – bleibt in beiden Farbmodi gleich, anders
     als --ink, das im Dark Mode zur hellen Vordergrundfarbe wird. */
  --ink-fixed: #17151c;

  /* Primär-Akzent: selbstbewusstes Magenta-Violett */
  --accent: #c2136c;
  --accent-strong: #a10e59;
  --accent-soft: rgba(194, 19, 108, 0.1);

  /* Pride-Verlauf – als Signatur, sparsam eingesetzt */
  --pride: linear-gradient(90deg, #e40303 0%, #ff8c00 20%, #f5c400 40%, #12963a 60%, #1f57e0 80%, #7a1fa2 100%);
  --pride-soft: linear-gradient(120deg, #e40303, #ff8c00, #12963a, #1f57e0, #7a1fa2);

  --line: rgba(23, 21, 28, 0.1);
  --line-strong: rgba(23, 21, 28, 0.18);

  --header-bg: rgba(251, 250, 249, 0.82);

  /* Dark-Mode-Glow: Vorgabewerte, falls JS deaktiviert ist. Bei jedem
     Seitenaufruf per Inline-Skript (siehe header.php) neu zufällig aus der
     Pride-Palette gesetzt – nie beide gleich, aber jede Farbe kann auf jeder
     Seite landen. */
  --glow-top: #ff8c00;
  --glow-bottom: #1f57e0;

  --font-display: "Clash Display", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;

  --container: 1180px;
  --header-h: 74px;

  --shadow-sm: 0 10px 30px rgba(23, 21, 28, 0.06);
  --shadow-md: 0 24px 60px rgba(23, 21, 28, 0.1);
}

/* ---------- Dark Mode ---------- */
/* Wird per JS über data-theme="dark" auf <html> gesetzt (siehe main.js).
   Beim ersten Besuch zählt die Systemeinstellung, danach die eigene Wahl
   (in localStorage gemerkt). --ink-fixed, --cream*, --accent* und die
   Pride-Verläufe bleiben bewusst unverändert. */
:root[data-theme="dark"] {
  --bg: #121016;
  --surface: #1c1a22;
  --ink: #f5f3f2;
  --ink-72: rgba(245, 243, 242, 0.72);
  --ink-56: rgba(245, 243, 242, 0.56);
  --ink-38: rgba(245, 243, 242, 0.38);

  --accent-soft: rgba(194, 19, 108, 0.18);

  --line: rgba(245, 243, 242, 0.12);
  --line-strong: rgba(245, 243, 242, 0.22);

  --header-bg: rgba(18, 16, 22, 0.82);

  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Ambientes Farb-Glow im Dark Mode – an den Viewport geheftet (nicht an den
   Seiteninhalt), bleibt beim Scrollen über der ganzen Seite sichtbar statt
   wie im Hero-Bereich an dessen Rand abgeschnitten zu werden. */
:root[data-theme="dark"] body::before,
:root[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

:root[data-theme="dark"] body::before {
  width: 640px;
  height: 640px;
  top: -220px;
  right: -200px;
  background: radial-gradient(circle at 30% 30%, var(--glow-top), transparent 70%);
}

:root[data-theme="dark"] body::after {
  width: 640px;
  height: 640px;
  bottom: -220px;
  left: -200px;
  background: radial-gradient(circle at 50% 50%, var(--glow-bottom), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

/* ---------- Typografie ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.7rem, 6.5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Pride-Verlauf als Textfüllung für Signalwörter */
.gradient-text {
  background: var(--pride-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent-text {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--pride);
}

.eyebrow.no-bar::before {
  display: none;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-72);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

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

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

/* Primärer Button – Pride-Verlauf */
.btn-pride {
  background: var(--pride);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 12px 26px rgba(194, 19, 108, 0.28);
}

.btn-pride:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 34px rgba(194, 19, 108, 0.34);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-strong);
}

.btn-dark {
  background: var(--ink-fixed);
  color: var(--cream);
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 250, 249, 0.4);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(251, 250, 249, 0.08);
}

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

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

/* ---------- Pride-Leiste oben ---------- */

.topbar {
  height: 5px;
  background: var(--pride);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 5px 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 21, 28, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pride);
  flex: 0 0 auto;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-72);
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pride);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-56);
  flex: 0 0 auto;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

.shop-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-56);
  flex: 0 0 auto;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

.shop-link svg {
  width: 18px;
  height: 18px;
}

/* ---------- Dark-Mode-Umschalter ---------- */

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-56);
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.admin-link svg {
  width: 18px;
  height: 18px;
}

.header-cta {
  padding: 11px 24px;
  font-size: 0.88rem;
}

.header-cta-small {
  padding: 8px 16px;
  font-size: 0.78rem;
}

/* Mobile-Navigation */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 5px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    padding: 12px 32px 28px;
    transform: translateY(-135%);
    transition: transform 0.35s ease;
    box-shadow: 0 24px 40px rgba(23, 21, 28, 0.14);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .main-nav {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .header-cta.hide-mobile {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  overflow: hidden;
}

/* Weiches Farb-Mesh im Hintergrund */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #ff8c00, #e40303 70%);
}

.hero::after {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle at 50% 50%, #1f57e0, #7a1fa2 70%);
}

/* Im Dark Mode übernimmt der seitenweite Glow (siehe body::before/::after)
   diese Rolle – sonst gäbe es am Hero-Bereich einen doppelt so starken Fleck. */
:root[data-theme="dark"] .hero::before,
:root[data-theme="dark"] .hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-inner {
  max-width: 520px;
}

.hero-carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pride-soft);
  box-shadow: var(--shadow-md);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-placeholder {
  background: var(--pride-soft);
}

.carousel-dots {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

.hero h1 {
  margin-bottom: 26px;
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-72);
  margin-bottom: 30px;
}

.hero-badge .pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pride);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Sektionen ---------- */

.section {
  position: relative;
  padding: 104px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-content: center;
}

.section-head .lead {
  margin-top: 20px;
}

.section-head.centered .lead {
  margin-inline: auto;
}

/* ---------- Kennzahlen-Streifen ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pride);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-72);
  margin-top: 10px;
}

/* ---------- Karten-Raster ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 38px 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: var(--accent-soft);
  margin-bottom: 22px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-72);
  font-size: 0.98rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* ---------- Über uns / Zweispalter ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.02rem;
  color: var(--ink-72);
}

.checklist li strong {
  color: var(--ink);
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  flex: 0 0 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Bild-Ersatz: Pride-Farbkachel mit Claim */
.pride-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--ink-fixed);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  isolation: isolate;
}

.pride-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pride-soft);
  opacity: 0.9;
  z-index: -2;
}

.pride-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 28, 0) 40%, rgba(23, 21, 28, 0.72) 100%);
  z-index: -1;
}

.pride-panel .pride-quote {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

/* ---------- Veranstaltungen ---------- */

.event-list {
  display: grid;
  gap: 18px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---------- Abgesagte Veranstaltungen ---------- */
/* Gilt für .event-card (Veranstaltungsseite), .event-tile (Startseite) und
   .member-item (Mitgliederbereich) – siehe .is-cancelled weiter unten. */

.is-cancelled {
  position: relative;
  overflow: hidden;
}

.event-cancelled-ribbon {
  position: absolute;
  top: 50%;
  left: -12%;
  width: 124%;
  transform: translateY(-50%) rotate(-6deg);
  background: rgba(228, 3, 3, 0.8);
  color: #fff;
  text-align: center;
  padding: 9px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(23, 21, 28, 0.25);
  z-index: 5;
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.event-change-notice {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 140, 0, 0.12);
  border-left: 3px solid #ff8c00;
  font-size: 0.86rem;
  line-height: 1.5;
}

.event-change-notice-line + .event-change-notice-line {
  margin-top: 4px;
}

.event-change-notice del {
  color: var(--ink-38);
  text-decoration: line-through;
}

.event-change-notice strong {
  font-weight: 700;
}

.event-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 30px;
}

.event-date .day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-date .month {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}

.event-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.event-info h3 {
  margin-bottom: 8px;
}

.event-info p {
  color: var(--ink-72);
  font-size: 0.96rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-56);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.event-tag {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card[hidden] {
  display: none;
}

.event-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md);
}

.event-empty {
  text-align: center;
  color: var(--ink-56);
  padding: 40px 0;
}

/* ---------- Veranstaltungen: Startseiten-Kacheln ---------- */

.event-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.event-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-tile-date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.event-tile-date .day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.event-tile-date .month {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.event-tile h3 {
  font-size: 1.15rem;
}

.event-tile p {
  color: var(--ink-72);
  font-size: 0.92rem;
}

/* ---------- Shop ---------- */

.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.shop-filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-72);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.shop-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shop-filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.product-image-placeholder {
  background: var(--accent-soft);
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-desc {
  color: var(--ink-72);
  font-size: 0.9rem;
  flex: 1;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.product-stock {
  font-size: 0.82rem;
  color: var(--ink-56);
}

.product-stock-out {
  color: #b30202;
  font-weight: 600;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-form select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
}

.product-form-row {
  display: flex;
  gap: 10px;
}

.product-form-row input[type="number"] {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
}

.product-form-row .btn {
  flex: 1;
}

.shop-cart-bar[hidden] {
  display: none;
}

.shop-cart-bar {
  position: sticky;
  bottom: 24px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: var(--ink-56);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-remove-btn:hover {
  color: #b30202;
}

.cart-total {
  text-align: right;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.checkout-paypal {
  margin: 20px 0;
}

.checkout-or {
  text-align: center;
  color: var(--ink-38);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0;
}

/* ---------- Veranstaltungen: Suche ---------- */

.event-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  margin-bottom: 40px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.event-search svg {
  width: 18px;
  height: 18px;
  color: var(--ink-56);
  flex: 0 0 auto;
}

.event-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}

.event-search input::placeholder {
  color: var(--ink-38);
}

.event-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mitmachen (Aktionskarten) ---------- */

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.action-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 28px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.action-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 18px;
}

.action-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.action-card p {
  color: var(--ink-72);
  font-size: 0.92rem;
}

/* ---------- Unterstützer / Sponsoren ---------- */

.supporter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.supporter {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--ink-38);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.supporter img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* ==========================================================================
   Mitgliederbereich
   ========================================================================== */

.member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.member-notice {
  padding: 24px 26px;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}

.member-notice h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.member-notice p + p {
  margin-top: 10px;
}

.member-block {
  margin-bottom: 44px;
}

.member-block > h2 {
  font-size: 1.3rem;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.member-item {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.member-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.member-item-meta {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.member-item-sub {
  color: var(--ink-56);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.member-empty {
  color: var(--ink-56);
  font-size: 0.92rem;
}

.member-download {
  font-weight: 600;
  color: var(--accent);
}

.member-account p + p {
  margin-top: 8px;
}

/* ---------- Avatar ---------- */

.member-head-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.member-avatar svg {
  width: 55%;
  height: 55%;
}

/* ---------- Unternavigation ---------- */

.member-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.member-subnav-link {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-72);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.member-subnav-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.member-subnav-link.is-active {
  background: var(--ink-fixed);
  border-color: transparent;
  color: #fff;
}

.member-subnav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ---------- Kurzübersicht-Kacheln ---------- */

.member-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

.member-quick-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-quick-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.member-quick-tile-icon {
  font-size: 1.4rem;
}

.member-quick-tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

.member-quick-tile-stat {
  font-size: 0.82rem;
  color: var(--ink-56);
}

/* ---------- Postfach & Abrechnungen: Status-Badges ---------- */

.member-item-unread {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.member-badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.member-badge-ok,
.member-badge-open {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  text-transform: uppercase;
}

.member-badge-ok {
  background: rgba(18, 150, 58, 0.14);
  color: #0d7a2e;
}

.member-badge-open {
  background: rgba(228, 3, 3, 0.1);
  color: #b30202;
}

/* ---------- Avatar-Auswahl ---------- */

.avatar-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.avatar-picker-swatch {
  position: relative;
  cursor: pointer;
}

.avatar-picker-swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.avatar-picker-swatch-fill {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid transparent;
  color: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar-picker-swatch-icon .avatar-picker-swatch-fill {
  background: var(--ink-fixed);
}

.avatar-picker-swatch-fill svg {
  width: 42%;
  height: 42%;
}

.avatar-picker-swatch input:checked + .avatar-picker-swatch-fill {
  border-color: var(--ink);
  transform: scale(1.08);
}

.avatar-picker-swatch:hover .avatar-picker-swatch-fill {
  transform: scale(1.05);
}

.avatar-picker-swatch-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
}

.avatar-picker-swatch-label {
  font-size: 0.72rem;
  color: var(--ink-56);
  text-align: center;
}

/* ---------- FAQ / Akkordeon ---------- */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: opacity 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-item.open .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--ink-72);
}

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-meta {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.contact-line {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-line .ci {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-line .ci svg {
  width: 20px;
  height: 20px;
}

.contact-line .cl-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.contact-line .cl-value {
  font-weight: 500;
  color: var(--ink);
}

.contact-line a.cl-value:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-72);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 38px;
  display: grid;
  gap: 22px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #12963a;
}

.form-status.is-error {
  color: #b3261e;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-56);
}

/* Spam-Falle */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- CTA-Band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 80px 56px;
  text-align: center;
  background: var(--ink-fixed);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pride-soft);
  opacity: 0.16;
  z-index: -1;
}

.cta-band h2 {
  color: #fff;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--cream-72);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 34px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-fixed);
  color: var(--cream-72);
  padding: 76px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(251, 250, 249, 0.12);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-grid p {
  font-size: 0.96rem;
  max-width: 340px;
}

.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-56);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding: calc(var(--header-h) + 70px) 0 90px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
}

.legal-content p {
  color: var(--ink-72);
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--accent);
}

.legal-disclaimer {
  background: rgba(255, 140, 0, 0.12);
  border-left: 3px solid #ff8c00;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink) !important;
  margin-bottom: 28px !important;
}

/* ---------- Scroll-Reveal-Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .stats,
  .action-grid,
  .supporter-grid,
  .event-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split,
  .contact-layout,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-inner {
    max-width: none;
  }

  .hero-carousel {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 22px;
  }

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

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

  .event-card {
    grid-template-columns: 84px 1fr;
    gap: 20px;
    padding: 22px;
  }

  .event-date {
    padding-right: 20px;
  }

  .event-date .day {
    font-size: 1.9rem;
  }

  .event-tag {
    grid-column: 2;
  }

  .event-tile-grid {
    grid-template-columns: 1fr;
  }

  .event-search {
    max-width: none;
  }

  .cta-band {
    padding: 56px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Veranstaltungen: Plakat-Übersicht ---------- */

.event-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}

.event-poster-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-poster-card[hidden] {
  display: none;
}

.event-poster-card:target .event-poster {
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-md);
}

.event-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-poster-card:hover .event-poster {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--pride-soft);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.event-poster-fallback .day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
}

.event-poster-fallback .month {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-poster-info {
  padding: 12px 4px 0;
}

.event-poster-info h3 {
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.event-poster-info p {
  font-size: 0.82rem;
  color: var(--ink-56);
}

/* ---------- Veranstaltung / Sponsor: Detailseiten ---------- */

.event-back {
  margin-bottom: 26px;
  font-weight: 600;
}

.event-detail,
.sponsor-detail {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

.event-detail-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.event-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-detail-body h1,
.sponsor-detail-body h1 {
  margin: 14px 0 12px;
}

.event-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.event-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.event-facts dt {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.event-facts dd {
  margin: 0;
}

.event-detail-text {
  color: var(--ink-72);
  margin-bottom: 22px;
}

/* ---------- Unterstützer-Unterseiten ---------- */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.sponsor-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sponsor-tile-logo,
.sponsor-detail-logo {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.sponsor-tile-logo img,
.sponsor-detail-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-tile-initial {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
}

.sponsor-tile h3 {
  font-size: 1.05rem;
}

.sponsor-tile p {
  font-size: 0.88rem;
  color: var(--ink-72);
}

/* ---------- Galerie ---------- */

.gallery-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.gallery-item {
  display: block;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ---------- Mitgliederbereich: Zurück zur Webseite ---------- */

.member-back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-72);
}

.member-back:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .event-detail,
  .sponsor-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .event-detail-poster {
    max-width: 420px;
  }
}

/* ---------- Startseite, Handy: kleinere Infotext-Kacheln ---------- */

@media (max-width: 620px) {
  .event-poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .action-grid {
    gap: 12px;
  }

  .action-card {
    padding: 18px 14px 16px;
  }

  .action-emoji {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .action-card h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .action-card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (max-width: 620px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sponsor-tile {
    padding: 14px;
  }
}
