/* Qvelos – Fahrradgruppe Quickborn
   Stil nach dem Vorbild des WordPress-Themes „Mesmerize“: Titelbild mit Farbverlauf, Welle als
   Übergang, zentrierte Abschnittstitel, runde Symbole, weiße Karten mit Schatten, Zahlenband.
   Schrift Mulish. Farben aus dem Logo: Blau #0B42A3 (Verlauf, Links), Rot #F70D1C (Knöpfe). */

@font-face {
  font-family: "Mulish"; font-weight: 200 900; font-style: normal; font-display: swap;
  src: url("../fonts/mulish-latin-variable.woff2") format("woff2");
}

:root {
  --ink:       #1F2737;  /* Überschriften */
  --ink-soft:  #5B6575;  /* Fließtext */
  --paper:     #FFFFFF;
  --plate:     #FFFFFF;
  --mist:      #F5F7FB;  /* getönte Abschnitte */
  --mist-dk:   #E9EEF6;
  --line:      #E3E8F0;
  --blue:      #0B42A3;  /* Logo-Blau */
  --blue-dk:   #082F78;
  --blue-lt:   #1E88E5;
  --blue-bg:   #EAF1FC;
  --red:       #F70D1C;  /* Logo-Rot */
  --red-dk:    #D50B19;
  --signal:    #D50B19;  /* Fehler */
  --signal-dk: #A80814;
  --ok:        #1E7A3C;
  --night:     #171D2B;  /* Fuß */
  --blue-fill: #0B42A3;  /* Blau als Fläche mit weißer Schrift */
  --on-ink:    #FFFFFF;  /* Schrift auf Flächen in Tintenfarbe */
  --ink-hover: #000000;
  --amber:     #A15C07;
  --amber-bg:  #FCF0DF;
  --green-bg:  #E9F6EE;
  --rose:      #B8323F;
  --rose-bg:   #FBEBEC;
  --field-line: #C9D2E0;
  --glass:     rgba(255,255,255,.96);  /* Kachel über dem Titelbild */
  --map-ink:   #1F2737;  /* Zielpunkt auf der (immer hellen) Karte */
  color-scheme: light;

  --sans:    "Mulish", "Segoe UI", system-ui, sans-serif;
  --display: var(--sans);
  --sign:    var(--sans);

  --s-1: 0.875rem;
  --s0:  1.0625rem;
  --s1:  1.25rem;
  --s2:  1.5rem;
  --s3:  2rem;
  --s4:  2.6rem;
  --s5:  3.4rem;

  --radius:    6px;
  --radius-sm: 4px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --measure: 66ch;
  --header-h: 5.25rem;
  --cta-width: 10rem;  /* Newsletter-Knopf und Kachel „Nächste Tour“ gleich breit */
  --shadow:    0 10px 30px rgba(23,29,43,.08);
  --shadow-lg: 0 20px 45px rgba(23,29,43,.14);
  /* Verlauf über Bildern (leicht durchsichtig) und als Fläche (deckend) */
  --grad-over:  linear-gradient(100deg, rgba(8,47,120,.28) 0%, rgba(11,66,163,.14) 50%, rgba(30,136,229,0) 100%);
  --grad-solid: linear-gradient(100deg, #082F78 0%, #0B42A3 45%, #1E88E5 100%);
}

/* Dunkle Darstellung: folgt der Systemeinstellung, außer jemand wählt im Fuß „Hell“ oder „Dunkel“ (assets/js/theme.js).
   Komponenten nutzen nur die Farb-Variablen; hier werden allein diese umgestellt. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #E9EDF5;
    --ink-soft:  #AEB7C7;
    --paper:     #0F141D;
    --plate:     #19202D;
    --mist:      #141A25;
    --mist-dk:   #222B3B;
    --line:      #2A3446;
    --blue:      #8DB3FA;
    --blue-dk:   #B4CDFC;
    --blue-lt:   #5B9BF0;
    --blue-bg:   #1A2A47;
    --red:       #F70D1C;
    --red-dk:    #D50B19;
    --signal:    #FF6B74;
    --signal-dk: #FF8F96;
    --ok:        #5CC985;
    --night:     #0A0E15;
    --blue-fill: #2A55B0;
    --on-ink:    #0F141D;
    --ink-hover: #FFFFFF;
    --amber:     #E8A54B;
    --amber-bg:  #2E2414;
    --green-bg:  #16291E;
    --rose:      #F28B95;
    --rose-bg:   #34191D;
    --field-line: #3A4559;
    --glass:     rgba(25,32,45,.96);
    --shadow:    0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 20px 45px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink:       #E9EDF5;
  --ink-soft:  #AEB7C7;
  --paper:     #0F141D;
  --plate:     #19202D;
  --mist:      #141A25;
  --mist-dk:   #222B3B;
  --line:      #2A3446;
  --blue:      #8DB3FA;
  --blue-dk:   #B4CDFC;
  --blue-lt:   #5B9BF0;
  --blue-bg:   #1A2A47;
  --red:       #F70D1C;
  --red-dk:    #D50B19;
  --signal:    #FF6B74;
  --signal-dk: #FF8F96;
  --ok:        #5CC985;
  --night:     #0A0E15;
  --blue-fill: #2A55B0;
  --on-ink:    #0F141D;
  --ink-hover: #FFFFFF;
  --amber:     #E8A54B;
  --amber-bg:  #2E2414;
  --green-bg:  #16291E;
  --rose:      #F28B95;
  --rose-bg:   #34191D;
  --field-line: #3A4559;
  --glass:     rgba(25,32,45,.96);
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 45px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.7;
}
body > main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* auch bei Knöpfen mit eigener display-Angabe */

h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: var(--s1); }

p { margin: 0 0 1em; }
strong { color: var(--ink); }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--plate); color: var(--ink); padding: 0.6rem 1rem; z-index: 40; border-radius: var(--radius); box-shadow: var(--shadow); }
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------ Kopf
   Normal weiß. Auf der Startseite und über farbigen Seitenköpfen durchsichtig mit weißer Schrift,
   sobald gescrollt wird wieder weiß (Klasse is-stuck aus site.js). */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--plate); box-shadow: 0 1px 0 var(--line);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.admin .site-header { position: relative; }
.header-inner { display: flex; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; min-height: var(--header-h); padding-block: 0.6rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; flex: none; }
.brand-logo { width: clamp(9rem, 15.6vw, 11.4rem); height: auto; }
/* Weißer Schein entlang der Logoform, damit es sich vom Titelbild abhebt (Hintergrund bleibt durchsichtig) */
.is-home .site-header:not(.is-stuck) .brand-logo,
.is-sub:has(.page-head) .site-header:not(.is-stuck) .brand-logo {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(255,255,255,.8)) drop-shadow(0 0 10px rgba(255,255,255,.55));
}
/* Im Dunkeln immer mit Schein, damit die blaue Schrift lesbar bleibt */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(255,255,255,.8)) drop-shadow(0 0 10px rgba(255,255,255,.55)); }
}
:root[data-theme="dark"] .brand-logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(255,255,255,.8)) drop-shadow(0 0 10px rgba(255,255,255,.55)); }
.brand-name { font-weight: 700; font-size: var(--s1); color: var(--ink); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: inline-block; padding: 0.5rem 0;
  color: var(--ink); text-decoration: none;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 200ms ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Kleiner Umschalter hell/dunkel, zwischen Menü und Newsletter-Knopf; auf dem Handy links neben „Menü“ */
.theme-toggle {
  order: 1; flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 0.6; cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .i-sun, .theme-toggle.is-dark .i-moon { display: none; }
.theme-toggle.is-dark .i-sun { display: block; }
.site-header .theme-toggle { color: var(--ink); }
.is-home .site-header:not(.is-stuck) .theme-toggle,
.is-sub:has(.page-head) .site-header:not(.is-stuck) .theme-toggle { color: #fff; }
@media (max-width: 60rem) {
  .js .theme-toggle { order: 0; margin-left: auto; }
  .js .theme-toggle:not([hidden]) + .nav-toggle { margin-left: 0; }
}
.header-cta { order: 2; flex: none; min-height: 2.5rem; padding: 0.5rem 1rem; width: var(--cta-width); }

.nav-toggle {
  display: none; margin-left: auto;
  font: 700 0.8rem / 1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink); background: transparent; border: 2px solid currentColor; border-radius: 999px;
  padding: 0.65rem 1.1rem; cursor: pointer;
}

/* Durchsichtige Variante über Bild oder Verlauf */
.is-home .site-header:not(.is-stuck),
.is-sub:has(.page-head) .site-header:not(.is-stuck) { background: transparent; box-shadow: none; }
.is-home .site-header:not(.is-stuck) .site-nav a,
.is-sub:has(.page-head) .site-header:not(.is-stuck) .site-nav a,
.is-home .site-header:not(.is-stuck) .nav-toggle,
.is-sub:has(.page-head) .site-header:not(.is-stuck) .nav-toggle { color: #fff; }
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(23,29,43,.1); }

@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-block; }
  .js .header-cta { display: none; }
  .js .site-nav { display: none; width: 100%; margin: 0; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem; margin-bottom: 0.5rem; background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 0.85rem 0; }
  .site-nav a::after { display: none; }
  .is-home .site-header .site-nav a, .is-sub .site-header .site-nav a { color: var(--ink) !important; }
  .site-nav a[aria-current="page"] { color: var(--red) !important; }
}

/* ------------------------------------------------------------ Knöpfe */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.75rem;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 999px;
  font: 700 0.8rem / 1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.button:hover { background: var(--red-dk); border-color: var(--red-dk); color: #fff; box-shadow: 0 8px 20px rgba(247,13,28,.28); text-decoration: none; }
.button-quiet { background: transparent; color: var(--blue); border-color: var(--blue); }
.button-quiet:hover { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; box-shadow: 0 8px 20px rgba(11,66,163,.25); }
.button-light { background: transparent; color: #fff; border-color: #fff; }
.button-light:hover { background: #fff; border-color: #fff; color: var(--blue-fill); box-shadow: none; }
.button-white { background: #fff; color: #0B42A3; border-color: #fff; }
.button-white:hover { background: #F5F7FB; border-color: #F5F7FB; color: #082F78; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
button.button { padding-inline: 1.75rem; }
@media (prefers-reduced-motion: reduce) { .button, .site-header, .site-nav a::after { transition: none; } }

.round-button {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--plate); color: var(--blue); border: 2px solid var(--blue); cursor: pointer;
}
.round-button:hover { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
.round-button:disabled { opacity: 0.35; cursor: default; background: var(--plate); color: var(--blue); }
.round-button svg { width: 1.1rem; height: 1.1rem; }

.link-quiet { color: var(--ink); font-weight: 700; }

/* Welle am unteren Rand farbiger Flächen */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(2rem, 4.5vw, 4rem); color: var(--paper); pointer-events: none; z-index: 1; }

/* ------------------------------------------------------------ Startseite: Titelbild */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: clamp(24rem, 62vh, 36rem);
  display: grid; align-items: center;
  padding-block: calc(var(--header-h) + 1.5rem) clamp(4rem, 8vw, 6rem);
  background: #24345A center / cover;  /* Standbild des gewählten Videos setzt index.php */
  color: #fff; text-align: left;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* leichter Farbschleier, dazu eine weiche Abdunklung hinter dem Text, damit er lesbar bleibt */
  background: radial-gradient(50% 45% at 22% 25%, rgba(10,20,45,.32), transparent 75%), var(--grad-over);
}
/* Text links, Kachel „Nächste Tour“ rechts (rechte Kante wie der Newsletter-Knopf der Kopfleiste) */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) var(--cta-width); align-items: start; gap: 2rem clamp(2rem, 5vw, 4rem); text-align: left; }
.hero-content { max-width: 40rem; text-shadow: 0 1px 3px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.25); }
.hero-kicker { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.75rem; opacity: 0.9; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.75rem); margin-bottom: 0; }
.hero-next {
  position: relative; justify-self: end; width: var(--cta-width); padding: 0.9rem 0.9rem 0.85rem; text-align: left;
  background: var(--glass); color: var(--ink-soft); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.hero-next:hover { transform: translateY(-3px); }
.hero-next:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.hero-next-label { margin: 0 0 0.6rem; color: var(--red); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-next-date {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 2.9rem; padding: 0.35rem 0.4rem; margin-bottom: 0.65rem;
  border-radius: var(--radius-sm); background: var(--red); color: #fff;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.1;
}
.hero-next-date span { font-size: 1.35rem; letter-spacing: 0; line-height: 1; }
.hero-next-title { margin: 0 0 0.45rem; font-size: 0.95rem; line-height: 1.25; hyphens: auto; }
.hero-next-title a { color: var(--ink); text-decoration: none; }
.hero-next-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.hero-next-title a:focus-visible { outline: none; }
.hero-next-meta { margin: 0 0 0.3rem; font-size: 0.78rem; line-height: 1.4; }
.hero-next .card-more { margin-top: 0.5rem; font-size: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .hero-next { transition: none; } .hero-next:hover { transform: none; } }
/* Nur auf dem Handy untereinander, weiterhin linksbündig */
@media (max-width: 40rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-next { justify-self: start; width: 12rem; }
}
.hero :focus-visible { outline-color: #fff; }

.video-toggle { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); bottom: clamp(2.5rem, 5vw, 4.5rem); border-color: #fff; background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 40rem) { .video-toggle { left: auto; right: 1rem; } }  /* auf dem Handy steht links die Kachel */
.video-toggle:hover { background: #fff; color: #0B42A3; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: inline; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ------------------------------------------------------------ Abschnitte */

.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-tint { background: var(--mist); }

.section-intro { text-align: center; max-width: 36rem; margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem); }
.section-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 0.75rem; }
.section-intro h2::after { content: ""; display: block; width: 2.75rem; height: 3px; margin: 0.6rem auto 0; border-radius: 3px; background: var(--red); }
.section-intro p { margin: 0; font-size: var(--s0); line-height: 1.6; font-weight: 300; }
.section-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.section-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2.5rem 0 0; }

.eyebrow { color: var(--red); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.75rem; }

/* Drei Schwerpunkte mit runden Symbolen */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); text-align: left; }
.features li { padding: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 5rem; height: 5rem; margin-bottom: 1.5rem; border-radius: 50%;
  background: var(--blue-bg); color: var(--blue); transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.feature-icon svg { width: 2.1rem; height: 2.1rem; }
.features li:hover .feature-icon { background: var(--tone); color: var(--paper); transform: translateY(-4px); }
/* Eine dezente Farbe je Thema, auf allen Seiten gleich: heller Kreis, kräftigeres Symbol */
.feature-icon { --tone: var(--blue); --tone-bg: var(--blue-bg); background: var(--tone-bg); color: var(--tone); }
.tone-blue  { --tone: #0B42A3; --tone-bg: #EAF1FC; }  /* Wer wir sind */
.tone-amber { --tone: #A15C07; --tone-bg: #FCF0DF; }  /* Radverkehrskonzepte (wie Wegweiser) */
.tone-red   { --tone: #B8323F; --tone-bg: #FBEBEC; }  /* Inklusion */
.tone-green { --tone: #2F7D46; --tone-bg: #E6F3EA; }  /* Natur */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-blue  { --tone: #8DB3FA; --tone-bg: #1A2A47; }
  :root:not([data-theme="light"]) .tone-amber { --tone: #E8A54B; --tone-bg: #2E2414; }
  :root:not([data-theme="light"]) .tone-red   { --tone: #F28B95; --tone-bg: #34191D; }
  :root:not([data-theme="light"]) .tone-green { --tone: #6CCB8A; --tone-bg: #16291E; }
}
:root[data-theme="dark"] .tone-blue  { --tone: #8DB3FA; --tone-bg: #1A2A47; }
:root[data-theme="dark"] .tone-amber { --tone: #E8A54B; --tone-bg: #2E2414; }
:root[data-theme="dark"] .tone-red   { --tone: #F28B95; --tone-bg: #34191D; }
:root[data-theme="dark"] .tone-green { --tone: #6CCB8A; --tone-bg: #16291E; }
.features h3 { font-size: var(--s1); margin-bottom: 0.5rem; }
.features p { margin: 0; }
@media (max-width: 64rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .features { grid-template-columns: 1fr; } }

/* Kartenreihe der nächsten Touren */
.card-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.75rem) / 4);
  gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.5rem 0.5rem 2rem; margin: -0.5rem -0.5rem -2rem; list-style: none;
}
.card-row::-webkit-scrollbar { display: none; }
@media (max-width: 64rem) { .card-row { grid-auto-columns: calc((100% - 1.75rem) / 2.15); } }
@media (max-width: 40rem) { .card-row { grid-auto-columns: 82%; } }

.card {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow 250ms ease, transform 250ms ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 16 / 11; background: var(--grad-solid); overflow: hidden; }
.card-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card-media :is(img, video) { transform: scale(1.05); }
.card-date {
  position: absolute; left: 1rem; top: 1rem; display: flex; flex-direction: column; align-items: center;
  min-width: 3.5rem; padding: 0.45rem 0.5rem; border-radius: var(--radius-sm);
  background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.1;
}
.card-date span { font-size: 1.6rem; letter-spacing: 0; line-height: 1; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.card-meta { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: var(--s-1); }
.card-title { font-size: var(--s1); line-height: 1.3; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-text { margin: 0 0 1rem; font-size: var(--s-1); }
.card-more {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto;
  color: var(--blue); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
}
.card-more svg { width: 0.9rem; height: 0.9rem; transition: transform 200ms ease; }
.card:hover .card-more svg { transform: translateX(4px); }
.card:focus-within { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
.card-title a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .card, .card-media img, .card-more svg, .feature-icon { transition: none; } .card:hover, .features li:hover .feature-icon { transform: none; } }

/* Über uns: links Überschrift, rechts Text (wie „Wofür wir uns einsetzen“) */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem clamp(2rem, 5vw, 4rem); align-items: start; }
.about-split h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.about-split h2::after { content: ""; display: block; width: 2.75rem; height: 3px; margin-top: 0.6rem; border-radius: 3px; background: var(--red); }
.about-split p:not(.eyebrow) { font-size: var(--s1); line-height: 1.55; font-weight: 300; }
.about-split .button { margin-top: 0.5rem; }
@media (max-width: 52rem) { .about-split { grid-template-columns: 1fr; } }

/* Zahlenband */
.stats { background: var(--grad-solid); color: #fff; padding-block: clamp(1.1rem, 2.5vw, 1.6rem); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem 1.5rem; text-align: center; }
.stats-list li { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.95; }
@media (max-width: 40rem) { .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats-list strong { display: block; color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: 0; line-height: 1.1; margin-bottom: 0.15rem; font-variant-numeric: tabular-nums; }

/* Beiträge: Neuigkeiten und letzte Tour */
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.post { display: flex; flex-direction: column; background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 250ms ease; }
.post:hover { box-shadow: var(--shadow-lg); }
.post-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 1.5rem 1.5rem 1.75rem; }
.post h3 { font-size: var(--s1); line-height: 1.3; margin-bottom: 0.6rem; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--blue); }
.post p:last-child { margin: 0; font-size: var(--s-1); }

.meta { color: var(--red); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }

/* Aufruf am Ende */
.cta { background: var(--grad-solid); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; }
.cta h2 { color: #fff; margin-bottom: 0.4rem; }
.cta p { margin: 0; font-size: var(--s1); font-weight: 300; }
.cta :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------ Unterseiten
   Seitenkopf als farbiges Band mit Welle, über die volle Breite. */

.page-head {
  position: relative; text-align: center; color: #fff;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 5vw, 4rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-image: var(--grad-solid) fill 0 / / 0 100vw;
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.4em; }
/* Infotext über die volle Inhaltsbreite */
.page-head .lead { max-width: none; margin: 0 auto; font-size: clamp(1.02rem, 2vw, 1.25rem); }
.page-head a { color: #fff; }
.page-head :focus-visible { outline-color: #fff; }
.page-head::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 100vw; height: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180 30 360 30 540 8S900 10 1080 20s270 40 360 46v24H0z' fill='white'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180 30 360 30 540 8S900 10 1080 20s270 40 360 46v24H0z' fill='white'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.is-sub:has(.page-head) .page-head { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(1rem, 2.5vw, 1.75rem)); }
/* Schlichte Variante ohne blaues Band (Anmeldung anpassen, Stornieren) */
.page-plain { padding-block: clamp(2rem, 5vw, 3.5rem) 3rem; }
.page-plain h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-plain .booking-done { margin-bottom: 1.5rem; }

.lead { font-size: var(--s1); font-weight: 300; line-height: 1.55; max-width: 46ch; }
.empty { padding: 1.5rem 0 3rem; max-width: var(--measure); }
.section .empty { margin-inline: auto; text-align: center; }
.prose p { max-width: var(--measure); }
/* Listen, fett und kursiv aus der Formatierung der Textfelder */
:is(.prose, .access, .event-rules) :is(ul, ol) { max-width: var(--measure); margin: 0 0 1em; padding-left: 1.35rem; }
:is(.prose, .access, .event-rules) li + li { margin-top: 0.3em; }
:is(.prose, .access, .event-rules) li::marker { color: var(--red); }
:is(.prose) strong { color: var(--ink); }
.back { margin-bottom: 1.25rem; }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid var(--ok); background: var(--mist); margin-top: 1.5rem; color: var(--ink); }
.notice-error { border-left-color: var(--signal); }
.notice-preview { border-left-color: var(--amber); background: var(--amber-bg); }

/* Termine */
/* Kachel-Übersicht */
.card-grid { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.card-grid .card-title { font-size: var(--s1); }
.card-seats { margin: 0 0 1rem; font-size: var(--s-1); font-weight: 700; color: var(--ok); }
.card-seats.is-full { color: var(--signal); }

/* Popup (Termine, Themen auf „Über uns“) */
.modal {
  width: min(52rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
  color: var(--ink-soft);
}
.modal::backdrop { background: rgba(23,29,43,.65); backdrop-filter: blur(3px); }
.modal .event { box-shadow: none; border-radius: 0; padding-top: clamp(2.5rem, 4vw, 3rem); }
.dialog-close { position: sticky; top: 0.75rem; float: right; margin: 0.75rem 0.75rem -3.5rem 0; z-index: 2; background: var(--plate); }
body:has(.modal[open]) { overflow: hidden; }
/* Termin im Popup: Datum | Bild | Tourdaten, darunter Buchen und Beschreibung über Bild und Tourdaten */
.modal:has(.event) { width: min(70rem, calc(100% - 2rem)); }
@media (min-width: 56rem) {
  .modal .event { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem 2rem; padding: 2rem 2rem 1.75rem; }
  .modal .event-date { grid-column: 1; grid-row: 1 / span 2; }
  .modal .event-body { display: contents; }
  .modal .event-body > * { grid-column: 2 / -1; margin: 0; max-width: none; }
  .modal .event-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); padding-right: 3.5rem; }
  .modal .event-image { grid-column: 2; aspect-ratio: 3 / 2; }
  .modal .event-image + .facts { grid-column: 3; align-self: start; }
  .modal .facts dt, .modal .facts dd { padding-block: 0.45rem; }
  .modal .facts div:first-child > * { padding-top: 0; }
  .modal .prose p { max-width: none; }
  .modal .booking { margin-block: 0.75rem; }  /* zusammen mit dem Rasterabstand 2rem über und unter dem Knopf */
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: dialog-in 200ms ease-out; }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.events { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: 2rem; }
.event {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius);
  background: var(--plate); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.event-date {
  display: flex; flex-direction: column; align-items: center; align-self: start;
  padding: 0.8rem 0; margin: 0; border-radius: var(--radius);
  background: var(--red); color: #fff; line-height: 1;
}
.event-weekday, .event-month { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.event-day { font-size: var(--s4); font-weight: 800; margin-block: 0.25rem; }
.event-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1.25rem; }
.event-image { width: 100%; max-width: 46rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0 0 1.5rem; max-width: 46rem; }
.facts div { display: contents; }
.facts dt, .facts dd { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 1.5rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Barrierefreiheit und Verhaltensregeln als Kleingedrucktes in farbigen Kästen unter der Beschreibung */
.access, .event-rules {
  max-width: var(--measure); padding: 0.85rem 1.1rem; border-radius: var(--radius);
  font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft);
}
.access { background: var(--blue-bg); border-left: 4px solid var(--blue); }
.event-rules { background: var(--amber-bg); border-left: 4px solid var(--amber); }  /* Themenfarbe Bernstein */
.access h3, .event-rules h3 {
  margin-bottom: 0.3rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
:is(.access, .event-rules) p { margin-bottom: 0.5em; }
:is(.access, .event-rules) p:last-child { margin-bottom: 0; }
.access strong, .event-rules strong { color: inherit; }
/* Im Popup über die volle Breite wie die Beschreibung */
.modal .event-rules, .modal .access { max-width: none; }
.event-notes { margin: 1.5rem 0 0.5rem; display: grid; gap: 1rem; }
.event-notes > * { margin: 0; }
/* Beide Hinweise nebeneinander, sobald genug Platz ist, sonst untereinander */
.event-notes-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); max-width: calc(2 * var(--measure)); }
.event-notes-two > * { max-width: none; }

.booking { margin-block: 2rem; max-width: 46rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.booking > p { margin: 0; }
.booking-left { font-size: var(--s-1); color: var(--ink-soft); }
/* Reservieren-Knopf in einer kompakten Box mit dem Hinweis „Du bleibst flexibel“ */
.booking-box { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; padding: 0.85rem 1rem 0.85rem 1.1rem; border-radius: var(--radius); background: var(--green-bg); border-left: 4px solid var(--ok); }
.booking-box-text { flex: 1 1 16rem; margin: 0; font-size: var(--s-1); line-height: 1.5; }
.booking-box-text strong { color: var(--ink); }
.booking-box-action { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.booking-box .booking-open { min-height: 2.5rem; padding: 0.55rem 1.3rem; }
.booking-box .booking-left { font-size: 0.75rem; }
.booking-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.booking-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.booking-row input { flex: 1 1 16rem; }

input[type="email"], input[type="text"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="url"], textarea, select {
  font: inherit; color: var(--ink);
  min-height: 3rem; padding: 0.6rem 1rem;
  background: var(--plate);
  border: 1px solid var(--field-line); border-radius: var(--radius);
}
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--blue); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--signal); }

.hint { color: var(--ink-soft); font-size: var(--s-1); margin-top: 0.6rem; }
.field-error { color: var(--signal); font-weight: 700; margin: 0.6rem 0 0; }

/* Buchung im eigenen Popup */
.modal:has(.booking-popup) { width: min(36rem, calc(100% - 2rem)); }
.booking-popup { padding: clamp(1.5rem, 4vw, 2.25rem); padding-right: clamp(3.5rem, 6vw, 4.5rem); }
.booking-popup-kicker { margin: 0 0 0.3rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }
.booking-popup h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 0.3rem; }
.booking-popup-when { margin: 0 0 1.5rem; font-size: var(--s-1); color: var(--ink-soft); }
.booking-popup .booking-form .form-actions { margin-top: 1.25rem; }
.booking-popup-back { margin: 1.25rem 0 0; font-size: var(--s-1); }
/* Ohne JavaScript steht die Buchung unter dem Termin */
.events > .booking-popup { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Reservieren-Knopf neben dem Datum: nur auf dem Handy, dafür entfällt dort der Knopf unter den Tourdaten */
.event-head { display: contents; }
.booking-quick { display: none; }
.button-small { min-height: 2.3rem; padding: 0.4rem 1rem; font-size: 0.75rem; letter-spacing: 0.08em; }

.booking-done { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--green-bg); border-left: 4px solid var(--ok); color: var(--ink); font-weight: 700; }
.booking-full { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--plate); }

/* Anzahl Mitfahrende */
.persons { border: 0; padding: 0; margin: 0 0 1.25rem; }
.persons legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 0.4rem; }
/* Zähler kompakt: Bezeichnung links, [− 1 +] als eine Pille daneben, beide Zeilen bündig */
.persons-row { display: grid; grid-template-columns: max-content max-content; align-items: center; gap: 0.5rem 1rem; }
.stepper { display: contents; }
.booking-form .stepper label, .stepper label { margin: 0; font-weight: 600; color: var(--ink); }
.stepper-control { display: inline-flex; align-items: center; border: 1px solid var(--field-line); border-radius: 999px; background: var(--plate); overflow: hidden; }
.stepper-control input { width: 2.6rem; min-height: 0; padding: 0.35rem 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; color: var(--ink); background: none; -moz-appearance: textfield; }
.stepper-control input:focus-visible { outline-offset: -3px; }
.stepper-control input::-webkit-inner-spin-button, .stepper-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn { width: 2.25rem; height: 2.25rem; border: 0; background: none; color: var(--blue); font: 700 1.15rem / 1 var(--sans); cursor: pointer; }
.stepper-btn:hover { background: var(--blue-bg); }
.persons .hint { margin-top: 0.5rem; }

@media (max-width: 40rem) {
  .event { grid-template-columns: minmax(0, 1fr); }
  .event-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
  .modal .event-head { padding-right: 2.25rem; }  /* rechts steht der Schließen-Knopf; sehr schmale Handys brechen um */
  .event-head .event-date { margin-bottom: 0; padding: 0.45rem 0.8rem; }
  .event-head .booking-quick { padding-inline: 0.85rem; letter-spacing: 0.06em; }
  .booking-quick { display: inline-flex; }
  .event:has(.booking-quick) .booking-box-action { display: none; }
  .event-date { flex-direction: row; gap: 0.45rem; align-items: baseline; justify-self: start; padding: 0.5rem 0.9rem; margin-bottom: 1rem; border-radius: 999px; }
  .event-day { font-size: var(--s1); margin: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}

/* Vergangene Touren */
.logbook { margin-bottom: 4rem; }
.logbook-head { display: flex; align-items: baseline; gap: 0.5rem 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.logbook-head h2 { margin: 0; color: var(--blue); font-size: clamp(2.4rem, 6vw, 3.5rem); font-weight: 800; }
.logbook-head p { margin: 0; font-weight: 700; }
.tour-figures { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tour-figures span { padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: var(--s-1); font-weight: 700; }

/* Fotostrecke eines Tourberichts */
.tour-gallery { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.5rem; }
.tour-gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.tour-gallery :is(img, video) { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease; }
.tour-gallery a:hover :is(img, video) { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .tour-gallery img { transition: none; } }

/* Strecke im Tourbericht: erst Hinweis mit Knopf, nach Klick die Karte (site.js) */
.tour-map { margin: 1.5rem 0 0; }
.tour-map-consent, .tour-map-canvas { aspect-ratio: 16 / 9; min-height: 15rem; border-radius: var(--radius); }
.tour-map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.5rem; text-align: center; background: var(--blue-bg); border: 1px solid var(--line);
}
.tour-map-consent p { max-width: 32rem; margin: 0; font-size: var(--s-1); }
.tour-map-canvas { z-index: 0; }  /* Leaflet-Ebenen bleiben unter Kopfleiste und Schließen-Knopf */
.tour-map figcaption { margin-top: 0.5rem; font-size: var(--s-1); }
.tour-map figcaption a { font-weight: 700; }

/* Großansicht eines Fotos */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(3.5rem, 6vw, 4.5rem) clamp(0.5rem, 5vw, 4.5rem); border: 0; background: #0D111A; }
.lightbox::backdrop { background: #0D111A; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; }
.lightbox :is(img, video) { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { margin-top: 0.75rem; color: #C9D0DC; font-size: var(--s-1); }
.lightbox .round-button { position: fixed; background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.lightbox .round-button:hover { background: #fff; color: var(--ink); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox :focus-visible { outline-color: #fff; }

/* Aktuelles */
/* Kacheln: wie die Beitragskarten der Startseite, die ganze Karte ist klickbar */
.news-grid { list-style: none; margin: 0 0 4rem; padding: 0; }
.news-grid .post { position: relative; transition: box-shadow 250ms ease, transform 250ms ease; }
.news-grid .post:hover { transform: translateY(-4px); }
.news-grid .post-body { display: flex; flex-direction: column; flex: 1; }
.news-grid :is(h2, h3) { font-size: var(--s1); line-height: 1.3; margin-bottom: 0.6rem; }
.news-grid :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.news-grid :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.news-grid :is(h2, h3) a:focus-visible { outline: none; }
.news-grid .post:focus-within { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
.news-grid .post p:not(.meta) { font-size: var(--s-1); margin: 0 0 1.25rem; }
.news-grid .card-more { margin-top: auto; }
.news-grid .post:hover .card-more svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .news-grid .post { transition: none; } .news-grid .post:hover { transform: none; } }

/* Vergangene Touren als Kacheln: Überschrift wie bei Aktuelles, Kennzahlen als kleine Etiketten */
.tour-grid h3 { font-size: var(--s1); line-height: 1.3; margin-bottom: 0.6rem; }
.tour-grid h3 a { color: var(--ink); text-decoration: none; }
.tour-grid h3 a::after { content: ""; position: absolute; inset: 0; }
.tour-grid h3 a:focus-visible { outline: none; }
.tour-grid .tour-figures { margin-bottom: 0.75rem; }
.tour-grid .tour-figures span { font-size: 0.75rem; padding: 0.15rem 0.6rem; }
.tour-figure-gpx { display: inline-flex; align-items: center; gap: 0.3rem; }
.tour-figure-gpx svg { width: 0.95em; height: 0.95em; flex: none; }
.logbook .tour-grid { margin-bottom: 0; }
.tour-article .tour-figures { margin-bottom: 1rem; }

/* Meldung im Popup */
.news-article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-article-body { padding: clamp(1.75rem, 4vw, 3rem); }
.news-article h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1rem; }

.article { max-width: 48rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.article-image { margin: 1.5rem 0 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Über uns */
/* Themen als Kacheln */
.topic-grid { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.topic-card {
  position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--plate); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow 250ms ease, transform 250ms ease;
}
.topic-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.topic-card:hover .feature-icon { background: var(--tone); color: var(--paper); }
.topic-card:focus-within { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
.topic-card .feature-icon { width: 4rem; height: 4rem; margin-bottom: 1.25rem; }
.topic-card .feature-icon svg { width: 1.75rem; height: 1.75rem; }
.about .topic-card-title { font-size: var(--s1); margin-bottom: 0.5rem; hyphens: auto; overflow-wrap: break-word; }
.about .topic-card-title::after { display: none; }
.topic-card-title a { color: var(--ink); text-decoration: none; }
.topic-card-title a::after { content: ""; position: absolute; inset: 0; }
.topic-card-title a:focus-visible { outline: none; }
.topic-card p { font-size: var(--s-1); margin: 0 0 1.25rem; }
@media (prefers-reduced-motion: reduce) { .topic-card { transition: none; } .topic-card:hover { transform: none; } }

/* Thema im Popup */
.modal .topic { padding: clamp(2rem, 4vw, 3rem); }
.modal .topic .feature-icon { width: 4rem; height: 4rem; margin-bottom: 1rem; }
.modal .topic .feature-icon svg { width: 1.75rem; height: 1.75rem; }
.modal .topic h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.modal .topic h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.75rem; border-radius: 3px; background: var(--red); }
.modal .topic p { max-width: var(--measure); }

.about { padding-bottom: 4rem; }
.about section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.5rem 3rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.about section:first-child { border-top: 0; padding-top: 0; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.75rem; border-radius: 3px; background: var(--red); }
.about section > p { grid-column: 2; max-width: var(--measure); }
@media (max-width: 52rem) {
  .about section { grid-template-columns: 1fr; }
  .about section > p { grid-column: 1; }
}

/* Rechtliches */
.legal { padding-bottom: 4rem; }
.legal h2 { font-size: var(--s1); margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.2rem; }

.cancel-form { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.5rem; padding-bottom: 3rem; }
.section-gap { margin-top: 2.5rem; font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.page-plain .form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ------------------------------------------------------------ Fuß */

.site-footer { background: var(--night); color: #AEB6C5; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-org { display: flex; gap: 1.25rem; align-items: flex-start; }
.footer-stadtmacher { width: 6rem; flex: none; background: #fff; padding: 0.35rem; border-radius: var(--radius); }
.footer-name { color: #fff; font-size: var(--s2); font-weight: 800; line-height: 1; margin-bottom: 0.6rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.4rem; }
/* Umschalter Automatisch / Hell / Dunkel (assets/js/theme.js) */
.theme-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; font-size: var(--s-1); }
.theme-switch[hidden] { display: none; }
.theme-switch-label { margin-right: 0.5rem; }
.theme-switch button {
  font: 600 var(--s-1) / 1 var(--sans); padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid currentColor; opacity: 0.75;
}
.theme-switch button:hover { opacity: 1; }
.theme-switch button[aria-pressed="true"] { opacity: 1; background: #fff; border-color: #fff; color: #171D2B; }
.footer-theme { padding-bottom: 2rem; margin-top: -1rem; }
@media (max-width: 52rem) { .footer-inner { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-row input { flex: 1 1 14rem; }
.newsletter-form .hint a { color: inherit; }
.newsletter-page { padding-bottom: 4rem; }
.newsletter-page h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.booking-form .newsletter-check, .newsletter-check { display: flex; font-weight: 400; align-items: flex-start; gap: 0.6rem; margin: 1rem 0 0; font-size: var(--s-1); color: var(--ink-soft); cursor: pointer; }
.newsletter-check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--blue); }
.footer-newsletter { margin-top: 1.75rem; }
.footer-newsletter-title { color: #fff; font-weight: 800; margin-bottom: 0.2rem; }
.footer-newsletter .button { min-height: 2.6rem; padding-block: 0.5rem; margin-top: 0.25rem; }
/* Newsletter im Popup */
.modal .newsletter-popup { padding: clamp(2rem, 4vw, 2.75rem); padding-right: clamp(3.5rem, 6vw, 4.5rem); }
.newsletter-popup h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.newsletter-popup h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.6rem; border-radius: 3px; background: var(--red); }
.newsletter-popup .newsletter-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.modal:has(.newsletter-popup) { width: min(34rem, calc(100% - 2rem)); }
/* Menüpunkt „Newsletter“ nur auf dem Handy; auf großen Bildschirmen gibt es den Knopf daneben */
.nav-newsletter { display: none; }
@media (max-width: 60rem) { .js .nav-newsletter { display: block; } }

/* Kachel-Raster (Termine, Aktuelles, Touren, Über uns, Beiträge): 4 Spalten, Tablet 2, Handy 1 – steht am Ende, damit es die Grundregeln der Raster überschreibt */
@media (max-width: 64rem) { .post-grid, .card-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .post-grid, .card-grid, .topic-grid { grid-template-columns: 1fr; } }

/* Hinweisbalken der Testumgebung */
.env-banner { background: #D50B19; color: #fff; text-align: center; font: 700 var(--s-1) / 1.3 var(--sans); padding: 0.5rem 1rem; position: relative; z-index: 30; }

/* Umfrage nach der Tour (umfrage.php) */
.survey { margin-top: 2rem; }
.survey-question { margin: 0 0 2rem; padding: 0; border: 0; }
.survey-legend { display: block; margin-bottom: 0.75rem; font-weight: 700; color: var(--ink); font-size: var(--s1); }
.survey textarea { width: 100%; }
.survey-rating { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.survey-rating label, .survey-options label { position: relative; cursor: pointer; }
.survey-rating input { position: absolute; opacity: 0; }
.survey-rating span {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 2px solid var(--line); background: var(--plate); font-weight: 800; font-size: var(--s1); color: var(--ink);
  transition: background 150ms ease, border-color 150ms ease;
}
.survey-rating label:hover span { border-color: var(--blue); }
.survey-rating input:checked + span { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
.survey-rating input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.survey-scale { display: flex; justify-content: space-between; max-width: 18.5rem; margin: 0.4rem 0 0; font-size: var(--s-1); color: var(--ink-soft); }
.survey-options { display: grid; gap: 0.6rem; }
.survey-options label { display: flex; align-items: center; gap: 0.6rem; }
.survey-options input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue); }
.survey .field-error { margin: -0.25rem 0 0.6rem; color: var(--signal); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .survey-rating span { transition: none; } }
.survey-newsletter { margin: 2rem 0; padding: 1.5rem; border-radius: var(--radius); background: var(--blue-bg); border-left: 4px solid var(--blue); }
.survey-newsletter h2 { font-size: var(--s2); margin-bottom: 0.5rem; }
.event-cancelled { border-left: 4px solid var(--signal); color: var(--ink); }

/* Abgesagte Tour: Bild grau und verschleiert, darüber trauriger Smiley mit „Abgesagt“ */
.is-cancelled { position: relative; overflow: hidden; }
.is-cancelled :is(img, video) { filter: grayscale(1) blur(1px); }
.card:hover .is-cancelled :is(img, video) { transform: none; }
.cancelled-veil {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(31, 39, 55, .55); color: #fff; text-align: center;
}
.cancelled-veil svg { width: clamp(3rem, 22%, 4.5rem); height: auto; }
.cancelled-veil span { font-size: var(--s0); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.is-cancelled .card-date { z-index: 2; background: #5B6575; }

/* Abzeichen „KI-Bild“ (EU-KI-Verordnung Art. 50) und Bildrahmen dafür, siehe media() und ai_badge() in lib/layout.php */
.media-frame { position: relative; overflow: hidden; }
.media-frame > :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.post, .tour-gallery li { position: relative; }
.ai-badge {
  position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 3; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: rgba(31, 39, 55, .45); color: rgba(255, 255, 255, .92); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5;
  backdrop-filter: blur(3px); pointer-events: none;
}
.tour-gallery .ai-badge { right: 0.3rem; bottom: 0.3rem; font-size: 0.58rem; padding: 0.05rem 0.35rem; }

/* Neu in Quickborn: Seite, Hinweis auf der Terminseite, Band auf der Startseite */
.newcomer { padding-bottom: 3rem; }
.newcomer .facts { margin-bottom: 1.25rem; }
.newcomer-form { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--plate); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem); }
.newcomer-form h2 { margin-top: 0; }
.newcomer-form .field { margin-bottom: 1.25rem; border: 0; padding: 0; }
.newcomer-form label, .newcomer-form legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.newcomer-form input:not([type="number"]), .newcomer-form textarea { width: 100%; }
.newcomer-form .inline-fields { display: flex; gap: 1rem; flex-wrap: wrap; }
.newcomer-form .inline-fields label { font-weight: 600; display: flex; flex-direction: column; gap: 0.3rem; }
.newcomer-form .inline-fields input { width: 7rem; }
.newcomer-form .field-error { margin: 0 0 0.4rem; color: var(--signal); font-weight: 700; }
.newcomer-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--blue-bg); border-left: 4px solid var(--blue);
}
.newcomer-teaser h2 { margin: 0 0 0.3rem; font-size: var(--s1); }
.newcomer-teaser p { margin: 0; max-width: 40rem; }
.newcomer-band { background: var(--blue-fill); color: #fff; }
.newcomer-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 2rem; }
.newcomer-band h2 { margin: 0 0 0.3rem; color: #fff; font-size: var(--s2); }
.newcomer-band p { margin: 0; max-width: 42rem; color: rgba(255,255,255,.9); }

/* Projekte (projekte.php): Übersicht der Themen als Kacheln, Themenseite mit Beschreibung und Beiträgen */
.page-kicker { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.page-kicker a { text-decoration: none; opacity: 0.9; }
.page-kicker a:hover { opacity: 1; text-decoration: underline; }
/* Übersicht der Themen als Bento-Raster: Bild füllt die Kachel, Text auf einem Verlauf darüber */
.bento { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 16vw, 14rem); grid-auto-flow: dense; gap: 1.25rem; }
.bento-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  border-radius: var(--radius); background: var(--grad-solid); color: #fff; box-shadow: var(--shadow);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.bento-big   { grid-column: span 2; grid-row: span 2; }
.bento-big.is-mirrored { grid-column: 3 / span 2; }
.bento-wide  { grid-column: span 2; }
.bento-full  { grid-column: 1 / -1; }
.bento-hero  { grid-column: 1 / -1; grid-row: span 2; }
.bento-image, .bento-image :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 400ms ease; }
.bento-tile:not(.no-image)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,30,0) 25%, rgba(10,16,30,.62) 58%, rgba(10,16,30,.92) 100%); }
.bento-tile:not(.no-image) .bento-body { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.bento-placeholder { position: absolute; right: 8%; top: 12%; width: 32%; max-width: 9rem; height: auto; color: rgba(255,255,255,.35); z-index: -1; }
.bento-body { width: 100%; padding: clamp(1rem, 2vw, 1.5rem); }
.bento-tile h2 { margin: 0 0 0.45rem; color: #fff; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.bento-big h2, .bento-hero h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.bento-tile h2 a { color: inherit; text-decoration: none; }
.bento-tile h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bento-tile h2 a:focus-visible { outline: none; }
.bento-tile:focus-within { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
.bento-count {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 2; margin: 0; padding: 0.05rem 0.5rem; border-radius: 999px;
  background: rgba(10,16,30,.35); color: rgba(255,255,255,.85); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  backdrop-filter: blur(3px); text-shadow: none; pointer-events: none;
}
.bento-figures span { padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); font-size: 0.72rem; font-weight: 700; }
.bento-text { margin: 0 0 0.6rem; max-width: 40rem; font-size: var(--s-1); line-height: 1.5; color: rgba(255,255,255,.9); }
.bento-small .bento-text { display: none; }
.bento-more { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.bento-more svg { width: 1rem; height: 1rem; transition: transform 200ms ease; }
.bento-tile .ai-badge { top: 0.6rem; bottom: auto; }
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-tile:hover .bento-image, .bento-tile:hover .bento-image :is(img, video) { transform: scale(1.04); }
.bento-tile:hover .bento-more svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .bento-tile, .bento-image, .bento-image img { transition: none; } .bento-tile:hover { transform: none; } }
@media (max-width: 52rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 12rem; }
  .bento-big.is-mirrored { grid-column: span 2; }
}
@media (max-width: 34rem) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-tile, .bento-big, .bento-wide, .bento-full, .bento-hero, .bento-big.is-mirrored { grid-column: auto; grid-row: auto; min-height: 13rem; }
  .bento-big, .bento-hero { min-height: 17rem; }
  .bento-small .bento-text { display: block; }
}
.project-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 64rem) { .project-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .project-topic-grid { grid-template-columns: 1fr; } }
.project-topic-grid .project-figures { margin-bottom: 0.9rem; }
.project-topic-grid .project-figures span { font-size: 0.75rem; padding: 0.15rem 0.6rem; }
/* Beiträge auf der Themenseite: vier Spalten, auch auf mittleren Bildschirmen */
.project-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.project-post-grid .post-body { padding: 1.1rem 1.1rem 1.25rem; }
.project-post-grid h3 { font-size: 1.05rem; hyphens: auto; overflow-wrap: break-word; }
.project-post-grid .meta { font-size: 0.7rem; }
@media (max-width: 44rem) { .project-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .project-post-grid { grid-template-columns: 1fr; } }
.project-topic-placeholder { display: grid; place-items: center; background: var(--grad-solid); color: rgba(255,255,255,.75); }
.project-topic-placeholder svg { width: 28%; height: auto; }
/* Oben auf der Themenseite: links Foto und darunter das Banner, rechts der Text; ohne Text nur die linke Spalte */
.project-topic-intro { display: grid; grid-template-columns: minmax(0, 26rem); gap: 2rem 2.5rem; align-items: start; margin-bottom: 3rem; }
.project-topic-intro.has-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.project-topic-side { display: grid; gap: 1.25rem; }
.project-topic-text > :first-child { margin-top: 0; }
@media (max-width: 48rem) {
  .project-topic-intro.has-text { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Auf dem Handy: Foto, Text, dann das Banner */
  .project-topic-side { display: contents; }
  .project-topic-side > .project-ask-banner { order: 3; }
}
/* Banner „Fragen oder Anregungen“: hochkant in der dritten Spalte, öffnet das Formular im Popup */
.project-ask-banner {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
  padding: 1.5rem 1.4rem; border-radius: var(--radius); background: var(--grad-solid); color: rgba(255,255,255,.9); box-shadow: var(--shadow);
}
.project-ask-banner h2 { margin: 0; color: #fff; font-size: 1.3rem; line-height: 1.25; hyphens: auto; }
.project-ask-banner p { margin: 0 0 0.6rem; font-size: var(--s-1); line-height: 1.55; }
.project-ask-banner .button { margin-top: auto; }
.project-ask-banner .button::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.project-ask-banner:hover { box-shadow: var(--shadow-lg); }
.project-ask-banner :focus-visible { outline-color: #fff; }
.project-ask-icon { width: 2.2rem; height: 2.2rem; color: #fff; opacity: 0.9; }
.project-ask-banner .button { margin-top: 0.25rem; }
.project-topic-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.project-topic-image > :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.project-topic-intro .prose p:last-child { margin-bottom: 0; }
@media (max-width: 48rem) { .project-topic-intro.has-image { grid-template-columns: 1fr; gap: 1.25rem; } }
.project-posts-title { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.project-posts-title::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.6rem; border-radius: 3px; background: var(--red); }
/* Formular: ohne JavaScript als Kasten unten auf der Seite, sonst im Popup */
.project-ask { margin: 1rem 0 4rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius); background: var(--blue-bg); border-left: 4px solid var(--blue); scroll-margin-top: calc(var(--header-h) + 1rem); }
.modal:has(.project-ask) { width: min(40rem, calc(100% - 2rem)); }
.modal .project-ask { margin: 0; border: 0; border-radius: 0; background: var(--plate); padding: clamp(1.5rem, 4vw, 2.25rem); padding-right: clamp(3.5rem, 6vw, 4.5rem); }
.project-ask h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 0.4rem; }
.project-ask-intro p { margin-bottom: 1.25rem; max-width: var(--measure); }
.project-ask-intro .project-ask-topic { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: -0.5rem 0 1.25rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: var(--s-1); }
.project-ask-topic strong { color: inherit; }
.project-ask-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.project-ask-form .field { margin-bottom: 1rem; }
.project-ask-form .field-wide { grid-column: 1 / -1; }
.project-ask-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
.project-ask-form input, .project-ask-form textarea { width: 100%; }
.project-ask-form .field-error { margin: 0 0 0.35rem; }
.project-ask-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.project-ask-form .form-actions .hint { margin: 0; flex: 1 1 18rem; }
.project-ask .booking-done { margin: 0.75rem 0 0; }
@media (max-width: 40rem) { .project-ask-form { grid-template-columns: 1fr; } }
.project-topic-empty { margin: 0 0 3.5rem; color: var(--ink-soft); font-style: italic; }
.page-head .lead p:last-child { margin-bottom: 0; }

/* Videos: Abzeichen auf Vorschaubildern, Player in Bericht und Popup, fremde Videos erst nach Klick (site.js) */
.tour-gallery li { position: relative; }
.video-badge {
  position: absolute; left: 0.5rem; bottom: 0.5rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.1rem 0.5rem 0.1rem 0.35rem; border-radius: 999px; background: rgba(23,29,43,.7); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; pointer-events: none; backdrop-filter: blur(3px);
}
.video-badge svg { width: 0.8rem; height: 0.8rem; }
.card-media .video-badge { left: auto; right: 0.6rem; top: 0.6rem; bottom: auto; }
.bento-tile .video-badge { left: auto; right: 0.6rem; top: 0.6rem; bottom: auto; }
.tour-gallery .video-badge { left: 0.3rem; bottom: 0.3rem; font-size: 0.6rem; }
video.article-image, video.news-article-image, video.event-image, video.project-topic-image, .media-frame > video[controls] { background: #000; object-fit: contain; }
.video-embed { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #0B1A3A; color: #fff; }
.video-embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed-consent {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(8,20,48,0), rgba(8,20,48,.85) 35%); font-size: var(--s-1);
}
.video-embed-consent p { flex: 1 1 100%; margin: 0; color: rgba(255,255,255,.92); line-height: 1.45; }
.video-embed-consent a { color: #fff; }
.video-embed-consent .button { min-height: 2.4rem; padding: 0.45rem 1.1rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-embed { width: min(60rem, 90vw); border-radius: var(--radius-sm); }

/* Quelle eines Fotos oder Videos: klein unten links auf dem Bild */
.media-credit {
  position: absolute; left: 0.5rem; bottom: 0.5rem; z-index: 3; max-width: calc(100% - 8rem); padding: 0.05rem 0.45rem; border-radius: 999px;
  background: rgba(23,29,43,.45); color: rgba(255,255,255,.9); font-size: 0.62rem; font-weight: 600; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(3px); pointer-events: none;
}
.card-media .media-credit { bottom: 0.6rem; }
.bento-tile .media-credit { left: auto; right: 0.6rem; bottom: auto; top: 2.4rem; max-width: 60%; }
/* Video-Abzeichen weicht der Quelle nach oben aus */
.media-frame .video-badge { bottom: auto; top: 0.5rem; }

/* Karte mit Pins in Meldungen (lib/maps.php, map_embed) */
.pin-map-block { margin: 1.75rem 0 0.5rem; }
.pin-map { margin-top: 0; }
.map-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--plate); }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.6rem 0 0; padding: 0; font-size: 0.8rem; color: var(--ink-soft); }
.map-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.map-status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.map-pin-details { margin-top: 0.75rem; font-size: var(--s-1); }
.map-pin-details summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.map-pin-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.map-pin-list h4 { margin: 0 0 0.25rem; font-size: var(--s0); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.map-pin-list p { margin: 0 0 0.35rem; }
.map-task-list { list-style: none; margin: 0; padding: 0 0 0 0.25rem; display: grid; gap: 0.3rem; }
.map-task-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.map-task-news { flex-basis: 100%; font-size: 0.8rem; }
.map-popup-tasks { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.map-popup-tasks li { display: flex; align-items: center; gap: 0.4rem; margin: 0.2rem 0; }
.map-popup-tasks em { color: #5B6575; font-style: normal; font-size: 0.85em; }
