:root {
  --navy: #0e1f3d; --navy-2: #16305c; --orange: #ff6b1a; --orange-soft: #fff1e8;
  --bg: #f4f6fa; --card: #ffffff; --ink: #0e1f3d; --muted: #5b6b85; --line: #e3e8f0;
  --green: #1e9e5a; --yellow: #e7a300; --red: #d7263d; --blue: #2457d6;
  --radius: 12px; --shadow: 0 1px 2px rgba(14,31,61,.06), 0 4px 16px rgba(14,31,61,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Kopfleiste */
.topbar { background: var(--navy); color: #fff; height: 60px; display: flex; align-items: center; padding: 0 24px; gap: 20px; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #fff; white-space: nowrap; }
.brand b { color: var(--orange); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: #c9d3e6; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a.aktiv, .nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav .badge { display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.topbar .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #c9d3e6; }
.topbar select { background: var(--navy-2); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.topbar .worker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.rot { background: var(--red); } .dot.gelb { background: var(--yellow); } .dot.gruen { background: var(--green); } .dot.grau { background: #8a97ad; }

/* Seite */
.seite { max-width: 1240px; margin: 0 auto; padding: 28px 28px 60px; }
.kicker { display: inline-block; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin: 8px 0 4px; }
h1 .pointe { color: var(--orange); }
.untertitel { color: var(--muted); margin: 0 0 24px; }
h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }

.raster { display: grid; gap: 16px; }
.raster.zwei { grid-template-columns: 1.4fr 1fr; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .raster.zwei, .raster.drei, .raster.vier { grid-template-columns: 1fr; } }

.karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.karte.akzent { border-left: 4px solid var(--orange); }
.karte .kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.karte .meta { color: var(--muted); font-size: 13px; }
.kennzahl { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.kennzahl small { font-size: 13px; font-weight: 600; color: var(--muted); display: block; letter-spacing: .06em; text-transform: uppercase; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f8; color: var(--navy-2); white-space: nowrap; }
.chip.orange { background: var(--orange-soft); color: var(--orange); }
.chip.gruen { background: #e6f6ee; color: var(--green); }
.chip.gelb { background: #fff5d6; color: #8a6200; }
.chip.rot { background: #fde7ea; color: var(--red); }
.chip.navy { background: var(--navy); color: #fff; }
.chip.grau { background: #eef0f4; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.summe td { font-weight: 800; border-top: 2px solid var(--navy); }
.tabelle-karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 10px; overflow-x: auto; }

.knopf { display: inline-block; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--navy); color: #fff; font-family: inherit; }
.knopf:hover { background: var(--navy-2); text-decoration: none; }
.knopf.orange { background: var(--orange); }
.knopf.leise { background: #eef2f8; color: var(--navy-2); }
.knopf.klein { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
form.inline { display: inline; }
input[type=text], input[type=number], select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; }
.feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.feld input { width: 110px; }

/* Aufgabenkarten */
.aufgabe { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe .titel { font-weight: 700; }
.aufgabe .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.aufgabe .aktionen { display: flex; gap: 8px; align-items: center; }

/* Zeitleiste der Phasen */
.zeitleiste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.phase { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 4px solid var(--line); }
.phase.aktiv { border-top-color: var(--orange); }
.phase.fertig { border-top-color: var(--green); }
.phase .nr { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.phase .name { font-weight: 800; margin: 2px 0 8px; }
.phase .status { font-size: 13px; }
.spur { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spur .schritt { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #eef2f8; color: var(--muted); }
.spur .schritt.fertig { background: #e6f6ee; color: var(--green); }
.spur .schritt.aktiv { background: var(--navy); color: #fff; }

/* Reiter */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 18px; flex-wrap: wrap; }
.reiter a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: 14px; }
.reiter a.aktiv { color: var(--navy); border-bottom-color: var(--orange); text-decoration: none; }

.matrix td.belegt { background: #e6f6ee; color: var(--green); font-weight: 700; text-align: center; white-space: nowrap; }
.matrix td.leer { color: #c3cad6; text-align: center; }
.verlauf li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.verlauf li:last-child { border-bottom: 0; }
.verlauf .zeit { color: var(--muted); font-size: 12px; margin-right: 10px; font-variant-numeric: tabular-nums; }
.mailtext { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #f7f9fc; border-radius: 8px; padding: 12px; color: #2a3a55; }
.hinweis { background: var(--orange-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.leer-hinweis { color: var(--muted); padding: 10px 0; }
.fuss { margin-top: 40px; color: var(--muted); font-size: 12px; }

/* Meldungen, Nächster Schritt, Formulare */
.meldung { background: #fde7ea; color: var(--red); border-radius: 10px; padding: 12px 16px; font-weight: 600; margin-bottom: 16px; }
.schritt-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.schritt-banner .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--orange); white-space: nowrap; }
.schritt-banner .titel { font-weight: 800; font-size: 16px; }
.schritt-banner .text { color: #c9d3e6; font-size: 13px; margin-top: 2px; }
.schritt-banner.warten { background: #e9eef7; color: var(--navy); }
.schritt-banner.warten .text { color: var(--muted); }
.schritt-banner.warten .label { color: var(--muted); }
.schritt-banner.ueberfaellig { background: var(--red); }
.schritt-banner.ueberfaellig .label { color: #fff; }
.formular { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.formular .voll { grid-column: 1 / -1; }
.formular label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.formular input[type=text], .formular input[type=email], .formular input[type=number], .formular input[type=date], .formular select, .formular textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); }
.formular textarea { min-height: 70px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { flex-direction: row; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink); font-weight: 600; }
.checks input { accent-color: var(--orange); }
.upload { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload input[type=file] { font-size: 13px; }
.linkbox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #f7f9fc; border-radius: 8px; padding: 8px 10px; word-break: break-all; }
@media (max-width: 800px) { .formular { grid-template-columns: 1fr; } .schritt-banner { grid-template-columns: 1fr; } }
.portal { max-width: 720px; margin: 40px auto; }
.kosten-plan { color: var(--muted); }

/* Anmeldung / Konto */
.topbar .konto { color: #fff; font-weight: 600; font-size: 13px; opacity: .9; margin-right: 8px; white-space: nowrap; }
.login { max-width: 420px; margin: 70px auto; }
.login .karte { padding: 28px 30px; }
.login input[type=text], .login input[type=email], .login input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-size: 15px; font-family: inherit; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.login .fehler { background: #fde7ea; color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.qr { display: block; width: 220px; height: 220px; border-radius: 8px; border: 1px solid var(--line); }
