/* Erlebnis schafft Entwicklung – ein Stylesheet für alle Seiten.
   Schrift: Besley (Clarendon-Schnitt, wie Wegweiser und Naturführer) für Überschriften und Zitate,
   Source Sans 3 für Fließtext. Farben: Buchenwald-Licht, kein zweiter Akzent – die Fotos bringen die Wärme. */

@font-face { font-family: "Besley"; src: url("/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap }
@font-face { font-family: "Besley"; src: url("/fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap }

:root {
  --wald: #15271e;        /* dunkles Buchengrün: Kopfzeile, Fußzeile, Ansatz */
  --wald-tief: #0e1b14;
  --moos: #2f5c3e;        /* Knöpfe, Links, Haken auf hellem Grund */
  --moos-tief: #244a31;
  --laub: #cfe08a;        /* Sonne im Blätterdach: Zahlen, Haken, Knopf auf Dunkel */
  --laub-text: #dfe9b0;
  --kalk: #ebe9e3;        /* heller Steingrund */
  --kalk-tief: #dedbd2;
  --weiss: #f9f8f5;       /* Flächen auf Kalk: Formular, Modul */
  --tinte: #1a2420;
  --leise: #5a655e;
  --linie: #cfcbc0;
  --linie-dunkel: rgb(255 255 255 / .16);
  --rost: #9a3e1e;
  --rost-hell: #f3e1d7;
  --display: "Besley", "Iowan Old Style", "Georgia", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mass: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --kopfhoehe: 4rem;
  --radius: 6px;
  --schatten-hell: 0 1px 2px rgb(14 27 20 / .06), 0 24px 48px -32px rgb(14 27 20 / .35);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--kalk); color: var(--tinte); font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility }
main { flex: 1 }
img, video { max-width: 100%; display: block }
[hidden] { display: none !important }
:focus-visible { outline: 3px solid var(--moos); outline-offset: 3px; border-radius: 3px }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; margin: 0 }
p, ul, ol, figure { margin: 0 }
a { color: var(--moos); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em }
a:hover { color: var(--moos-tief) }
b, strong { font-weight: 600 }
::selection { background: var(--laub); color: var(--wald) }
.innen { width: 100%; max-width: var(--mass); margin-inline: auto; padding-inline: var(--rand) }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
section[id] { scroll-margin-top: var(--kopfhoehe) }
#module { scroll-margin-top: calc(var(--kopfhoehe) + 1.5rem) }

/* Schriftgrößen: eine Treppe, die alle Seiten teilen */
.titel-gross { font-size: clamp(2.75rem, 7.2vw, 6rem); font-weight: 600; line-height: .98; letter-spacing: -.012em }
.titel { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.01em }
h2, .h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem) }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600 }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.5 }
.leise { color: var(--leise) }

/* Knöpfe: rechteckig mit kleiner Rundung, Moos auf Hell, Laub auf Dunkel */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border: 1.5px solid transparent; border-radius: var(--radius);
  background: var(--moos); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease }
.knopf:hover { background: var(--moos-tief); color: #fff }
.knopf.laub { background: var(--laub); color: var(--wald) }
.knopf.laub:hover { background: #dfeca3; color: var(--wald) }
.knopf.leer { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff }
.knopf.leer:hover { background: rgb(255 255 255 / .1); border-color: #fff; color: #fff }

/* Kopfzeile: über dem Bühnenbild durchsichtig, nach dem ersten Scroll dunkelgrün */
.kopf { position: sticky; top: 0; z-index: 20; color: #fff; background: var(--wald); border-bottom: 1px solid var(--linie-dunkel) }
.kopf .innen { display: flex; align-items: center; gap: 1.5rem; min-height: var(--kopfhoehe) }
.kopf .name { font: 500 1.2rem/1 var(--display); color: inherit; text-decoration: none; margin-right: auto; letter-spacing: -.005em }
.kopf .zurueck { color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: .5rem }
.kopf .zurueck::before { content: "← " }
.kopf .zurueck:hover { color: #fff; text-decoration: underline; text-underline-offset: .35em }
.kopf .knopf { margin-left: auto; min-height: 2.5rem; padding: .45rem 1.05rem; font-size: .95rem }
@media (max-width: 480px) { .kopf:has(.zurueck) .name { display: none } }
@supports (animation-timeline: scroll()) {
  @keyframes kopf-fest { from { background: transparent; border-color: transparent } to { background: var(--wald); border-color: var(--linie-dunkel) } }
  .kopf.schwebt { animation: kopf-fest linear both; animation-timeline: scroll(); animation-range: 0 10rem }
  /* Startseite: ganz oben nur das Bild, Name und Anfragen-Knopf kommen erst beim Scrollen */
  @keyframes kopf-erscheint { from { opacity: 0; visibility: hidden; background: transparent; border-color: transparent } to { opacity: 1; visibility: visible; background: var(--wald); border-color: var(--linie-dunkel) } }
  .kopf.schwebt.erst-beim-scrollen { animation-name: kopf-erscheint }
}

/* Bühnenbild der Startseite: Video vom Blätterdach, eine Bildschirmhöhe, Text unten links */
.buehne { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; background: var(--wald); overflow: clip; isolation: isolate; margin-top: calc(-1 * var(--kopfhoehe)) }
.buehne .bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1 }
.buehne::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 27 20 / .35) 0%, rgb(14 27 20 / .15) 35%, rgb(14 27 20 / .6) 70%, rgb(14 27 20 / .85) 100%) }
.buehne .innen { padding-block: clamp(8rem, 20vh, 12rem) clamp(2.5rem, 6vh, 4.5rem); display: grid; gap: 1.5rem }
.buehne .ueber { font: 500 clamp(1.05rem, 1.5vw, 1.2rem)/1.3 var(--display); color: var(--laub-text); max-width: 44rem; text-shadow: 0 1px 3px rgb(14 27 20 / .6) }
.buehne h1 { max-width: 12ch }
.buehne .lead { max-width: 36rem; color: rgb(255 255 255 / .9) }
.buehne .fakten { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; font-size: 1rem; color: rgb(255 255 255 / .85) }
.buehne .fakten li::before { content: "✓ "; color: var(--laub) }
@media (prefers-reduced-motion: no-preference) {
  @keyframes aufgehen { from { opacity: 0; transform: translateY(1rem) } to { opacity: 1; transform: none } }
  .buehne .innen > * { animation: aufgehen .9s cubic-bezier(.2, .7, .2, 1) both }
  .buehne .innen > :nth-child(2) { animation-delay: .1s } .buehne .innen > :nth-child(3) { animation-delay: .2s } .buehne .innen > :nth-child(4) { animation-delay: .3s }
}

/* Kopfbild der Fortbildungsseiten: Foto mit Titel, zwei Drittel Bildschirmhöhe */
.kopfbild { position: relative; min-height: clamp(26rem, 68vh, 44rem); display: grid; align-items: end; color: #fff; background: var(--wald); overflow: clip; isolation: isolate; margin-top: calc(-1 * var(--kopfhoehe)) }
.kopfbild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1 }
@media (max-width: 600px) { .kopfbild > img { object-position: var(--handy, 50% 50%) !important } }
.kopfbild::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 27 20 / .4) 0%, rgb(14 27 20 / .1) 35%, rgb(14 27 20 / .55) 70%, rgb(14 27 20 / .85) 100%) }
.kopfbild .innen { padding-block: clamp(7rem, 16vh, 9rem) clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1rem }
.kopfbild .ueber { font: 500 clamp(1rem, 1.4vw, 1.15rem)/1.3 var(--display); color: var(--laub-text) }
.kopfbild h1 { max-width: 18ch; hyphens: auto }
.kopfbild .unter { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: rgb(255 255 255 / .88); max-width: 40rem }

/* Abschnitte: gleicher Rhythmus auf allen Seiten */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem) }
.band.dunkel { background: var(--wald); color: #fff }
.band.weiss { background: var(--weiss) }
/* Zwei Abschnitte auf demselben Grund rücken zusammen, ein Flächenwechsel bekommt den vollen Abstand */
.band + .band { padding-top: clamp(1.5rem, 3vw, 2.5rem) }
.dunkel + .band, .band + .dunkel, .band + .weiss, .weiss + .band { padding-top: clamp(3.5rem, 8vw, 6.5rem) }
.kopfzeile { display: grid; gap: .9rem; max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem) }
.kopfzeile p { color: var(--leise); font-size: 1.12rem }
.dunkel .kopfzeile p { color: rgb(255 255 255 / .78) }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start }
@media (max-width: 820px) { .zweispaltig { grid-template-columns: 1fr } }

/* Fortbildungen: Bild, Titel, Text, Link – keine Kästen, die ganze Fläche ist der Link */
.angebote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); list-style: none; padding: 0 }
@media (max-width: 640px) { .angebote { grid-template-columns: 1fr } }
.angebot { position: relative; display: grid; gap: .8rem; align-content: start }
.angebot .foto { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--kalk-tief); margin-bottom: .4rem; transition: filter .3s ease }
.angebot h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem) }
.angebot h3 a { color: inherit; text-decoration: none }
.angebot h3 a::after { content: ""; position: absolute; inset: 0 }
.angebot h3 a:focus-visible { outline: none }
.angebot:has(a:focus-visible) { outline: 3px solid var(--moos); outline-offset: 6px; border-radius: 3px }
.angebot p { color: var(--leise) }
.angebot .weiter { font-weight: 600; color: var(--moos); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; transition: text-decoration-color .2s ease }
.angebot:hover .weiter { text-decoration-color: currentColor }
.angebot:hover .foto { filter: brightness(1.04) }
.angebot:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .12em }
.angebote.drei { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 860px) { .angebote.drei { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .angebote.drei { grid-template-columns: 1fr } }
.angebote.drei h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem) }

/* Über mich: Porträt bleibt stehen, Text und Qualifikationen laufen vorbei */
.ich { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start }
@media (max-width: 760px) { .ich { grid-template-columns: 1fr } }
.ich figure { position: sticky; top: calc(var(--kopfhoehe) + 1.5rem) }
.ich figure img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius) }
@media (max-width: 760px) { .ich figure { position: static; max-width: 24rem } .ich figure img { aspect-ratio: 4 / 5; object-position: 50% 20% } }
.ich .text { display: grid; gap: 1.2rem }
.ich .text .rolle { font: 500 1.15rem/1.4 var(--display); color: var(--moos) }
.ich .text > p:not(.rolle) { font-size: 1.12rem; color: var(--leise) }
.ich h3 { margin-top: clamp(1.5rem, 3vw, 2.5rem) }
/* Qualifikationen als Liste mit Linien, Logo in fester Spalte */
.quali { list-style: none; padding: 0; border-top: 1px solid var(--linie) }
.quali li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .2rem 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linie) }
.quali .logo { grid-row: span 2; height: 2.5rem; display: flex; align-items: center }
.quali .logo img { height: 100%; width: auto; max-width: 4.5rem; object-fit: contain; object-position: left center }
.quali h4 { font: 600 1.1rem/1.3 var(--display); grid-column: 2 }
.quali .wo { color: var(--leise); font-size: .95rem; grid-column: 2 }
@media (max-width: 480px) { .quali li { grid-template-columns: 3.25rem 1fr } .quali .logo { height: 2rem } .quali .logo img { max-width: 3.25rem } }

/* Fotoband: ein Bild über die ganze Breite, ein Satz in Kursiv */
.fotoband { position: relative; overflow: clip; height: clamp(28rem, 80vh, 48rem); color: #fff; background: var(--wald); display: grid; align-items: end }
.fotoband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45% }
.fotoband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(14 27 20 / .5) 72%, rgb(14 27 20 / .85) 100%) }
@media (max-width: 760px) { .fotoband::after { background: linear-gradient(180deg, transparent 15%, rgb(14 27 20 / .55) 60%, rgb(14 27 20 / .88) 100%) } }
.fotoband .innen { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 4.5rem) }
.fotoband p { font: italic 500 clamp(1.75rem, 4vw, 3.1rem)/1.15 var(--display); max-width: 20ch; text-wrap: balance }
@media (prefers-reduced-motion: no-preference) {
  @keyframes naeher { from { transform: scale(1.12) } to { transform: scale(1) } }
  @supports (animation-timeline: view()) { .fotoband img { animation: naeher linear both; animation-timeline: view(); animation-range: entry 0% exit 0% } }
}

/* Ansatz: vier Schritte auf dunklem Grund, Zahlen in Laub, Linien dazwischen */
.schritte { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: s }
.schritte li { display: grid; gap: .6rem; align-content: start; counter-increment: s; padding-top: 1.25rem; border-top: 1px solid var(--linie-dunkel) }
.schritte li::before { content: counter(s, decimal-leading-zero); font: 500 1.2rem/1 var(--display); color: var(--laub); letter-spacing: .04em; font-variant-numeric: tabular-nums }
.schritte h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-top: .2rem }
.schritte p { color: rgb(255 255 255 / .78) }
@media (max-width: 820px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .schritte { grid-template-columns: 1fr; gap: 1.5rem } }

/* Erlebnispädagogik, was ist das: Text neben Bergfoto, darunter zwei Listen */
.ep { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem) }
@media (max-width: 760px) { .ep { grid-template-columns: 1fr } }
.ep .kopfzeile { margin: 0 }
.ep figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; border-radius: var(--radius) }
.abgrenzung { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem) }
@media (max-width: 820px) { .abgrenzung { grid-template-columns: 1fr } }
.abgrenzung h3 { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linie) }
.abgrenzung ul { list-style: none; padding: 0; display: grid; gap: 1.1rem }
.abgrenzung li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 .75rem }
.abgrenzung li::before { grid-row: span 2; font-weight: 700; font-size: 1.05rem; line-height: 1.5 }
.abgrenzung .ja li::before { content: "✓"; color: var(--moos) }
.abgrenzung .nein li::before { content: "✕"; color: var(--rost) }
.abgrenzung b { font-weight: 600; font-size: 1.08rem }
.abgrenzung li span { color: var(--leise) }

/* Fortbildungsseiten: Einleitung links, Eckdaten rechts */
.intro { padding-block: clamp(3rem, 7vw, 5.5rem) 0 }
.intro .innen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start }
@media (max-width: 860px) { .intro .innen { grid-template-columns: 1fr } }
.intro .innen:not(:has(.eckdaten)) { grid-template-columns: 1fr }
.intro .text { display: grid; gap: 1rem; max-width: 42rem }
.intro .text p { color: var(--leise) }
.intro .text .lead { color: var(--tinte) }
.eckdaten { display: grid; gap: 1.25rem; padding-top: .35rem }
.eckdaten dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linie) }
.eckdaten div { padding: .9rem 0; border-bottom: 1px solid var(--linie); display: grid; gap: .15rem }
.eckdaten dt { font-size: .95rem; color: var(--leise) }
.eckdaten dd { margin: 0; font: 500 1.15rem/1.3 var(--display) }
.eckdaten .knopf { justify-self: start }

/* Inhalte: dreispaltig mit Haken; Ziele: eine Spalte */
.inhalte { list-style: none; padding: 0; columns: 3; column-gap: 2.5rem; border-top: 1px solid var(--linie) }
@media (max-width: 860px) { .inhalte { columns: 2 } }
@media (max-width: 560px) { .inhalte { columns: 1 } }
.inhalte li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--linie); break-inside: avoid }
.inhalte li::before { content: "✓"; color: var(--moos); font-weight: 700 }
.ziele { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 48rem }
.ziele li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; font-size: 1.1rem }
.ziele li::before { content: "✓"; color: var(--moos); font-weight: 700 }
.ziele p { color: var(--leise) }
.dunkel .ziele li::before { color: var(--laub) }
.dunkel .ziele p { color: rgb(255 255 255 / .82) }
.hinweis-kasten { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--moos); background: var(--kalk); color: var(--leise) }

/* Klettern: zwei Module zur Wahl, darunter das gewählte. Ohne JavaScript stehen beide untereinander. */
#module { display: grid; gap: clamp(1.25rem, 3vw, 2rem) }
.wahl { display: none }
/* Registerkarten: die gewählte Kachel wächst in den Kasten darunter hinein (gleiche Fläche, gleicher Rahmen, keine Kante dazwischen) */
.mit-js #module { gap: 0 }
.mit-js .wahl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); position: relative; z-index: 1; margin-bottom: -2px }
@media (max-width: 560px) { .mit-js .wahl { grid-template-columns: 1fr; gap: .75rem; margin-bottom: .75rem } .wahlkarte { margin-bottom: 0 } .wahlkarte[aria-selected="true"] { border-bottom-color: var(--moos); border-radius: var(--radius) } }
.wahlkarte { margin-bottom: .75rem }
.wahlkarte[aria-selected="true"] { margin-bottom: 0; border-bottom-color: transparent; border-radius: var(--radius) var(--radius) 0 0 }
.mit-js .modul { border: 2px solid var(--moos) }
#module:has(#tab-indoor[aria-selected="true"]) .modul { border-top-left-radius: 0 }
#module:has(#tab-outdoor[aria-selected="true"]) .modul { border-top-right-radius: 0 }
@media (max-width: 560px) { .mit-js .modul { border-radius: var(--radius) } }
.wahlkarte { position: relative; display: grid; text-align: left; font: inherit; color: var(--tinte);
  background: transparent; border: 2px solid var(--linie); border-radius: var(--radius); padding: 0; overflow: hidden; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease }
.wahlkarte .bildrahmen { position: relative; aspect-ratio: 16 / 9 }
.wahlkarte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.4); opacity: .8; transition: filter .2s ease, opacity .2s ease }
.wahltext { display: grid; gap: .35rem; padding: 1.1rem 3rem 1.25rem 1.25rem }
.wahltext .ueber { font-size: .98rem; font-weight: 600; color: var(--moos) }
.wahltitel { font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.15 var(--display) }
.wahlkurz { color: var(--leise); font-size: 1rem; line-height: 1.45 }
.wahlkarte:hover { border-color: var(--moos) }
.wahlkarte:hover img { filter: none; opacity: 1 }
.wahlkarte[aria-selected="true"] { background: var(--weiss); border-color: var(--moos); border-bottom-color: transparent }
.wahlkarte[aria-selected="true"] img { filter: none; opacity: 1 }
.wahlkarte:focus-visible { outline: 3px solid var(--moos); outline-offset: 3px }
.gewaehlt { position: absolute; top: .9rem; right: .9rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; color: transparent; font-size: .9rem; font-weight: 700; background: rgb(255 255 255 / .35); transition: background .2s ease, border-color .2s ease }
.wahlkarte[aria-selected="true"] .gewaehlt { background: var(--moos); border-color: #fff; color: #fff }
.mit-js .modul[hidden] { display: none }
@media (prefers-reduced-motion: no-preference) {
  @keyframes auf { from { opacity: 0; translate: 0 8px } to { opacity: 1; translate: 0 0 } }
  .mit-js .modul { animation: auf .3s ease both }
}
.modul { background: var(--weiss); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; box-shadow: var(--schatten-hell) }
@media (max-width: 860px) { .modul { grid-template-columns: 1fr } }
.erzaehlt { display: grid; gap: 1rem }
.erzaehlt .ueber { font-weight: 600; color: var(--moos) }
.erzaehlt h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem) }
.erzaehlt > p:not(.ueber) { color: var(--leise) }
.erzaehlt .knopf { justify-self: start; margin-block: .25rem .5rem }
.listen { display: grid; gap: 1rem; align-content: start }
.listen h3 { margin-top: 1rem }
.listen h3:first-child { margin-top: 0 }
.listen .inhalte { columns: 1 }
.listen .ziele li { font-size: 1.02rem }
.modullink { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--linie) }
.modullink a { font-weight: 600 }

/* Kontakt: Überschrift und Porträt links, Formular rechts */
.kontakt { padding-block: clamp(3.5rem, 8vw, 6.5rem) }
.kontakt > .innen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch }
@media (max-width: 820px) { .kontakt > .innen { grid-template-columns: 1fr } }
/* Links Überschrift und Foto; am Desktop reicht das Foto bis zur Unterkante des Formulars */
.kontakt .links { display: grid; gap: 1.5rem; grid-template-rows: auto 1fr }
.kontakt .links p { color: var(--leise); font-size: 1.12rem; max-width: 30rem }
.kontakt .bild { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius) }
@media (max-width: 820px) { .kontakt .links { grid-template-rows: auto auto } .kontakt .bild { height: auto; max-width: 16rem; aspect-ratio: 4 / 5 } }
.anfrage { background: var(--weiss); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--schatten-hell);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem 1.25rem }
.anfrage .feld { display: grid; gap: .35rem; min-width: 0 }
.anfrage .breit { grid-column: 1 / -1 }
.anfrage label { font-weight: 600; font-size: .95rem }
.anfrage .pflicht { color: var(--moos); font-weight: 700 }
.anfrage .hinweis { font-size: .9rem; color: var(--leise) }
.anfrage input, .anfrage select, .anfrage textarea { font: inherit; font-size: 1rem; color: var(--tinte); background: #fff;
  border: 1.5px solid var(--linie); border-radius: var(--radius); padding: .65rem .85rem; min-height: 3rem; width: 100%; transition: border-color .15s ease }
.anfrage input::placeholder, .anfrage textarea::placeholder { color: #8b948e }
.anfrage textarea { min-height: 6rem; resize: vertical }
.anfrage select { appearance: none; padding-right: 2.25rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27none%27 stroke=%27%232f5c3e%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 6l4 4 4-4%27/%3E%3C/svg%3E") no-repeat right .8rem center }
.anfrage input:hover, .anfrage select:hover, .anfrage textarea:hover { border-color: #a9b1aa }
.anfrage input:focus, .anfrage select:focus, .anfrage textarea:focus { outline: 2px solid var(--moos); outline-offset: 0; border-color: var(--moos) }
.anfrage .zustimmung { display: flex; gap: .65rem; align-items: start; font-weight: 400; color: var(--leise) }
.anfrage .zustimmung input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; accent-color: var(--moos); flex: none }
.anfrage button { justify-self: start }
.anfrage button:disabled { cursor: progress; opacity: .7 }
.anfrage .falle { position: absolute; left: -9999px }
.modulwahl { border: 0; margin: 0; padding: 0; min-width: 0 }
.modulwahl legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem }
.modulwahl .knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .6rem }
.modulwahl label { position: relative; cursor: pointer }
.modulwahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.modulwahl .knoepfe span { display: flex; align-items: center; min-height: 3rem; padding: .6rem .9rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: #fff; font-weight: 600 }
.modulwahl input:checked + span { border-color: var(--moos); background: var(--moos); color: #fff }
.modulwahl input:focus-visible + span { outline: 3px solid var(--moos); outline-offset: 2px }
.mit-modulwahl .modulwahl[hidden] { display: none }
/* Zustand: leer (Formular), gesendet (Bestätigung statt Formular), eingabe/versand (Fehlermeldung im Formular) */
.danke, .fehler { display: none }
.rahmen[data-zustand="gesendet"] .anfrage { display: none }
.rahmen[data-zustand="gesendet"] .danke { display: grid }
.rahmen[data-zustand="eingabe"] .fehler-eingabe, .rahmen[data-zustand="versand"] .fehler-versand { display: block }
.fehler { grid-column: 1 / -1; border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--rost-hell); color: var(--rost); font-weight: 600 }
.danke { background: var(--weiss); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--schatten-hell); align-content: center; justify-items: start; gap: .75rem; min-height: 18rem }
.danke:focus { outline: none }
.danke h3 { font-size: clamp(1.5rem, 3vw, 2rem) }
.danke p { color: var(--leise) }
.danke .haken { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--moos); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem }

/* Rechtstexte */
.recht { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem) }
.recht .innen { max-width: 46rem; display: grid; gap: .9rem }
.recht h1 { margin-bottom: .75rem }
.recht h2 { font-size: clamp(1.5rem, 2vw, 1.75rem); margin-top: 2rem }
.recht ul { padding-left: 1.2rem; display: grid; gap: .3rem }
.recht address { font-style: normal }
.recht p, .recht li { color: var(--leise) }
.recht address, .recht .wichtig { color: var(--tinte) }

/* Fußzeile in Waldgrün: schließt die Seite ab wie das Bühnenbild sie öffnet */
.fuss { background: var(--wald); color: rgb(255 255 255 / .7); padding-block: 2.5rem; font-size: .95rem }
.fuss .innen { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between }
.fuss nav { display: flex; gap: 1.25rem }
.fuss a { color: rgb(255 255 255 / .85); text-decoration: none }
.fuss a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em }
@view-transition { navigation: auto }
