/* =========================================================
   SG Wassersportfreunde Wusterhausen e.V. – Stylesheet
   Farben: Klempowsee (Petrol), Tonnengelb, Drachenrot
   ========================================================= */

:root {
  --ink: #10303a;          /* Tiefwasser – Text, Header */
  --lake: #1f5f6b;         /* Klempowsee – Links, Akzente */
  --lake-soft: #d7e6e6;    /* helles Seewasser */
  --mist: #eef3f2;         /* Flächen */
  --paper: #fbfcfb;        /* Seitenhintergrund */
  --signal: #e8a824;       /* Tonnengelb – Termine, Hinweise */
  --dragon: #b8412c;       /* Drachenboot */
  --line: #c9d6d5;
  --muted: #4f666c;

  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 0.6rem 1rem; font-family: var(--font-ui); font-weight: 700;
}
.skip:focus { left: 0.5rem; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

/* ---------- Überschriften ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); font-weight: 750; font-stretch: 106%; margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
h4 { font-size: 1.02rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 4px solid var(--signal);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: #fff; text-decoration: none; font-family: var(--font-ui);
}
.brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 800; font-stretch: 115%; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.78rem; opacity: 0.8; }
.brand:hover { color: #fff; }

.nav-toggle {
  font: 700 0.95rem var(--font-ui); color: var(--ink); background: var(--signal);
  border: 0; border-radius: var(--radius); padding: 0.55rem 0.9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-toggle svg { width: 18px; height: 18px; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #fff; text-decoration: none; font-family: var(--font-ui); }

/* Mobile-Menü */
.main-nav.is-open {
  display: block;
  position: fixed; inset: 68px 0 0 0;
  background: var(--ink);
  overflow-y: auto;
  padding: 1rem var(--gap) 3rem;
}
.main-nav.is-open > ul > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.main-nav.is-open > ul > li > a,
.main-nav.is-open .sub-toggle { display: block; padding: 0.85rem 0; font-size: 1.15rem; font-weight: 700; }
.main-nav.is-open .sub { padding: 0 0 0.8rem 0.9rem; border-left: 3px solid var(--signal); margin-bottom: 0.8rem; }
.main-nav.is-open .sub a { display: block; padding: 0.45rem 0; font-size: 1rem; opacity: 0.9; }
.sub-toggle { background: none; border: 0; color: #fff; font-family: var(--font-ui); cursor: default; padding: 0; text-align: left; width: 100%; }
.main-nav a[aria-current="page"] { color: var(--signal); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open { display: block; position: static; background: none; padding: 0; overflow: visible; }
  .main-nav > ul { display: flex; gap: 0.2rem; }
  .main-nav > ul > li { position: relative; border: 0 !important; }
  .main-nav > ul > li > a,
  .main-nav .sub-toggle {
    display: block; padding: 0.55rem 0.75rem; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius);
    cursor: pointer;
  }
  .main-nav > ul > li > a:hover,
  .main-nav .sub-toggle:hover,
  .main-nav li:focus-within > .sub-toggle { background: rgba(255,255,255,0.1); }
  .sub-toggle::after { content: ""; display: inline-block; margin-left: 0.4rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
  .main-nav .sub, .main-nav.is-open .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; border: 0; border-top: 3px solid var(--signal); margin: 0;
    padding: 0.5rem; box-shadow: 0 12px 30px rgba(16,48,58,0.22); border-radius: 0 0 var(--radius) var(--radius);
  }
  .main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }
  .main-nav .sub a, .main-nav.is-open .sub a { color: var(--ink); padding: 0.5rem 0.7rem; display: block; border-radius: 4px; font-size: 0.95rem; opacity: 1; }
  .main-nav .sub a:hover { background: var(--mist); }
  .main-nav .sub a[aria-current="page"] { color: var(--lake); font-weight: 700; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head {
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  isolation: isolate;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,48,58,0.55), rgba(16,48,58,0.88));
}
.page-head .wrap { padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(1.6rem, 4vw, 2.8rem); }
.page-head h1 { margin: 0; }
.crumbs { font-family: var(--font-ui); font-size: 0.9rem; margin-bottom: 0.6rem; opacity: 0.85; }
.crumbs a { color: #fff; }
.page-head .lead { font-size: 1.1rem; max-width: 60ch; margin: 0.8rem 0 0; opacity: 0.92; }

.section-segeln { --accent: var(--lake); }
.section-drachen { --accent: var(--dragon); }
.section-drachen .page-head { border-bottom: 6px solid var(--dragon); }

/* ---------- Inhaltsbereich ---------- */
.layout { display: grid; gap: var(--gap); padding-block: clamp(1.8rem, 5vw, 3.5rem); }
@media (min-width: 1000px) {
  .layout.has-aside { grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; }
}
.subnav { font-family: var(--font-ui); }
.subnav h2 { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--muted); font-weight: 600; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.subnav a {
  display: block; text-decoration: none; color: var(--ink);
  padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: #fff;
}
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 1000px) {
  .subnav { position: sticky; top: 92px; align-self: start; }
  .subnav ul { flex-direction: column; gap: 0; border-left: 2px solid var(--line); }
  .subnav a { border: 0; border-radius: 0; background: none; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; }
  .subnav a:hover { border-left-color: var(--muted); }
  .subnav a[aria-current="page"] { background: none; color: var(--ink); font-weight: 700; border-left: 3px solid var(--accent, var(--lake)); }
}

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.3em; }
.content-wide { max-width: 100%; }

.note {
  font-family: var(--font-ui); font-size: 0.95rem;
  background: var(--mist); border-left: 4px solid var(--signal);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0;
}

figure { margin: 1.5rem 0; }
figcaption { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 700 0.98rem var(--font-ui); text-decoration: none;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius);
}
.btn:hover { background: var(--lake); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 0.97rem; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 700; }
tbody th { font-weight: 600; color: var(--muted); width: 38%; }
tbody tr:nth-child(even) { background: rgba(215,230,230,0.35); }

/* Definitionsliste (Steckbrief) */
.facts { display: grid; grid-template-columns: 1fr; margin: 1.5rem 0; font-family: var(--font-ui); border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- Startseite ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--ink) url("../../images/hero-klempowsee.jpg") 72% center/cover no-repeat;
  min-height: min(72vh, 560px);
  display: flex; align-items: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,48,58,0.15) 0%, rgba(16,48,58,0.35) 45%, rgba(16,48,58,0.92) 100%);
}
.hero .wrap { padding-block: 4rem 2.5rem; }
.hero-title {
  font-family: var(--font-ui); font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.3rem, 1rem + 6.5vw, 6rem); line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 1rem; max-width: 14ch;
}
.hero-sub { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 52ch; margin: 0 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .btn { background: var(--signal); color: var(--ink); }
.hero .btn:hover { background: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }

.home-grid { display: grid; gap: var(--gap); padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; } }

.dates {
  background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--signal);
  border-radius: 0 0 var(--radius) var(--radius); padding: 1.3rem 1.3rem 1rem;
  font-family: var(--font-ui);
}
.dates h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.dates ol { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.9rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.date-badge { text-align: center; background: var(--ink); color: #fff; border-radius: 4px; padding: 0.35rem 0; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.45rem; font-weight: 800; }
.date-badge span { font-size: 0.78rem; }
.dates .meta { font-size: 0.9rem; color: var(--muted); }
.dates .foot { font-size: 0.9rem; margin: 0.8rem 0 0; color: var(--muted); }

.split { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; color: #fff; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat;
  isolation: isolate; padding: 1.4rem;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(16,48,58,0.92)); }
.tile.drachen { border-bottom: 6px solid var(--dragon); }
.tile.segeln { border-bottom: 6px solid var(--signal); }
.tile h3 { font-size: 1.7rem; font-stretch: 115%; margin: 0 0 0.3rem; }
.tile p { margin: 0; font-family: var(--font-ui); font-size: 0.98rem; opacity: 0.92; }
.tile:hover { color: #fff; }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.band { background: var(--mist); padding-block: clamp(2rem, 5vw, 3.5rem); }
.band h2 { margin-top: 0; }

.quicklinks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.4rem; }
.quicklinks a {
  display: block; text-decoration: none; background: #fff; color: var(--ink);
  padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line);
  font-family: var(--font-ui);
}
.quicklinks a strong { display: block; font-size: 1.08rem; margin-bottom: 0.2rem; }
.quicklinks a span { font-size: 0.92rem; color: var(--muted); }
.quicklinks a:hover { border-color: var(--ink); }

.embed { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Nachrichten / Artikel ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.8rem; font-family: var(--font-ui); }
.filter button {
  font: 600 0.92rem var(--font-ui); background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.post { padding: 0 0 2.2rem; margin: 0 0 2.2rem; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post h2 { margin: 0.2rem 0 0.7rem; font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.7rem); }
.post-date { font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; color: var(--accent, var(--lake)); }
.post .prose { max-width: var(--measure); }
.post[hidden] { display: none; }

.results { list-style: none; padding: 0; margin: 0.6rem 0 1rem; font-family: var(--font-ui); font-size: 0.97rem; }
.results li { padding: 0.35rem 0; border-bottom: 1px dotted var(--line); }
.results b { display: inline-block; min-width: 9rem; }

.agenda { font-family: var(--font-ui); font-size: 0.97rem; }
.agenda h4 { margin-bottom: 0.3rem; }
.agenda ol { margin-top: 0; }

.docs { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; font-family: var(--font-ui); }
.docs a {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem;
}
.docs a::before {
  content: "PDF"; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--dragon);
  padding: 0.2rem 0.4rem; border-radius: 3px;
}
.docs a.video::before { content: "MP4"; background: var(--lake); }
.docs a.img::before { content: "BILD"; background: var(--lake); }
.docs a:hover { border-color: var(--ink); }

/* ---------- Galerie + Lightbox ---------- */
.gallery {
  display: grid; gap: 6px; margin: 1.2rem 0;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.04); }

.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 1.2rem 0; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

.lightbox {
  border: 0; padding: 0; background: rgba(8, 24, 29, 0.96); color: #fff;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(8,24,29,0.9); }
.lb-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 3.5rem 0.5rem 4rem; }
.lb-inner img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
  font: 700 1.1rem var(--font-ui); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
}
.lb-btn:hover { background: var(--signal); color: var(--ink); }
.lb-close { top: 0.7rem; right: 0.7rem; }
.lb-prev { left: 0.7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.7rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; font-family: var(--font-ui); font-size: 0.9rem; opacity: 0.8; }

/* Album-Liste */
.albums { list-style: none; margin: 1.2rem 0; padding: 0; columns: 1; column-gap: 2rem; font-family: var(--font-ui); }
@media (min-width: 640px) { .albums { columns: 2; } }
.albums li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.8rem; align-items: baseline; }
.albums .yr { font-weight: 800; color: var(--accent, var(--lake)); min-width: 3rem; font-variant-numeric: tabular-nums; }
.albums a { text-decoration: none; color: var(--ink); }
.albums a:hover { text-decoration: underline; }

/* Zeitleiste Geschichte */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0; border-left: 3px solid var(--lake-soft); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 0.45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--signal); border: 2px solid var(--paper); }
.timeline .yr { font-family: var(--font-ui); font-weight: 800; font-size: 1.05rem; display: block; color: var(--lake); }

/* Seenkette-Grafik */
.lakes { margin: 1.5rem 0; background: var(--mist); border-radius: var(--radius); padding: 1rem; }
.lakes svg { width: 100%; height: auto; max-height: 520px; }

/* Kontakt-Karten */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.2rem 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; font-family: var(--font-ui); font-size: 0.97rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p:last-child { margin-bottom: 0; }

/* Vorstand */
.board { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); font-family: var(--font-ui); }
.board li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lake); border-radius: var(--radius); padding: 0.9rem 1rem; }
.board li.dr { border-left-color: var(--dragon); }
.board span { display: block; font-size: 0.88rem; color: var(--muted); }
.board strong { font-size: 1.1rem; }

/* Satzung */
.statute section { margin-bottom: 1.4rem; }
.statute h2 { font-size: 1.25rem; margin-top: 2rem; }
.statute .num { font-family: var(--font-ui); font-weight: 700; color: var(--lake); margin-right: 0.35rem; }
.toc { font-family: var(--font-ui); background: var(--mist); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 2rem; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe8e7; margin-top: 3rem; font-family: var(--font-ui); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; padding-block: 2.8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 0.7rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand .pennant { width: 104px; height: auto; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); transform-origin: left center; transition: transform 0.4s ease; }
.site-footer:hover .footer-brand .pennant { transform: rotate(-3deg); }
.footer-brand h2 { margin: 0; line-height: 1.25; }
.footer-brand .since { display: block; font-size: 0.82rem; color: var(--signal); margin-top: 0.25rem; letter-spacing: 0.02em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-block: 1rem; font-size: 0.85rem; opacity: 0.8; }
.footer-bottom .wrap { grid-template-columns: none; }

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--signal); color: var(--ink); font: 800 1.2rem var(--font-ui);
  box-shadow: 0 6px 18px rgba(16,48,58,0.3);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

@media print {
  .site-header, .site-footer, .subnav, .to-top, .filter { display: none !important; }
  .page-head { background: none; color: #000; }
  .page-head::before { display: none; }
}

a.card { display: block; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--ink); }
a.card img { border-radius: 4px; }
.lead-in { font-size: 1.15rem; }

/* Listen mit eigenem Layout nicht einrücken */
.prose ul.board, .prose ul.docs, .prose ul.albums, .prose ul.results, .prose ol.results, .prose ol.timeline { padding-left: 0; }
.prose ol.timeline { padding-left: 0; }

/* Mobile: Termine zuerst, Unternavigation und Jahresfilter als Wischleiste */
@media (max-width: 899px) {
  .home-grid .dates { order: -1; }
  .hero { min-height: 62vh; }
}
@media (max-width: 999px) {
  .subnav h2 { display: none; }
  .subnav ul, .filter {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-inline: calc(-1 * var(--gap)); padding-inline: var(--gap); padding-bottom: 2px;
  }
  .subnav ul::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
  .subnav a, .filter button { white-space: nowrap; flex: none; }
  .layout.has-aside { gap: 1.2rem; }
}
.layout { grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }

/* Zwei-Klick-Einbettung */
.embed.consent { background: var(--mist); border-style: dashed; }
.consent-box { padding: 1.4rem; font-family: var(--font-ui); font-size: 0.95rem; max-width: 60ch; }
.consent-box p { margin: 0 0 0.7rem; }
.consent-box p:last-child { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.consent-box button.btn { border: 0; cursor: pointer; }

/* Album-Übersicht mit Vorschaubild */
.album-grid { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); font-family: var(--font-ui); }
@media (min-width: 720px) { .album-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.album-grid a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.album-grid a:hover { border-color: var(--ink); }
.album-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.album-grid .yr { font-size: 0.8rem; font-weight: 800; color: var(--accent, var(--lake)); padding: 0.5rem 0.75rem 0; }
.album-grid strong { font-size: 0.98rem; line-height: 1.25; padding: 0 0.75rem; }
.album-grid .count { font-size: 0.82rem; color: var(--muted); padding: 0 0.75rem 0.7rem; margin-top: auto; }

/* Blättern zwischen Alben */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.8rem; align-items: center; margin: 2rem 0 0; font-family: var(--font-ui); font-size: 0.95rem; }
.pager a { text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager .up { background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 999px; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr 1fr; } .pager .up { grid-column: 1 / -1; grid-row: 1; text-align: center; } }

/* Archivseiten (übernommene Altinhalte) */
.archive img { display: inline-block; vertical-align: top; max-width: min(100%, 480px); height: auto; border-radius: 4px; margin: 4px 6px 4px 0; }
.archive td img { max-width: 160px; }
.archive p:has(> a > img) { display: flex; flex-wrap: wrap; gap: 6px; }
.archive h3 { margin-top: 1.6em; }
.archive table { font-size: 0.93rem; }
.archive video { width: 100%; max-width: 720px; border-radius: 4px; background: #000; }

/* Live-Termine */
.dates .dates-msg { display: block; color: var(--muted); font-size: 0.95rem; }
.dates li.later { grid-template-columns: 4.2rem 1fr; position: relative; padding-top: 1.9rem; }
.dates .later-label { position: absolute; top: 0.7rem; left: 0; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lake); }
.dates strong a { color: inherit; }

/* Startseite: Links zu den Nachrichten mit Vorschaubild */
.news-links { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; font-family: var(--font-ui); }
.news-links a { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 0.5rem 0.9rem 0.5rem 0.5rem; }
.news-links li.dr a { border-left-color: var(--dragon); }
.news-links a:hover { border-color: var(--ink); }
.news-links img { width: 76px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.news-links span { display: flex; flex-direction: column; line-height: 1.3; }
.news-links strong { font-size: 1rem; }
.news-links small { font-size: 0.85rem; color: var(--muted); }
.docs a.web::before { content: "WEB"; background: var(--lake); }

/* Steckbrief-Tabellen: Spaltenbreite richtet sich nach der längsten Bezeichnung */
.facts dt { overflow-wrap: anywhere; hyphens: auto; }
.facts div { grid-template-columns: minmax(0, 14rem) 1fr; column-gap: 1.5rem; }
@supports (grid-template-columns: subgrid) {
  .facts { grid-template-columns: max-content 1fr; column-gap: 1.5rem; }
  .facts div { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 1.5rem; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Tagesordnung mit Unterpunkten 2.1, 2.2 … */
.agenda-list { counter-reset: top; list-style: none; padding-left: 0 !important; font-family: var(--font-ui); }
.agenda-list > li { counter-increment: top; position: relative; padding: 0.55rem 0 0.55rem 2.6rem; border-bottom: 1px solid var(--line); }
.agenda-list > li::before { content: counter(top) "."; position: absolute; left: 0; font-weight: 800; color: var(--lake); }
.agenda-list ol { counter-reset: sub; list-style: none; padding-left: 0 !important; margin: 0.4rem 0 0; }
.agenda-list ol li { counter-increment: sub; position: relative; padding: 0.2rem 0 0.2rem 2.6rem; margin-left: -2.6rem; }
.agenda-list ol li::before { content: counter(top) "." counter(sub); position: absolute; left: 0; font-weight: 700; color: var(--muted); }
.invite-img { max-width: 420px; margin-top: 2rem; }
.invite-img img { border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 14px rgba(16,48,58,0.12); }

/* Lange deutsche Wörter in Überschriften sauber trennen */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.banner-full { margin: 1.5rem 0; } .banner-full img { width: 100%; max-width: 538px; height: auto; border-radius: 4px; }
.board small { display: block; font-size: 0.88rem; color: var(--lake); font-weight: 600; margin-top: 0.15rem; }
.team-photo { margin: 0 0 1.8rem; } .team-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(16,48,58,0.15); }
.footer-bottom .besucher b { color: var(--signal); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Startseite: „Wassersportfreunde“ immer in einer Zeile, Größe passt sich der Breite an */
.hero-title { max-width: none; font-stretch: 115%; font-size: min(5.6rem, calc((100vw - 2 * var(--gap)) / 11.8)); hyphens: none; -webkit-hyphens: none; }
.hero-title span { display: block; white-space: nowrap; }
@media (max-width: 699px) {
  .hero-title { font-stretch: 100%; font-size: calc((100vw - 2 * var(--gap)) / 10.4); }
}
