:root {
  --color-forest: #1e4a8c;
  --color-forest-dark: #15366b;
  --color-river: #2563a8;
  --color-river-light: #4a8fd4;
  --color-cream: #f5f8fc;
  --color-cream-dark: #e8eef6;
  --color-text: #1a2433;
  --color-muted: #4a5568;
  --color-white: #fff;
  /* Fallback, falls fonts.css nicht lädt */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --shadow: 0 8px 32px rgba(21, 54, 107, 0.12);
  --max-w: 1140px;
  --max-narrow: 760px;

  /*
   * Designsystem – Spacing-Skala (mathematisch, kein „Gefühl“)
   * Basis: 8px · Stufen: 8 · 12 · 16 · 24 · 32 (+ 40 · 48 · 56 · 64 · 72)
   */
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-56: 56px;
  --s-64: 64px;
  --s-72: 72px;

  --radius: var(--s-12);
  --header-h: var(--s-72);
  --media-ratio: 16 / 9;

  /* Semantische Abstände */
  --space-section-y: var(--s-48);
  --space-title-after: var(--s-24);
  --space-paragraph: var(--s-16);
  --space-block: var(--s-24);
  --space-inline: var(--s-16);
  --rhythm-gap: var(--s-16);
  --rhythm-stack-sm: var(--s-16);
  --rhythm-stack: var(--s-24);
  --rhythm-stack-lg: var(--s-32);
  --rhythm-section-y: var(--s-48);
  --rhythm-pad-block: var(--s-12);
  --rhythm-pad-inline: var(--s-16);
  --rhythm-leading: 1.5;

  /* Typografie-Raster (Margins) */
  --type-h1-after: var(--s-16);
  --type-h2-before: var(--s-32);
  --type-h2-after: var(--s-12);
  --type-h3-before: var(--s-24);
  --type-h3-after: var(--s-8);

  /* Karten */
  --card-pad-y: var(--s-24);
  --card-pad-x: var(--s-16);
  --card-pad: var(--card-pad-y) var(--card-pad-x);
  --card-pad-lg: var(--s-32) var(--s-24);
  --card-gap: var(--s-16);
  --card-stack: var(--s-24);
  --card-teaser-body-min: 120px; /* 15×8 – einheitliche Textspalte */
  --card-shadow: 0 2px 12px rgba(21, 54, 107, 0.06);
  --card-border: 1px solid rgba(21, 54, 107, 0.08);

  /* CTAs / Buttons */
  --cta-min-h: var(--s-48);
  --cta-pad: var(--s-12) var(--s-24);
  --cta-radius: var(--s-8);
  --touch-min: var(--s-48);
  --touch-gap: var(--s-16);
  --touch-pad-y: var(--s-12);
  --touch-pad-x: var(--s-16);

  /* Legacy-Aliase (Kompatibilität) */
  --r-1: var(--s-8);
  --r-2: var(--s-16);
  --r-3: var(--s-24);
  --r-4: var(--s-32);
  --r-5: var(--s-40);
  --r-6: var(--s-48);
  --r-7: var(--s-56);

  /* Typografie */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.125rem;
  --text-lg: 1.3125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.4rem, 2.4vw, 1.875rem);
  --text-3xl: clamp(1.65rem, 3.2vw, 2.35rem);
  --text-hero: clamp(1.9rem, 4.2vw, 2.9rem);
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: var(--rhythm-leading);
  --leading-relaxed: var(--rhythm-leading);
  --weight-body: 400;
  --weight-medium: 600;
  --weight-display: 500;
  --weight-display-bold: 700;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;

  --scrollbar-size: var(--s-8);
  --scrollbar-size-sm: var(--s-8);
  --scrollbar-track: var(--color-cream-dark);
  --scrollbar-thumb: rgba(45, 90, 61, 0.38);
  --scrollbar-thumb-hover: rgba(45, 90, 61, 0.58);
}

/* ── CTAs (einheitlich) ── */
.btn-cta,
.btn-map-load,
.btn-consent:not(.btn-consent--link),
.home-aktuelles__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  min-height: var(--cta-min-h);
  padding: var(--cta-pad);
  border-radius: var(--cta-radius);
  font: inherit;
  font-weight: var(--weight-medium);
  line-height: var(--rhythm-leading);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn-map-load,
.btn-cta--primary {
  border: none;
  background: var(--color-forest);
  color: var(--color-white);
}
.btn-map-load:hover,
.btn-map-load:focus-visible,
.btn-cta--primary:hover {
  background: var(--color-forest-dark);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(30, 61, 41, 0.22);
}
.home-aktuelles__more a,
.btn-cta--secondary {
  border: var(--card-border);
  background: var(--color-white);
  color: var(--color-forest);
  box-shadow: var(--card-shadow);
}
.home-aktuelles__more a:hover,
.btn-cta--secondary:hover {
  background: var(--color-cream-dark);
  color: var(--color-forest);
}

/* Link-/Aktionszeilen (einheitliche Touchfläche) */
.link-action,
.content-prose ul:has(a[href*=".pdf" i]) a,
.content-prose ul:has(a[download]) a,
.content-prose ol:has(a[href*=".pdf" i]) a,
.content-prose p > a[href*=".pdf" i],
.content-prose p > a[download],
.ort-facts a,
.radwege-tools__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  min-height: var(--cta-min-h);
  padding: var(--cta-pad);
  border-radius: var(--radius);
  font-weight: var(--weight-medium);
  line-height: var(--rhythm-leading);
  text-decoration: none;
  touch-action: manipulation;
  box-sizing: border-box;
}
.content-prose ul:has(a[href*=".pdf" i]) a,
.content-prose ul:has(a[download]) a,
.content-prose ol:has(a[href*=".pdf" i]) a,
.content-prose p > a[href*=".pdf" i],
.content-prose p > a[download] {
  background: var(--color-white);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--color-forest);
}
.ort-facts a,
.radwege-tools__links a {
  background: var(--color-white);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--color-forest);
}
.link-action:active,
.content-prose ul:has(a[href*=".pdf" i]) a:active,
.ort-facts a:active,
.radwege-tools__links a:active {
  background: rgba(45, 90, 61, 0.08);
}
.content-prose ul:has(a[href*=".pdf" i]),
.content-prose ul:has(a[download]),
.content-prose ol:has(a[href*=".pdf" i]) {
  list-style: none;
  padding: 0;
  margin: var(--s-24) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}
.content-prose ul:has(a[href*=".pdf" i]) li,
.content-prose ul:has(a[download]) li,
.content-prose ol:has(a[href*=".pdf" i]) li {
  margin: 0;
  padding: 0;
}
.content-prose ul:has(a[href*=".pdf" i]) a,
.content-prose ul:has(a[download]) a,
.content-prose ol:has(a[href*=".pdf" i]) a,
.content-prose p > a[href*=".pdf" i]:only-child,
.content-prose p > a[download]:only-child {
  width: 100%;
  display: flex;
}
/* PDF im Fließtext neben Text: normaler Link, keine Kachel */
.content-prose p > a[href*=".pdf" i]:not(:only-child),
.content-prose p > a[download]:not(:only-child) {
  display: inline;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  font-weight: inherit;
  color: var(--color-river);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.content-prose p > a[href*=".pdf" i]:not(:only-child)::before,
.content-prose p > a[download]:not(:only-child)::before {
  content: none;
}
.content-prose ul:has(a[href*=".pdf" i]) a::before,
.content-prose ol:has(a[href*=".pdf" i]) a::before,
.content-prose p > a[href*=".pdf" i]::before {
  content: "PDF";
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--s-8) var(--s-12);
  border-radius: var(--s-8);
  background: var(--color-cream-dark);
  color: var(--color-forest-dark);
}
.content-prose ul:has(a[download]):not(:has(a[href*=".pdf" i])) a::before {
  content: "↓";
  flex-shrink: 0;
  width: var(--cta-min-h);
  height: var(--cta-min-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--s-8);
  background: var(--color-cream-dark);
  color: var(--color-forest-dark);
  font-weight: 700;
}
.radwege-tools__links {
  list-style: none;
  padding: 0;
  margin: var(--s-24) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}
.radwege-tools__links li { margin: 0; }
.radwege-tools__links a {
  width: 100%;
  display: flex;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-hover) var(--scrollbar-track);
}
html::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
html::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

.site-nav,
.table-scroll,
textarea,
select[multiple] {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.site-nav::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
textarea::-webkit-scrollbar,
select[multiple]::-webkit-scrollbar {
  width: var(--scrollbar-size-sm);
  height: var(--scrollbar-size-sm);
}
.site-nav::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
select[multiple]::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
.site-nav::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover,
select[multiple]::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-river); text-underline-offset: 0.15em; }
a:hover { color: var(--color-forest-dark); }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-river-light);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline-color: var(--color-river);
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2rem, var(--max-narrow)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-forest);
  color: var(--color-white);
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 248, 252, 0.98);
  border-bottom-color: var(--color-cream-dark);
  box-shadow: 0 4px 24px rgba(30, 61, 41, 0.1);
}
body.nav-open .site-header {
  border-bottom-color: var(--color-cream-dark);
  box-shadow: 0 2px 16px rgba(30, 61, 41, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-forest-dark);
  line-height: 1.2;
}
.site-brand__logo {
  display: block;
  height: 56px;
  width: auto;
  flex-shrink: 0;
}
.site-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-brand__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  white-space: nowrap;
}
.site-brand__tagline {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: var(--weight-body);
  line-height: var(--leading-snug);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: 8px;
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--color-forest);
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-forest);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}
.site-nav__item { position: relative; flex-shrink: 0; }
.site-nav__item > a {
  display: block;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: 0.8125rem;
  color: var(--color-text);
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav__item > a:hover,
.site-nav__item.is-active > a {
  background: var(--color-forest);
  color: var(--color-white);
}
.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
}
.site-nav__item.has-children:hover .site-nav__sub,
.site-nav__item.has-children:focus-within .site-nav__sub {
  display: block;
}
.site-nav__sub a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-text);
  border-radius: 6px;
}
.site-nav__sub a:hover { background: var(--color-cream); }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(280px, 42vw, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__slider { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide picture,
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 54, 107, 0.82) 0%, rgba(30, 74, 140, 0.35) 55%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 2.75rem 0 2.25rem;
  color: var(--color-white);
}
.hero__kicker {
  margin: 0 0 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  opacity: 0.92;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-display-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 16ch;
}
.hero__dots {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.hero__dot {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  transition: background 0.2s, transform 0.2s;
}
.hero__dot.is-active::before,
.hero__dot[aria-pressed="true"]::before {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Sections */
.site-main { min-height: 50vh; }
#kontakt { scroll-margin-top: calc(var(--header-h) + var(--s-16)); }
.section { padding: var(--space-section-y) 0; }
.section--muted { background: var(--color-cream-dark); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-title-after);
  color: var(--color-forest-dark);
}

.page-hero {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-river) 100%);
  color: var(--color-white);
  padding-block: var(--s-48);
}
.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.page-hero__lead {
  margin: var(--s-12) 0 0;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  opacity: 0.92;
  max-width: 42ch;
}

/* Content */
.content-prose h1, .content-prose h2, .content-prose h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--color-forest-dark);
  letter-spacing: var(--tracking-tight);
}
.content-prose h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin: 0 0 var(--type-h1-after);
}
.content-prose h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin: var(--type-h2-before) 0 var(--type-h2-after);
}
.content-prose p { margin: 0 0 var(--space-paragraph); }
.content-prose picture,
.content-prose img {
  max-width: 100%;
  height: auto;
}
/* Nur explizite Medien-Blöcke erzwingen 16:9 */
.content-prose .content-figure,
.content-prose .content-media--wide {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: var(--s-24) auto;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background: var(--color-cream-dark);
}
.content-prose > picture:not(.content-media--wide),
.content-prose > img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  height: auto;
  margin: var(--s-24) auto;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  object-fit: contain;
}
.content-prose .content-figure {
  text-align: center;
}
.content-prose .content-figure:not(.content-media--wide) {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.content-prose .content-figure img,
.content-prose .content-figure picture,
.content-prose .content-figure picture img,
.content-prose > picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, 720px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.content-prose > img {
  object-fit: contain;
}
.content-prose {
  max-width: 100%;
  overflow-x: clip;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: var(--s-16) 0;
  border-radius: var(--radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--color-white);
}
.table-scroll:focus-visible {
  outline: 2px solid var(--color-river);
  outline-offset: 2px;
}
.content-prose table.content-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--s-16) 0;
}
.table-scroll .content-table {
  margin: 0;
}
.content-prose table.content-table th,
.content-prose table.content-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.content-prose td, .content-prose th {
  border: 1px solid var(--color-cream-dark);
  padding: var(--s-8) var(--s-12);
  vertical-align: top;
}
.content-prose table.content-table thead th {
  background: var(--color-forest);
  color: #fff;
  font-weight: 600;
}
.content-prose table.content-table tbody tr:nth-child(even) {
  background: var(--color-cream);
}
.content-prose ul { padding-left: 1.25rem; }
.content-prose h3 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin: var(--type-h3-before) 0 var(--type-h3-after);
}
.ortsbeirat-members {
  display: grid;
  gap: var(--s-16);
  margin: var(--s-24) 0 var(--s-32);
}
@media (min-width: 640px) {
  .ortsbeirat-members { grid-template-columns: repeat(2, 1fr); }
}
.ortsbeirat-member {
  padding: var(--s-16) var(--s-16);
  background: var(--color-cream);
  border-radius: var(--radius);
  border: 1px solid var(--color-cream-dark);
}
.ortsbeirat-member p { margin: 0; }

.home-intro {
  text-align: center;
  max-width: var(--max-narrow);
  margin-inline: auto;
}
.home-intro p:not(.home-lead__subtitle) {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.home-lead {
  text-align: center;
  margin-bottom: 2rem;
}
.home-lead__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display-bold);
  color: var(--color-forest-dark);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.5rem;
}
.home-lead__subtitle {
  margin: 0 auto;
  max-width: 40rem;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-text);
  text-align: center;
  hyphens: none;
}
.home-lead__subtitle a {
  font-weight: var(--weight-medium);
}
/* Desktop: ein Fließsatz; Handy: Zeilenumbruch nach Felsberg */
.home-lead__line {
  display: inline;
}
@media (max-width: 639px) {
  .home-lead__line {
    display: block;
  }
  .home-lead__subtitle {
    max-width: 20rem;
    font-size: var(--text-base);
    line-height: var(--leading-snug);
  }
}
.home-intro .home-more {
  text-align: center;
  margin-top: 1.75rem;
  color: var(--color-muted);
}
/* Wikipedia-Zeile: Inline-Link, kein CTA-Kasten mitten im Satz */
.home-intro .home-more a {
  display: inline;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: var(--weight-medium);
  color: var(--color-river);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.home-intro .home-more a:hover {
  color: var(--color-forest-dark);
  background: transparent;
}
.home-aktuelles {
  padding-block: var(--s-32);
}
.home-aktuelles .section-title,
.home-aktuelles__title {
  text-align: center;
  margin-bottom: var(--s-16);
}
.home-aktuelles__more {
  text-align: center;
  margin: var(--s-24) 0 0;
  font-size: var(--text-sm);
}
/* Cards – einheitliches BEM .ui-card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--card-gap);
}
/* Entdecken: Karten beim Scrollen einschweben */
.card-grid--reveal .ui-card {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-grid--reveal.is-inview .ui-card {
  opacity: 1;
  transform: translateY(0);
}
.card-grid--reveal .ui-card:nth-child(1) { transition-delay: 0ms; }
.card-grid--reveal .ui-card:nth-child(2) { transition-delay: 70ms; }
.card-grid--reveal .ui-card:nth-child(3) { transition-delay: 140ms; }
.card-grid--reveal .ui-card:nth-child(4) { transition-delay: 210ms; }
.card-grid--reveal .ui-card:nth-child(5) { transition-delay: 280ms; }
.card-grid--reveal .ui-card:nth-child(6) { transition-delay: 350ms; }

/* Infobox Ort in Zahlen */
.ort-facts {
  margin: var(--s-24) 0 var(--s-32);
  padding: var(--card-pad);
  background: var(--color-white);
  border-radius: var(--radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--color-forest);
}
.ort-facts__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display);
  color: var(--color-forest);
}
.ort-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}
.ort-facts__grid > div {
  margin: 0;
}
.ort-facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.ort-facts dd {
  margin: 0.15rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text, #1a2e22);
}
.ort-facts__meta {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--color-muted);
}
.ort-facts__source {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: var(--leading-snug);
}
.ort-facts a {
  color: var(--color-forest);
  font-weight: 600;
}
.ui-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-stack);
  margin-bottom: var(--s-8);
}
.ui-card-grid--home {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  max-width: 40rem;
  margin: 0 auto;
  grid-template-columns: unset;
}

.ui-card {
  margin: 0;
}
.ui-card--lift {
  transition: transform 0.2s, box-shadow 0.2s;
}
.ui-card--lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(30, 61, 41, 0.18);
  color: inherit;
}

/* Icon-Kachel (Entdecken) */
.ui-card--icon {
  display: block;
  padding: var(--card-pad-lg);
  background: var(--color-white);
  border-radius: var(--radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
}
.ui-card--icon .ui-card__title {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-forest);
}
.ui-card--icon .ui-card__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-muted);
}
.ui-card__icon { font-size: 1.75rem; }

/* Teaser-Karte (Artikel-Übersicht) */
.ui-card--teaser { margin: 0; }
.ui-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-radius: var(--radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.ui-card__media {
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  background: var(--color-cream, #f4f0e6);
}
.ui-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8efe8 0%, #d4e4d4 100%);
}
.ui-card__media-icon {
  font-size: 2.5rem;
  opacity: 0.55;
}
.ui-card__media picture,
.ui-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ui-card__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ui-card__body {
  padding: var(--card-pad);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.ui-card__meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0 0 var(--s-8);
}
.ui-card__title {
  margin: 0 0 var(--s-12);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-forest-dark);
}
.ui-card__title--lg {
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  margin-bottom: var(--s-16);
}
.ui-card__text {
  margin: 0 0 var(--s-12);
  font-size: var(--text-sm);
  line-height: var(--rhythm-leading);
  color: var(--color-muted);
}
.ui-card__text--clamp {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-card__action {
  display: inline-flex;
  align-items: center;
  min-height: var(--cta-min-h);
  margin-top: auto;
  padding-top: var(--s-16);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--rhythm-leading);
  color: var(--color-forest);
}
.ui-card__action a,
.ui-card--route .ui-card__action a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cta-min-h);
  padding: var(--cta-pad);
  margin: 0;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-forest);
  touch-action: manipulation;
}

/* Startseite: kompakte Aktuelles-Liste */
.home-aktuelles .ui-card__link {
  flex-direction: row;
  align-items: stretch;
  height: auto;
  min-height: 0;
}
.home-aktuelles .ui-card__link.ui-card--lift:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(30, 61, 41, 0.12);
}
.home-aktuelles .ui-card__media {
  width: 9.5rem;
  min-width: 9.5rem;
  max-width: 9.5rem;
  height: auto;
  aspect-ratio: var(--media-ratio);
  flex-shrink: 0;
}
.home-aktuelles .ui-card__media picture,
.home-aktuelles .ui-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-aktuelles .ui-card__media-icon {
  font-size: 1.5rem;
}
.home-aktuelles .ui-card__body {
  padding: var(--card-pad);
  justify-content: flex-start;
  min-width: 0;
  min-height: var(--card-teaser-body-min);
}
.home-aktuelles .ui-card__title {
  font-size: var(--text-md);
  margin-bottom: var(--s-8);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75em;
}
.home-aktuelles .ui-card__text--clamp {
  font-size: var(--text-sm);
  line-height: var(--rhythm-leading);
  margin-bottom: var(--s-8);
  -webkit-line-clamp: 2;
  min-height: 3em;
}
/* Vollständiger Artikel */
.section-title--sm {
  font-size: var(--text-lg);
  font-weight: var(--weight-display);
  margin: 0 0 var(--s-16);
}
.article-full-list__title {
  margin-top: var(--s-48);
  padding-top: var(--s-32);
  border-top: 1px solid rgba(30, 61, 41, 0.12);
}
.article-list { display: flex; flex-direction: column; gap: var(--s-32); }
.article-list--full { margin-top: 0; }

/* Aktuelles: Suche, Filter, Jahres-Archiv */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.article-hub__toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  margin-bottom: var(--s-32);
  padding: var(--card-pad);
  background: var(--color-white);
  border-radius: var(--radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.article-hub__search-input {
  width: 100%;
  padding: var(--cta-pad);
  min-height: var(--cta-min-h);
  border: 1px solid rgba(30, 61, 41, 0.18);
  border-radius: calc(var(--radius) * 0.65);
  font: inherit;
  color: var(--color-ink);
  background: var(--color-cream, #faf8f4);
}
.article-hub__search-input:focus {
  outline: 2px solid var(--color-river);
  outline-offset: 2px;
  border-color: transparent;
}
.article-hub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}
.article-hub__filter {
  padding: var(--s-12) var(--s-16);
  min-height: var(--cta-min-h);
  border: 1px solid rgba(30, 61, 41, 0.2);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.article-hub__filter:hover,
.article-hub__filter:focus-visible {
  border-color: var(--color-river);
  background: rgba(30, 61, 41, 0.06);
}
.article-hub__filter.is-active {
  background: var(--color-forest, #1e3d29);
  border-color: var(--color-forest, #1e3d29);
  color: #fff;
}
.article-hub__filter--archive.is-active {
  background: var(--color-river);
  border-color: var(--color-river);
}
.article-hub__status {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(30, 61, 41, 0.72);
}
.article-hub__empty { margin-top: 1.5rem; }
.article-hub__empty[hidden] { display: none !important; }
.article-year-block { margin-bottom: 2.5rem; }
.article-year-block__title { margin-bottom: 0.35rem; }
.article-year-block__meta {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.article-year-block.is-hidden,
.article-archive.is-hidden { display: none !important; }
.article-archive {
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 61, 41, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-archive__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--color-ink);
}
.article-archive__summary::-webkit-details-marker { display: none; }
.article-archive__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  opacity: 0.65;
}
.article-archive[open] .article-archive__summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.article-archive__title { font-size: 1.05rem; }
.article-archive__meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(30, 61, 41, 0.65);
}
.article-archive__body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(30, 61, 41, 0.08);
}
.article-archive__body .article-list { padding-top: 1.25rem; }
[data-article-item].is-filtered-out { display: none !important; }
.ui-card--article {
  background: var(--color-white);
  border-radius: var(--radius);
  border: var(--card-border);
  padding: var(--card-pad-lg);
  box-shadow: var(--card-shadow);
  scroll-margin-top: calc(var(--header-h) + var(--s-16));
}
.ui-card--article .ui-card__meta {
  margin: 0 0 var(--s-12);
  font-size: var(--text-sm);
}
.ui-card--article .ui-card__meta time { font-weight: 600; }
.notice {
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-river);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Gallery */
.gallery-section--spaced {
  margin-top: var(--s-32);
  padding-top: var(--s-24);
  border-top: 1px solid var(--color-border);
}
.gallery-section__title {
  margin: 0 0 var(--s-16);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: left;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-16);
}
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: var(--media-ratio);
  box-shadow: var(--card-shadow);
  background: var(--color-cream-dark);
}
.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}
.gallery-item:hover img,
.gallery-item:hover picture img { transform: scale(1.02); }
.gallery-figure { margin: 0; }
.gallery-figure__caption {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.35;
}

/* Radwege – Strecken-Karten */
.radwege-intro { margin-bottom: 0.5rem; }
.radwege-tools {
  margin: var(--s-24) 0 var(--s-16);
  padding: var(--card-pad);
  background: var(--color-cream, #f4f0e6);
  border-radius: var(--radius);
  border: var(--card-border);
  border-left: 4px solid var(--color-forest);
  box-shadow: var(--card-shadow);
}
.radwege-tools__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display);
  color: var(--color-forest);
}
.radwege-tools__lead {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.radwege-tools__links {
  margin: 0;
  padding-left: 1.15rem;
  font-size: var(--text-sm);
}
.radwege-tools__links li + li {
  margin-top: 0.35rem;
}
.radwege-tools a {
  font-weight: 600;
  color: var(--color-forest);
}
.ui-card--route .ui-card__action {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.ui-card--route .ui-card__action a {
  color: var(--color-forest);
}
.radwege-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.ui-card--route {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.ui-card__signs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ui-card__signs picture,
.ui-card__signs img {
  display: block;
  max-height: 72px;
  width: auto;
  height: auto;
}
.ui-card--route .ui-card__title {
  margin: 0 0 0.85rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-display);
  color: var(--color-forest);
}
.ui-card__dl {
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
}
.ui-card__dl dt {
  margin: 0.65rem 0 0.15rem;
  font-weight: 600;
  color: var(--color-forest);
}
.ui-card__dl dt:first-child { margin-top: 0; }
.ui-card__dl dd {
  margin: 0;
  line-height: 1.5;
}
.ui-card__thumb {
  display: block;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  aspect-ratio: var(--media-ratio);
  background: var(--color-cream-dark);
}
.ui-card__thumb picture,
.ui-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ui-card__thumb-label {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--color-muted);
  background: var(--color-cream);
}
.ui-card--route p { margin: 0.35rem 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-width: 44px;
  min-height: 44px;
  font-size: 2.5rem;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}
.lightbox__close:focus-visible {
  outline-color: var(--color-white);
  border-color: var(--color-white);
}

/* Map & contact */
.map-consent { margin-top: 1.5rem; }
.map-consent__placeholder {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px dashed var(--color-cream-dark);
  text-align: center;
}
.map-consent__placeholder p { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--color-muted); }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: var(--media-ratio);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.pdf-embed {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
  aspect-ratio: 3 / 4;
  max-height: min(80vh, 900px);
}
.pdf-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}
.pdf-embed__download { margin: 0 0 1rem; text-align: center; }

.abfallkalender { margin-top: 1.5rem; }
.abfallkalender__download { margin: 0 0 1.5rem; text-align: center; }
.abfallkalender__pages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.abfallkalender__page {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.abfallkalender__page:hover {
  box-shadow: 0 12px 40px rgba(30, 61, 41, 0.18);
  transform: translateY(-2px);
}
.abfallkalender__page img,
.abfallkalender__page picture {
  display: block;
  width: 100%;
  height: auto;
}
.location-intro {
  margin: -0.25rem 0 1.75rem;
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Kontaktformular */
.contact-form-wrap {
  margin-top: 0.5rem;
}
.contact-form__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--color-primary-dark);
}
.contact-form__flash {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.contact-form__flash--success {
  background: #e8f5ec;
  border: 1px solid #b8dcc4;
  color: #1a4d2e;
}
.contact-form__flash--error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #7a1f1a;
}
.contact-form__noscript {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #7a1f1a;
}
.contact-form {
  display: grid;
  gap: 1.1rem;
}
.contact-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}
.contact-form__req { color: var(--color-accent); }
.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--color-text);
}
.contact-form__field select {
  cursor: pointer;
  appearance: auto;
}
.contact-form__field textarea { resize: vertical; min-height: 8rem; }
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.contact-form__field--legal p {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}
.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.contact-form__checkbox input { margin-top: 0.2rem; flex-shrink: 0; }
.contact-form__spam {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.contact-form__spam label {
  margin-bottom: 0.5rem;
}
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__actions { margin-top: 0.25rem; }
.section-title--left { text-align: left; }
.section--map { padding-top: 0; }
.section--contact-form { padding-top: 0; }

/* Consent */
.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(30, 61, 41, 0.97);
  color: #e8f0ea;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}
.consent-banner[hidden] { display: none !important; }
.consent-banner__inner { max-width: var(--max-w); }
.consent-banner__title { margin: 0 0 0.35rem; font-weight: 700; font-size: 1rem; }
.consent-banner__desc { margin: 0; font-size: 0.88rem; opacity: 0.92; }
.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.btn-consent {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
}
.btn-consent--primary {
  background: var(--color-white);
  color: var(--color-forest-dark);
  border-color: var(--color-white);
}
.btn-consent--link {
  border-color: transparent;
  text-decoration: underline;
  font-weight: 500;
}
.consent-banner__panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.consent-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.consent-banner__legal {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}
.consent-banner__legal a { color: #d4e8dc; }
.consent-banner__desc { color: #e8f0ea; }
body.consent-open { padding-bottom: 7rem; }

.link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-river);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-button--footer { color: #d4e8dc; }
.link-button:hover { color: var(--color-forest); }
.link-button--footer:hover { color: var(--color-white); }

/* Footer */
.site-footer {
  background: var(--color-forest-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  margin-top: 2rem;
}
.site-footer a { color: #d4e8dc; }
.site-footer a:hover { color: var(--color-white); }
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer__nav a { text-decoration: none; font-size: var(--text-sm); }
.site-footer__redaktion { opacity: 0.82; }
.site-footer__redaktion:hover { opacity: 1; }
.site-footer__meta p { margin: 0.35rem 0; font-size: var(--text-xs); line-height: var(--leading-snug); }

/* Nav-Overlay (Mobile) */
.nav-backdrop {
  display: none;
}

/* Mobile nav & UX */
@media (min-width: 980px) {
  .site-header__inner {
    gap: 0.75rem;
  }
  .site-brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .site-brand__logo {
    height: 46px;
  }
  .site-brand__tagline {
    display: none;
  }
  .site-nav {
    flex-shrink: 0;
    max-width: 62%;
  }
}

@media (min-width: 1180px) {
  .site-nav__item > a {
    font-size: 0.875rem;
    padding: 0.45rem 0.65rem;
  }
  .site-brand__title {
    font-size: var(--text-lg);
  }
  .site-brand__tagline {
    display: block;
  }
  .site-brand__logo {
    height: 52px;
  }
  .site-nav {
    max-width: none;
  }
}

@media (max-width: 979px) {
  body {
    overflow-x: clip;
  }
  :root {
    --header-h: var(--s-64);
    --rhythm-section-y: var(--s-48);
    --space-section-y: var(--rhythm-section-y);
    --text-base: 1.125rem;
    --text-sm: 1rem;
    --text-md: 1.2rem;
    --text-lg: 1.4rem;
    --leading-snug: 1.45;
    --radius: var(--s-12);
  }
  body {
    line-height: var(--rhythm-leading);
    -webkit-tap-highlight-color: rgba(45, 90, 61, 0.12);
  }
  .container,
  .container--narrow {
    width: min(100% - 1.5rem, var(--max-w));
  }
  .site-brand {
    gap: 0.65rem;
    min-width: 0;
    min-height: var(--touch-min);
    padding: 0.35rem 0.5rem 0.35rem 0;
    margin: -0.35rem 0;
    border-radius: 10px;
  }
  .site-brand__logo { height: 42px; }
  .site-brand__title { font-size: 1.05rem; }
  .site-brand__tagline { font-size: 0.8rem; line-height: 1.35; }
  .hero {
    min-height: clamp(220px, 52vw, 380px);
  }
  .hero__content {
    padding: 1.5rem 0 2.85rem;
  }
  .hero__kicker { font-size: 0.75rem; }
  .hero__title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    max-width: 100%;
  }
  .hero__dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0.5rem;
    gap: 0.15rem;
  }
  .hero__dot {
    width: 3rem;
    height: 3rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .hero__dot::before {
    width: 8px;
    height: 8px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .ui-card-grid {
    grid-template-columns: 1fr;
  }
  .ui-card--article .ui-card__title--lg {
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
  }
  .content-prose h2 {
    font-size: var(--text-lg);
    margin-top: var(--rhythm-stack-lg);
    margin-bottom: var(--rhythm-gap);
    line-height: var(--leading-snug);
  }
  .content-prose h3 {
    margin-top: var(--rhythm-stack);
    margin-bottom: var(--rhythm-gap);
  }
  .content-prose p {
    margin-bottom: var(--rhythm-stack-sm);
  }
  .content-prose ul,
  .content-prose ol {
    margin: 0 0 var(--rhythm-stack-sm);
    padding-left: var(--rhythm-stack);
  }
  .table-scroll .content-table {
    font-size: var(--text-xs);
  }
  .content-prose table.content-table th,
  .content-prose table.content-table td {
    padding: var(--s-8);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rhythm-gap);
  }
  .radwege-grid {
    grid-template-columns: 1fr;
  }
  .page-hero__title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
  }
  .section { padding: var(--space-section-y) 0; }
  .section-title {
    font-size: clamp(1.3rem, 4.5vw, 1.55rem);
    margin-bottom: var(--rhythm-stack);
    line-height: var(--leading-snug);
  }
  .home-intro.content-prose {
    font-size: var(--text-base);
    line-height: var(--rhythm-leading);
  }
  .home-lead {
    margin-bottom: var(--rhythm-stack-lg);
  }
  .home-aktuelles {
    padding-block: var(--rhythm-stack-lg);
  }
  .card-grid,
  .ui-card-grid,
  .radwege-grid {
    gap: var(--rhythm-stack);
  }
  .page-hero {
    padding-block: var(--rhythm-stack-lg) var(--rhythm-stack);
  }
  .page-hero__lead {
    margin-top: var(--rhythm-gap);
    line-height: var(--rhythm-leading);
  }
  .ui-card__body {
    padding: var(--rhythm-stack) var(--rhythm-gap);
  }
  .ui-card--article {
    padding: var(--rhythm-stack) var(--rhythm-gap);
  }
  .ui-card--icon {
    padding: var(--rhythm-stack-lg) var(--rhythm-stack);
    border: 1px solid rgba(30, 61, 41, 0.06);
  }
  .ui-card--icon .ui-card__icon {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: var(--rhythm-gap);
  }
  .ui-card--icon .ui-card__title {
    font-size: var(--text-md);
  }
  .ui-card--icon .ui-card__text {
    font-size: var(--text-sm);
    line-height: var(--rhythm-leading);
  }
  .article-list {
    gap: var(--rhythm-stack-lg);
  }
  .article-hub__toolbar {
    padding: var(--rhythm-stack) var(--rhythm-gap);
    gap: var(--rhythm-stack);
  }
  .article-year-block {
    margin-bottom: var(--rhythm-stack-lg);
  }
  .ort-facts {
    padding: var(--rhythm-stack) var(--rhythm-gap);
    margin-block: var(--rhythm-stack);
    margin-inline: -0.15rem;
  }
  .ui-card__link {
    border: 1px solid rgba(30, 61, 41, 0.06);
  }
  .ui-card__title {
    font-size: var(--text-md);
  }
  /* Navigation: Rhythmus-System */
  .site-nav {
    --nav-item-min-h: var(--s-48);
    --nav-item-pad: var(--s-12) var(--s-16);
    --nav-item-gap: var(--rhythm-stack);
    --nav-sub-gap: var(--rhythm-gap);
    --nav-scroll-pad: var(--rhythm-stack-lg) var(--rhythm-gap);
  }
  .site-nav__list {
    gap: var(--nav-item-gap);
    padding-block: var(--rhythm-gap) var(--rhythm-stack-lg);
  }
  .site-nav__item {
    margin: 0;
  }
  .site-nav__item + .site-nav__item {
    border-top: none;
  }
  .site-nav__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rhythm-gap);
    min-height: max(44px, var(--nav-item-min-h));
    padding: var(--nav-item-pad);
    font-size: 1.125rem;
    line-height: var(--rhythm-leading);
    font-weight: var(--weight-medium);
    letter-spacing: 0.01em;
    border-radius: 16px;
    background: var(--color-white);
    border: 1px solid rgba(30, 61, 41, 0.08);
    box-shadow: 0 2px 12px rgba(30, 61, 41, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .site-nav__item.is-active > a {
    background: var(--color-forest);
    border-color: var(--color-forest);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(30, 61, 41, 0.18);
  }
  .site-nav__item.is-active > a::after {
    border-color: currentColor;
    opacity: 0.85;
  }
  .site-nav__item > a:active {
    background: var(--color-cream-dark);
  }
  .site-nav__item.is-active > a:active {
    background: var(--color-forest-dark);
  }
  .site-nav__item.has-children > a::after {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-nav__item.has-children.is-expanded > a::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }
  .site-nav__sub {
    display: flex;
    flex-direction: column;
    gap: var(--nav-sub-gap);
    padding: 0;
    margin: var(--rhythm-gap) 0 0 var(--rhythm-gap);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-left: 3px solid transparent;
    transition:
      max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      padding 0.28s ease,
      margin 0.28s ease,
      border-color 0.28s ease;
  }
  .site-nav__item.has-children.is-expanded > a {
    margin-bottom: var(--rhythm-gap);
  }
  .site-nav__item.has-children.is-expanded .site-nav__sub {
    max-height: 36rem;
    opacity: 1;
    padding: var(--rhythm-gap) 0 var(--rhythm-stack-sm) var(--rhythm-stack);
    border-left-color: var(--color-forest);
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    border-radius: 0 14px 14px 0;
  }
  .site-nav__sub li {
    margin: 0;
  }
  .site-nav__sub a {
    display: flex;
    align-items: center;
    min-height: max(44px, var(--r-7));
    padding: var(--rhythm-pad-block) var(--rhythm-pad-inline);
    font-size: 1.0625rem;
    line-height: var(--rhythm-leading);
    margin-top: 0;
    background: var(--color-white);
    border: 1px solid rgba(30, 61, 41, 0.07);
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(30, 61, 41, 0.04);
  }
  .site-nav__sub a:active {
    background: var(--color-cream);
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(30, 61, 41, 0.1);
    touch-action: manipulation;
  }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 99;
    background: rgba(26, 36, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.nav-open .nav-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }
  .site-footer__grid { text-align: center; }
  .site-footer {
    padding-block: var(--rhythm-stack-lg);
    margin-top: var(--rhythm-stack);
  }
  .site-footer__grid {
    gap: var(--rhythm-stack);
  }
  .site-footer__nav {
    flex-direction: column;
    align-items: stretch;
    gap: var(--rhythm-gap);
    max-width: 22rem;
    margin-inline: auto;
  }
  .site-footer__meta p {
    margin-block: var(--rhythm-gap);
  }
  .consent-banner__actions { flex-direction: column; }
  .btn-consent { width: 100%; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
    max-height: none;
    min-height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: var(--rhythm-stack-lg);
    background: linear-gradient(
      180deg,
      var(--color-cream) 0%,
      #f3efe8 100%
    );
    border-bottom: none;
    padding:
      var(--nav-scroll-pad)
      var(--nav-scroll-pad)
      calc(var(--rhythm-stack-lg) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 20px 56px rgba(30, 61, 41, 0.16);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      visibility 0.32s;
  }
  .site-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav.is-open .site-nav__item {
    animation: navItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .site-nav.is-open .site-nav__item:nth-child(1) { animation-delay: 0.04s; }
  .site-nav.is-open .site-nav__item:nth-child(2) { animation-delay: 0.08s; }
  .site-nav.is-open .site-nav__item:nth-child(3) { animation-delay: 0.12s; }
  .site-nav.is-open .site-nav__item:nth-child(4) { animation-delay: 0.16s; }
  .site-nav.is-open .site-nav__item:nth-child(5) { animation-delay: 0.2s; }
  .site-nav.is-open .site-nav__item:nth-child(6) { animation-delay: 0.24s; }
  .site-nav.is-open .site-nav__item:nth-child(7) { animation-delay: 0.28s; }
  .site-nav.is-open .site-nav__item:nth-child(8) { animation-delay: 0.32s; }
  @keyframes navItemIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .site-nav__sub {
    position: static;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__item.has-children:hover .site-nav__sub {
    display: flex;
  }
  .site-footer__nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--cta-min-h);
    padding: var(--cta-pad);
    font-size: var(--text-base);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    touch-action: manipulation;
  }
  .site-footer__nav a:active {
    background: rgba(255, 255, 255, 0.14);
  }
  .site-footer__meta a,
  .site-footer .link-button--footer {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.5rem 0.75rem;
    margin: 0.15rem -0.25rem;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .site-footer .link-button--footer {
    width: 100%;
    justify-content: center;
    margin: 0.35rem 0 0;
    padding: var(--touch-pad-y) var(--touch-pad-x);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }
  .article-hub__search-input {
    min-height: var(--touch-min);
    padding: var(--rhythm-pad-block) var(--rhythm-pad-inline);
    font-size: 1rem;
    line-height: var(--rhythm-leading);
  }
  .article-hub__filters {
    gap: var(--touch-gap);
  }
  .article-hub__filter {
    min-height: var(--touch-min);
    padding: var(--touch-pad-y) 1.2rem;
    font-size: 1.0625rem;
    touch-action: manipulation;
  }
  .article-archive__summary {
    min-height: var(--touch-min);
    padding: var(--rhythm-pad-block) var(--rhythm-stack);
  }
  .btn-map-load,
  .btn-consent {
    min-height: var(--touch-min);
    padding-block: var(--rhythm-pad-block);
    line-height: var(--rhythm-leading);
  }
  .ui-card__link:active,
  .ui-card--icon:active {
    transform: scale(0.985);
  }

  /*
   * Einheitliche Inhaltsmodule – gleiche Dichte trotz unterschiedlicher Inhaltstypen
   */
  .content-surface,
  .ui-card--teaser .ui-card__link,
  .ui-card--article,
  .ui-card--icon,
  .ort-facts,
  .radwege-tools,
  .notice,
  .article-hub__toolbar,
  .article-archive {
    border: var(--card-border);
    box-shadow: var(--card-shadow);
  }

  /* News / Teaser: gleiche Kartenstruktur */
  .home-aktuelles .ui-card__link,
  .article-list .ui-card--teaser .ui-card__link,
  .ui-card-grid .ui-card--teaser .ui-card__link {
    flex-direction: column;
    min-height: auto;
  }
  .home-aktuelles .ui-card__media,
  .article-list .ui-card--teaser .ui-card__media,
  .ui-card-grid .ui-card--teaser .ui-card__media {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: var(--media-ratio);
    flex-shrink: 0;
  }
  .home-aktuelles .ui-card__body,
  .article-list .ui-card--teaser .ui-card__body,
  .ui-card-grid .ui-card--teaser .ui-card__body {
    padding: var(--card-pad);
    min-height: var(--card-teaser-body-min);
    justify-content: flex-start;
  }
  .home-aktuelles .ui-card__title,
  .article-list .ui-card--teaser .ui-card__title,
  .ui-card-grid .ui-card--teaser .ui-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 2.75em;
    margin-bottom: var(--rhythm-gap);
    overflow: hidden;
  }
  .home-aktuelles .ui-card__text--clamp,
  .article-list .ui-card--teaser .ui-card__text--clamp {
    -webkit-line-clamp: 2;
    min-height: 3em;
    margin-bottom: var(--rhythm-gap);
  }
  .home-aktuelles .ui-card__action,
  .article-list .ui-card--teaser .ui-card__action {
    margin-top: auto;
    padding-top: var(--rhythm-gap);
  }

  /* Volltext-Meldungen: Innenrhythmus */
  .ui-card--article .ui-card__title--lg {
    margin-bottom: var(--rhythm-stack-sm);
  }
  .ui-card--article .ui-card__content.content-prose {
    margin-top: var(--rhythm-gap);
  }
  .ui-card--article .ui-card__content.content-prose > *:first-child {
    margin-top: 0;
  }
  .ui-card--article .ui-card__content.content-prose > *:last-child {
    margin-bottom: 0;
  }

  /* Fließtext-Blöcke: gleicher vertikaler Takt */
  .content-prose > * + * {
    margin-top: 0;
  }
  .content-prose > p,
  .content-prose > ul:not(:has(a[href*=".pdf" i])):not(:has(a[download])),
  .content-prose > ol,
  .content-prose > table,
  .content-prose > .content-figure,
  .content-prose > picture,
  .content-prose > h2,
  .content-prose > h3 {
    margin-bottom: var(--rhythm-stack-sm);
  }
  .content-prose > h2 + p,
  .content-prose > h3 + p {
    margin-top: 0;
  }
  .content-prose .content-figure,
  .content-prose > picture,
  .content-prose > img {
    margin-block: var(--rhythm-stack);
    box-shadow: var(--card-shadow);
  }
  .ui-card--article .content-prose .content-figure,
  .ui-card--article .content-prose > picture,
  .ui-card--article .content-prose > img {
    margin-block: var(--rhythm-stack-sm);
  }

  /* Daumen-Ziele: Fließtext-Links (nicht PDF-Listen) */
  .content-prose li {
    margin-bottom: var(--rhythm-gap);
    padding-left: 0.15rem;
  }
  .content-prose p a {
    padding: 0.35em 0.3em;
    margin: -0.2em -0.05em;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .content-prose ul:not(:has(a[href*=".pdf" i])):not(:has(a[download])) li a,
  .content-prose ol:not(:has(a[href*=".pdf" i])) li a {
    display: inline-flex;
    align-items: center;
    min-height: var(--cta-min-h);
    padding: var(--cta-pad);
    margin: var(--s-8) 0;
    border-radius: var(--radius);
    touch-action: manipulation;
  }
  .content-prose li a:active,
  .content-prose p a:active,
  .ort-facts a:active,
  .radwege-tools__links a:active,
  .content-prose ul:has(a[href*=".pdf" i]) a:active {
    background: rgba(45, 90, 61, 0.08);
  }
  .ui-card__action a,
  .ui-card--route .ui-card__action a {
    margin-top: var(--s-8);
  }
  .home-aktuelles__more {
    margin-top: var(--rhythm-stack);
  }
  .home-aktuelles__more a {
    margin-top: var(--s-16);
    border-radius: 999px;
  }
  .ui-card--icon {
    min-height: calc(var(--touch-min) * 2);
  }
  .lightbox__close {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .consent-option {
    min-height: var(--touch-min);
    padding: 0.65rem 0;
    align-items: center;
  }
  .consent-option input {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
  }
  .btn-consent,
  .btn-map-load {
    font-size: 1.0625rem;
    touch-action: manipulation;
  }
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  input[type="reset"] {
    touch-action: manipulation;
  }
}

/* Smartphone: größere Schrift, volle Karten, Galerie */
@media (max-width: 639px) {
  :root {
    --text-base: 1.1875rem;
    --text-sm: 1.0625rem;
    --text-md: 1.25rem;
    --text-lg: 1.45rem;
    --text-xl: 1.6rem;
    --header-h: var(--s-56);
    --rhythm-section-y: var(--s-56);
    --space-section-y: var(--rhythm-section-y);
  }
  .site-nav {
    --nav-item-gap: var(--rhythm-stack-lg);
    --nav-scroll-pad: var(--r-5) var(--rhythm-gap);
  }
  .container,
  .container--narrow {
    width: min(100% - 1.25rem, var(--max-w));
  }
  .site-brand__logo { height: 36px; }
  .site-brand__title { font-size: 1rem; }
  .page-hero {
    padding-block: var(--rhythm-stack-lg) var(--rhythm-stack);
  }
  .page-hero__lead,
  .content-prose {
    font-size: var(--text-base);
    line-height: var(--rhythm-leading);
  }
  .content-prose h1 { font-size: var(--text-2xl); }
  .content-prose h2 {
    font-size: var(--text-lg);
    margin-top: var(--rhythm-stack-lg);
  }
  .content-prose h3 { font-size: var(--text-md); }
  .nav-toggle__label {
    display: none;
  }
  .nav-toggle {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0.75rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--rhythm-gap);
  }
  .gallery-grid .gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
  }
  .ui-card-grid {
    grid-template-columns: 1fr;
    gap: var(--rhythm-stack);
  }
  .ui-card__text {
    font-size: var(--text-sm);
    line-height: var(--rhythm-leading);
  }
  .home-lead__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    margin-bottom: var(--rhythm-stack);
  }
}

/* Startseite – About & Clubhaus */
.home-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-48);
  align-items: center;
}
.home-about__eyebrow {
  margin: 0 0 var(--s-8);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-river);
}
.home-about__title {
  margin: 0 0 var(--s-16);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--color-forest-dark);
  line-height: 1.15;
}
.home-about__copy p:last-of-type { margin-bottom: var(--s-24); }
.home-about__media {
  position: relative;
}
.home-about__photo,
.home-about__photo picture,
.home-about__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-about__logo-wrap {
  position: absolute;
  right: var(--s-16);
  bottom: calc(-1 * var(--s-24));
  padding: var(--s-12);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.home-about__logo {
  display: block;
  max-width: 120px;
  height: auto;
}
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-stats li {
  flex: 1 1 100px;
  padding: var(--s-16);
  text-align: center;
  background: var(--color-cream);
  border: var(--card-border);
  border-radius: var(--radius);
}
.home-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-forest);
  line-height: 1.1;
}
.home-stats span {
  display: block;
  margin-top: var(--s-8);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.home-clubhouse__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-48);
  align-items: center;
}
.home-clubhouse__figure {
  margin: 0;
}
.home-clubhouse__figure img,
.home-clubhouse__figure picture,
.home-clubhouse__figure picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-clubhouse__copy h2 {
  margin-top: 0;
  color: var(--color-forest-dark);
}
.home-clubhouse__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-top: var(--s-24);
}
.home-clubhouse__copy .content-prose > p:has(> a[href*=".pdf" i]:only-child) {
  margin-bottom: var(--s-16);
}

/* Startseite – Kooperationspartner */
.home-partners__title {
  text-align: center;
}
.home-partners__banner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: var(--s-32);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s-24);
  background: var(--color-white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.home-partners__logo-link {
  display: block;
  text-decoration: none;
}
.home-partners__logo,
.home-partners__logo-link picture,
.home-partners__logo-link img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}
.home-partners__copy {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--rhythm-leading);
  color: var(--color-text);
}
.home-partners__copy p {
  margin: 0 0 var(--s-16);
}
.home-partners__copy p:last-child {
  margin-bottom: 0;
}
.home-partners__actions {
  margin: var(--s-20) 0;
}
.home-partners__hint {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 36ch;
}

/* PDF-/Download-Zeile (Partner, Regularien, …) */
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  min-height: var(--cta-min-h);
  padding: var(--s-12) var(--s-16);
  border-radius: var(--radius);
  font-weight: var(--weight-medium);
  line-height: var(--rhythm-leading);
  text-decoration: none;
  color: var(--color-forest);
  background: var(--color-white);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  touch-action: manipulation;
  box-sizing: border-box;
  max-width: 100%;
}
.doc-link::before {
  content: "PDF";
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--s-8) var(--s-12);
  border-radius: var(--s-8);
  background: var(--color-cream-dark);
  color: var(--color-forest-dark);
}
.doc-link:hover {
  background: var(--color-cream);
  color: var(--color-forest-dark);
}
.doc-link:active {
  background: rgba(21, 54, 107, 0.08);
}

.embed-responsive {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--card-border);
  background: var(--color-white);
}
.embed-responsive iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

@media (max-width: 900px) {
  .home-about__grid,
  .home-clubhouse__grid {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }
  .home-about__logo-wrap {
    position: static;
    margin-top: var(--s-16);
    display: inline-block;
  }
  .home-clubhouse__figure { order: -1; }
  .home-partners__banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--s-20);
  }
  .home-partners__logo-link {
    margin-inline: auto;
  }
  .home-partners__hint {
    max-width: none;
    margin-inline: auto;
  }
  .home-partners__actions .doc-link {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  html { scroll-behavior: auto; }
  .card-grid--reveal .ui-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav,
  .site-nav__sub,
  .nav-toggle__bar,
  .nav-backdrop,
  .site-header {
    transition: none;
  }
  .site-nav.is-open .site-nav__item {
    animation: none;
  }
}
