/* Akaflieg Hub -- ein Stylesheet, keine Build-Kette.

   Aufbau wie eine Weboberflaeche a la Nextcloud: farbiger Kopf, links die
   Navigation fuer das, was im Hub selbst passiert, rechts die anderen
   Dienste, dazwischen schlichte Bloecke. Begruendung in CLAUDE.md 4.1.

   Farben nur als Variablen -- die Dunkelvariante steht dreimal da (System-
   einstellung, erzwungen hell, erzwungen dunkel), aendern heisst also an
   genau diesen Stellen. Keine Schriften von fremden Servern: Google Fonts
   uebertraegt die IP-Adresse, und das ist abmahnfaehig (CLAUDE.md 4.1). */

:root {
  color-scheme: light;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f7f9fb; --hover: #eef3f8;
  --line: #e2e7ed; --line-2: #d3dae2;
  --ink: #18232e; --ink-2: #4a5866; --ink-3: #7d8b98;
  --primary: #1667ad; --primary-wash: #e6f0f9;
  --ok: #2c8a4e; --ok-wash: #e3f2e8;
  --warn: #c07a10; --warn-wash: #fbf0dc;
  --bad: #c23b2e; --bad-wash: #fbe7e5;
  --grau: #9aa6b2;
  --radius: 8px;
  --schatten: 0 1px 2px rgba(20, 35, 50, .05), 0 2px 8px rgba(20, 35, 50, .04);
  --himmel: linear-gradient(100deg, #1667ad 0%, #2f86cc 55%, #62aee0 100%);
  --kopf: 54px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10161d; --surface: #171f28; --surface-2: #1b2430; --hover: #1f2a37;
    --line: #26323f; --line-2: #2f3d4c;
    --ink: #e4eaf0; --ink-2: #a8b6c3; --ink-3: #778898;
    --primary: #5aa7e6; --primary-wash: #16293b;
    --ok: #5fbf82; --ok-wash: #14281c; --warn: #e3aa52; --warn-wash: #2e2412;
    --bad: #ec7a6e; --bad-wash: #331a18; --grau: #5f6d7a;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10161d; --surface: #171f28; --surface-2: #1b2430; --hover: #1f2a37;
  --line: #26323f; --line-2: #2f3d4c;
  --ink: #e4eaf0; --ink-2: #a8b6c3; --ink-3: #778898;
  --primary: #5aa7e6; --primary-wash: #16293b;
  --ok: #5fbf82; --ok-wash: #14281c; --warn: #e3aa52; --warn-wash: #2e2412;
  --bad: #ec7a6e; --bad-wash: #331a18; --grau: #5f6d7a;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3);
}
/* Der Himmel im Kopf folgt der Tageszeit (gesetzt in grund.html). */
:root[data-tageszeit="morgen"] { --himmel: linear-gradient(100deg, #3a5fa8 0%, #c97a8f 60%, #f2b27a 100%); }
:root[data-tageszeit="abend"]  { --himmel: linear-gradient(100deg, #2b3f7a 0%, #9a5a8c 55%, #e98a5c 100%); }
:root[data-tageszeit="nacht"]  { --himmel: linear-gradient(100deg, #0b1a33 0%, #16305a 60%, #25467a 100%); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Source Sans 3", Roboto,
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 .8em; }
.zahl, .num { font-variant-numeric: tabular-nums; }
.label {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.leise { color: var(--ink-3); }
.ikon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ Kopf */

header.kopf {
  position: sticky; top: 0; z-index: 30; height: var(--kopf);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  color: #fff; overflow: hidden; isolation: isolate; background: var(--himmel);
}
.wolke {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: ziehen linear infinite;
}
.wolke.w1 { width: 220px; height: 46px; top: 2px;   animation-duration: 95s;  animation-delay: -20s; }
.wolke.w2 { width: 150px; height: 34px; top: 20px;  animation-duration: 70s;  animation-delay: -55s; opacity: .7; }
.wolke.w3 { width: 300px; height: 58px; top: -14px; animation-duration: 130s; animation-delay: -90s; opacity: .55; }
:root[data-tageszeit="nacht"] .wolke { opacity: .18; }
@keyframes ziehen { from { transform: translateX(-340px); } to { transform: translateX(calc(100vw + 40px)); } }

.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #fff; white-space: nowrap; }
.marke:hover { text-decoration: none; }
/* Das Signet der Akaflieg, als Maske: die Farbe kommt aus currentColor, so
   passt es auf jeden Himmel. Quelle: Kopf der GeschO, siehe static/LIESMICH. */
.marke .signet {
  width: 42px; height: 27px; background: currentColor;
  -webkit-mask: url(/static/logo.png) center / contain no-repeat;
          mask: url(/static/logo.png) center / contain no-repeat;
}
.marke { font-size: 1.15rem; letter-spacing: .01em; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kopf-rechts a { color: #fff; opacity: .85; font-size: .9rem; }
.kopf-rechts a:hover { opacity: 1; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--primary); font-weight: 700; font-size: .85rem;
}

/* --------------------------------------------------------------- Geruest */

.geruest { display: grid; grid-template-columns: 232px minmax(0, 1fr) 96px; min-height: calc(100vh - var(--kopf)); }
.geruest.ohne-navi { grid-template-columns: 1fr; }

nav.navi {
  border-right: 1px solid var(--line); background: var(--surface); padding: 12px 8px;
  position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf)); overflow-y: auto;
}
.navi ul { list-style: none; margin: 0; padding: 0; }
.navi a {
  display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 6px;
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
}
.navi a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.navi a[aria-current="page"] { background: var(--primary-wash); color: var(--primary); font-weight: 600; }
.navi .zaehler {
  margin-left: auto; font-size: .78rem; font-weight: 600; min-width: 20px; text-align: center;
  padding: 0 6px; border-radius: 10px; background: var(--line); color: var(--ink-2);
}
.navi .gruppe { margin: 18px 10px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.navi .fuss { margin-top: 22px; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }

main { padding: 22px 28px 60px; max-width: 1120px; width: 100%; }

.gruss { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.gruss h1 { font-size: 1.45rem; font-weight: 600; }
.gruss p { margin: 0; color: var(--ink-3); }
.vorspann { color: var(--ink-2); max-width: 70ch; margin: -6px 0 18px; }

/* ----------------------------------------------------------- Statusleiste
   Alles Persoenliche in einer Zeile: nicht fett, aber auf einen Blick. */

.status {
  display: grid; grid-template-columns: 1.35fr repeat(var(--spalten, 4), 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.zelle {
  position: relative; min-width: 0; padding: 12px 16px 13px; border: 0; background: none;
  text-align: left; border-left: 1px solid var(--line); color: inherit;
}
.zelle:first-child { border-left: 0; }
button.zelle { cursor: pointer; transition: background .15s; }
button.zelle:hover, .zelle[aria-expanded="true"] { background: var(--surface-2); }
.zelle[aria-expanded="true"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.zelle .label { display: block; }
.zelle .wert { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 600; margin-top: 1px; }
.zelle .wert.text { font-size: 1rem; }
.zelle .unter {
  display: block; font-size: .84rem; color: var(--ink-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plus { color: var(--ok); }
.minus { color: var(--bad); }
.grau { color: var(--grau); }

.lampe { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grau); }
.lampe.gruen { background: var(--ok); }
.lampe.gelb  { background: var(--warn); }
.lampe.rot   { background: var(--bad); }
.lampe.atmet { animation: atmen 3.2s ease-out infinite; }
@keyframes atmen {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 0%, transparent); }
}

.aufklapp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.aufklapp.offen { grid-template-rows: 1fr; }
.aufklapp > div { overflow: hidden; }
.aufklapp .bedingungen { margin-top: 10px; }

/* Bedingungen -- eine Ampel je Punkt, mit Belegstelle */
.bedingungen {
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.block .bedingungen { border: 0; border-radius: 0; background: none; }
.bedingungen li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; }
.bedingungen .lampe { margin-top: 6px; }
.bedingungen strong { font-weight: 600; display: block; }
.bedingungen .erklaerung { font-size: .86rem; color: var(--ink-3); }
.bedingungen .weich strong { font-weight: 500; color: var(--ink-2); }
.bedingungen .beleg { font-size: .75rem; color: var(--ink-3); margin-left: auto; white-space: nowrap; padding-top: 2px; }

/* --------------------------------------------------------------- Bloecke */

.raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.spalte { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); }
.block + .block { margin-top: 0; }
.stapel { display: flex; flex-direction: column; gap: 14px; }
.block > header { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.block > header h2 { font-size: 1rem; font-weight: 600; }
.block > header .meta { color: var(--ink-3); font-size: .86rem; }
.block > header .rechts { margin-left: auto; font-size: .88rem; }
.block .innen { padding: 12px 16px; }
.block .leer { padding: 14px 16px; color: var(--ink-3); font-size: .9rem; }
.block > footer { padding: 10px 16px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }

.knopf {
  display: inline-block; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 6px; padding: 5px 12px; cursor: pointer; font-weight: 500; color: var(--ink);
}
.knopf:hover { background: var(--hover); text-decoration: none; }
.knopf.primaer { background: var(--primary); border-color: var(--primary); color: #fff; }
.knopf.primaer:hover { filter: brightness(1.08); }

.marke-klein { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.marke-klein.ok   { background: var(--ok-wash); color: var(--ok); }
.marke-klein.warn { background: var(--warn-wash); color: var(--warn); }
.marke-klein.bad  { background: var(--bad-wash); color: var(--bad); }
.marke-klein.info { background: var(--primary-wash); color: var(--primary); }
.marke-klein.grau { background: var(--line); color: var(--ink-2); }

.hinweis { border-left: 3px solid var(--primary); background: var(--primary-wash); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 16px; font-size: .92rem; }

/* Tabelle "Dieses Wochenende" */
.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
.flugzeug { font-weight: 600; }
.flugzeug small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
tr.inop td { color: var(--ink-3); }
td.grund { font-size: .88rem; color: var(--ink-3); }

.koepfe { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.koepfe form { display: contents; }
.kopfchen {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0;
  font-size: .7rem; font-weight: 700; color: #fff; background: var(--c, #7d8b98);
}
.kopfchen.ich { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); cursor: pointer; }
.kopfchen.ich:hover { filter: brightness(1.1); }
.eintragen {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-2); padding: 0;
  background: none; cursor: pointer; color: var(--ink-3); display: grid; place-items: center;
  transition: border-color .15s, color .15s, transform .15s;
}
.eintragen:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.08); }
.eintragen svg { width: 13px; height: 13px; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 4px 0; }
.liste li { display: flex; gap: 12px; align-items: center; padding: 9px 16px; }
.liste li + li { border-top: 1px solid var(--line); }
.liste .haupt { min-width: 0; flex: 1; }
.liste .zusatz { font-size: .84rem; color: var(--ink-3); }
.person { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin-right: 14px; }
.einkauf { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 14px; }
.einkauf span { font-size: .86rem; padding: 3px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

/* Anmeldung */
.anmelde-rahmen { max-width: 440px; margin: 8vh auto 0; }
.anmelde-rahmen .block .innen { display: flex; flex-direction: column; gap: 12px; }
.anmelde-rahmen select { width: 100%; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }

/* Formulare -- bisher nur fuer Antraege, aber allgemein gehalten */
.formular .innen { display: flex; flex-direction: column; gap: 14px; }
.formular label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .92rem; }
.formular input:not([type=radio]), .formular textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--surface); font: inherit; font-weight: 400; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.formular textarea { resize: vertical; line-height: 1.5; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }
.formular fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formular legend { font-weight: 500; font-size: .92rem; margin-bottom: 5px; padding: 0; width: 100%; }
.formular .reihe { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 10px; }
.formular > footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wahl {
  flex-direction: row !important; align-items: flex-start; gap: 10px !important; flex: 1 1 220px;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wahl input { margin-top: 4px; accent-color: var(--primary); }
.wahl small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.wahl:has(input:checked) { border-color: var(--primary); background: var(--primary-wash); }
.wahl.ok:has(input:checked) { border-color: var(--ok); background: var(--ok-wash); }
.wahl.bad:has(input:checked) { border-color: var(--bad); background: var(--bad-wash); }
.hinweis.fehler { border-left-color: var(--bad); background: var(--bad-wash); }
.klein { font-size: .84rem; margin: 0; }
.knopf.klein { padding: 2px 10px; font-size: .84rem; margin-top: 6px; }
.gruss .knopf.rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.gruss .knopf .ikon { width: 15px; height: 15px; }

/* Antraege */
.brotkrumen { margin: 0 0 6px; font-size: .86rem; color: var(--ink-3); }
.antragstext { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.antragsliste .termin { font-size: .84rem; color: var(--ink-2); white-space: nowrap; }
.verlauf li { align-items: flex-start; }
.verlauf .lampe { margin-top: 6px; }
.verlauf form { margin: 0; }
.pfad { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; overflow-wrap: anywhere; }
.stimmen { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.stimmen span { min-width: 0; transform-origin: left; animation: wachsen .7s cubic-bezier(.3, 1.2, .5, 1) both; }
.stimmen .ja { background: var(--ok); }
.stimmen .nein { background: var(--bad); animation-delay: .12s; }
.stimmen .enth { background: var(--grau); animation-delay: .24s; }
.stimmen-text { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
@keyframes wachsen { from { transform: scaleX(0); } }

/* -------------------------------------------------------------- Kalender
   Jeder Eintrag bekommt ein kleines Kalenderblatt -- Farbe nach Herkunft:
   eigene Termine blau, Werkstatt grau, Antraege gruen. */
.kalenderliste li.monat { padding: 14px 16px 4px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; }
.kalenderliste li.monat + li { border-top: 0; }
.kalenderblatt {
  --c: var(--primary);
  flex: none; width: 42px; border-radius: 7px; overflow: hidden; text-align: center; line-height: 1.05;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
}
.kalenderblatt b { display: block; font-size: 1.05rem; padding: 4px 0 1px; font-variant-numeric: tabular-nums; }
.kalenderblatt small { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 0; background: var(--c); color: #fff; }
.ereignis.werkstatt .kalenderblatt { --c: var(--grau); }
.ereignis.antrag .kalenderblatt { --c: var(--ok); }
.ereignis.heute { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.ereignis.heute .kalenderblatt { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c); }
.ereignis.abgesagt .haupt { text-decoration: line-through; color: var(--ink-3); }
.ereignis:hover .kalenderblatt { transform: rotate(-4deg); }
.kalenderblatt { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.kalenderliste.knapp li { padding-top: 7px; padding-bottom: 7px; }
.geheim { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.geheim .knopf.klein { margin-top: 0; }
.geheim code, .abo-adresse {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem;
  padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2);
  overflow-wrap: anywhere;
}
.abo-adresse { width: 100%; color: var(--ink-2); }
.formular .reihe.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formular .reihe.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formular label.haken { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; }
.formular label.haken input { width: auto; margin-top: 3px; accent-color: var(--primary); flex: none; }
.formular select, .posten-neu select, .posten-neu input, .status-wahl select, .einkauf-neu input {
  padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); min-width: 0;
}
.formular select { width: 100%; }

/* -------------------------------------------------------------- Werkstatt */
.dienstplan td { vertical-align: middle; }
.dienstplan .woche b { display: block; font-weight: 600; }
.dienstplan .woche small { color: var(--ink-3); font-size: .8rem; white-space: nowrap; }
.dienstplan tr.jetzt td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.einteilen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.einteilen select { padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); max-width: 100%; }
.einteilen .knopf.klein { margin-top: 0; }
.einkauf-neu { display: flex; gap: 8px; }
.einkauf-neu input { flex: 1; }
.einkauf-neu .knopf { padding: 4px 14px; font-weight: 700; }
.abhaken {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2);
  background: var(--surface); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: border-color .15s, background .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.abhaken:hover { border-color: var(--ok); transform: scale(1.12); }
.abhaken svg { width: 14px; height: 14px; }
.einkaufsliste form { display: contents; }
.einkaufsliste .erledigt .abhaken { background: var(--ok); border-color: var(--ok); }
.einkaufsliste .erledigt .haupt { color: var(--ink-3); text-decoration: line-through; }

/* --------------------------------------------------- Dokumente, Zugaenge */
.dokicon { width: 22px; height: 22px; flex: none; color: var(--primary); }
.dokumentliste li:hover .dokicon, .zugangsliste li:hover .dokicon { transform: translateY(-2px); }
.dokicon { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.dokumentliste .knopf.klein, .zugangsliste .knopf.klein { margin-top: 0; }
.knopfreihe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.knopfreihe form { margin: 0; }
.zugangsliste li { align-items: flex-start; }
.zugangsliste .dokicon { margin-top: 2px; }
.dokumenttext {
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: .92rem;
  max-height: 60vh; overflow-y: auto;
}
textarea.dokumenttext { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; max-height: none; }
.unterschiede { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.55; overflow-x: auto; }
.unterschiede .z { white-space: pre-wrap; padding: 0 8px; border-radius: 3px; }
.unterschiede .z.neu { background: var(--ok-wash); color: var(--ok); }
.unterschiede .z.neu::before { content: "+ "; }
.unterschiede .z.alt { background: var(--bad-wash); color: var(--bad); text-decoration: line-through; }
.unterschiede .z.alt::before { content: "− "; }
.unterschiede .z.luecke { color: var(--ink-3); text-align: center; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }

/* -------------------------------------------------------------- Vorstand */
.avatar.gross { width: 40px; height: 40px; font-size: 1rem; align-self: center; }
.postenreihe { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 45%; }
.posten-neu { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.posten-neu form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.posten-neu form > input, .posten-neu form > select { flex: 1; }
.posten-neu .knopf.klein, .status-wahl .knopf { margin-top: 0; }
.status-wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.status-wahl select { flex: 1; }
.liste li.erledigt { color: var(--ink-3); }
.aufgabenliste li { align-items: flex-start; }
.aufgabenliste .lampe { margin-top: 7px; }
.aufgabenliste li.wartet { opacity: .7; }
.aufgabenliste form { margin: 0; }
.aufgabenliste .antragstext { margin: 3px 0; line-height: 1.45; }
.anwaerter-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.anwaerter-zahlen > div { padding: 10px 16px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.anwaerter-zahlen > div:first-child { border-left: 0; }
.anwaerter-zahlen .label { display: block; margin-bottom: 2px; }
.liste-einfach { margin: 0; padding-left: 18px; color: var(--ink-2); }
.liste-einfach li { margin: 2px 0; }
.anmelde-rahmen.breit { max-width: 620px; margin-top: 5vh; }
.unsichtbar { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------- Schwebeleiste
   Die anderen Dienste. Sie sind nicht Teil des Hubs, deshalb stehen sie
   nicht in der Navigation, sondern daneben -- und schweben, jede in ihrem
   eigenen Takt, wie Segler im selben Bart. Beim Darueberfahren halten sie
   an und sagen, wer sie sind. */

aside.dienste {
  position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 5%, transparent));
}
aside.dienste::before {
  content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; z-index: -1;
  background: linear-gradient(transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.app { position: relative; display: block; width: 50px; height: 50px; animation: schweben var(--d, 7s) ease-in-out infinite; animation-delay: var(--v, 0s); }
.app:hover, .app:focus-visible { animation-play-state: paused; text-decoration: none; outline: none; }
.app .kreis {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 35%, var(--line));
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s;
}
.app svg { width: 22px; height: 22px; }
.app:hover .kreis, .app:focus-visible .kreis { transform: scale(1.12); background: var(--c); color: #fff; }
.app .name {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  opacity: 0; pointer-events: none; white-space: nowrap; background: var(--ink); color: var(--surface);
  font-size: .84rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; transition: opacity .18s, transform .22s;
}
.app .name small { display: block; font-weight: 400; opacity: .75; font-size: .76rem; }
.app:hover .name, .app:focus-visible .name { opacity: 1; transform: translate(0, -50%); }
@keyframes schweben {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-2px, -7px) rotate(-1.5deg); }
  65% { transform: translate(2px, 4px) rotate(1deg); }
}

/* -------------------------------------------------------------- Auftritt */
.auftritt { animation: auftritt .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
/* Nicht von opacity 0 aus: spielt ein Browser die Animation nicht ab (Tab im
   Hintergrund, Energiesparen), bliebe die Seite sonst leer. */
@keyframes auftritt { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Schmal */
@media (max-width: 1100px) {
  .status { grid-template-columns: repeat(3, 1fr); }
  .zelle:nth-child(3n + 1) { border-left: 0; }
  .zelle:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .raster { grid-template-columns: 1fr; }
  .anwaerter-zahlen { grid-template-columns: 1fr 1fr; }
  .anwaerter-zahlen > div:nth-child(3) { border-left: 0; }
  .anwaerter-zahlen > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .formular .reihe { grid-template-columns: 1fr 1fr; }
  .formular .reihe.drei, .formular .reihe.zwei { grid-template-columns: minmax(0, 1fr); }
  .postenreihe { display: none; }
  /* Knoepfe unter den Namen, sonst bleibt fuer "R&G Faserverbund" ein Wort pro Zeile. */
  .zugangsliste li, .aufgabenliste li { flex-wrap: wrap; }
  .zugangsliste .knopfreihe, .aufgabenliste li > form { flex-basis: 100%; justify-content: flex-start; padding-left: 34px; }
  .anwaerter-zahlen > div { padding: 8px 12px; }
  .geruest { grid-template-columns: minmax(0, 1fr); }  /* sonst waechst die Spalte mit der Navigation mit */
  /* Sonst verteilt das Raster auf kurzen Seiten die freie Hoehe auf alle
     Zeilen, und die Navigationsleiste wird dreimal so hoch. */
  .geruest { grid-template-rows: auto auto 1fr; }
  nav.navi { position: static; height: auto; display: flex; gap: 2px; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; overflow-x: auto; }
  .navi ul { display: flex; gap: 2px; }
  .navi li { flex: none; }
  .navi .gruppe, .navi .fuss, .navi .zaehler { display: none; }
  /* Die Dienste wandern in eine Reihe unter den Kopf und schweben dort weiter. */
  aside.dienste { order: -1; position: static; height: auto; flex-direction: row; gap: 14px; padding: 14px 16px 10px; background: none; }
  aside.dienste::before { display: none; }
  .app { width: 44px; height: 44px; }
  .app .name { display: none; }
  main { padding: 16px 16px 48px; }
  .kopf-rechts .wer { display: none; }
  .status { grid-template-columns: 1fr 1fr; }
  .zelle:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .zelle:nth-child(even) { border-left: 0; }
  .zelle:first-child { grid-column: 1 / -1; border-left: 0; border-top: 0; }
  .block > header .meta { display: none; }
  .spalte-mich { display: none; }
  th, td { padding: 8px 10px; }
  /* "Ersatzflugbetriebsgeraet" ist sonst breiter als das halbe Telefon. */
  td.flugzeug { font-size: .92rem; hyphens: auto; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Onboarding */
/* Links der Flugweg durch die Kapitel, rechts der Inhalt. Keine Kacheln:
   eine Linie mit Wegpunkten, die sich beim Weiterkommen fuellt. */
.geruest.ohne-navi > main { margin: 0 auto; }
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-inhalt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.flugweg { position: sticky; top: calc(var(--kopf) + 20px); }
.flugweg-kopf { display: flex; flex-direction: column; color: var(--ink); margin-bottom: 12px; }
.flugweg-kopf:hover { text-decoration: none; }
.flugweg-kopf strong { font-size: 1.05rem; }
.fortschritt { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fortschritt span { display: block; height: 100%; width: var(--p); background: var(--himmel); border-radius: 3px; animation: fuellen 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fuellen { from { width: 0; } }
.fortschritt-text { margin: 6px 0 14px; }
.flugweg ol { list-style: none; margin: 0; padding: 0; position: relative; }
/* Die gestrichelte Linie zwischen den Wegpunkten */
.flugweg ol::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 0;
  border-left: 2px dashed var(--line-2);
}
.flugweg li a { display: flex; gap: 12px; align-items: flex-start; padding: 6px 8px 6px 0; border-radius: 6px; color: var(--ink-2); position: relative; }
.flugweg li a:hover { text-decoration: none; color: var(--ink); }
.flugweg .punkt {
  width: 18px; height: 18px; flex: none; border-radius: 50%; margin-top: 1px;
  background: var(--surface); border: 2px solid var(--line-2); position: relative; z-index: 1;
  transition: background .3s, border-color .3s;
}
.flugweg .was { display: flex; flex-direction: column; font-weight: 500; font-size: .92rem; line-height: 1.3; }
.flugweg .was small { font-weight: 400; color: var(--ink-3); font-size: .78rem; }
.flugweg li.fertig .punkt { background: var(--ok); border-color: var(--ok); }
.flugweg li.fertig .punkt::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.flugweg li.hier a { color: var(--primary); font-weight: 600; }
.flugweg li.hier .punkt { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-wash); animation: wegpunkt 2.4s ease-out infinite; }
@keyframes wegpunkt { 0% { box-shadow: 0 0 0 0 var(--primary-wash); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.flugweg li.ziel { margin-top: 6px; }
.flugweg li.ziel .punkt { border-radius: 4px; transform: rotate(45deg) scale(.85); }
.flugweg li.ziel.offen .punkt { background: var(--primary); border-color: var(--primary); }
.flugweg li.ziel:not(.offen) a { color: var(--ink-3); }

.buehne { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; box-shadow: var(--schatten); background: #1b2b3c; }
.buehne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: gleiten 24s ease-in-out infinite alternate; }
@keyframes gleiten { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1.5%); } }
.buehne-text { position: relative; padding: 80px 28px 26px; color: #fff; background: linear-gradient(to top, rgba(10, 20, 32, .82), rgba(10, 20, 32, .35) 70%, transparent); width: 100%; }
.buehne-text .label { color: rgba(255, 255, 255, .8); }
.buehne-text h1 { font-size: 1.9rem; margin: 4px 0 8px; }
.buehne-text p { max-width: 62ch; color: rgba(255, 255, 255, .92); }
.knopf.gross { padding: 9px 18px; font-size: 1rem; }

.ablauf, .pfad { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; counter-reset: schritt; }
.ablauf li, .pfad li { display: flex; flex-direction: column; gap: 2px; padding-top: 30px; position: relative; counter-increment: schritt; font-size: .9rem; color: var(--ink-2); }
.ablauf li strong, .pfad li strong { color: var(--ink); }
.ablauf li::before, .pfad li::before {
  content: counter(schritt); position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-wash); color: var(--primary); font-weight: 700; font-size: .8rem; display: grid; place-items: center;
}
.ablauf li:not(:last-child)::after, .pfad li:not(:last-child)::after {
  content: ""; position: absolute; top: 11px; left: 30px; right: -8px; border-top: 2px dashed var(--line-2);
}
.pfad { padding: 6px 0 4px; margin: 6px 0 14px; }
.pfad.kompakt { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.kapitel > header { align-items: flex-start; padding: 18px 20px 14px; }
.kapitel > header h1 { font-size: 1.5rem; margin: 4px 0 2px; }
.kapitel > header p { margin: 0; }
.lesetext { line-height: 1.6; max-width: 76ch; }
.kapitel .lesetext { padding: 16px 20px 20px; max-width: none; }
.kapitel .lesetext > p, .kapitel .lesetext > ul, .kapitel .lesetext > h3, .kapitel .lesetext > dl, .kapitel .lesetext > table { max-width: 72ch; }
.lesetext h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.bild { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.bild img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.bild figcaption { padding: 7px 12px; font-size: .84rem; color: var(--ink-3); }
.haken-liste { padding-left: 0; list-style: none; margin: 0 0 1em; }
.haken-liste li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.haken-liste li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.beleg { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; white-space: nowrap; line-height: 1.5; }
p.beleg { display: table; margin: -6px 0 14px; }
.zitat { border-left: 3px solid var(--primary); padding: 4px 0 4px 14px; color: var(--ink-2); font-style: italic; }

.zeitleiste { list-style: none; padding: 0; margin: 0 0 1em; border-left: 2px solid var(--line-2); }
.zeitleiste li { position: relative; padding: 2px 0 12px 18px; display: flex; flex-direction: column; }
.zeitleiste li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.zeitleiste li span { color: var(--ink-2); }

.woche { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.woche > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); border-left: 1px solid var(--line); }
.woche > div:first-child { border-left: 0; }
.woche strong { color: var(--ink); font-size: 1rem; }

.hangar { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; margin: 14px 0 18px; }
.hangar-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hangar-liste button { width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 6px 10px; cursor: pointer; display: flex; flex-direction: column; border-radius: 0 6px 6px 0; }
.hangar-liste button small { color: var(--ink-3); font-size: .78rem; }
.hangar-liste button:hover { background: var(--hover); }
.hangar-liste button[aria-pressed="true"] { border-left-color: var(--primary); background: var(--primary-wash); color: var(--primary); }
.hangar-buehne { display: flex; flex-direction: column; gap: 14px; }
.hangar.mit-js .hangar-buehne { display: grid; align-items: start; }
.hangar.mit-js .hangar-buehne figure { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1), visibility .35s; }
.hangar.mit-js .hangar-buehne figure.sichtbar { opacity: 1; visibility: visible; transform: none; }
.hangar figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.hangar figure img, .bild-folgt { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bild-folgt { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--hover) 14px 28px); color: var(--ink-3); font-size: .9rem; }
.hangar figcaption { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.hangar figcaption .text { flex-basis: 100%; color: var(--ink-2); font-size: .92rem; }

.soll, .gebuehren { border-collapse: collapse; margin: 0 0 14px; width: 100%; max-width: 520px; }
.soll th, .soll td, .gebuehren th, .gebuehren td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.soll .num, .gebuehren .num { text-align: right; white-space: nowrap; }
.soll tr.du td, .gebuehren tr.du td { background: var(--primary-wash); font-weight: 600; }

.rechner { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; background: var(--surface-2); max-width: 72ch; }
.rechner label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.rechner input[type=range] { width: 100%; accent-color: var(--primary); }
.rechner-ergebnis { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 8px; font-size: .94rem; }
.rechner-ergebnis .gut { color: var(--ok); font-weight: 600; }
.rechner-ergebnis .knapp { color: var(--warn); font-weight: 600; }
.rechner-balken { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.rechner-balken span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--anteil, 0); border-radius: 4px; background: var(--himmel); transition: width .3s; }
.rechner-balken i { position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 2px solid var(--ink-2); }

.klappliste { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 18px; max-width: 72ch; }
.klappliste details + details { border-top: 1px solid var(--line); }
.klappliste summary { padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.klappliste summary::-webkit-details-marker { display: none; }
.klappliste summary::before { content: ""; width: 7px; height: 7px; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; }
.klappliste details[open] summary::before { transform: rotate(45deg); }
.klappliste details p { padding: 0 14px 12px 31px; margin: 0; color: var(--ink-2); }
.downloads { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.downloads li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dienste-liste { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.dienste-liste dt { font-weight: 600; }
.dienste-liste dd { margin: 0; color: var(--ink-2); }
.vorstand-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 14px; }
.vorstand-liste li { display: flex; gap: 10px; align-items: center; }
.vorstand-liste li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.vorstand-liste small { color: var(--ink-3); }
.avatar.klein { width: 34px; height: 34px; background: var(--primary-wash); color: var(--primary); }

.quiz .frage { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.quiz .frage:last-child { margin-bottom: 0; }
.quiz legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.antwort { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: background .2s, border-color .2s; }
.antwort:hover { background: var(--hover); }
.antwort input { margin-top: 3px; accent-color: var(--primary); }
.antwort.richtig { border-color: var(--ok); background: var(--ok-wash); }
.antwort.falsch { border-color: var(--bad); background: var(--bad-wash); animation: wackeln .35s; }
@keyframes wackeln { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.erklaerung { margin: 4px 0 0; padding: 8px 12px; border-left: 3px solid var(--ok); background: var(--surface-2); font-size: .9rem; border-radius: 0 6px 6px 0; }
.erklaerung.daneben { border-left-color: var(--warn); }
.quiz > footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hinweis.ok { border-left-color: var(--ok); background: var(--ok-wash); }
.hinweis.warn { border-left-color: var(--warn); background: var(--warn-wash); }

.beitritt { display: flex; flex-direction: column; gap: 16px; }
.beitritt .block > footer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chips { gap: 8px; }
.chip { flex-direction: row !important; align-items: center; gap: 0 !important; position: relative; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 16px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-wash); }
.mit-fehler input, .mit-fehler select { border-color: var(--bad) !important; }
.feldfehler { color: var(--bad); font-weight: 500; }
.zusatz summary { cursor: pointer; font-weight: 500; margin-bottom: 8px; }
.zusatz[open] { display: flex; flex-direction: column; gap: 12px; }
h3.zwischen { font-size: .95rem; margin: 8px 0 0; }

@media (max-width: 860px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flugweg { position: static; }
  /* Auf dem Handy wird der Flugweg eine Leiste zum Wischen */
  .flugweg ol { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .flugweg ol::before { display: none; }
  .flugweg li { flex: none; }
  .flugweg li a { padding: 4px 8px; border: 1px solid var(--line); border-radius: 16px; align-items: center; gap: 6px; }
  .flugweg .punkt { width: 14px; height: 14px; }
  .flugweg li.fertig .punkt::after { left: 3px; top: 0; width: 4px; height: 7px; }
  .flugweg .was small { display: none; }
  .buehne { min-height: 300px; }
  .buehne-text { padding: 60px 18px 18px; }
  .buehne-text h1 { font-size: 1.45rem; }
  .hangar { grid-template-columns: minmax(0, 1fr); }
  .hangar-liste { flex-direction: row; overflow-x: auto; }
  .hangar-liste li { flex: none; }
  .hangar-liste button { border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; }
  .hangar-liste button[aria-pressed="true"] { border-bottom-color: var(--primary); }
  .woche > div { border-left: 0; border-top: 1px solid var(--line); }
  .woche > div:first-child { border-top: 0; }
  .dienste-liste { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dienste-liste dd { margin-bottom: 8px; }
  .ablauf li:not(:last-child)::after, .pfad li:not(:last-child)::after { display: none; }
}

/* Vorstand: Zugangscode und Beitritt */
.onboarding-code .innen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.onboarding-code .innen p { flex-basis: 100%; }
.code-gross { font-size: 1.25rem; font-weight: 700; letter-spacing: .03em; padding: 4px 12px; border-radius: 6px; background: var(--primary-wash); color: var(--primary); }
.angaben { display: grid; grid-template-columns: max-content 1fr auto; gap: 4px 14px; align-items: baseline; margin: 0; font-size: .92rem; }
.angaben dt { color: var(--ink-3); }
.angaben dd { margin: 0; }
.angaben .knopf.klein { margin-top: 0; }
