/* ==========================================================================
   Förderverein Schwimmbad Lorup e.V. – Stylesheet
   Farben direkt aus dem Vereinslogo abgeleitet (Grün · Blau · Türkis)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Logo-Farben */
  --green: #0aa764;
  --green-dark: #07804c;
  --blue: #3063a5;
  --blue-dark: #294c8e;
  --teal: #2694a3;
  --teal-dark: #1c7480;

  /* Neutrale Töne */
  --ink: #16232e;
  --ink-soft: #3c4b57;
  --muted: #64737f;
  --line: #dbe5e8;
  --bg: #ffffff;
  --bg-soft: #f2f8f8;
  --bg-tint: #e6f3f2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 35, 46, .06), 0 8px 24px rgba(22, 35, 46, .08);
  --shadow-lg: 0 2px 4px rgba(22, 35, 46, .06), 0 18px 48px rgba(22, 35, 46, .14);

  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .75rem;
}
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  font: 600 1rem var(--font-head); color: var(--ink);
  align-items: center; gap: 8px;
}
.nav-toggle span.bars { width: 20px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle span.bars::before, .nav-toggle span.bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle span.bars::before { top: -6px; } .nav-toggle span.bars::after { top: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem;
  color: var(--ink); text-decoration: none;
}
.main-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--teal-dark); background: var(--bg-tint); }
.main-nav a.btn-nav { background: var(--green); color: #fff; margin-left: 6px; }
.main-nav a.btn-nav:hover { background: var(--green-dark); color: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .brand img { height: 44px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .main-nav a { border-radius: 10px; padding: 12px 14px; font-size: 1.1rem; }
  .main-nav a.btn-nav { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--light { background: #fff; color: var(--blue-dark); }
.btn--light:hover { background: var(--bg-tint); color: var(--blue-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--teal); color: var(--teal-dark); }
.btn--outline:hover { background: var(--bg-tint); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--green) 0%, #079a6b 38%, var(--teal) 100%);
}
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(110px, 14vw, 170px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .92); max-width: 46ch; margin-bottom: 1.6em; }
.hero .eyebrow { color: rgba(255, 255, 255, .9); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero__mark { justify-self: center; width: min(340px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .18)); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
}

.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, var(--teal) 100%);
}
.page-hero .wrap { position: relative; padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(80px, 10vw, 120px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { color: rgba(255, 255, 255, .9); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: rgba(255, 255, 255, .85); }

.wave-bottom { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 90px); display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card .more { margin-top: auto; padding-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--teal-dark); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--green { background: var(--green); }
.icon-badge--blue { background: var(--blue); }
.icon-badge--teal { background: var(--teal); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); text-align: center; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; color: var(--blue-dark); }
.stat__label { color: var(--muted); font-size: 1rem; line-height: 1.35; margin-top: 6px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hinweisbox */
.notice {
  border-radius: var(--radius); padding: 24px 28px;
  background: linear-gradient(135deg, rgba(10, 167, 100, .08), rgba(38, 148, 163, .12));
  border: 1px solid rgba(38, 148, 163, .3);
}
.notice h3 { margin-bottom: .3em; }
.notice p:last-child { margin-bottom: 0; }

/* Highlight / Termin */
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.datebox {
  width: 92px; text-align: center; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head);
}
.datebox__month { background: var(--teal); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 0; }
.datebox__day { font-size: 2.2rem; font-weight: 700; line-height: 1; padding: 10px 0 2px; color: var(--ink); }
.datebox__year { font-size: .85rem; color: var(--muted); padding-bottom: 8px; }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; } }

/* ---------- Zeitstrahl ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green), var(--blue), var(--teal)); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 28px; margin: 0 0 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 85px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.timeline .tl-year { white-space: nowrap; font-family: var(--font-head); font-weight: 700; color: var(--blue-dark); font-size: 1.1rem; padding-top: 2px; }
.timeline .tl-body h4 { margin: 0 0 .2em; }
.timeline .tl-body p { margin: 0; color: var(--ink-soft); }

/* ---------- Personen ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.person__avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem;
  background: linear-gradient(160deg, var(--green) 0 45%, var(--blue) 45% 62%, var(--teal) 62%);
}
.person__role { font-size: .95rem; color: var(--muted); line-height: 1.3; }
.person__name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 600; background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--bg-tint); }

/* ---------- Abbildungen ---------- */
figure { margin: 0; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { padding: 12px 16px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.figure--pad img { padding: 16px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1em 0; }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.is-doc img { object-fit: contain; padding: 6px; background: #fff; }

/* ---------- Aktuelles / Chronik ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 16px; font: 500 1rem var(--font-head); color: var(--ink);
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.year-nav a { font-family: var(--font-head); font-weight: 600; text-decoration: none; padding: 4px 12px; border-radius: 8px; background: var(--bg-soft); color: var(--blue-dark); font-size: .98rem; }
.year-nav a:hover { background: var(--bg-tint); }

.year-group { margin-bottom: 48px; }
.year-group > h2 { display: flex; align-items: center; gap: 16px; font-size: 2rem; color: var(--blue-dark); }
.year-group > h2::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), transparent); }

.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(22, 35, 46, .04);
  display: grid; grid-template-columns: 92px 1fr; gap: 24px;
}
.post:target { box-shadow: 0 0 0 3px var(--teal), var(--shadow-lg); }
.post h3 { font-size: 1.4rem; margin-bottom: .35em; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--teal-dark); }
.tag--gv { background: rgba(48, 99, 165, .12); color: var(--blue-dark); }
.tag--projekt { background: rgba(10, 167, 100, .12); color: var(--green-dark); }
.tag--presse { background: #fdf0e1; color: #9a5a12; }
.post__body > *:last-child { margin-bottom: 0; }
.post__body img.post-img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: .5em 0 1em; max-height: 460px; width: auto; }
.post--compact { padding: 18px 24px; }
.post--compact h3 { font-size: 1.15rem; }
.post .datebox { width: 84px; align-self: start; }
.post.is-hidden { display: none; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; padding: 22px 20px; gap: 12px; }
  .post .datebox { display: flex; width: auto; align-items: baseline; gap: 8px; box-shadow: none; border: 0; background: none; text-align: left; overflow: visible; }
  .post .datebox__day { order: -1; }
  .post .datebox__day::after { content: "."; }
  .post .datebox__month, .post .datebox__day, .post .datebox__year { background: none; color: var(--teal-dark); padding: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
}

.doclinks { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 8px; }
.doclinks li { margin: 0; }
.doclink {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--ink); transition: border-color .15s ease, background-color .15s ease;
}
.doclink:hover { border-color: var(--teal); background: var(--bg-tint); color: var(--ink); }
.doclink__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--teal); font: 700 .7rem var(--font-head); letter-spacing: .04em; }
.doclink__icon--ext { background: var(--blue); }
.doclink__icon--txt { background: var(--green); }
.doclink__title { font-weight: 600; line-height: 1.3; display: block; }
.doclink__meta { font-size: .9rem; color: var(--muted); }

/* Abschriften (Transkriptionen abfotografierter Dokumente) */
.transcript { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1em 0; background: #fff; }
.transcript > summary {
  cursor: pointer; list-style: none; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; color: var(--green-dark); background: rgba(10, 167, 100, .07); border-radius: var(--radius-sm);
}
.transcript > summary::-webkit-details-marker { display: none; }
.transcript > summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--green); color: #fff; font-size: 1.1rem; line-height: 1; }
.transcript[open] > summary::before { content: "–"; }
.transcript[open] > summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 1px solid var(--line); }
.transcript__doc { padding: 24px clamp(18px, 4vw, 40px) 28px; font-size: 1.05rem; }
.transcript__doc .doc-kicker { font-family: var(--font-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.transcript__doc h4 { font-size: 1.6rem; margin-bottom: .2em; }
.transcript__doc .doc-sub { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1em; }
.transcript__doc .doc-lede { font-weight: 600; }
.transcript__doc .doc-caption { font-style: italic; color: var(--muted); border-left: 3px solid var(--teal); padding-left: 12px; }
.transcript__doc .doc-source { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 1.2em; margin-bottom: 0; }
.transcript__doc ol.agenda { padding-left: 2.4em; }
.transcript__doc .formfield { display: block; border-bottom: 1px solid var(--line); padding: 4px 0; color: var(--muted); }

/* Protokoll-Listen */
ol.protocol { list-style: none; counter-reset: top; padding: 0; }
ol.protocol > li { counter-increment: top; position: relative; padding-left: 44px; margin-bottom: .8em; }
ol.protocol > li::before {
  content: counter(top); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--teal-dark); font: 700 .95rem var(--font-head);
}
.attendees { font-size: .98rem; color: var(--ink-soft); background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; }

/* ---------- Dokumente ---------- */
.doc-section { margin-bottom: 48px; }
.doc-section > h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }

/* ---------- Satzung ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 100px; font-size: .98rem; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: 0; }
.legal-toc a { display: block; padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); line-height: 1.3; }
.legal-toc a:hover { background: var(--bg-tint); color: var(--ink); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; padding-top: .2em; }
.legal h2:first-child { margin-top: 0; }
.legal ol > li { margin-bottom: .6em; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 0; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .95rem; }
.footer-stripe { height: 8px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--blue) 33.3% 66.6%, var(--teal) 66.6%); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 18, 24, .92);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: 1rem; padding: 0 64px; }
.lightbox button {
  position: absolute; appearance: none; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: .6em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 1.2rem var(--font-head);
}
.steps li h3 { font-size: 1.15rem; margin-bottom: .2em; }
.steps li p { margin: 0; }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--blue-dark), var(--blue) 50%, var(--teal)); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 56ch; }
.cta-band > *:not(.cta-band__wave) { position: relative; z-index: 1; }
.cta-band__wave { position: absolute; right: -40px; bottom: -30px; width: 360px; opacity: .18; pointer-events: none; }

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

@media print {
  .site-header, .site-footer, .filters, .year-nav, .hero__waves, .wave-bottom, .lightbox { display: none !important; }
  .page-hero, .hero { background: none; color: var(--ink); }
  .page-hero h1, .hero h1 { color: var(--ink); }
  .transcript:not([open]) > .transcript__doc { display: block; }
}

/* Pläne in einheitlichem Rahmen */
.figure--plan > a, .figure--plan > img { display: block; aspect-ratio: 4 / 3; background: #fff; }
.figure--plan img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.figure--wide > a, .figure--wide > img { aspect-ratio: auto; }
.person__avatar svg { width: 26px; height: 26px; }
