/* ============================================================
   einsatzos.css — Gestaltungsgrundlage der Werkzeugseiten
   Farbwerte woertlich uebernommen aus landingpage.html (:root).
   Bewusst weggelassen: Hintergrundraster (.bg-grid), Animationen
   (fadeUp, float, pulse, gridShift), Hover-Transforms.
   Kontrastwerte (WCAG 2.1, Verhaeltnis) siehe Kommentare.
   Keine externen Schriften, keine externen Ressourcen.
   ============================================================ */

:root{
  --bg:#000000;
  --surface1:#0B0E11;
  --surface2:#15191E;
  --border:#2A2F36;
  --text:#FFFFFF;
  --text2:#A8B0B8;
  --danger:#FF3B30;
  --warning:#FF9500;
  --safe:#30D158;
  --info:#0A84FF;
  /* aus landingpage.html .btn-primary (Verlaufsende) — als Vollflaeche
     fuer weisse Schrift, weil #0A84FF mit Weiss nur 3,65:1 erreicht. */
  --info-deep:#0050b8;
  --maxw:720px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--text);                 /* #FFFFFF auf #000000 = 21,0:1 */
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--info);text-decoration:underline}   /* #0A84FF auf #000000 = 5,76:1 */
.mono{font-family:"SF Mono",ui-monospace,"Roboto Mono",Menlo,monospace;letter-spacing:.04em}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 16px}

/* ---------- Kopfzeile ---------- */
header{border-bottom:1px solid var(--border);background:var(--surface1)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;
  color:var(--text);text-decoration:none}
.brand img{width:32px;height:32px;border-radius:8px;object-fit:cover}
.brand small{display:block;color:var(--text2);font-weight:500;font-size:11px;
  letter-spacing:.14em;text-transform:uppercase}   /* #A8B0B8 auf #0B0E11 = 8,82:1 */
.back{color:var(--text2);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.back:hover,.back:focus{color:var(--text);text-decoration:underline}

/* ---------- Grundtypografie ---------- */
main{padding:20px 0 48px}
h1{font-size:clamp(24px,5.5vw,34px);line-height:1.15;font-weight:900;letter-spacing:-.01em;margin-bottom:10px}
h2{font-size:19px;font-weight:800;margin-bottom:10px}
h3{font-size:16px;font-weight:700;margin-bottom:6px}
p{margin-bottom:12px}
.lead{color:var(--text2);font-size:16px;margin-bottom:20px}   /* 9,57:1 auf #000000 */
.muted{color:var(--text2);font-size:14px}
ul,ol{margin:0 0 12px 20px}
li{margin-bottom:6px}
small{font-size:13px}

/* ---------- Karten ---------- */
.card{border:1px solid var(--border);border-radius:16px;padding:18px;
  background:var(--surface1);margin-bottom:16px}   /* Weiss darauf = 19,35:1 */
.card.plain{background:transparent}

/* ---------- Warnhinweis: steht UEBER dem Ergebnis ---------- */
.warnblock{
  border:2px solid var(--warning);
  border-radius:16px;
  background:var(--surface2);       /* Vollton, keine Transparenz — Kontrast bleibt pruefbar */
  padding:14px 16px;
  margin-bottom:12px;
}
.warnblock .warnkopf{
  color:var(--warning);             /* #FF9500 auf #15191E = 8,03:1 */
  font-weight:900;font-size:13px;letter-spacing:.12em;text-transform:uppercase;
  margin-bottom:6px;
}
.warnblock p{color:var(--text);font-size:14.5px;margin:0 0 8px}  /* 17,65:1 */
.warnblock p:last-child{margin-bottom:0}
.warnblock .quelle{color:var(--text2);font-size:12.5px}          /* 8,04:1 */

/* ---------- Ergebnisbereich ---------- */
.ergebnis{border:1px solid var(--border);border-radius:16px;background:var(--surface2);padding:16px}
.ergebnis .zahl{font-size:clamp(30px,9vw,44px);font-weight:900;line-height:1.1;color:var(--text)}
.ergebnis .einheit{font-size:16px;font-weight:700;color:var(--text2);margin-left:6px}
.ergebnis .label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--text2);margin-bottom:4px}
.ergebnis .zusatz{margin-top:10px;font-size:14px;color:var(--text2)}
.werte{list-style:none;margin:12px 0 0}
.werte li{display:flex;justify-content:space-between;gap:12px;
  padding:8px 0;border-bottom:1px solid var(--border);font-size:15px}
.werte li:last-child{border-bottom:none}
.werte li b{font-weight:800}

/* Statusfarben — jeweils >= 4,5:1 auf --surface1/--surface2 */
.st-safe{color:var(--safe)}       /* 9,57:1 auf #0B0E11 */
.st-warn{color:var(--warning)}    /* 8,80:1 auf #0B0E11 */
.st-danger{color:var(--danger)}   /* 5,46:1 auf #0B0E11 */
.st-info{color:var(--info)}       /* 5,31:1 auf #0B0E11 */

/* ---------- Formular ---------- */
.feld{margin-bottom:14px}
label{display:block;font-size:14px;font-weight:700;margin-bottom:6px;color:var(--text)}
label .hinweis{display:block;font-weight:500;font-size:12.5px;color:var(--text2);margin-top:2px}
input[type=number],input[type=text],select{
  width:100%;padding:12px 14px;font-size:16px;   /* 16px verhindert Zoom auf iOS */
  color:var(--text);background:var(--surface2);
  border:1px solid var(--border);border-radius:12px;
  font-family:inherit;min-height:48px;
}
input:focus,select:focus,button:focus{outline:2px solid var(--info);outline-offset:2px}
input[aria-invalid=true]{border-color:var(--danger)}
.feldfehler{color:var(--danger);font-size:13px;margin-top:6px;font-weight:700}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 22px;min-height:48px;border-radius:12px;border:1px solid transparent;
  font-weight:800;font-size:16px;font-family:inherit;cursor:pointer;text-decoration:none}
.btn-primary{background:var(--info-deep);color:#FFFFFF}  /* #FFFFFF auf #0050b8 = 7,40:1 */
.btn-ghost{background:var(--surface1);color:var(--text);border-color:var(--border)}
.btn-block{width:100%}
.btn:hover{filter:brightness(1.12)}

/* ---------- Rechenweg / Quellen ---------- */
.rechenweg{border:1px solid var(--border);border-radius:16px;background:var(--surface1);padding:16px}
.formel{display:block;background:var(--surface2);border:1px solid var(--border);border-radius:10px;
  padding:12px 14px;font-family:"SF Mono",ui-monospace,"Roboto Mono",Menlo,monospace;
  font-size:14px;color:var(--text);overflow-x:auto;white-space:pre-wrap;margin:8px 0 12px}
.konstanten{list-style:none;margin:0}
.konstanten li{padding:7px 0;border-bottom:1px solid var(--border);font-size:14px;color:var(--text2)}
.konstanten li:last-child{border-bottom:none}
.konstanten b{color:var(--text);font-weight:800}
.fundstelle{font-family:"SF Mono",ui-monospace,"Roboto Mono",Menlo,monospace;
  font-size:12.5px;color:var(--text2);word-break:break-all}

/* ---------- App-Hinweis ---------- */
.apphinweis{border:1px solid var(--border);border-radius:16px;background:var(--surface1);
  padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px}
.apphinweis p{margin:0;flex:1 1 220px;font-size:14px;color:var(--text2)}
.apphinweis b{color:var(--text)}

/* ---------- Fusszeile ---------- */
footer{border-top:1px solid var(--border);margin-top:36px;padding:24px 0 40px;
  color:var(--text2);font-size:13.5px}
footer nav{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:12px}
footer a{color:var(--text2);text-decoration:underline}  /* 9,57:1 auf #000000 */
footer a:hover,footer a:focus{color:var(--text)}
footer .rechtstext{font-size:12.5px;line-height:1.55}

/* ---------- Sonstiges ---------- */
.skip{position:absolute;left:-9999px}
.skip:focus{left:8px;top:8px;position:fixed;z-index:99;background:var(--surface2);
  color:var(--text);padding:10px 14px;border:1px solid var(--info);border-radius:10px}
[hidden]{display:none !important}

@media(min-width:640px){
  .wrap{padding:0 24px}
  main{padding:28px 0 56px}
  .card,.rechenweg,.ergebnis{padding:22px}
}
