/* Fünf vor Zwölf – Lagezentrum. Farben und Schriften als Variablen in :root. */
:root {
  --steel: #1f2b2c;      /* Lagezentrum */
  --steel-2: #283738;
  --rule: #3a4b4c;
  --paper: #ece6d6;      /* Akten, Karten */
  --ink: #1c1f1f;
  --amber: #f0a73a;      /* Leuchtziffern */
  --red: #c8352b;        /* Doom */
  --olive: #7d8a55;      /* saubere Politik */
  --mute: #9fb0ae;
  --text: #e9eeec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--steel); color: var(--text); font: 16px/1.5 "Public Sans", system-ui, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; }
h1, h2, .stencil { font-family: "Big Shoulders Stencil Display", "Public Sans", sans-serif; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: 1.6rem; line-height: 1.1; margin: 36px 0 4px; color: var(--paper); }
h2 + p.hint { margin-top: 0; }
.hint { color: var(--mute); font-size: .9rem; margin: 4px 0 12px; }
a { color: var(--amber); }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Kopfzeile */
.who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.who h1 { font-size: 2.1rem; margin: 0; line-height: 1; }
.who .meta { color: var(--mute); font-size: .95rem; }
.purse { display: flex; gap: 20px; margin-top: 10px; }
.purse div { font-size: .85rem; color: var(--mute); }
.purse b { display: block; font-family: "Big Shoulders Stencil Display", sans-serif; font-size: 1.8rem; color: var(--amber); line-height: 1; }

/* Die Uhr – das eine laute Element */
.clock { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; margin: 22px 0 6px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clock svg { width: 148px; height: 148px; display: block; }
.clock .time { font-family: "Big Shoulders Stencil Display", sans-serif; font-weight: 800; font-size: 3.4rem; line-height: .9; color: var(--amber); }
.clock .time.late { color: var(--red); }
.clock .left { color: var(--mute); font-size: .9rem; margin-bottom: 10px; }
.gauge { display: grid; grid-template-columns: 82px 1fr 22px; align-items: center; gap: 8px; font-size: .85rem; margin: 5px 0; }
.gauge .cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.gauge .cells i { height: 10px; background: var(--rule); border-radius: 1px; }
.gauge .cells i.on { background: var(--red); }
.gauge .cells i.warn { background: #e0622a; }
.gauge b { text-align: right; font-weight: 600; }

/* Krise und Karten: Papier auf Stahl */
.file { background: var(--paper); color: var(--ink); border-radius: 3px; padding: 16px; box-shadow: 0 2px 0 #0003; }
.file .title { font-family: "Big Shoulders Stencil Display", sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.file .sub { font-size: .88rem; color: #4d5352; margin-top: 4px; }
.opts { display: grid; gap: 8px; margin-top: 12px; }
.opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1.5px solid #c9c1ac; border-radius: 3px; background: #f6f2e7; color: var(--ink); cursor: pointer; }
.opt input { margin: 3px 0 0; accent-color: var(--red); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--ink); background: #fffdf6; }
.opt .n { font-weight: 700; }
.opt .d { font-size: .86rem; color: #4d5352; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.tag.sauber { background: var(--olive); color: #fff; }
.tag.schmutzig { background: var(--red); color: #fff; }
.tag.interaktion { background: #4a5a6b; color: #fff; }
.opt select { margin-top: 8px; width: 100%; padding: 6px; border: 1px solid #a99f86; background: #fff; border-radius: 2px; }
.opt.off { opacity: .5; cursor: not-allowed; }

/* Rotes Telefon */
.phone { border: 2px solid var(--red); border-radius: 3px; padding: 14px; background: #2e2322; }
.phone .from { font-weight: 700; color: #ffb4a8; }
.phone q { display: block; font-style: italic; margin: 6px 0 10px; }
.switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--red); }

.secret li { margin: 6px 0; }
.secret .vp { color: var(--amber); font-weight: 600; }
.danger { border: 1px dashed var(--rule); padding: 12px; border-radius: 3px; margin-top: 12px; }
.danger select { width: 100%; padding: 8px; margin-top: 6px; background: var(--steel-2); color: var(--text); border: 1px solid var(--rule); border-radius: 2px; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table td { padding: 8px 4px; border-bottom: 1px solid var(--rule); }
.table td:last-child { text-align: right; color: var(--mute); }
.ok { color: var(--olive) !important; font-weight: 600; }

.paper { background: var(--paper); color: var(--ink); padding: 16px; border-radius: 3px; white-space: pre-wrap; font-size: .95rem; margin-bottom: 12px; }
details summary { cursor: pointer; color: var(--mute); }

/* Festlegen-Leiste */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #172021ee; backdrop-filter: blur(6px); border-top: 1px solid var(--rule); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.bar .status { font-size: .88rem; color: var(--mute); }
.btn { white-space: nowrap; border: 0; border-radius: 3px; padding: 12px 18px; font-weight: 700; cursor: pointer; background: var(--amber); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--rule); }
.btn.red { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

.tabs { display: flex; gap: 4px; margin: 18px 0 4px; border-bottom: 1px solid var(--rule); }
.tabs button { flex: 1; background: none; border: 0; color: var(--mute); padding: 10px 4px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--amber); }
.stepper { display: flex; gap: 4px; list-style: none; padding: 0; margin: 16px 0 0; }
.stepper li { flex: 1; }
.stepper button { width: 100%; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--rule); cursor: pointer; font-size: 0; }
.stepper .done button { background: var(--mute); }
.stepper .now button { background: var(--amber); }
.link { background: none; border: 0; color: var(--amber); font-weight: 600; cursor: pointer; padding: 4px 6px; text-decoration: underline; }
#help { border: 1.5px solid var(--rule); border-radius: 50%; width: 28px; height: 28px; text-decoration: none; margin-left: 6px; padding: 0; }
.summary td { vertical-align: top; }
.summary td:last-child { width: 1%; white-space: nowrap; }
.intro { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.intro .stencil { font-size: 2.6rem; line-height: 1; color: var(--amber); margin-bottom: 16px; }
.intro p { font-size: 1.1rem; max-width: 34em; }
.dots { display: flex; gap: 8px; margin-top: 20px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.dots i.on { background: var(--amber); }
.ending { margin: 24px 0; padding: 20px; background: var(--red); color: #fff; border-radius: 3px; }
.ending.saved { background: var(--olive); }
.ending .stencil { font-size: 2.2rem; line-height: 1; }
.pushcard { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px; font-size: .9rem; }
.pushcard span { flex: 1; }
.pushcard .btn { padding: 8px 14px; }
.pushcard .link { font-size: 1.3rem; text-decoration: none; color: var(--mute); }
.err-text { color: #ff9c8f; font-weight: 600; }
.err { background: #5b1d18; color: #ffd7d1; padding: 10px 12px; border-radius: 3px; margin: 12px 0; }
.copy { display: flex; gap: 8px; margin: 6px 0 14px; }
.copy input { flex: 1; min-width: 0; padding: 8px; background: var(--steel-2); color: var(--text); border: 1px solid var(--rule); border-radius: 2px; font-size: .85rem; }
.field { display: block; margin: 10px 0; }
.field input[type=text], .field input[type=password] { width: 100%; padding: 10px; background: var(--steel-2); color: var(--text); border: 1px solid var(--rule); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .hand { transition: transform .8s cubic-bezier(.2,.8,.2,1); } }
