@font-face { font-family: "Inter"; src: url("fonts/inter-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/spacegrotesk-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0f1512; --bg2: #16201b; --bg3: #1e2b24; --line: #2a3a31;
  --ink: #eef3ef; --ink-dim: #a9b8ae; --ink-faint: #6f7f74;
  --green: #7fd39a; --green-glow: rgba(127,211,154,.14);
  --amber: #e9c46a; --amber-glow: rgba(233,196,106,.14);
  --red: #e07a6a; --red-glow: rgba(224,122,106,.14); --blue: #7fb7e6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
h1, h2 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.card h2 { margin-top: 0; }
.muted { color: var(--ink-dim); } .tiny { font-size: .82rem; } .label { color: var(--ink-dim); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.2rem; background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-family: "Space Grotesk"; font-weight: 700; font-size: 1.1rem; }
.logo { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--ink-dim); padding: .4rem .7rem; border-radius: 8px; font: inherit; background: none; border: 0; cursor: pointer; }
.nav a.active, .nav a:hover, .nav .link:hover { background: var(--bg3); color: var(--ink); }
.inline { display: inline; margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 1.4rem 1.2rem 4rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg3); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.btn:hover { border-color: var(--green); }
.btn.primary { background: var(--green); color: #0b1a10; border-color: var(--green); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn.small { padding: .3rem .7rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--ink-dim); }
.btn.danger { background: var(--red); color: #1a0b08; border-color: var(--red); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: .8rem 0; }
.card.good { border-color: var(--green); background: var(--green-glow); }
.card.bad { border-color: var(--red); background: var(--red-glow); }
.card.note { border-color: var(--amber); background: var(--amber-glow); }
.card ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.card.empty { color: var(--ink-dim); text-align: center; padding: 2rem; }
.stack { display: flex; flex-direction: column; gap: .7rem; }

label { display: flex; flex-direction: column; gap: .25rem; color: var(--ink-dim); font-size: .86rem; font-weight: 600; }
input, textarea, select { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .7rem; font: inherit; font-weight: 400; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
input[type=file] { padding: .4rem; }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--green); }
label.radio, label.check { flex-direction: row; align-items: center; gap: .45rem; font-weight: 400; color: var(--ink); font-size: .95rem; }
input.short { max-width: 9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: .7rem; }
.grid .wide { grid-column: span 2; }
@media (max-width: 560px) { .grid .wide { grid-column: auto; } }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.frist { display: flex; align-items: center; gap: .8rem; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1.1rem; }
.frist.warm { border-color: var(--amber); background: var(--amber-glow); }
.frist.hot { border-color: var(--red); background: var(--red-glow); }
.frist-n { font-family: "Space Grotesk"; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.frist-l { font-size: .85rem; color: var(--ink-dim); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 .4rem; }
.actions form { margin: 0; }
.action { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: 1.3rem 1.4rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: transform .1s, border-color .1s; }
.action:hover { border-color: var(--green); transform: translateY(-2px); }
.action b { font-family: "Space Grotesk"; font-size: 1.3rem; }
.action span:last-child { color: var(--ink-dim); font-size: .9rem; }
.big-emoji { font-size: 2rem; line-height: 1; }

.list { display: flex; flex-direction: column; gap: .4rem; }
.row { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); flex-wrap: wrap; }
.row:hover { border-color: var(--green); }
.row-main { flex: 1; min-width: 10rem; }
.go { color: var(--green); font-weight: 600; } .ok-mark { color: var(--green); font-weight: 700; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--bg3); color: var(--ink-dim); vertical-align: middle; }
.pill.neu { background: var(--green-glow); color: var(--green); }
.pill.abmeldung { background: var(--amber-glow); color: var(--amber); }
.pill.warn { background: var(--red-glow); color: var(--red); }
.count { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; border-radius: 99px; background: var(--bg3); color: var(--ink); font-size: .8rem; text-align: center; }
.count.hot { background: var(--red); color: #1a0b08; }
.tiles { display: flex; gap: .8rem; flex-wrap: wrap; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; min-width: 9rem; display: flex; flex-direction: column; }
.tile-n { font-family: "Space Grotesk"; font-size: 1.8rem; font-weight: 700; } .tile-l { color: var(--ink-dim); font-size: .85rem; }

.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 7rem; padding: .5rem .8rem; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink-faint); font-weight: 600; font-size: .9rem; }
.steps li a { color: inherit; }
.steps li.now { border-color: var(--green); color: var(--ink); background: var(--green-glow); }
.steps li.done { color: var(--green); }
.steps li.done::before { content: "✓ "; }

.head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.opts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.person { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.person-main { flex: 1; min-width: 14rem; }
.person-act { display: flex; gap: .4rem; }
.person-act form { margin: 0; }
.person-form { border-color: var(--green); }
.thumb { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumb.empty { display: flex; align-items: center; justify-content: center; text-align: center; font-size: .72rem; color: var(--amber); background: var(--amber-glow); }
.wbk-box { border-left: 3px solid var(--amber); padding-left: .9rem; margin-top: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.file { margin-top: .2rem; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }

.doc { margin: 1.2rem 0; }
.doc-head { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.sheet { width: 100%; height: auto; border-radius: 8px; background: #fff; border: 1px solid var(--line); }

.atts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip { display: inline-block; padding: .2rem .6rem; border-radius: 8px; background: var(--bg3); color: var(--ink); font-size: .85rem; }
.ways { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; margin-top: .6rem; }
.mailtext { white-space: pre-wrap; font: .9rem/1.45 "Inter", sans-serif; color: var(--ink-dim); }
ul.plain { list-style: none; padding: 0; margin: 0; }

.celebrate { text-align: center; padding: 2rem 1rem; background: var(--green-glow); border: 1px solid var(--green); border-radius: 16px; margin-bottom: 1rem; animation: pop .45s ease-out; }
.celebrate .big-emoji { font-size: 3.4rem; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sigrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sigrow > div { display: flex; flex-direction: column; gap: .4rem; }
.sigimg { max-width: 260px; max-height: 90px; background: #fff; border-radius: 6px; padding: .4rem; }

.toast { position: fixed; top: 4.2rem; right: 1rem; padding: .7rem 1rem; border-radius: 10px; z-index: 9; font-weight: 600; transition: opacity .4s; max-width: 90vw; }
.toast.ok { background: var(--green); color: #0b1a10; } .toast.err { background: var(--red); color: #1a0b08; }
.toast.hide { opacity: 0; pointer-events: none; }
.alert { background: var(--red-glow); border: 1px solid var(--red); color: var(--ink); padding: .6rem .8rem; border-radius: 9px; }

.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: 100%; max-width: 380px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.login-logo { width: 52px; height: 52px; }
.qr { background: #fff; border-radius: 10px; padding: .6rem; align-self: center; width: 220px; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { display: block; word-break: break-all; background: var(--bg); padding: .5rem; border-radius: 6px; margin-top: .4rem; letter-spacing: .08em; }
.code-input { font-size: 1.6rem; text-align: center; letter-spacing: .3em; font-family: "Space Grotesk", monospace; }
details summary { cursor: pointer; color: var(--ink-dim); }
