/* Anmeldung FWRU (anmeldung.fwru.ch), Projekt AdF-Ein-Austritt, 30.11.2026. Farben wie die Einsatzseite. */
:root {
  color-scheme: light;
  --bg: #f6f4f1; --fl: #ffffff; --fl2: #f0ece7; --rand: #e4ded6; --rand2: #cfc7bc;
  --tx: #181715; --tx2: #5a554e; --tx3: #8a847b;
  --akz: #a8171a; --akz-tx: #a8171a; --akz-hell: #f6e3e0; --gelb: #fcf561;
  --ok: #1f6f3a; --ok-hell: #e3f1e7; --fehler: #b3261e;
  --hero: #181715; --hero-tx: #ffffff;
  --schatten: 0 1px 2px rgba(24,23,21,.06), 0 4px 16px rgba(24,23,21,.05);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121110; --fl: #1c1b19; --fl2: #262422; --rand: #34312d; --rand2: #4a4640;
    --tx: #f2efeb; --tx2: #bdb6ad; --tx3: #8d867d;
    --akz: #e0453a; --akz-tx: #ff8a7d; --akz-hell: #3a1e1b; --ok: #6fd08f; --ok-hell: #17291d; --fehler: #ff8a7d;
    --hero: #0b0a09; --schatten: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110; --fl: #1c1b19; --fl2: #262422; --rand: #34312d; --rand2: #4a4640;
  --tx: #f2efeb; --tx2: #bdb6ad; --tx3: #8d867d;
  --akz: #e0453a; --akz-tx: #ff8a7d; --akz-hell: #3a1e1b; --ok: #6fd08f; --ok-hell: #17291d; --fehler: #ff8a7d;
  --hero: #0b0a09; --schatten: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--akz-tx); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

.hero { background: var(--hero); color: var(--hero-tx); border-bottom: 4px solid #a8171a;
  background-image: radial-gradient(900px 360px at 90% -20%, rgba(168,23,26,.55), transparent 60%); }
.hero-in { display: flex; gap: 24px; align-items: center; padding: 28px 16px 26px; }
.hero-logo { width: 120px; height: auto; flex: none; }
.kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gelb); font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 8px 0 0; color: rgba(255,255,255,.8); max-width: 52ch; }
@media (max-width: 560px) { .hero-in { flex-direction: column; align-items: flex-start; gap: 14px; } .hero-logo { width: 104px; } }

main { padding: 20px 0 8px; }
.karte { background: var(--fl); border: 1px solid var(--rand); border-radius: var(--r); box-shadow: var(--schatten); padding: 20px 20px 18px; margin: 0 0 16px; }
.karte h2 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--akz); color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.leise { color: var(--tx2); font-size: 14.5px; margin: 0 0 12px; }
.liste { margin: 0 0 10px; padding-left: 20px; }
.liste li { margin: 2px 0; }
.liste.haekchen { list-style: none; padding: 0; }
.liste.haekchen li { padding-left: 24px; position: relative; color: var(--tx2); }
.liste.haekchen li::before { content: "✓"; position: absolute; left: 4px; color: var(--akz-tx); font-weight: 700; }
.hinweis { margin: 14px 0 0; padding: 10px 12px; background: var(--fl2); border-radius: 10px; font-size: 14.5px; color: var(--tx2); }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 620px) { .raster { grid-template-columns: minmax(0, 1fr); } }
.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.feld.voll { grid-column: 1 / -1; }
.feld > span, .feld > legend { font-size: 14px; font-weight: 600; color: var(--tx2); padding: 0; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select {
  width: 100%; font: inherit; color: var(--tx); background: var(--fl); border: 1px solid var(--rand2); border-radius: 10px;
  padding: 10px 12px; min-height: 44px; }
input:focus-visible, select:focus-visible, .up-knopf:focus-within, .wahl-karte:focus-within { outline: 2px solid var(--akz); outline-offset: 2px; }
.hilfe { color: var(--tx3); font-size: 13px; }
.fehler { margin: 0; color: var(--fehler); font-size: 13.5px; min-height: 0; }
.fehler:empty { display: none; }
.fehler.gross { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ungueltig input:not([type=radio]):not([type=checkbox]), .ungueltig select { border-color: var(--fehler); }
.ungueltig.upload, .ungueltig.wahl, .ungueltig.haken { border-color: var(--fehler); }

.wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
@media (max-width: 620px) { .wahl { grid-template-columns: minmax(0, 1fr); } }
.wahl-karte { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rand2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--fl); }
.wahl-karte input { margin-top: 4px; accent-color: var(--akz); width: 18px; height: 18px; flex: none; }
.wahl-karte b { display: block; }
.wahl-karte small { display: block; color: var(--tx2); font-size: 13.5px; }
.wahl-karte:has(input:checked) { border-color: var(--akz); background: var(--akz-hell); }
[data-feld="dienstart"].ungueltig .wahl-karte { border-color: var(--fehler); }
.knoepfe { display: flex; gap: 18px; min-height: 44px; align-items: center; }
.knoepfe label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--akz); width: 20px; height: 20px; }

.haken { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.haken input { flex: none; margin-top: 2px; }
.bestaetigungen { display: grid; gap: 2px; margin-top: 8px; }
.fa-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.fa { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; }
.fa label { display: flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; }
.fa input[type=date] { min-height: 40px; padding: 6px 8px; }
.fa input[type=date]:disabled { opacity: .45; }

.uploads { display: grid; gap: 10px; }
.upload { border: 1px dashed var(--rand2); border-radius: 12px; padding: 12px 14px; }
.up-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-knopf { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: var(--fl2); border: 1px solid var(--rand2); cursor: pointer; font-size: 14.5px; font-weight: 600; }
.up-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.up-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.up-liste:empty { display: none; }
.up-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--fl2); border-radius: 8px; padding: 6px 6px 6px 10px; font-size: 14px; }
.up-liste li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-liste button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--akz-tx); cursor: pointer; padding: 6px 8px; min-height: 32px; }
.upload.ok { border-style: solid; border-color: var(--ok); }

.senden-zeile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.senden { font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: #a8171a; border: 0; border-radius: 12px; padding: 14px 24px; min-height: 52px; cursor: pointer; }
.senden:hover { background: #8a1215; }
.senden:disabled { opacity: .6; cursor: progress; }
.fortschritt { flex: 1 1 220px; }
.balken { height: 8px; background: var(--fl2); border-radius: 99px; overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--akz); transition: width .2s; }
.datenschutz { font-size: 13.5px; }
.danke { border-color: var(--ok); background: var(--ok-hell); }
.danke h2 { color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fuss { color: var(--tx3); font-size: 13px; padding-bottom: 28px; }
