/* Cockpit im PEGASUS-Look: dunkle Bühne, Blau #009FE3 nur als Markierung, Amber nur für „du bist dran“.
   Schriften: Geist, wenn auf dem Gerät vorhanden, sonst die Systemschrift (keine Dateien von außen). */
:root {
  --bg: #02050a; --surface: #08111b; --well: #050b13; --pop: #0d1824;
  --line: rgba(120, 175, 215, .16); --line2: rgba(120, 175, 215, .30);
  --fg: #eef3f7; --fg2: #9db0c2; --fg3: #6c8094;
  --blue: #009FE3; --blue-soft: rgba(0, 159, 227, .14);
  --amber: #F5A524; --amber-soft: rgba(245, 165, 36, .13);
  --ok: #3cc98a; --risk: #ef6a4c;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --leiste-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 300;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0) 0 calc(var(--leiste-h) + env(safe-area-inset-bottom, 0) + 16px);
}
main { max-width: 560px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0)) 0 max(16px, env(safe-area-inset-right, 0)); }
b, strong { font-weight: 500; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.leise { color: var(--fg2); }
.klein { font-size: 13px; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 6px; }
.marke { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); display: flex; align-items: center; gap: 8px; }
.marke i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); display: inline-block; }
.kopf-rechts { font-family: var(--mono); font-size: 11px; color: var(--fg3); text-align: right; }

.schirm { padding-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); margin-top: 12px; }
h1 { font-weight: 200; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); margin: 14px 0 0; }
h3 { font-weight: 500; font-size: 16px; margin: 2px 0 6px; }

label { font-size: 13px; color: var(--fg2); margin-top: 6px; display: block; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--well); border: 1px solid var(--line2);
  border-radius: 12px; padding: 11px 12px; margin-top: 4px;
}
textarea { resize: vertical; min-height: 84px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
form { display: flex; flex-direction: column; gap: 4px; }

.knopf {
  font: inherit; font-size: 15px; font-weight: 500; border-radius: 99px; padding: 12px 18px; cursor: pointer; border: 1px solid transparent;
  min-height: 48px; width: 100%; margin-top: 8px;
}
.knopf.haupt { background: var(--blue); color: #fff; box-shadow: 0 0 18px rgba(0, 159, 227, .25); }
.knopf.leer { background: transparent; color: var(--fg); border-color: var(--line2); }
.knopf.klein { min-height: 36px; padding: 6px 14px; font-size: 13px; width: auto; }
.knopf:disabled { opacity: .55; cursor: default; }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fuss { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kachel { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface); }
.kachel .wert { font-family: var(--mono); font-size: 26px; letter-spacing: -.01em; }
.kachel .name { color: var(--fg3); font-size: 12.5px; }

.liste { display: flex; flex-direction: column; gap: 8px; }
.zeile {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--fg); font: inherit; font-size: 14.5px; text-align: left; width: 100%;
}
button.zeile { cursor: pointer; }
.zeile .mono { color: var(--fg2); white-space: nowrap; font-size: 13px; }

.kunde {
  display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: var(--fg); cursor: pointer; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 14px;
}
.kunde-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kunde-kopf b { font-size: 15.5px; }
.pille { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line2); border-radius: 99px; padding: 2px 9px; color: var(--fg2); white-space: nowrap; }
.pille.stand-kunde { border-color: transparent; background: rgba(60, 201, 138, .14); color: var(--ok); }
.pille.stand-verloren { color: var(--fg3); }
.pille.stand-test, .pille.stand-baustein { border-color: transparent; background: var(--blue-soft); color: var(--blue); }

.wkarte {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--fg); font-size: 14px;
  border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--well);
}
button.wkarte { cursor: pointer; }
.wkarte .h { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
.wkarte.blau { border-color: rgba(0, 159, 227, .5); background: var(--blue-soft); }
.wkarte.blau .h { color: var(--blue); }
.wkarte.amber { border-color: rgba(245, 165, 36, .55); background: var(--amber-soft); }
.wkarte.amber .h { color: var(--amber); }
.wkarte .knopf { margin-top: 10px; }
.zitat { color: var(--fg2); border-left: 2px solid var(--line2); padding-left: 10px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }

.karte { background: var(--surface); border: 1px solid rgba(0, 159, 227, .35); border-radius: 16px; padding: 12px 14px; }
.karte .h { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.karte .text { font-size: 14.5px; margin-bottom: 8px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line2); background: transparent; color: var(--fg2); padding: 6px 13px; border-radius: 99px; cursor: pointer; min-height: 34px; }
.chip.an { background: var(--blue); border-color: var(--blue); color: #fff; }

.meldung { color: var(--risk); font-size: 14px; min-height: 1em; margin: 6px 0; }
.meldung.gut { color: var(--ok); }
.hinweis { font-size: 13px; color: var(--fg2); border-left: 2px solid var(--blue); padding: 2px 0 2px 12px; }

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--leiste-h) + env(safe-area-inset-bottom, 0)); padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(2, 5, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.leiste button {
  position: relative; font: inherit; font-size: 11px; color: var(--fg3); background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.leiste button[aria-current="page"] { color: var(--blue); }
.leiste .punkt { position: absolute; top: 10px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
/* Symbole aus Rahmen, ohne Bilddateien */
.sym { width: 20px; height: 18px; border: 1.6px solid currentColor; border-radius: 5px; display: block; }
.sym-heute { border-radius: 50%; }
.sym-kunden { border-radius: 50% 50% 4px 4px; }
.sym-karten { transform: rotate(-6deg); }
.sym-briefing { border-radius: 2px; border-left-width: 4px; }
.sym-tower { width: 12px; border-radius: 3px 3px 0 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
