:root {
  /* Zentrale Farbpalette: hier ändern, wenn die ganze Seite erdiger, heller oder dunkler werden soll. */
  --forest: #202f18;
  --forest-2: #3d4a27;
  --moss: #6f7d4e;
  --clay: #8d673f;
  --sun: #d5b45f;
  --sand: #c8b78b;
  --field: #4d5139;
  --earth: #5b4632;
  --paper: #f0ebdf;
  --ink: #18221d;
  --muted: #647069;
  --line: rgba(24, 34, 29, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(10, 18, 14, 0.18);
  /* Dieser Verlauf taucht auf Karten und Ausblick-Elementen auf. Änderung wirkt an vielen Stellen gleichzeitig. */
  --card-gradient: linear-gradient(90deg, var(--forest), var(--moss) 42%, var(--sun));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  /* Fester Header über der Seite. Scroll-Zustand wird in script.js über .is-scrolled gesteuert. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.94);
  box-shadow: 0 10px 34px rgba(11, 20, 15, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  /* Hauptlogo. Die Datei selbst ist assets/wildnisbund-logo.png und wird auch auf der Impressumseite genutzt. */
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(8, 20, 14, 0.16);
}

.brand small {
  display: block;
  margin-top: -3px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  /* Hero-Bereich: großes Einstiegsbild mit Text-Overlay und Vereinslogo-Badge. */
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  /* Verdunkelt das Hero-Bild, damit Text auch auf hellen Bildstellen lesbar bleibt. */
  background: linear-gradient(90deg, rgba(8, 20, 14, 0.82), rgba(8, 20, 14, 0.36) 52%, rgba(8, 20, 14, 0.08)), linear-gradient(0deg, rgba(8, 20, 14, 0.74), rgba(8, 20, 14, 0.02) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 92px) clamp(58px, 9vh, 110px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 {
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.14;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: clamp(18px, 2.4vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.legal-page .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.dachspfad-page .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.section-band {
  /* Helle Standard-Bänder. Einzelne Bereiche überschreiben diesen Hintergrund später bewusst. */
  background: linear-gradient(180deg, #fffaf0 0%, #f0ebdf 100%);
}

.principles {
  background: linear-gradient(135deg, #d8d0b9 0%, #ede6d6 48%, #c7b990 100%);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.intro-grid,
.training-grid,
.youth-grid,
.faq-grid,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.intro-copy {
  font-size: 19px;
  color: #3c4942;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.value-grid,
.principle-grid,
.outlook-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-grid article,
.principle-grid article,
.outlook-grid article,
.price-grid article,
.path-card,
.timeline article {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(10, 18, 14, 0.05);
}

.value-grid article[role="button"],
.principle-grid article[role="button"],
.outlook-grid article[role="button"],
.price-grid article[role="button"] {
  /* Klickkarten: data-modal-open im HTML entscheidet, welches Popup geöffnet wird. */
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.value-grid article[role="button"]::after,
.principle-grid article[role="button"]::after,
.outlook-grid article[role="button"]::after,
.price-grid article[role="button"]::after {
  content: "Mehr lesen";
  display: inline-flex;
  margin-top: 16px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.value-grid article[role="button"]:hover,
.value-grid article[role="button"]:focus-visible,
.principle-grid article[role="button"]:hover,
.principle-grid article[role="button"]:focus-visible,
.outlook-grid article[role="button"]:hover,
.outlook-grid article[role="button"]:focus-visible,
.price-grid article[role="button"]:hover,
.price-grid article[role="button"]:focus-visible {
  border-color: rgba(156, 109, 60, 0.46);
  box-shadow: 0 18px 44px rgba(10, 18, 14, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.value-grid article::before,
.principle-grid article::before,
.price-grid article::before,
.timeline article::before {
  /* Oberer Kartenstreifen. Nutzt --card-gradient, also zentrale Änderung oben in :root. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-gradient);
}

.principle-grid article {
  background: linear-gradient(180deg, #fbf8f1 0%, #ede6d6 100%);
}

.outlook {
  background: linear-gradient(180deg, #e6dfcf 0%, #f7f4ee 100%);
}

.outlook-grid article {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), #fbf8f1);
}

.outlook-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-gradient);
}

.outlook-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  border: 1px solid rgba(156, 109, 60, 0.24);
  border-radius: 999px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.membership {
  background: linear-gradient(180deg, #f0ebdf 0%, #e3dac5 100%);
}

.price-grid article {
  background: linear-gradient(180deg, #fffaf0 0%, #f0ebdf 100%);
}

.price-grid h3 {
  min-height: 2.2em;
}

.dachspfad-hero {
  /* Eigene Kurs-Unterseite: kein Vereinshero, sondern Außenbereich mit Dachszeichen. */
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  color: var(--white);
  background: #101813;
}

.dachspfad-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 40%, rgba(213, 180, 95, 0.24), transparent 28%), linear-gradient(110deg, rgba(8, 20, 14, 0.96), rgba(32, 47, 24, 0.76) 52%, rgba(91, 70, 50, 0.68)), url("assets/wildnisbund-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.dachspfad-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  min-height: 86vh;
  padding-top: clamp(118px, 13vw, 168px);
}

.dachspfad-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 23px);
}

.dachspfad-hero h1 {
  max-width: 820px;
  white-space: normal;
  font-size: clamp(42px, 7vw, 92px);
}

.badger-mark {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(8px, 2vw, 18px);
  border: 1px solid rgba(213, 180, 95, 0.22);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(240, 235, 223, 0.22), rgba(213, 180, 95, 0.08) 58%, rgba(8, 20, 14, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.badger-mark img {
  width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.26));
}

.course-section {
  background: linear-gradient(180deg, #e8e0cf 0%, #f5f1e8 100%);
}

.course-grid,
.article-grid,
.dachsrat-cards {
  display: grid;
  gap: 16px;
}

.course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-grid article,
.article-grid article,
.dachsrat-cards article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0 0%, #f0ebdf 100%);
  box-shadow: 0 10px 28px rgba(10, 18, 14, 0.06);
}

.course-grid article::before,
.article-grid article::before,
.dachsrat-cards article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-gradient);
}

.course-grid span,
.article-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(156, 109, 60, 0.24);
  border-radius: 999px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-grid p,
.article-grid p,
.dachsrat-cards p,
.boundary-panel p {
  color: var(--muted);
}

.dachsrat {
  color: var(--white);
  background: linear-gradient(135deg, #101813 0%, var(--forest) 52%, #3b3326 100%);
}

.dachsrat .eyebrow {
  color: var(--sun);
}

.dachsrat-grid,
.boundary-panel,
.contact-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.dachsrat .sticky-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.dachsrat-cards article {
  background: rgba(244, 240, 232, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.dachsrat-cards p {
  color: rgba(255, 255, 255, 0.74);
}

.knowledge {
  background: linear-gradient(180deg, #f0ebdf 0%, #e4dbc8 100%);
}

.boundary {
  background: linear-gradient(135deg, #ddd2bd 0%, #f7f4ee 55%, #c8b78b 100%);
}

.boundary-panel {
  align-items: center;
}

.contact-strip {
  color: var(--white);
  background: var(--forest);
}

.contact-strip .eyebrow {
  color: var(--sun);
}

.contact-strip h2 {
  max-width: 760px;
}

.contact-strip-inner {
  align-items: center;
}

.contact-strip-inner .button {
  justify-self: end;
}

.path-layout {
  /* Pfadkarten: 6 Spalten erlauben 3 kleine Karten oder eine große Karte über 4 Spalten. */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #fffaf0 0%, #f0ebdf 100%);
}

.path-card.featured {
  /* Hervorgehobener Geländepfad. Wenn ein anderer Pfad groß sein soll, class="featured" dort setzen. */
  grid-column: span 4;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  border-color: transparent;
  box-shadow: var(--shadow);
}

.path-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e9e2d2;
}

.path-card.featured img {
  height: 280px;
}

.path-image-button {
  /* Bilder der Pfadkarten sind Buttons, damit ein Klick direkt das Popup öffnet. */
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.path-image-button img {
  transition: transform 260ms ease, filter 260ms ease;
}

.path-card:hover .path-image-button img,
.path-image-button:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.path-emblem-button {
  display: grid;
  height: 210px;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at center, #fbf8f1 0%, #e9e2d2 62%, #cdbb83 100%);
}

.path-card .path-emblem {
  width: min(100%, 186px);
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(10, 18, 14, 0.22);
}

.path-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.path-card-body::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--card-gradient);
}

.path-card-body span {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.path-card h3 button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.path-card h3 button:hover,
.path-card h3 button:focus-visible {
  color: var(--clay);
}

.path-card.featured h3 button:hover,
.path-card.featured h3 button:focus-visible {
  color: var(--sun);
}

.path-card.featured .path-card-body span {
  color: var(--sun);
}

.path-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.path-card li + li {
  margin-top: 6px;
}

.path-card.featured p,
.path-card.featured ul {
  color: rgba(255, 255, 255, 0.78);
}

.path-modal {
  /* Gemeinsame Dialogoptik für Pfad-, Ausbildungs- und Jugend-Popups. */
  width: min(980px, calc(100% - 34px));
  max-height: min(860px, calc(100vh - 34px));
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(217, 186, 103, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.38);
}

.path-modal[open] {
  display: block;
}

.path-modal::backdrop {
  /* Abdunklung hinter geöffneten Popups. */
  background: rgba(6, 12, 9, 0.72);
  backdrop-filter: blur(7px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(8, 20, 14, 0.58);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-media {
  height: clamp(220px, 36vh, 360px);
  background: #111916;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-emblem-media {
  display: grid;
  min-height: clamp(340px, 48vh, 500px);
  place-items: center;
  padding: clamp(22px, 5vw, 46px);
  overflow: hidden;
  background: radial-gradient(circle at center, #fbf8f1 0%, #e9e2d2 56%, #132118 100%);
}

.modal-emblem-media img {
  width: min(420px, 78%);
  max-height: min(420px, calc(100% - 12px));
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(10, 18, 14, 0.28);
}

.modal-content {
  padding: clamp(26px, 5vw, 48px);
  padding-bottom: clamp(34px, 6vw, 62px);
}

.modal-content h2 {
  max-width: 760px;
  font-size: clamp(31px, 5vw, 54px);
}

.modal-content > p:not(.eyebrow) {
  max-width: 820px;
  color: #3c4942;
  font-size: 18px;
}

.modal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-top: 26px;
}

.modal-columns section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.modal-columns h3 {
  font-size: 20px;
}

.modal-columns p,
.modal-columns li {
  color: var(--muted);
}

.modal-columns ul {
  margin: 0;
  padding-left: 20px;
}

.training-modal {
  /* Kleinere Dialogvariante für Ausbildung und Jugend, weil dort weniger Text steht. */
  width: min(760px, calc(100% - 34px));
}

.text-modal {
  /* Text-Popups für Grundsätze, Haltung, Mitgliedschaft und Ausblick. Sie haben bewusst keine Bildfläche. */
  width: min(820px, calc(100% - 34px));
}

.text-modal .modal-content {
  padding-top: clamp(40px, 7vw, 68px);
}

.text-modal .modal-content > p:not(.eyebrow) + p {
  margin-top: 18px;
}

.training-modal .modal-content {
  padding-top: clamp(34px, 6vw, 56px);
}

.modal-columns.compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.sticky-copy {
  position: sticky;
  top: 120px;
}

.sticky-copy p:not(.eyebrow),
.path-card p,
.value-grid p,
.principle-grid p,
.outlook-grid p,
.price-grid p,
.timeline p,
.accordion p,
.contact-panel p,
.fineprint {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  /* Ausbildungskarten: ganze Karte ist klickbar, data-modal-open bestimmt welches Popup startet. */
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.timeline-card:hover,
.timeline-card:focus-visible {
  border-color: rgba(156, 109, 60, 0.46);
  box-shadow: 0 18px 44px rgba(10, 18, 14, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.timeline span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clay);
  font-weight: 800;
}

.youth {
  /* Jugendband: Hintergrundbild liegt als echtes img im HTML, Overlay kommt hier aus CSS. */
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.youth-bg,
.youth-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.youth-bg {
  object-fit: cover;
}

.youth-overlay {
  /* Jugendbild abdunkeln und links mehr Lesbarkeit für Text schaffen. */
  background: linear-gradient(90deg, rgba(8, 20, 14, 0.82), rgba(8, 20, 14, 0.54) 48%, rgba(8, 20, 14, 0.28)), linear-gradient(0deg, rgba(8, 20, 14, 0.76), rgba(8, 20, 14, 0.1));
}

.youth .section-inner {
  position: relative;
  z-index: 1;
}

.youth .eyebrow {
  color: var(--sun);
}

.youth-intro {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.youth-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.youth-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(244, 240, 232, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.youth-card:hover,
.youth-card:focus-visible {
  border-color: rgba(217, 186, 103, 0.62);
  background: rgba(244, 240, 232, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.youth-card p {
  color: rgba(255, 255, 255, 0.76);
}

.veterans {
  /* Veteranenband: Hintergrundbild wird über ::before eingebunden, damit HTML sauber bleibt. */
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #111916;
}

.veterans::before,
.veterans::after {
  content: "";
  position: absolute;
  inset: 0;
}

.veterans::before {
  /* Bilddatei für Veteranenarbeit. Austauschen, wenn ein anderes Hintergrundmotiv gewünscht ist. */
  background-image: url("assets/veterans-bg.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.02);
}

.veterans::after {
  background: linear-gradient(90deg, rgba(6, 12, 9, 0.9), rgba(6, 12, 9, 0.66) 46%, rgba(6, 12, 9, 0.42)), linear-gradient(0deg, rgba(6, 12, 9, 0.82), rgba(6, 12, 9, 0.16) 70%);
}

.veterans .eyebrow {
  color: var(--sun);
}

.veterans .section-inner {
  position: relative;
  z-index: 1;
}

.veterans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
}

.veterans-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.veterans-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.veterans-points span {
  padding: 9px 13px;
  border: 1px solid rgba(217, 186, 103, 0.45);
  border-radius: 999px;
  color: var(--sun);
  font-weight: 800;
}

.veterans-images {
  display: grid;
  justify-items: center;
  gap: 20px;
  align-items: center;
}

.veterans-images figure {
  display: grid;
  width: min(280px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  padding: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fbf8f1 0%, #e9e2d2 62%, rgba(217, 186, 103, 0.76) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.veterans-images figure:nth-child(2) {
  width: min(280px, 100%);
  margin-top: 0;
  background: radial-gradient(circle at center, #1b2420 0%, #111916 66%, rgba(217, 186, 103, 0.46) 100%);
}

.veterans-images img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.fineprint {
  max-width: 780px;
  margin: 24px 0 0;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion button {
  width: 100%;
  min-height: 64px;
  padding: 18px 38px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.accordion button::after {
  content: "+";
  float: right;
  margin-right: -28px;
  color: var(--clay);
  font-size: 24px;
}

.accordion button[aria-expanded="true"]::after {
  content: "-";
}

.accordion div {
  display: none;
  padding: 0 0 20px;
}

.accordion button[aria-expanded="true"] + div {
  display: block;
}

.contact {
  background: var(--forest);
  color: var(--white);
}

.contact .eyebrow {
  color: var(--sun);
}

.contact-panel {
  align-items: center;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  /* Kontaktformular sendet an kontakt.php. Statusmeldungen werden in script.js aus ?kontakt=... gelesen. */
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.honeypot {
  /* Unsichtbares Feld: Menschen lassen es leer, einfache Bots füllen es oft aus. kontakt.php wertet das aus. */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 186, 103, 0.42);
  border-radius: 8px;
  color: var(--white) !important;
  background: rgba(217, 186, 103, 0.14);
}

.contact-status.is-error {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.82);
  background: #0e281d;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.96);
}

.legal-brand {
  color: var(--ink);
}

.legal-main {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.legal-hero {
  margin-bottom: 38px;
}

.legal-hero h1 {
  white-space: normal;
  font-size: clamp(40px, 7vw, 78px);
}

.legal-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  padding: clamp(32px, 5vw, 48px);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(10, 18, 14, 0.05);
}

.legal-section h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 44px);
}

.legal-section h3 {
  margin-top: 28px;
}

.legal-section p {
  color: #3c4942;
}

@media (max-width: 920px) {
  /* Tablet/Mobil: Navigation klappt ein, zweispaltige Bereiche werden einspaltig. */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .nav-cta {
    border-radius: 8px;
  }

  .intro-grid,
  .training-grid,
  .youth-grid,
  .faq-grid,
  .contact-panel,
  .veterans-grid,
  .dachspfad-hero-grid,
  .dachsrat-grid,
  .boundary-panel,
  .contact-strip-inner {
    grid-template-columns: 1fr;
  }

  .youth-cards {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .principle-grid,
  .outlook-grid,
  .price-grid,
  .course-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dachspfad-hero-grid {
    min-height: auto;
    padding-bottom: clamp(54px, 8vw, 92px);
  }

  .badger-mark {
    width: min(420px, 100%);
  }

  .contact-strip-inner .button {
    justify-self: start;
  }

  .path-card,
  .path-card.featured {
    grid-column: span 3;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  /* Kleine Smartphones: Karten und Popups bekommen mehr Luft und einfache Einspaltigkeit. */
  .site-header {
    padding: 12px 14px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 48px;
  }

  .hero h1 {
    font-size: clamp(35px, 11vw, 52px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .veterans-images {
    gap: 14px;
  }

  .veterans-images figure {
    width: min(230px, 86%);
  }

  .veterans-images figure:nth-child(2) {
    width: min(230px, 86%);
  }

  .path-emblem-button {
    height: 230px;
  }

  .modal-columns {
    grid-template-columns: 1fr;
  }

  .path-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .modal-media {
    height: 220px;
  }

  .modal-emblem-media {
    min-height: 330px;
  }

  .modal-emblem-media img {
    width: min(300px, 86%);
    max-height: 300px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-back {
    width: auto;
  }

  .value-grid,
  .principle-grid,
  .outlook-grid,
  .price-grid,
  .course-grid,
  .article-grid,
  .path-layout {
    grid-template-columns: 1fr;
  }

  .path-card,
  .path-card.featured {
    grid-column: auto;
  }

  .value-grid article,
  .principle-grid article,
  .outlook-grid article,
  .price-grid article,
  .course-grid article,
  .article-grid article,
  .dachsrat-cards article,
  .path-card,
  .timeline article,
  .youth-card,
  .contact-form {
    padding: 20px;
  }
}
