/* =====================================================================
   NINE-V Dev Board - gleiches Design wie nine-v.de (monochrom, Oswald, Pinsel)
   ===================================================================== */
@font-face { font-family: 'NineV Brush'; src: url('fonts/marker.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/oswald-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/oswald-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    color-scheme: dark;
    --bg: #08090a;
    --bg-2: #0d0e11;
    --card: #121317;
    --card-2: #17181d;
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.14);
    --text: #f5f7fa;
    --muted: #9a9da6;
    --dim: #5c5f68;
    --grad: linear-gradient(180deg, #ffffff 0%, #d4d6db 100%);
    --head: 'Oswald', 'Segoe UI', sans-serif;
    --brush: 'NineV Brush', 'Oswald', sans-serif;
    --green: #54e892;
    --amber: #f5c26b;
    --red: #ff5c6c;
    --blue: #6cb6ff;
    --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
::selection { background: #fff; color: #000; }
.hidden { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 12px;
    font-family: var(--head); font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 15px; }
.btn.primary { background: var(--grad); color: #0b0c0e; font-weight: 600; box-shadow: 0 12px 40px rgba(255,255,255,0.12); }
.btn.primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 16px 50px rgba(255,255,255,0.2); }
.btn.ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.5); }
.btn.danger { border: 1px solid rgba(255,92,108,0.45); color: var(--red); background: rgba(255,92,108,0.06); }
.btn.danger:hover { background: rgba(255,92,108,0.14); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); color: #c9cbd1; transition: .15s; }
.icon-btn:hover { color: #fff; border-color: rgba(255,255,255,0.45); }

/* Formulare */
.field { display: grid; gap: 7px; }
.field > label, .lbl { font-family: var(--head); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.in, .field input, .field select, .field textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); outline: 0; transition: border-color .15s, background .15s; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.in:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.field select option, select option { background: #121317; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }

/* =====================================================================
   Landing Page
   ===================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(8,9,10,0.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); }
.brand span { font-family: var(--head); font-size: 18px; font-weight: 600; letter-spacing: 0.18em; }
.brand small { font-family: var(--head); font-size: 11px; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase; }
.nav .btn { margin-left: auto; }

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #1a1c22 0%, #0b0c0f 55%, var(--bg) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 130px 0 90px; }
.hero-logo { width: 116px; height: 116px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.15), 0 20px 60px rgba(0,0,0,0.6); margin-bottom: 22px; }
.eyebrow { font-family: var(--head); font-size: 13px; letter-spacing: 0.5em; text-transform: uppercase; color: #d6d8dd; }
.hero h1 { font-family: var(--brush); font-weight: 400; font-size: clamp(76px, 14vw, 180px); line-height: .95; letter-spacing: 2px; margin: 6px 0 2px; text-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.sub { display: flex; align-items: center; gap: 18px; }
.sub i { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, #fff); }
.sub i:last-child { transform: scaleX(-1); }
.sub span { font-family: var(--head); font-size: clamp(15px, 2vw, 21px); letter-spacing: 0.7em; padding-left: 0.7em; }
.slogan { margin-top: 22px; font-size: clamp(15px, 1.8vw, 18px); color: #c9cbd1; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.features { padding: 40px 0 110px; }
.kicker { font-family: var(--head); font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); text-align: center; }
.features h2 { font-family: var(--head); font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; margin: 8px 0 40px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feat .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--grad); color: #0b0c0e; margin-bottom: 16px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-family: var(--head); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14.5px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--dim); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =====================================================================
   Login
   ===================================================================== */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px;
    background: radial-gradient(ellipse at 50% 30%, #1a1c22 0%, #0b0c0f 55%, var(--bg) 100%); }
.login-card { width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 24px; background: linear-gradient(180deg, #15161a, #0d0e11); border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.login-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.login-head img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); margin-bottom: 12px; }
.login-head h1 { font-family: var(--brush); font-weight: 400; font-size: 52px; line-height: 1; }
.login-head span { font-family: var(--head); font-size: 12px; letter-spacing: 0.5em; color: var(--muted); margin-top: 6px; padding-left: .5em; }
.login-card form { display: grid; gap: 14px; }
.login-card .btn { width: 100%; margin-top: 4px; }
.back { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.back:hover { color: #fff; }

/* =====================================================================
   App (Board)
   ===================================================================== */
.app-top { position: sticky; top: 0; z-index: 30; background: rgba(8,9,10,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; width: min(1500px, 100% - 32px); }
.user-box { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0b0c0e; font-family: var(--head); font-weight: 600; font-size: 14px; flex: 0 0 auto; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.none { background: rgba(255,255,255,0.08); color: var(--dim); }
.user-box .who { display: grid; line-height: 1.2; }
.user-box .who b { font-size: 14px; }
.user-box .who small { color: var(--muted); font-size: 11.5px; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 46px; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: grid; }
.menu-list button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-align: left; font-size: 14px; color: #d6d8dd; }
.menu-list button:hover { background: rgba(255,255,255,0.06); color: #fff; }

.app-main { width: min(1500px, 100% - 32px); margin: 0 auto; padding: 24px 0 60px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(245,194,107,0.4); background: rgba(245,194,107,0.08); color: #fde6b5; margin-bottom: 18px; font-size: 14px; }
.banner .btn { margin-left: auto; }

.head-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row h1 { font-family: var(--head); font-size: 34px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.head-row h1 span { font-family: var(--brush); font-weight: 400; text-transform: none; letter-spacing: 1px; }
.head-row p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.head-row .btn { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat small { font-family: var(--head); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-family: var(--head); font-size: 30px; line-height: 1.15; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; outline: 0; height: 100%; }
.toolbar select { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); min-width: 150px; }

.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.col { border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); padding: 12px; min-height: 240px; transition: border-color .15s, background .15s; }
.col.drop { border-color: rgba(255,255,255,0.5); background: #121318; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; }
.col-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.col-head b { font-family: var(--head); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.col-head em { margin-left: auto; font-style: normal; font-family: var(--head); font-size: 12px; color: var(--muted); padding: 1px 8px; border-radius: 20px; border: 1px solid var(--line-2); }
.col-head .add { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.col-head .add:hover { color: #fff; background: rgba(255,255,255,0.06); }
.col-list { display: grid; gap: 10px; }
.col-empty { padding: 26px 10px; text-align: center; color: var(--dim); font-size: 13px; border: 1px dashed var(--line-2); border-radius: 12px; }
.dot.open { background: #c9cbd1; } .dot.progress { background: var(--blue); } .dot.review { background: var(--amber); } .dot.done { background: var(--green); }

.card { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.card.dragging { opacity: .4; }
.card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag { font-family: var(--head); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.07); color: #d6d8dd; }
.prio { font-family: var(--head); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.prio.low { color: var(--muted); border: 1px solid var(--line-2); }
.prio.normal { display: none; }
.prio.high { color: #0b0c0e; background: var(--amber); }
.prio.urgent { color: #fff; background: var(--red); }
.card h4 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.card .desc { color: var(--muted); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress { margin-top: 12px; }
.progress-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 5px; transition: width .25s; }
.progress-bar.full i { background: var(--green); }
.progress small { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.card-foot .due { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .due svg { width: 13px; height: 13px; }
.card-foot .due.late { color: var(--red); }
.card-foot .avatar { margin-left: auto; }

/* Detail-Dialog */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.dialog { width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: linear-gradient(180deg, #15161a, #0d0e11); border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0,0,0,0.7); }
.dialog.small { width: min(480px, 100%); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #131418; z-index: 2; }
.dlg-head h2 { font-family: var(--head); font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.dlg-head .icon-btn { margin-left: auto; }
.dlg-body { padding: 22px; display: grid; gap: 16px; }
.dlg-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.dlg-foot .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.title-in { width: 100%; border: 0; background: transparent; outline: 0; font-family: var(--head); font-size: 26px; letter-spacing: 0.03em; padding: 4px 0; border-bottom: 1px dashed transparent; }
.title-in:focus { border-bottom-color: var(--line-2); }

.subs { display: grid; gap: 6px; }
.subs-head { display: flex; align-items: center; gap: 10px; }
.subs-head .progress { flex: 1; margin: 0 0 0 10px; }
.sub-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.sub-item:hover { border-color: var(--line-2); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; transition: .15s; }
.check svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: #0b0c0e; }
.sub-item.done .check { background: var(--green); border-color: var(--green); }
.sub-item.done .check svg { opacity: 1; }
.sub-item input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 14.5px; padding: 2px 0; }
.sub-item.done input { color: var(--dim); text-decoration: line-through; }
.sub-item .meta { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.sub-item .del { color: var(--dim); opacity: 0; transition: .15s; }
.sub-item:hover .del { opacity: 1; }
.sub-item .del:hover { color: var(--red); }
.sub-add { display: flex; gap: 8px; }
.sub-add .in { flex: 1; }
.info-line { font-size: 12px; color: var(--dim); }

.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.user-row .who { flex: 1; display: grid; line-height: 1.25; }
.user-row .who small { color: var(--muted); font-size: 12px; }
.role { font-family: var(--head); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.role.admin { background: var(--grad); color: #0b0c0e; border-color: transparent; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,0.5); font-size: 14px; animation: tin .2s ease-out; }
.toast.ok { border-color: rgba(84,232,146,0.5); }
.toast.bad { border-color: rgba(255,92,108,0.6); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Mobil */
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .feat-grid { grid-template-columns: 1fr; }
    .board { grid-template-columns: 1fr; }
    .grid2, .grid4 { grid-template-columns: 1fr; }
    .user-box .who { display: none; }
    .head-row h1 { font-size: 26px; }
}
.dlg-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--dim); }

/* =====================================================================
   Sidebar (wie os-admin) + Archiv
   ===================================================================== */
body.has-side .app-main { margin-left: 270px; width: auto; max-width: none; padding: 26px 28px 60px; }
.side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; display: flex; flex-direction: column; gap: 14px; padding: 20px 16px;
    background: linear-gradient(180deg, #0f1013, #0a0b0d); border-right: 1px solid var(--line); overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.side-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); }
.side-brand b { display: block; font-family: var(--brush); font-weight: 400; font-size: 26px; line-height: 1; }
.side-brand small { font-family: var(--head); font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.side-new { width: 100%; }
.side-label { display: block; margin: 10px 10px 6px; font-family: var(--head); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.side-nav, .side-cats { display: grid; gap: 3px; }
.side-nav button, .side-cats button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; text-align: left;
    font-family: var(--head); font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #c9cbd1; transition: background .15s, color .15s; }
.side-nav button:hover, .side-cats button:hover { background: rgba(255,255,255,0.05); color: #fff; }
.side-nav button.active { background: var(--grad); color: #0b0c0e; box-shadow: 0 8px 26px rgba(255,255,255,0.1); }
.side-nav button span, .side-cats button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav em, .side-cats em { font-style: normal; font-size: 11.5px; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 20px; background: rgba(255,255,255,0.08); }
.side-nav em:empty { display: none; }
.side-nav button.active em { background: rgba(11,12,14,0.12); }
.side-cats button { height: 36px; font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; }
.side-cats button.active { background: rgba(255,255,255,0.08); color: #fff; box-shadow: inset 2px 0 0 #fff; }
.dot-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.side-cats button.active .dot-sm { background: #fff; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.side-user .who { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.side-user .who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who small { color: var(--muted); font-size: 11.5px; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.side-toggle { display: none; }

/* Board: 3 Spalten + schmale Archiv-Ablage */
body.has-side .board { grid-template-columns: repeat(3, minmax(240px, 1fr)) minmax(190px, 0.7fr); }
.col-done { display: flex; flex-direction: column; }
.done-drop { flex: 1; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 20px 12px;
    border: 1.5px dashed rgba(84,232,146,0.35); border-radius: 14px; color: var(--muted); transition: .15s; }
.done-drop svg { width: 28px; height: 28px; color: var(--green); }
.done-drop b { font-family: var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; font-size: 13px; }
.done-drop span { font-size: 12.5px; }
.col-done.drop .done-drop { background: rgba(84,232,146,0.08); border-color: var(--green); }
.done-link { margin-top: 10px; padding: 8px; font-size: 12px; color: var(--muted); border-radius: 9px; }
.done-link:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Archiv-Liste */
.archive { display: grid; gap: 8px; }
.arc-row { display: grid; grid-template-columns: 36px 1fr 170px 170px auto; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s; }
.arc-row:hover { border-color: rgba(255,255,255,0.3); }
.arc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(84,232,146,0.12); color: var(--green); }
.arc-ico svg { width: 16px; height: 16px; stroke-width: 3; }
.arc-main { display: grid; gap: 4px; min-width: 0; }
.arc-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-main small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.arc-meta { display: grid; line-height: 1.3; }
.arc-meta small { font-family: var(--head); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.arc-meta b { font-size: 13px; font-weight: 400; color: #d6d8dd; }
.arc-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9cbd1; min-width: 0; }
.arc-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-empty { padding: 50px 20px; }
.arc-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(84,232,146,0.35); background: rgba(84,232,146,0.07); font-size: 14px; color: #c8f5da; }
.arc-note svg { color: var(--green); }
.arc-note .btn { margin-left: auto; }

@media (max-width: 1300px) { body.has-side .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } .arc-row { grid-template-columns: 36px 1fr auto; } .arc-meta, .arc-who { display: none; } }
@media (max-width: 900px) {
    .side { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
    body.side-open .side { transform: none; }
    body.has-side .app-main { margin-left: 0; padding: 70px 16px 40px; }
    .side-toggle { display: flex; position: fixed; top: 14px; left: 14px; z-index: 45; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px;
        border-radius: 11px; border: 1px solid var(--line-2); background: rgba(8,9,10,0.85); }
    .side-toggle span { height: 2px; background: #fff; border-radius: 2px; }
    body.has-side .board { grid-template-columns: 1fr; }
}

/* Einrichtung prüfen + Fehlerseite */
.check-card { width: min(520px, 100%); }
.checks { display: grid; gap: 8px; margin-bottom: 18px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.check-row .mark { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; font-weight: 700; }
.check-row.ok .mark { background: rgba(84,232,146,0.15); color: var(--green); }
.check-row.bad { border-color: rgba(255,92,108,0.45); }
.check-row.bad .mark { background: rgba(255,92,108,0.15); color: var(--red); }
.check-row b { font-size: 14px; }
.check-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.check-card .btn { width: 100%; }
.login-card .banner { margin: 0; }

/* Installer */
.install-card { width: min(600px, 100%); }
.install-form { display: grid; gap: 12px; }
.inst-step { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.inst-step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0b0c0e; font-family: var(--head); font-size: 13px; }
.inst-step span { font-family: var(--head); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.grid-db { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.grid-db2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inst-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c9cbd1; cursor: pointer; }
.inst-check input { width: 17px; height: 17px; accent-color: #fff; }
.check-row.warn { border-color: rgba(245,194,107,0.45); }
.check-row.warn .mark { background: rgba(245,194,107,0.15); color: var(--amber); }
.install-card .checks { margin-bottom: 0; }
.install-card .btn { width: 100%; margin-top: 8px; }
.cfg-box { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #050506; color: #c8f5da; font-family: Consolas, monospace; font-size: 12.5px; resize: vertical; margin: 4px 0 10px; }
.check-row code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
@media (max-width: 560px) { .grid-db, .grid-db2 { grid-template-columns: 1fr; } }
