/* Gemeinsame Gestaltung der öffentlichen Formularseiten (APV, Jahrestreffen, Lageranmeldung).
   Farben und Schrift wie im Leiterbereich: Archivo, Waldgrün, Papier, Glut. */
:root {
  --wald: #1f3d2b;
  --wald-2: #2d5a3f;
  --wald-tief: #15291d;
  --papier: #f6f1e7;
  --papier-2: #efe7d6;
  --karte: #fffdf8;
  --tinte: #1d231f;
  --grau: #5d645e;
  --linie: #ddd5c4;
  --glut: #d9662b;          /* Akzent: Balken, Flächen mit grosser Schrift */
  --glut-knopf: #b4501d;    /* Knopfgrund mit weisser Schrift (AA) */
  --glut-text: #a8461a;     /* Glut als Textfarbe auf Papier (AA) */
  --rot: #a33131;
  --rot-hell: #f7e3e1;
  --ok: #2f7d4f;
  --ok-hell: #e4f0e7;
  --biber: #2f9e8f; --woelfe: #1f8fb3; --pfadi: #8a5a2b; --pio: #b23a3a; --rover: #4a5a3a;
  --r: 14px;
  --schmal: 75%;            /* Archivo schmal für Titel */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: var(--papier);
  color: var(--tinte);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--wald-2); text-underline-offset: 3px; }
a:hover { color: var(--wald); }
:focus-visible { outline: 3px solid var(--glut); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Spam-Falle: unsichtbar, nicht anwählbar, nicht vorgelesen */
.falle { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- Kopfleiste ---------- */
.kopf {
  background: var(--wald-tief);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.kopf a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.kopf a:hover { text-decoration: underline; color: #fff; }
.kopf span { opacity: .8; text-align: right; }

/* ---------- Titelbild ---------- */
.held {
  position: relative;
  color: #fff;
  /* Bild aus Vorschlag 3 (Zelt über dem See), wie auf der Startseite */
  background: var(--wald) url(/video/zelt-poster.jpg) 42% 60% / cover no-repeat;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.held::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 41, 29, .05) 0%, rgba(21, 41, 29, .35) 45%, rgba(21, 41, 29, .92) 100%);
  z-index: -1;
}
.held-innen { width: 100%; max-width: 1120px; margin: 0 auto; padding: 96px 16px 26px; }
.held h1 {
  font-stretch: var(--schmal);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 88px);
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.held p { margin: 12px 0 0; font-size: 18px; max-width: 34em; color: rgba(255, 255, 255, .92); text-wrap: pretty; }

/* ---------- Inhalt ---------- */
.spalte { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.breit { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.abschnitt { padding-top: 36px; padding-bottom: 8px; }
h2 {
  font-stretch: var(--schmal);
  font-weight: 800;
  font-size: clamp(28px, 6.5vw, 40px);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--wald);
  text-wrap: balance;
}
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; }
.leise { color: var(--grau); }
.klein { font-size: 15px; }
p { margin: 0 0 12px; }

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 20px 18px;
}

/* ---------- Knöpfe ---------- */
.knopf {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  min-height: 52px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--wald);
  color: #fff;
  transition: background-color .15s ease, transform .1s ease;
}
.knopf:hover { background: var(--wald-2); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf.glut { background: var(--glut-knopf); }
.knopf.glut:hover { background: #9d4416; }
.knopf.zwei { background: transparent; color: var(--wald); box-shadow: inset 0 0 0 2px var(--wald); }
.knopf.zwei:hover { background: rgba(31, 61, 43, .06); color: var(--wald); }
.knopf.voll { width: 100%; }
.knopf.gross { min-height: 60px; font-size: 18px; padding: 16px 24px; }
.knopf:disabled { opacity: .55; cursor: wait; }
.knopf svg { width: 20px; height: 20px; flex: none; }

/* ---------- Formular ---------- */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 34px 0 4px; min-width: 0; }
fieldset > legend { float: left; width: 100%; }
fieldset > legend + * { clear: both; }
legend {
  font-stretch: var(--schmal);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  color: var(--wald);
  padding: 0;
  margin: 0 0 14px;
}
fieldset > .leise { margin: -8px 0 16px; font-size: 15px; }
.felder { display: grid; gap: 14px; }
.zwei { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feld label, .feld .titel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.feld label small, .feld .titel small { font-weight: 500; color: var(--grau); }
.feld input:not([type=checkbox]):not([type=radio]), .feld select, .feld textarea {
  width: 100%;
  border: 1.5px solid #cfc6b2;
  border-radius: 10px;
  padding: 12px 13px;
  min-height: 50px;
  font-size: 17px;
  background: #fff;
}
.feld input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; }
.feld select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3d2b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.feld textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 3px solid rgba(217, 102, 43, .35); outline-offset: 0; border-color: var(--glut-knopf); }
.feld .hilfe { font-size: 14px; color: var(--grau); margin: 6px 0 0; }
.feld [aria-invalid=true] { border-color: var(--rot) !important; background: #fffafa !important; }
.feld .fehlt { color: var(--rot); font-size: 14px; font-weight: 600; margin: 6px 0 0; }

/* Wahl in Kacheln (Radio) */
.wahl { display: grid; gap: 10px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.wahl label { position: relative; margin: 0; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 10px 8px;
  border: 1.5px solid #cfc6b2; border-radius: 10px; background: #fff;
  font-weight: 700; font-size: 16px;
}
.wahl input:checked + span { background: var(--wald); border-color: var(--wald); color: #fff; }
.wahl input:focus-visible + span { outline: 3px solid var(--glut); outline-offset: 2px; }

/* Häkchen */
.haken { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 16px; }
.haken input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--wald); cursor: pointer; }
.haken.pflicht { background: var(--papier-2); border-radius: 12px; padding: 14px; }

/* Meldungen */
.fehlerbox {
  border-left: 5px solid var(--rot);
  background: var(--rot-hell);
  color: #5e1b1b;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  margin: 16px 0;
}
.fehlerbox:focus { outline: none; }
.hinweisbox { background: var(--papier-2); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.hinweisbox.glut { background: #fbe9dc; border-left: 5px solid var(--glut); }

/* Laden */
.laden { padding: 40px 0; color: var(--grau); }

/* Bestätigung */
.bestaetigt { padding-top: 28px; }
.bestaetigt .marke {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.bestaetigt .marke svg { width: 30px; height: 30px; }
.bestaetigt h2 { font-size: clamp(32px, 8vw, 46px); }

/* Stufen-Marken */
.stufen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stufen li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 3px 10px 3px 8px;
}
.stufen li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--grau)); }

/* Fuss */
.fuss { margin-top: 56px; background: var(--wald-tief); color: rgba(255, 255, 255, .85); font-size: 15px; }
.fuss .breit { padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.fuss a { color: #fff; }

@media (min-width: 640px) {
  .zwei { grid-template-columns: 1fr 1fr; }
  .karte { padding: 26px 28px; }
  .held { min-height: 380px; }
  .held-innen { padding: 120px 24px 34px; }
  .spalte, .breit { padding: 0 24px; }
  .kopf { padding: 10px 24px; }
}
@media (min-width: 1000px) {
  .held { min-height: 460px; }
  .held-innen { padding-bottom: 44px; }
  .abschnitt { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.wahl[aria-invalid=true] span { border-color: var(--rot); }
