:root {
  --bg: #0b0805; --bg2: #141009; --karte: rgba(255, 255, 255, .06); --rand: rgba(255, 255, 255, .12);
  --text: #f6f2ea; --still: #968c7a; --gold: #e7ad35; --gold-d: #8f6414; --ok: #6fcf97; --warn: #f2c94c; --rot: #eb5757;
  --r: 16px; --font: "Helvetica Neue", Arial, system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f6f2ea; --bg2: #fff; --karte: rgba(255, 255, 255, .75); --rand: rgba(0, 0, 0, .12); --text: #14100a; --still: #6b6252; --gold: #b07a0b; --gold-d: #8f6414; }
}
* { box-sizing: border-box; }
html { color-scheme: dark light; }
body { margin: 0; font: 16px/1.45 var(--font); color: var(--text); background: radial-gradient(1200px 600px at 90% -10%, rgba(231, 173, 53, .14), transparent 60%), var(--bg); min-height: 100vh; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 90px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 8px; }
.logo { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.logo b { color: var(--gold); }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg2) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rand); z-index: 10; }
nav.tabs button { flex: 1; border: 0; background: none; padding: 8px 2px; border-radius: 10px; color: var(--still); font-size: .78rem; position: relative; }
nav.tabs button[aria-current="true"] { color: var(--gold); background: var(--karte); }
nav.tabs .punkt { position: absolute; top: 4px; right: 22%; background: var(--rot); color: #fff; border-radius: 9px; font-size: .65rem; padding: 0 5px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--r); padding: 14px 16px; margin: 0 0 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.zw { justify-content: space-between; }
.still { color: var(--still); font-size: .88rem; }
.chip { display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rand); color: var(--still); white-space: nowrap; }
.chip.bestaetigt, .chip.gepostet, .chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.chip.abgeleitet, .chip.warn, .chip.entwurf { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.chip.offen, .chip.unklar { color: var(--rot); border-color: color-mix(in srgb, var(--rot) 50%, transparent); }
.chip.bereit { color: var(--gold); border-color: var(--gold-d); }
.btn { border: 1px solid var(--gold-d); background: var(--gold); color: #1a1205; font-weight: 700; padding: 10px 16px; border-radius: 12px; cursor: pointer; min-height: 44px; }
.btn.zweit { background: none; color: var(--text); border-color: var(--rand); font-weight: 500; }
.btn.klein { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, nav.tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label { display: block; font-size: .85rem; color: var(--still); margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rand); background: color-mix(in srgb, var(--bg2) 70%, transparent); min-height: 44px; }
textarea { min-height: 160px; resize: vertical; }
.raster { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .raster.zwei { grid-template-columns: 1fr 1fr; } nav.tabs { position: static; border: 0; background: none; padding: 0; margin: 4px 0 16px; backdrop-filter: none; } nav.tabs button { flex: none; padding: 8px 14px; font-size: .9rem; } .wrap { padding-bottom: 40px; } }
.login { max-width: 420px; margin: 12vh auto 0; }
.leer { color: var(--still); padding: 18px 4px; }
.fehler { color: var(--rot); margin: 8px 0; }
.hinweis { border-left: 3px solid var(--gold); padding: 6px 10px; margin: 8px 0; background: var(--karte); border-radius: 0 10px 10px 0; font-size: .9rem; white-space: pre-wrap; }
pre.cap { white-space: pre-wrap; font: inherit; margin: 0; }
.vorschau { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--rand); background: #000; }
.felder { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.felder input { min-height: 38px; padding: 6px 10px; }
.qa li { list-style: none; margin: 3px 0; }
.qa { padding: 0; margin: 8px 0; font-size: .9rem; }
.sr { position: absolute; left: -9999px; }
