/* Farben und Aufbau nach dem freigegebenen Mockup. */
:root {
    --bg: #0E1116;
    --surface: #161B22;
    --surface2: #1C222B;
    --line: #2A323D;
    --text: #E6EAF0;
    --muted: #9BA6B5;
    --accent: #4FD1B0;
    --urgent: #FFB25B;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: #7FE3CA; }
h1 { margin: 0; font-size: 30px; font-weight: 600; }
h2 { margin: 0; font-size: 19px; font-weight: 600; }
h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; }
.muted, .meta { color: var(--muted); font-size: 13px; }

.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 220px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand svg { color: var(--accent); flex: none; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--text); }
.menu a.on { background: #1F2731; color: var(--text); font-weight: 600; }
.who { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.who strong { color: var(--text); font-weight: 500; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }

.head, .row-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pill { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 14px; }
.pill span { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.row:hover { color: var(--text); border-color: #3A4553; }
.row.on { background: var(--surface2); border-color: var(--accent); }
.row strong { font-size: 16px; }
.badges { display: flex; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.urgent { background: var(--urgent); color: var(--bg); }
.badge.new { background: var(--accent); color: var(--bg); }
.badge.done { border: 1px solid var(--line); color: var(--muted); font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.detail { flex: 1.3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.detail h2 { font-size: 22px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 12px; color: var(--muted); }
.tile strong { font-weight: 500; overflow-wrap: anywhere; }
.talk { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.talk p { padding: 2px 14px; }
.talk p.ai { background: var(--surface2); border-radius: 10px; padding: 10px 14px; }
.talk span { font-weight: 600; color: var(--muted); }
.talk p.ai span { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #3A4553; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.btn.primary:hover { background: #7FE3CA; color: var(--bg); }
.big-btn { min-height: 48px; padding: 0 28px; }

.narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow.stack { gap: 20px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; }
.cols > * { flex: 1 1 260px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
textarea { padding: 12px 14px; resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: #7C8898; }
.fixed { background: var(--surface2); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fixed strong { font-size: 13px; color: var(--urgent); }
.fixed .big { font-size: 24px; font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checks label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--surface2); color: var(--text); font-size: 15px; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.addrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.addrow .field { flex: 1 1 300px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #C9D1DB; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar div { height: 10px; background: var(--accent); }
.notice { background: #12332B; border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; }
.alert { background: #3A2413; border: 1px solid var(--urgent); border-radius: 10px; padding: 12px 16px; }

.login { width: 100%; max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 20px; }
.admin { margin: 0 auto; width: 100%; }

@media (max-width: 560px) {
    .main { padding: 20px; }
    .tiles, .checks { grid-template-columns: minmax(0, 1fr); }
}
