@font-face { font-family: Barlow; src: url(/fonts/barlow_condensed_regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/barlow_condensed_semibold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/barlow_condensed_bold.ttf); font-weight: 700; font-display: swap; }
:root { --bg: #050506; --panel: #0f1013; --line: #1f2026; --text: #e2e2e4; --muted: #9a9aa2; --c: #2f5d9e; --warn: #e0a020; --err: #c8102e; }
* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.4 Barlow, "Arial Narrow", sans-serif; letter-spacing: .02em; }
body { padding: env(safe-area-inset-top) 0 calc(64px + env(safe-area-inset-bottom)); }
header { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; border-bottom: 2px solid var(--c); }
header h1 { margin: 0; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
#back { background: none; border: 0; color: var(--muted); font: 28px Barlow; padding: 0 6px 0 0; }
main { padding: 8px 16px 24px; max-width: 1100px; margin: 0 auto; }
.sec { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin: 18px 0 6px; font-weight: 600; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; margin-bottom: 6px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); text-decoration: none; color: inherit; }
.item.gelb { border-left-color: var(--warn); } .item.rot { border-left-color: var(--err); }
.item b { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.item small, .muted { color: var(--muted); font-size: 14px; }
.item .grow { flex: 1; }
.ck { width: 20px; height: 20px; flex: none; margin-top: 2px; border: 1px solid #6a6a72; background: none; }
.ck.done { background: var(--c); border-color: var(--c); }
.done-text { opacity: .45; text-decoration: line-through; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--muted); }
.dot.aktiv { background: #3ecf6e; } .dot.test { background: var(--warn); } .dot.err { background: var(--err); } .dot.ruhend, .dot.beendet { background: #55555b; }
.status { display: inline-block; font-size: 13px; padding: 1px 8px; border: 1px solid var(--warn); color: var(--warn); text-transform: uppercase; letter-spacing: .08em; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; font-size: 15px; }
.kv span:nth-child(odd) { color: var(--muted); text-transform: uppercase; font-size: 13px; padding-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a, .btn { font: 600 14px Barlow; padding: 5px 10px; border: 1px solid #2a2c33; color: #cfd6e4; background: none; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.note { font: 15px/1.55 system-ui, sans-serif; color: #d4d4da; overflow-wrap: anywhere; }
.note h1, .note h2, .note h3 { font-family: Barlow; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.note a { color: #8fb0e0; } .note code, .note pre { background: var(--panel); }
.note pre { padding: 8px; overflow-x: auto; }
.note table { border-collapse: collapse; } .note td, .note th { border: 1px solid var(--line); padding: 3px 6px; }
input, textarea, select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 9px; font: 16px system-ui, sans-serif; }
#tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--bg); border-top: 1px solid var(--c); padding-bottom: env(safe-area-inset-bottom); z-index: 3; }
#tabs a { flex: 1; text-align: center; padding: 6px 0 8px; color: #7d7d85; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
#tabs a i { display: block; font-style: normal; font-size: 19px; }
#tabs a.on { color: #fff; } #tabs a.on i { color: var(--c); }
#fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; background: var(--c); color: #fff; border: 0; font: 30px Barlow; z-index: 3; }
dialog { background: var(--bg); color: var(--text); border: 1px solid var(--c); width: min(560px, 92vw); }
dialog h2 { font-family: Barlow; text-transform: uppercase; letter-spacing: .1em; margin-top: 0; }
dialog textarea { margin-top: 8px; }
dialog menu { display: flex; justify-content: flex-end; gap: 8px; padding: 0; margin: 12px 0 0; }
dialog menu button { font: 600 15px Barlow; padding: 8px 14px; background: none; color: var(--text); border: 1px solid #2a2c33; text-transform: uppercase; }
#qsave { background: var(--c); border-color: var(--c); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(140px + env(safe-area-inset-bottom)); background: var(--panel); border: 1px solid var(--c); padding: 10px; z-index: 4; }
@media (min-width: 900px) {
  main.split { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
}
.plain { color: inherit; text-decoration: none; }
.ml { margin-left: 8px; }
.mt { margin-top: 8px; }
.my { margin: 8px 0; }
/* GitHub-style task lists inside rendered notes: checkbox inline before the text, no bullet */
.note li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
.note input[type="checkbox"] { width: auto; padding: 0; margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--c); }
#qmode { display: flex; gap: 16px; margin-bottom: 10px; }
#qmode[hidden] { display: none; }
#qmode label { display: flex; align-items: center; gap: 6px; font-size: 16px; }
#qmode input { width: auto; accent-color: var(--c); }
.open { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 14px 16px; background: var(--c); color: #fff; text-decoration: none; font: 700 20px Barlow; text-transform: uppercase; letter-spacing: .1em; }
.open small { font: 400 14px Barlow; letter-spacing: .02em; text-transform: none; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version { margin-top: 32px; text-align: center; font-size: 13px; }
