:root {
  --bg: #f4f6fa; --card: #ffffff; --text: #1a1f2b; --muted: #667085; --line: #dfe3ea;
  --primary: #2d7ff9; --primary-text: #fff; --ok: #1a9c5a; --warn: #d9480f; --field: #f8f9fc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1218; --card: #181c25; --text: #e8ecf3; --muted: #9aa4b5; --line: #2a3140; --primary: #4d90fa; --field: #10131a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
[v-cloak] { display: none; }
#app { max-width: 560px; margin: 0 auto; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
header h1 { margin: 0 0 4px; font-size: 1.6rem; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.tabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 1rem; font-weight: 600; cursor: pointer; }
.tabs button.aktiv { background: var(--primary); color: var(--primary-text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.zentriert { align-items: center; text-align: center; }
.modus { display: flex; gap: 8px; }
.modus button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.modus button.aktiv { border-color: var(--primary); color: var(--primary); font-weight: 600; }
textarea, select, .pin-eingabe { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 120px; }
.drop { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; cursor: pointer; padding: 12px; }
.drop.hat { border-style: solid; border-color: var(--primary); color: var(--text); }
.zeile { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.zeile label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.zeile select { width: auto; }
.kopf { margin-bottom: -4px; }
button, .knopf { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
button.primaer, .knopf.primaer { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
button:disabled { opacity: .5; cursor: default; }
.hinweis { margin: 0; color: var(--muted); }
.hinweis.klein { font-size: .85rem; }
.fehler { margin: 0; color: var(--warn); font-weight: 600; }
.status { margin: 0; color: var(--muted); }
.status .ok { color: var(--ok); font-weight: 600; }
.status .weg { color: var(--warn); font-weight: 600; }
.pin { font-size: clamp(64px, 22vw, 120px); font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; line-height: 1.1; padding-left: .18em; }
.pin.abgerufen { color: var(--ok); }
.pin.abgelaufen { color: var(--muted); text-decoration: line-through; }
.balken { width: 100%; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fuellung { height: 100%; background: var(--primary); transition: width .25s linear; }
.pin-eingabe { font-size: clamp(40px, 14vw, 64px); font-weight: 700; text-align: center; letter-spacing: .3em; padding-left: .3em; max-width: 320px; }
.inhalt { margin: 0; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; max-height: 50vh; overflow: auto; }
footer { margin-top: 24px; color: var(--muted); font-size: .8rem; text-align: center; }
