/* 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ß */

  --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;
  --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,.55) 0%, rgba(11,66,163,.35) 50%, rgba(30,136,229,.15) 100%);
  --grad-solid: linear-gradient(100deg, #082F78 0%, #0B42A3 45%, #1E88E5 100%);
}

*, *::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));
}
.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); }

.header-cta { flex: none; min-height: 2.5rem; padding: 0.5rem 1.25rem; }

.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); border-color: var(--blue); 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); box-shadow: none; }
.button-white { background: #fff; color: var(--blue); border-color: #fff; }
.button-white:hover { background: var(--mist); border-color: var(--mist); color: var(--blue-dk); 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); 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 url("../video/ausflug-poster.jpg") center / cover;
  color: #fff; text-align: center;
}
.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(60% 55% at 50% 50%, rgba(10,20,45,.35), transparent 75%), var(--grad-over);
}
.hero-content { max-width: 52rem; 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(2.2rem, 5vw, 3.6rem); margin-bottom: 0.75rem; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 300; max-width: 36rem; margin: 0 auto 1.5rem; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero :focus-visible { outline-color: #fff; }

.video-toggle { position: absolute; z-index: 2; right: clamp(1rem, 3vw, 2rem); bottom: clamp(2.5rem, 5vw, 4.5rem); border-color: #fff; background: rgba(255,255,255,.15); color: #fff; }
.video-toggle:hover { background: #fff; color: var(--blue); }
.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; }
/* Variante in zwei Spalten: links Überschrift, rechts Text, über die volle Inhaltsbreite */
.section-intro-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem clamp(2rem, 5vw, 4rem);
  align-items: start; max-width: none; text-align: left;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--line);
}
.section-intro-split h2 { margin: 0; }
.section-intro-split h2::after { margin-inline: 0; }
.section-intro-split p { font-size: var(--s1); line-height: 1.55; }
@media (max-width: 52rem) { .section-intro-split { grid-template-columns: 1fr; } }
.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(3, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 4rem); 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(--blue); color: #fff; transform: translateY(-4px); }
.features h3 { font-size: var(--s1); margin-bottom: 0.5rem; }
.features p { margin: 0; }
@media (max-width: 52rem) { .features { grid-template-columns: 1fr; } }

/* Kartenreihe der nächsten Touren */
.card-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: max(16rem, calc((100% - 2 * 1.75rem) / 3));
  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: 52rem) { .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 img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card-media img { 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(3rem, 6vw, 4.5rem); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; text-align: center; }
.stats-list li { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.95; }
.stats-list strong { display: block; color: #fff; font-size: clamp(2.6rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: 0; line-height: 1.1; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; }

/* Beiträge: Neuigkeiten und letzte Tour */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 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: 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); }
.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); }

/* Termine */
/* Kachel-Übersicht */
.card-grid { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 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; }
@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; }

.access {
  margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--blue-bg); border-left: 4px solid var(--blue); max-width: calc(var(--measure) + 2.5rem);
}
.access h3 { font-size: var(--s0); margin-bottom: 0.35rem; }
.access p:last-child { margin-bottom: 0; }

.booking { margin-top: 2rem; max-width: 46rem; padding: 1.5rem; background: var(--mist); border-radius: var(--radius); }
/* Solange nur der Knopf zu sehen ist, ohne graue Fläche */
.booking:has(> .booking-form[hidden]) { padding: 0; background: none; }
.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 #C9D2E0; 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; }

.booking-done { padding: 1rem 1.25rem; border-radius: var(--radius); background: #E9F6EE; 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; }
.persons-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.stepper label { display: block; font-weight: 400; margin-bottom: 0.3rem; }
.stepper-control { display: inline-flex; align-items: center; gap: 0.4rem; }
.stepper-control input { width: 4rem; text-align: center; -moz-appearance: textfield; }
.stepper-control input::-webkit-inner-spin-button, .stepper-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; font: 700 var(--s1) / 1 var(--sans);
  color: var(--blue); background: var(--plate); border: 2px solid var(--blue); cursor: pointer;
}
.stepper-btn:hover { background: var(--blue); color: #fff; }
.persons .hint { margin-top: 0.5rem; }

@media (max-width: 40rem) {
  .event { grid-template-columns: 1fr; }
  .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 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease; }
.tour-gallery a:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .tour-gallery img { transition: none; } }

/* 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 img { 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 h2 { font-size: var(--s1); line-height: 1.3; margin-bottom: 0.6rem; }
.news-grid h2 a { color: var(--ink); text-decoration: none; }
.news-grid h2 a::after { content: ""; position: absolute; inset: 0; }
.news-grid h2 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; }
.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(auto-fill, minmax(min(100%, 15rem), 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(--blue); color: #fff; }
.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; }
@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 input { min-height: 2.6rem; border-color: transparent; }
.footer-newsletter .button { min-height: 2.6rem; padding-block: 0.5rem; }
.footer-newsletter .hint { color: #AEB6C5; font-size: 0.8rem; }
.footer-newsletter .hint a { color: #fff; }

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