/* ==========================================================================
   TC GWR Mosbach e.V. — Design-System
   Farbwelt: Clubgrün (Logo) + Sandplatz-Terrakotta, Rot als Akzent.
   ========================================================================== */

:root {
  /* Clubgrün */
  --gruen-900: #08301f;
  --gruen-800: #0b4029;
  --gruen-700: #0f5336;
  --gruen-600: #146945;
  --gruen-500: #1a8054;
  --gruen-300: #6fbf95;
  --gruen-100: #e3f2ea;

  /* Sandplatz */
  --terra-700: #9c4526;
  --terra-600: #b85434;
  --terra-500: #c9633f;
  --terra-400: #dc8460;
  --terra-100: #f9e8e0;

  /* Logo-Rot, sparsam */
  --rot: #cc2b2b;

  /* Neutral */
  --creme: #faf8f4;
  --sand: #f0e9e0;
  --tinte: #14201a;
  --grau-700: #3f4f47;
  --grau-500: #64756b;
  --grau-300: #b9c4bd;
  --linie: #e2ded6;
  --weiss: #fff;

  --radius: 14px;
  --radius-s: 9px;
  --radius-l: 24px;
  --schatten: 0 1px 2px rgb(8 48 31 / .05), 0 8px 24px -12px rgb(8 48 31 / .18);
  --schatten-hoch: 0 2px 4px rgb(8 48 31 / .06), 0 24px 48px -20px rgb(8 48 31 / .3);

  --breite: 1200px;
  --breite-schmal: 760px;
  --kopfhoehe: 78px;

  --schrift: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Grundlagen ---------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopfhoehe) + 16px);
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  /* Bewusst KEIN overflow-x hier: das killt sonst jedes position:sticky. */
}

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

/* Inline-Icons haben kein width/height im Markup — ohne diese Grundgroesse
   dehnt sich ein SVG auf die volle Spaltenbreite aus. */
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
  /* Deutsche Komposita („Trainingsrückmeldung") sprengen sonst schmale Displays.
     hyphens greift nur mit lang="de" am <html>, das ist gesetzt. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gruen-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-600); }

hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--terra-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.nur-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprung-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--gruen-700); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.sprung-link:focus { top: 12px; color: #fff; }

/* --- Grundraster --------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.wrap-schmal { width: min(100% - 2.5rem, var(--breite-schmal)); margin-inline: auto; }

@media (max-width: 560px) {
  .wrap, .wrap-schmal { width: min(100% - 1.75rem, var(--breite)); }
}

section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
section.eng { padding-block: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); }
.bg-creme { background: var(--creme); }
.bg-sand { background: var(--sand); }
.bg-gruen { background: var(--gruen-800); color: #eaf3ee; }
.bg-gruen h2, .bg-gruen h3 { color: #fff; }
/* :not(.btn) ist Pflicht — sonst faerbt diese Regel auch die Buttons in der Sektion um. */
.bg-gruen a:not(.btn) { color: var(--gruen-300); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 700; font-size: .97rem;
  letter-spacing: -.01em; line-height: 1.2;
  padding: .85em 1.5em; border-radius: 100px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* terra-600 statt -500: Weiss auf -500 ergibt nur 3,9:1 und reisst damit
   die WCAG-Grenze von 4,5:1 fuer Text unter 18,66 px. */
.btn-primaer { background: var(--terra-600); color: #fff; box-shadow: 0 6px 18px -8px rgb(184 84 52 / .8); }
.btn-primaer:hover { background: var(--terra-700); color: #fff; box-shadow: 0 10px 24px -8px rgb(184 84 52 / .9); }

.btn-gruen { background: var(--gruen-600); color: #fff; }
.btn-gruen:hover { background: var(--gruen-700); color: #fff; }

.btn-rand { border-color: var(--gruen-600); color: var(--gruen-700); background: transparent; }
.btn-rand:hover { background: var(--gruen-600); color: #fff; }

.btn-hell { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(255 255 255 / .08); }
.btn-hell:hover { background: #fff; color: var(--gruen-800); border-color: #fff; }

.btn-klein { padding: .6em 1.1em; font-size: .88rem; }
/* Kein Knopf unter der 44-px-Trefferfläche. Nach Breite statt nach
   `pointer: coarse`: das meldet nicht jeder Browser zuverlässig. */
@media (max-width: 760px), (pointer: coarse) { .btn { min-height: 44px; } }

.btn-reihe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Kopfbereich --------------------------------------------------------- */

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--kopfhoehe);
}
.kopf-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.kopf-logo img { height: 52px; width: auto; }
.kopf-logo b {
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  color: var(--gruen-800); letter-spacing: -.02em; line-height: 1.15;
  display: block; max-width: 12ch;
}

.kopf-nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.kopf-nav > li { position: relative; list-style: none; }
.kopf-nav ul { list-style: none; margin: 0; padding: 0; }
.kopf-nav > li > a, .kopf-nav > li > button {
  display: flex; align-items: center; gap: .3em;
  font-family: var(--display); font-weight: 600; font-size: .94rem;
  color: var(--grau-700); text-decoration: none;
  padding: .6rem .72rem; border-radius: var(--radius-s);
  background: none; border: 0; cursor: pointer; font-family: var(--display);
  white-space: nowrap;
}
.kopf-nav > li > a:hover, .kopf-nav > li > button:hover,
.kopf-nav > li:focus-within > a, .kopf-nav > li:focus-within > button {
  color: var(--gruen-700); background: var(--gruen-100);
}
.kopf-nav > li > a[aria-current="page"] { color: var(--gruen-700); }
.kopf-nav > li.aktiv > a, .kopf-nav > li.aktiv > button { color: var(--gruen-700); }
.kopf-nav .pfeil { width: 9px; height: 9px; flex: none; transition: transform .18s; opacity: .65; }
.pfeil svg { width: 100%; height: 100%; display: block; vertical-align: baseline; }
.kopf-nav li:hover .pfeil, .kopf-nav li:focus-within .pfeil { transform: rotate(180deg); }

.unter {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px; padding: .5rem;
  background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten-hoch);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.kopf-nav li:hover > .unter, .kopf-nav li:focus-within > .unter {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.unter a {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-s);
  font-size: .92rem; font-weight: 500; color: var(--grau-700); text-decoration: none;
}
.unter a:hover { background: var(--gruen-100); color: var(--gruen-700); }
.unter a[aria-current="page"] { background: var(--gruen-100); color: var(--gruen-700); font-weight: 600; }

.kopf-aktion { display: flex; align-items: center; gap: .5rem; flex: none; }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: var(--gruen-700); border: 0; border-radius: var(--radius-s);
  cursor: pointer; color: #fff;
}
.burger .balken {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative;
}
.burger .balken::before, .burger .balken::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s, top .2s;
}
.burger .balken::before { top: -6px; }
.burger .balken::after { top: 6px; }
.burger[aria-expanded="true"] .balken { background: transparent; }
.burger[aria-expanded="true"] .balken::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .balken::after { top: 0; transform: rotate(-45deg); }

/* Mobil-Menü */
.mobil {
  display: none;
  position: fixed; inset: var(--kopfhoehe) 0 0;
  background: #fff; z-index: 99;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1.25rem 0 3rem;
}
.mobil[data-offen="1"] { display: block; }
.mobil ul { list-style: none; margin: 0; padding: 0; }
.mobil > .wrap > ul > li { border-bottom: 1px solid var(--linie); }
/* Nur die Navigationslinks in der Liste. Ohne `ul` traf diese Regel auch die
   Buttons darunter und schlug deren .btn-Styles (display:block statt
   inline-flex, padding .25rem statt 1.5em) — Text klebte links am Rand. */
.mobil ul a, .mobil summary {
  display: block; padding: .9rem .25rem; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--tinte);
}
.mobil summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.mobil summary::-webkit-details-marker { display: none; }
.mobil summary .pfeil { width: 11px; height: 11px; opacity: .6; transition: transform .18s; }
.mobil details[open] summary .pfeil { transform: rotate(180deg); }
.mobil details ul { padding: 0 0 .7rem .9rem; border-left: 2px solid var(--gruen-100); margin-left: .25rem; }
.mobil details ul a { font-size: .96rem; font-weight: 500; color: var(--grau-700); padding: .5rem .25rem; }
.mobil ul a[aria-current="page"] { color: var(--gruen-700); }
.mobil-aktion { display: grid; gap: .7rem; padding-top: 1.75rem; }
.mobil-aktion .btn { justify-content: center; padding-block: 1em; font-size: 1rem; }

@media (max-width: 1120px) {
  .kopf-nav, .kopf-aktion .btn { display: none; }
  .burger { display: flex; }
  .kopf-logo b { max-width: none; }
  /* Die Nav trug das margin-left:auto. Ist sie ausgeblendet, braucht es
     der Burger, sonst klebt er mittig neben dem Logo statt rechts. */
  .kopf-aktion { margin-left: auto; }
}
@media (max-width: 400px) {
  .kopf-logo b { font-size: .9rem; max-width: 11ch; }
  .kopf-logo img { height: 44px; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bild { position: absolute; inset: 0; z-index: -2; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Zwei Verläufe: der senkrechte hält den Text lesbar, der waagerechte beruhigt
   die linke Bildhälfte, auf der die Schrift steht. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 48 31 / .78) 0%, rgb(8 48 31 / .62) 38%, rgb(8 48 31 / .22) 66%, rgb(8 48 31 / 0) 100%),
    linear-gradient(180deg, rgb(8 48 31 / .2) 0%, rgb(8 48 31 / .28) 45%, rgb(8 48 31 / .72) 100%);
}
@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(180deg, rgb(8 48 31 / .6) 0%, rgb(8 48 31 / .68) 45%, rgb(8 48 31 / .9) 100%);
  }
}
.hero-innen { padding-block: clamp(4rem, 3rem + 9vw, 8.5rem); max-width: 44rem; }
/* Der Schatten fängt die hellen Stellen im Foto ab (Flutlicht hinter der Schrift). */
.hero h1, .hero p.lead { text-shadow: 0 2px 14px rgb(6 34 22 / .75); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem); color: rgb(255 255 255 / .95); margin-bottom: 1.9em; }
.hero .btn-reihe { gap: .8rem; }

.marke {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 100px; margin-bottom: 1.4em;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); color: #fff;
}
.marke.hell { background: var(--terra-100); border-color: transparent; color: var(--terra-700); }
.marke.gruen { background: var(--gruen-100); border-color: transparent; color: var(--gruen-700); }

/* Kopfzeile für Unterseiten */
.seitenkopf { background: var(--gruen-800); color: #fff; padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); position: relative; isolation: isolate; overflow: hidden; }
.seitenkopf::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background:
    radial-gradient(circle at 88% 12%, var(--terra-400) 0%, transparent 46%),
    radial-gradient(circle at 8% 92%, var(--gruen-500) 0%, transparent 52%);
}
.seitenkopf h1 { color: #fff; margin-bottom: 0; }
.seitenkopf p { color: rgb(255 255 255 / .84); margin: .8rem 0 0; max-width: 52ch; font-size: 1.06rem; }
.seitenkopf.mit-bild::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(11 64 41 / .96) 0%, rgb(11 64 41 / .72) 55%, rgb(11 64 41 / .45) 100%);
}
.seitenkopf .kopfbild { position: absolute; inset: 0; z-index: -2; }
.seitenkopf .kopfbild img { width: 100%; height: 100%; object-fit: cover; }

/* Brotkrumen */
.krumen { font-size: .85rem; margin-bottom: 1.1rem; }
.krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.krumen li::after { content: '/'; margin-left: .4rem; opacity: .45; }
.krumen li:last-child::after { content: none; }
.krumen a { color: rgb(255 255 255 / .8); text-decoration: none; }
.krumen a:hover { color: #fff; text-decoration: underline; }
.krumen [aria-current] { color: rgb(255 255 255 / .6); }

/* --- Karten -------------------------------------------------------------- */

.gitter { display: grid; gap: 1.5rem; }
.gitter-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gitter-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.gitter-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.karte-link { position: relative; }
.karte-link:hover { transform: translateY(-4px); box-shadow: var(--schatten-hoch); border-color: var(--gruen-300); }
/* Die GANZE Karte ist klickbar — sonst sieht „Weiterlesen →" wie ein Knopf aus,
   reagiert aber nicht. Ein einziger Link, gut für Screenreader und Tastatur. */
.karte-link .karte-text h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.karte-link:focus-within { outline: 3px solid var(--terra-500); outline-offset: 2px; }
.karte-link .karte-text h3 a:focus-visible { outline: none; }
.karte-bild { aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
/* Beiträge ohne Foto bekommen eine Vereinsfarben-Fläche, damit das Raster nicht ausfranst.
   Vier Varianten, damit mehrere nebeneinander nicht wie ein Fehler aussehen. */
.karte-bild.ohne-bild {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gruen-800) 0%, var(--gruen-600) 60%, var(--gruen-500) 100%);
}
.karte:nth-child(4n+2) .karte-bild.ohne-bild { background: linear-gradient(200deg, var(--gruen-700) 0%, var(--gruen-500) 50%, var(--terra-600) 115%); }
.karte:nth-child(4n+3) .karte-bild.ohne-bild { background: linear-gradient(115deg, var(--gruen-900) 0%, var(--gruen-700) 70%, var(--gruen-600) 100%); }
.karte:nth-child(4n+4) .karte-bild.ohne-bild { background: linear-gradient(160deg, var(--terra-700) -10%, var(--gruen-700) 45%, var(--gruen-800) 100%); }
.karte-bild.ohne-bild svg { width: 58px; height: 58px; color: rgb(255 255 255 / .38); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.karte-link:hover .karte-bild img { transform: scale(1.04); }
.karte-text { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.karte-text h3 { margin-bottom: .4rem; }
.karte-text h3 a { color: inherit; text-decoration: none; }
/* grau-700 statt -500 und 1rem statt .95rem: die Teaser waren in der Übersicht
   zu blass zum Lesen (Rückmeldung 05.08.2026). */
.karte-text p { color: var(--grau-700); font-size: 1rem; line-height: 1.6; margin-bottom: 1.1rem; }
.karte-text .mehr { margin-top: auto; font-weight: 700; font-size: .94rem; color: var(--gruen-600); font-family: var(--display); }
.karte-link:hover .mehr { color: var(--terra-600); }
.karte-datum { font-size: .84rem; color: var(--terra-700); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin-bottom: .5rem; }

/* Kachel mit Farbfläche statt Foto */
.kachel {
  display: block; padding: 1.6rem 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--linie); text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten); border-color: var(--gruen-300); color: inherit; }
.kachel h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.kachel p { color: var(--grau-500); font-size: .93rem; margin: 0; }
.kachel .icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--gruen-100); color: var(--gruen-700);
}
.kachel .icon svg { width: 21px; height: 21px; }
.kachel.terra .icon { background: var(--terra-100); color: var(--terra-700); }

/* --- Zahlen -------------------------------------------------------------- */

.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1.5rem; }
.zahl { text-align: center; }
.zahl b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem); line-height: 1;
  color: var(--terra-500); letter-spacing: -.03em;
}
.bg-gruen .zahl b { color: var(--gruen-300); }
.zahl span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--grau-500); font-weight: 500; }
.bg-gruen .zahl span { color: rgb(255 255 255 / .78); }

/* --- Fließtext (importierte Inhalte) ------------------------------------- */

.prose { max-width: 68ch; }
.prose.breit { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
.prose h3 { margin-top: 1.9rem; }
.prose h4 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra-500); }
.prose img {
  border-radius: var(--radius); margin: 1.8rem 0;
  width: 100%; height: auto; max-width: 100%;
}
.prose strong { font-weight: 700; color: var(--tinte); }
.prose blockquote {
  margin: 1.8rem 0; padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--terra-500); color: var(--grau-700); font-style: italic;
}

/* Schatten an den Raendern zeigt an, dass die Tabelle seitlich weitergeht.
   Kein JS noetig: die local-Ebenen scrollen mit, die scroll-Ebenen bleiben stehen. */
.tabelle-wrap {
  overflow-x: auto; margin: 1.6rem 0; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(90deg, #fff 32%, rgb(255 255 255 / 0)) left center / 42px 100% no-repeat,
    linear-gradient(90deg, rgb(255 255 255 / 0), #fff 68%) right center / 42px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgb(8 48 31 / .16), rgb(8 48 31 / 0)) left center / 15px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgb(8 48 31 / .16), rgb(8 48 31 / 0)) right center / 15px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
/* min(30rem, 100%): schmale Tabellen (z. B. Beitragsliste, 2 Spalten) passen aufs
   Handy und brechen um; breite Preisraster brauchen weiter ihren Scroller.
   Feste 30rem hatten auch die 2-Spalter aufgeblasen und die Beträge abgeschnitten. */
.tabelle-wrap table, table.tabelle { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: min(30rem, 100%); }
.tabelle-wrap th, .tabelle-wrap td, table.tabelle th, table.tabelle td {
  border: 1px solid var(--linie); padding: .65rem .85rem; text-align: left; vertical-align: top;
}
.tabelle-wrap th, table.tabelle th { background: var(--creme); font-family: var(--display); font-weight: 700; font-size: .88rem; }
.tabelle-wrap tr:nth-child(even) td, table.tabelle tbody tr:nth-child(even) td { background: #fbfaf8; }

/* --- Info-Kasten --------------------------------------------------------- */

.kasten {
  border: 1px solid var(--linie); border-left: 4px solid var(--terra-500);
  background: var(--creme); border-radius: var(--radius-s);
  padding: 1.2rem 1.4rem; margin: 1.8rem 0;
}
.kasten.gruen { border-left-color: var(--gruen-500); background: var(--gruen-100); border-color: transparent; }
.kasten h3, .kasten h4 { margin-top: 0; }
.kasten > :last-child { margin-bottom: 0; }

/* --- Personen ------------------------------------------------------------ */

.person {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
}
.person-bild {
  width: 68px; height: 68px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--gruen-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.person-bild img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.person .rolle { font-size: .88rem; color: var(--terra-600); font-weight: 600; margin-bottom: .45rem; }
.person .kontakt { font-size: .9rem; color: var(--grau-500); display: grid; gap: .15rem; }
.person .kontakt a { color: var(--gruen-600); text-decoration: none; }
.person .kontakt a:hover { text-decoration: underline; }

/* --- Formulare ----------------------------------------------------------- */

.formular { display: grid; gap: 1.1rem; }
.feld { display: grid; gap: .35rem; }
.feld > label, .feldgruppe > legend {
  font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--grau-700);
}
.feld .hinweis { font-size: .84rem; color: var(--grau-500); font-weight: 400; }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem; color: var(--tinte);
  padding: .7rem .9rem; border: 1px solid var(--grau-300); border-radius: var(--radius-s);
  background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--gruen-500); box-shadow: 0 0 0 3px var(--gruen-100);
}
.feld textarea { min-height: 8rem; resize: vertical; }
.feld-reihe { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.feldgruppe { border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0; }
/* float statt schwebender Legende: eine zweizeilige <legend> reißt sonst den
   fieldset-Rahmen auf und die zweite Zeile liegt auf der Linie. */
.feldgruppe legend { float: left; width: 100%; padding: 0; margin-bottom: .85rem; font-size: 1rem; }
.feldgruppe legend + * { clear: both; }
.feldgruppe::after { content: ''; display: table; clear: both; }
.wahl { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; line-height: 1.5; }
/* 20px statt Browser-Standard (13px): darunter ist die Box auf dem Handy
   kaum zu treffen. Das Label ist als Ganzes klickbar, der Kasten selbst
   soll aber auch ohne Zielen erwischt werden. */
.wahl input { width: 20px; height: 20px; flex: none; margin-top: .18rem; accent-color: var(--gruen-600); cursor: pointer; }
.wahl { cursor: pointer; }
.wahl-liste { display: grid; gap: .6rem; }
.pflicht { color: var(--rot); }

/* Honeypot – für Menschen unsichtbar, Bots füllen ihn aus */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-hinweis {
  background: var(--terra-100); border-radius: var(--radius-s);
  padding: .9rem 1.1rem; font-size: .92rem; color: var(--terra-700);
}

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

.fuss { background: var(--gruen-900); color: rgb(255 255 255 / .74); padding-block: 3.5rem 0; font-size: .94rem; }
.fuss h3 { color: #fff; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.fuss a { color: rgb(255 255 255 / .74); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
/* Feste Spalten statt auto-fit: `repeat(auto-fit,…)` neben einer fr-Spalte ist
   ungültig — der Browser verwirft dann die ganze Deklaration. */
.fuss-gitter { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss-marke img { height: 62px; width: auto; background: #fff; border-radius: 10px; padding: 7px 10px; margin-bottom: 1.1rem; }
.fuss-marke p { margin-bottom: .8rem; }
.fuss-sozial { display: flex; gap: .6rem; margin-top: 1.2rem; }
.fuss-sozial a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / .1); color: #fff; transition: background-color .16s;
}
.fuss-sozial a:hover { background: var(--terra-500); }
.fuss-sozial svg { width: 19px; height: 19px; }
.fuss-unten {
  margin-top: 3rem; border-top: 1px solid rgb(255 255 255 / .13); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .87rem; color: rgb(255 255 255 / .55);
}
.fuss-unten ul { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.fuss-signatur {
  border-top: 1px solid rgb(255 255 255 / .09);
  padding-block: 1.1rem 1.6rem; text-align: center;
  font-size: .85rem; color: rgb(255 255 255 / .5);
}
.fuss-signatur a { color: inherit; }
.fuss-signatur a:hover { color: #fff; }

@media (max-width: 1040px) { .fuss-gitter { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (max-width: 720px) { .fuss-gitter { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 460px) { .fuss-gitter { grid-template-columns: 1fr; } }

/* --- News ---------------------------------------------------------------- */

.news-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.news-kopf h2 { margin-bottom: 0; }

.beitrag-meta { color: var(--grau-500); font-size: .92rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }

.blaettern { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.blaettern a, .blaettern span {
  min-width: 42px; padding: .5rem .7rem; text-align: center;
  border: 1px solid var(--linie); border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--grau-700);
}
.blaettern a:hover { border-color: var(--gruen-500); color: var(--gruen-700); }
.blaettern [aria-current] { background: var(--gruen-700); color: #fff; border-color: var(--gruen-700); }
.blaettern .luecke { border: 0; }

.beitrag-nav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 3rem; }
.beitrag-nav a {
  padding: 1.1rem 1.3rem; border: 1px solid var(--linie); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .16s, transform .16s;
}
.beitrag-nav a:hover { border-color: var(--gruen-300); transform: translateY(-2px); }
.beitrag-nav small { display: block; color: var(--grau-500); font-size: .82rem; margin-bottom: .25rem; }
.beitrag-nav b { font-family: var(--display); font-weight: 700; font-size: .98rem; }

/* --- Galerie ------------------------------------------------------------- */

.galerie { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.galerie img { border-radius: var(--radius-s); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galerie.frei img { aspect-ratio: auto; }

/* --- Sonstiges ----------------------------------------------------------- */

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--grau-700); }
.zentriert { text-align: center; }
.zentriert .lead, .zentriert p { margin-inline: auto; max-width: 60ch; }
.abschnitt-kopf { margin-bottom: 2.5rem; }
.abschnitt-kopf p { color: var(--grau-500); max-width: 60ch; margin-bottom: 0; }
.zentriert.abschnitt-kopf p { margin-inline: auto; }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.split img { border-radius: var(--radius); width: 100%; }

.liste-schlicht { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.liste-schlicht li { display: flex; gap: .7rem; align-items: flex-start; }
.liste-schlicht svg { width: 20px; height: 20px; flex: none; margin-top: .25rem; color: var(--gruen-500); }

.datei {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .16s, transform .16s;
}
.datei:hover { border-color: var(--gruen-300); transform: translateY(-2px); color: inherit; }
.datei .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--terra-100); color: var(--terra-700); display: grid; place-items: center; flex: none; }
.datei .icon svg { width: 20px; height: 20px; }
.datei b { display: block; font-family: var(--display); font-size: .98rem; }
.datei small { color: var(--grau-500); font-size: .84rem; }

.termin {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  padding: 1.4rem; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
}
.termin-datum {
  text-align: center; background: var(--gruen-700); color: #fff;
  border-radius: var(--radius-s); padding: .7rem .9rem; min-width: 76px;
}
.termin-datum b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.termin-datum span { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.termin h3 { margin-bottom: .3rem; font-size: 1.1rem; }
/* Der Titel ist verlinkt: als reine Textzeile wäre die Trefferfläche 19 px hoch. */
.termin h3 a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-decoration: none;
}
.termin h3 a:hover { color: var(--terra-600); }
.termin .zeit { font-size: .9rem; color: var(--grau-500); margin-bottom: .6rem; }

.preis-legende { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.2rem 0 1.8rem; font-size: .88rem; }
.preis-legende span { display: inline-flex; align-items: center; gap: .45rem; }
.preis-legende i { width: 15px; height: 15px; border-radius: 4px; display: inline-block; flex: none; }

@media (max-width: 560px) {
  .person { flex-direction: column; }
  .termin { grid-template-columns: 1fr; }
  .termin-datum { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .kopf, .mobil, .fuss, .btn-reihe, .krumen { display: none !important; }
  body { font-size: 11pt; }
}
