/* =====================================================================
   Initiative Gastronomie Frankfurt – Design System
   Editorial · urban · reduziert. Hairlines statt Schatten,
   Index-Nummern statt Icons, Mono-Labels, ein einziger Akzent.
   ===================================================================== */

:root {
  --ink:        #15171c;   /* leicht kühles Tintenschwarz */
  --ink-2:      #1e2128;   /* Karten in dunklen Sektionen */
  --paper:      #ffffff;
  --cream:      #eef2f5;   /* kühles helles Papier (zum Blau) */
  --muted:      #6b727c;
  --line:       #dde4ea;   /* kühle Hairline */
  --line-dark:  rgba(255,255,255,.14);
  --accent:     #1aa0d6;   /* IGF-Blau (Logo) */
  --accent-ink: #1481b1;   /* dunkleres Blau (Hover) */
  --radius:     6px;
  --radius-sm:  4px;
  --maxw:       1200px;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-disp:  "Bricolage Grotesque", "Space Grotesk", var(--font-sans);
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section   { padding: clamp(60px, 9vw, 130px) 0; }
.section--dark  { background: var(--ink); color: #fff; }
.section--cream { background: var(--cream); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* hairline-Trenner zwischen gleichfarbigen Sektionen */
.section + .section:not(.section--dark):not(.section--cream) { border-top: 1px solid var(--line); }

/* -------------------- Labels / Eyebrow -------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.section--dark .eyebrow { color: rgba(255,255,255,.55); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 56ch; line-height: 1.5; }
.section--dark .lead { color: rgba(255,255,255,.66); }

/* -------------------- Buttons (crisp, kein Lift) -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-disp); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn .icn { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover span, .btn--ghost:hover { color: var(--ink); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { color: #fff; background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); }
.btn--danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.btn--danger:hover { background: #8f1e17; border-color: #8f1e17; }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* -------------------- Navbar -------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-disp); font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; flex: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 4px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; flex: none;
}
.brand__mark span { color: var(--accent); }
.brand__logo { width: 42px; height: 42px; flex: none; display: block; }

.nav__links { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav__item { display: flex; align-items: center; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: .94rem; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav__link:hover, .nav__link.active,
.nav__item--has-dropdown:hover .nav__trigger { color: var(--ink); }
.nav__caret { width: .8em; height: .8em; color: var(--muted); transition: transform .2s; }
.nav__item--has-dropdown:hover .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 234px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.24);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}
.nav__item--has-dropdown:hover .dropdown,
.nav__item--has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.dropdown a:hover, .dropdown a.active { background: var(--cream); color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 18px; flex: none; }
.nav__item--mobile { display: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* -------------------- Hero (mit Foto + Overlay) -------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(96px, 15vw, 200px) 0 clamp(72px, 11vw, 130px);
  border-bottom: 1px solid var(--line-dark);
  background-color: var(--ink);
  background-image:
    linear-gradient(96deg, rgba(15,18,24,.94) 0%, rgba(15,18,24,.74) 48%, rgba(15,18,24,.45) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero::before {  /* sanfter Vignette-Verlauf unten für Lesbarkeit der Kennzahlen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,18,24,.55), transparent 35%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 980px; }
.hero h1 { color: #fff; font-weight: 600; }
.hero h1 .hl { color: var(--accent); }
.hero__claim { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: rgba(255,255,255,.72); max-width: 58ch; margin: 26px 0 36px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: grid; grid-template-columns: repeat(3, max-content); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-dark); }
.hero__meta div { padding: 26px 44px 0 0; margin-right: 44px; border-right: 1px solid var(--line-dark); }
.hero__meta div:last-child { border-right: 0; margin-right: 0; }
.hero__meta b { font-family: var(--font-disp); font-size: 2rem; font-weight: 600; display: block; letter-spacing: -.03em; }
.hero__meta span { color: rgba(255,255,255,.5); font-size: .82rem; font-family: var(--font-mono); letter-spacing: .04em; }

/* -------------------- Bild-Slots & Platzhalter -------------------- */
.img-slot { width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(26,160,214,.05) 0 12px, transparent 12px 24px),
    var(--cream);
  border: 1px dashed #c4d2da; border-radius: var(--radius-sm);
  color: var(--muted);
}
.gallery-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card.card--media { padding-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.card--media:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.img-ph__icn { width: 30px; height: 30px; color: var(--accent); opacity: .8; }
.img-ph span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.section--dark .img-ph { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.5); }

/* -------------------- Section head -------------------- */
.shead { max-width: 760px; margin-bottom: 56px; }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
/* Abschnittskopf mit großem Logo rechts */
.shead--logo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.shead--logo .shead__text { max-width: 760px; }
.shead__logo { width: clamp(120px, 15vw, 200px); height: auto; justify-self: end; }
@media (max-width: 780px) {
  .shead--logo { grid-template-columns: 1fr; gap: 24px; }
  .shead__logo { width: 110px; justify-self: start; }
}
.shead--center .eyebrow { justify-content: center; }

/* -------------------- Grids -------------------- */
.grid { display: grid; gap: 1px; background: var(--line); }      /* Hairline-Raster */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Grids, die echten Abstand brauchen (Logos, Mitglieder-Detailkarten) */
.grid--gap { gap: 24px; background: transparent; }

/* -------------------- Cards (border-driven) -------------------- */
.card {
  background: var(--paper); border: 0; padding: 38px 34px;
  transition: background .18s ease;
  position: relative;
}
.grid > .card { outline: 0; }
.card h3 { overflow-wrap: anywhere; word-break: break-word; }
.card:hover { background: var(--cream); }
.card__num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); font-weight: 500; letter-spacing: .1em; }
.card__index { font-family: var(--font-disp); font-size: 2.6rem; font-weight: 600; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 22px; display: block; }
.card__index small { color: var(--accent); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }

/* dunkle Sektion */
.section--dark .grid { background: var(--line-dark); }
.section--dark .card { background: var(--ink); }
.section--dark .card:hover { background: var(--ink-2); }
.section--dark .card p { color: rgba(255,255,255,.6); }
.section--dark .card__index { color: #fff; }

/* anklickbare Karte */
a.card { display: block; color: inherit; }

/* -------------------- Mitglieder / Listing -------------------- */
.member-card__logo { width: 100%; aspect-ratio: 16/10; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-disp); font-weight: 600; font-size: 1.7rem; color: var(--ink); margin-bottom: 16px; letter-spacing: -.03em; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--ink); color: var(--ink); border-radius: 2px; }
.tag--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag--gold { background: var(--ink); border-color: var(--ink); color: #fff; }
.meta-line { color: var(--muted); font-size: .9rem; }
.link-ext { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600; font-size: .9rem; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.link-ext .icn { width: .85em; height: .85em; color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 2px;
  padding: 9px 16px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: .15s;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -------------------- Events -------------------- */
.event-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 32px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.event-row:first-of-type { border-top: 1px solid var(--line); }
.event-date { text-align: left; font-family: var(--font-disp); }
.event-date b { display: block; font-size: 2.8rem; line-height: .9; font-weight: 600; letter-spacing: -.04em; }
.event-date span { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-family: var(--font-mono); }
.event-row h3 { margin: 8px 0; }
.event-row__meta { color: var(--muted); font-size: .9rem; display: flex; gap: 20px; flex-wrap: wrap; }
.event-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-row__meta .icn, .meta-line .icn, .meta-icn { width: 1.05em; height: 1.05em; color: var(--accent); }
.event-row--media { grid-template-columns: 96px 104px 1fr auto; }
.event-thumb { display: block; width: 104px; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-aside { display: grid; gap: 24px; align-items: start; }
.event-cover { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -------------------- Team / Vorstand -------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.10); }
.team-card__photo { width: 100%; aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__body { padding: 18px 18px 20px; }
.team-card__name { font-family: var(--font-disp); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; margin: 0; }
.team-card__role { color: var(--accent); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 0; }
.team-card__company { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.team-card__desc { font-size: .92rem; line-height: 1.55; margin: 12px 0 0; }
.team-card__mail { display: inline-block; margin-top: 12px; font-size: .9rem; }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 380px) { .team-grid { grid-template-columns: 1fr; } }

/* -------------------- Modal -------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15,17,20,.55); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; z-index: 1; margin: 6vh auto; max-width: 640px; width: calc(100% - 40px);
  max-height: 88vh; overflow-y: auto; background: #fff; border-radius: var(--radius);
  padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; cursor: pointer;
  background: var(--cream); border-radius: 50%; display: grid; place-items: center; color: var(--ink);
}
.modal__close:hover { background: var(--line); }
.modal__close .icn { width: 20px; height: 20px; }
@media (max-width: 640px) { .modal__dialog { padding: 28px 20px; margin: 3vh auto; } }

/* -------------------- Pricing -------------------- */
.single-plan { max-width: 440px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; position: relative; display: flex; flex-direction: column; }
.price-card.is-featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card.is-featured .price-amount, .price-card.is-featured h3 { color: #fff; }
.price-badge { position: absolute; top: -11px; left: 38px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; padding: 5px 12px; border-radius: 2px; text-transform: uppercase; }
.price-amount { font-family: var(--font-disp); font-size: 2.9rem; font-weight: 600; margin: 16px 0 2px; letter-spacing: -.03em; }
.price-amount span { font-size: .95rem; color: var(--muted); font-weight: 500; font-family: var(--font-sans); }
.price-card.is-featured .price-amount span { color: rgba(255,255,255,.55); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 13px; flex: 1; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 1.5px; background: var(--accent); }

/* -------------------- Supporter tiers -------------------- */
.tier-block { margin-bottom: 60px; }
.tier-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tier-head h3 { margin: 0; }
.supporter-gold { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 44px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-box { aspect-ratio: 3/2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-disp); font-weight: 500; color: var(--muted); padding: 14px; text-align: center; transition: border-color .15s; }
.logo-box:hover { border-color: var(--ink); color: var(--ink); }

/* -------------------- Forms -------------------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; gap: 7px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 500; font-size: .82rem; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }

/* -------------------- Flash -------------------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: #eef6ef; color: #1c6b34; border-color: #cfe6d4; }
.flash--error   { background: #fcecea; color: #b3261e; border-color: #f3cfca; }
.flash--info    { background: #eef1f6; color: #324a73; border-color: #d4dcea; }

/* -------------------- Media-Karte (Bild oben) -------------------- */
.card--media { padding-top: 0; overflow: hidden; }
.card--media .img-slot { border-radius: 0; margin: -1px -34px 0; width: calc(100% + 68px); }

/* -------------------- Logo-Kachel (contain, nicht beschnitten) -------------------- */
.logo-tile {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: 22px; overflow: hidden; margin-bottom: 16px;
}
.logo-tile img { max-width: 64%; max-height: 58%; width: auto; height: auto; object-fit: contain; display: block; margin: auto; }
.logo-tile--ph span { font-family: var(--font-disp); font-weight: 600; font-size: 1.9rem; color: var(--muted); letter-spacing: -.02em; }
.logo-grid .logo-tile, .supporter-gold .logo-tile { margin-bottom: 0; }
.logo-grid a { display: block; }

/* -------------------- Instagram-Feed -------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-tile { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); overflow: hidden; display: block; transition: transform .15s; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-tile:hover { transform: scale(1.02); }

/* Instagram-Admin */
.ig-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 14px; }
.ig-admin-card { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.ig-admin-card.is-hidden { opacity: .5; }
.ig-admin-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ig-admin-noimg { aspect-ratio: 1; display: grid; place-items: center; background: var(--cream); color: var(--muted); font-size: .8rem; }
.ig-admin-meta { padding: 10px 12px; }
.ig-admin-meta p { font-size: .82rem; color: var(--muted); margin: 8px 0; }

/* -------------------- CTA band -------------------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band .accent-rule { width: 40px; height: 3px; background: var(--accent); margin: 0 auto 24px; }

/* -------------------- Footer -------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 80px 0 38px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer h4 { color: #fff; font-size: .76rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer a { display: block; padding: 5px 0; color: rgba(255,255,255,.6); font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; font-family: var(--font-mono); letter-spacing: .03em; color: rgba(255,255,255,.45); }

/* -------------------- Page header -------------------- */
.page-head { background: var(--cream); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 16px; }
.backlink { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-block; margin-bottom: 18px; }
.backlink:hover { color: var(--ink); }

/* -------------------- Utilities -------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.icn { display: inline-block; vertical-align: -0.15em; }

/* =====================================================================
   Wartungs-/Übergangsseite
   ===================================================================== */
.maint {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: var(--ink); color: #fff; padding: 40px 24px; position: relative; overflow: hidden;
}
.maint::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 64px; pointer-events: none;
}
.maint__inner { position: relative; max-width: 620px; }
.maint__logo { width: 108px; height: 108px; margin: 0 auto 28px; display: block; }
.maint h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 22px; }
.maint__msg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.74); line-height: 1.6; margin-bottom: 26px; }
.maint__eta { display: inline-block; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: #fff; border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 18px; margin-bottom: 30px; }
.maint__eta strong { color: var(--accent); }
.maint__contact { border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: .92rem; color: rgba(255,255,255,.6); display: flex; flex-direction: column; gap: 4px; }
.maint__contact a { color: var(--accent); font-weight: 600; }

/* =====================================================================
   Portal (Mitgliederbereich + Admin)
   ===================================================================== */
.has-portal { background: var(--cream); }
.nav__login { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-left: 18px; border-left: 1px solid var(--line); }
.nav__login:hover { color: var(--accent); }

.portal { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.portal__side {
  background: var(--ink); color: #fff; padding: 26px 22px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.portal__side .brand { color: #fff; }
.portal__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.portal__nav a { color: rgba(255,255,255,.7); padding: 10px 12px; border-radius: var(--radius-sm); font-size: .94rem; font-weight: 500; }
.portal__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.portal__nav a.active { background: var(--accent); color: #fff; }
.portal__group { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 16px 12px 6px; }
.portal__admin { margin-top: 4px; color: var(--accent) !important; }
.portal__user { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-dark); margin-top: 14px; }
.portal__user strong { display: block; font-size: .92rem; }
.portal__user .meta-line { color: rgba(255,255,255,.5); font-size: .8rem; }
.portal__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-disp); font-weight: 600; flex: none; }
.portal__main { min-width: 0; }
.portal__inner { padding: clamp(28px, 4vw, 52px); max-width: 1100px; }
.portal__toggle { display: none; }

.portal h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Panels & Karten */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel--accent { background: var(--ink); color: #fff; }
.panel--accent h2 { color: #fff; }
.panel--unread { border-left: 3px solid var(--accent); }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel__head h2 { font-size: 1.2rem; margin: 0; }
.panel h2, .panel h3 { margin-top: 0; }

.notice { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice--pin { border-left: 3px solid var(--accent); padding-left: 12px; }
.notice__date { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

.mini-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; }
.mini-row:last-child { border-bottom: 0; }
.mini-row__date { font-family: var(--font-disp); font-weight: 600; min-width: 48px; }

.quick-links { display: grid; gap: 8px; margin-top: 12px; }
.quick-links a { color: #fff; padding: 11px 14px; background: rgba(255,255,255,.07); border-radius: var(--radius-sm); font-size: .94rem; }
.quick-links a:hover { background: var(--accent); }

/* Admin-spezifisch */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1, .admin-head h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; color: inherit; transition: border-color .15s; }
.stat:hover { border-color: var(--ink); }
.stat b { font-family: var(--font-disp); font-size: 1.9rem; display: block; line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat.alert b { color: var(--accent); }

table.admin { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.admin th, table.admin td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.admin th { background: var(--ink); color: #fff; font-family: var(--font-disp); font-weight: 600; font-size: .82rem; letter-spacing: .01em; }
table.admin tr:last-child td { border-bottom: 0; }
table.admin select { padding: 7px 10px; font-size: .85rem; }
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* In Tabellen muss die Zelle eine Zelle bleiben – display:flex reißt sie
   aus dem Zeilenraster (Spalte erscheint dann versetzt). */
td.admin-actions { display: table-cell; vertical-align: middle; white-space: nowrap; }
td.admin-actions > a, td.admin-actions > form { display: inline-block; vertical-align: middle; margin-right: 12px; }
td.admin-actions > *:last-child { margin-right: 0; }
.admin-actions a, .link-action { color: var(--ink); font-weight: 600; font-size: .86rem; border: 0; background: none; cursor: pointer; padding: 0; font-family: inherit; border-bottom: 1px solid var(--accent); }
.admin-actions a:hover, .link-action:hover { color: var(--accent); }
.link-danger { color: #b3261e; font-weight: 600; font-size: .86rem; border: 0; background: none; cursor: pointer; padding: 0; font-family: inherit; border-bottom: 1px solid currentColor; }
.link-danger:hover { color: #7d1a15; }

.pill { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; background: var(--cream); border: 1px solid var(--line); color: var(--muted); }
.pill--on, .pill--angenommen, .pill--veroeffentlicht, .pill--aktiv, .pill--bezahlt { background: #e8f6ec; color: #1c6b34; border-color: #cfe6d4; }
.pill--neu, .pill--eingereicht, .pill--warteliste { background: #fff3e6; color: #9a5512; border-color: #f0d9bf; }
.pill--abgelehnt, .pill--storniert, .pill--entfernt { background: #fdecea; color: #b3261e; border-color: #f3cfca; }

table.kv { width: 100%; border-collapse: collapse; }
table.kv th { text-align: left; vertical-align: top; padding: 8px 16px 8px 0; color: var(--muted); font-weight: 500; font-size: .85rem; white-space: nowrap; width: 1%; }
table.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.checkbox input { width: auto; }

.auth-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm, 0 8px 24px -12px rgba(0,0,0,.18)); }

/* Suche / Chips */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input[type=text] { flex: 1; min-width: 220px; }
.searchbar select { width: auto; }
.searchbar--lg input[type=text] { padding: 16px 18px; font-size: 1.05rem; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.stack-sm > * + * { margin-top: 6px; }
.stack-md > * + * { margin-top: 16px; }

/* Wissensdatenbank */
.kb-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; color: inherit; transition: border-color .15s; }
.kb-card:hover { border-color: var(--ink); }
.kb-rating { text-align: right; white-space: nowrap; }
.stars { color: var(--accent); letter-spacing: 2px; }
.kb-detail { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin-top: 18px; align-items: start; }
.kb-detail__side .panel { position: sticky; top: 24px; }
.comment { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.gallery-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item form { padding: 8px 10px; text-align: center; }

/* Dokumente */
.doc-list { display: grid; gap: 10px; margin-top: 14px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; color: inherit; }
.doc-row:hover { border-color: var(--ink); }
.doc-row strong { display: block; }
.doc-row .meta-line { font-size: .85rem; }
.doc-row__ext { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 2px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logo-grid, .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-ph { grid-template-columns: repeat(2, 1fr); }
}
/* Navigation klappt früher zusammen (Dropdowns brauchen Platz) */
@media (max-width: 1024px) {
  .nav__links, .nav__cta .btn, .nav__login { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 14px 28px 22px; gap: 0; border-bottom: 1px solid var(--line);
    height: auto; max-height: calc(100vh - 74px); overflow-y: auto; box-shadow: var(--shadow);
  }
  .nav.open .nav__item { display: block; width: 100%; }
  .nav.open .nav__link { width: 100%; padding: 14px 0; font-size: 1rem; }
  .nav.open .nav__item:not(.nav__item--mobile) > .nav__link { border-bottom: 1px solid var(--line); }
  /* Dropdown-Trigger werden zu Gruppen-Überschriften */
  .nav.open .nav__trigger { pointer-events: none; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 18px 0 6px; border-bottom: 0; }
  .nav.open .nav__caret { display: none; }
  .nav.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; padding: 0; min-width: 0; background: transparent;
  }
  .nav.open .dropdown a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav__item--mobile { display: block; }
  .nav.open .nav__item--mobile:first-of-type { margin-top: 16px; }
  .nav.open .nav__item--mobile .btn { margin-top: 12px; }
}
@media (max-width: 768px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .supporter-gold { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 72px 1fr; gap: 20px; }
  .event-row--media { grid-template-columns: 72px 72px 1fr; }
  .event-row--media .event-thumb { width: 72px; }
  .event-row--media > div:nth-child(3) { grid-column: 1 / -1; }
  .event-row .btn { grid-column: 2; justify-self: start; }
  .event-row--media .btn { grid-column: 1; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta div { border-right: 0; margin-right: 0; padding: 18px 0 0; border-bottom: 1px solid var(--line-dark); }
  /* Portal */
  .portal { grid-template-columns: 1fr; }
  .portal__side { position: fixed; top: 0; left: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; z-index: 60; }
  .portal__side.open { transform: translateX(0); }
  .portal__toggle { display: inline-block; margin: 18px 0 0 18px; background: var(--ink); color: #fff; border: 0; border-radius: 3px; padding: 10px 16px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .portal-grid, .kb-detail { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo-grid, .ig-grid, .grid--4 { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
  .card { padding: 30px 24px; }
}
