:root {
  --navy: #0B121C; --navy2: #121D2C; --teal: #0F766E; --teal-h: #0D6560; --teal-l: #E6F4F1; --mint: #34D3AA;
  --grey: #5B6B7F; --line: #D5DDE6; --row: #F6F8FA; --bg: #EEF2F5; --card: #FFFFFF; --txt: #0B121C;
  --amber: #B45309; --amber-l: #FEF3C7; --red: #B91C1C; --red-l: #FDECEC; --green: #047857; --green-l: #E3F4EC;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Inter, "DejaVu Sans", sans-serif; color: var(--txt); background: var(--bg); }
a { color: var(--teal); }
.test { background: var(--amber-l); color: var(--amber); border-bottom: 1px solid #F3D9A4; font-size: 12.5px; text-align: center; padding: 5px 12px; font-weight: 600; }
header.kopf { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
header.kopf .in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 14px; align-items: center; }
.marke { font-weight: 800; letter-spacing: .3px; font-size: 18px; color: #fff; text-decoration: none; }
.marke span { color: var(--mint); }
nav.haupt { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; }
nav.haupt a { color: #B9C6D6; text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: 14px; }
nav.haupt a.an, nav.haupt a:hover { background: var(--navy2); color: #fff; }
.wer { font-size: 13px; color: #B9C6D6; white-space: nowrap; }
.wer form { display: inline; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
h1 { font-size: 24px; margin: 4px 0 4px; }
h2 { font-size: 17px; margin: 0 0 10px; color: var(--teal); }
.unter { color: var(--grey); margin: 0 0 16px; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.raster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.modul { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--txt); display: block; min-height: 112px; }
.modul .nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font-weight: 700; font-size: 13px; }
.modul b { display: block; margin: 8px 0 2px; }
.modul small { color: var(--grey); }
.modul .stufe { float: right; font-size: 11.5px; color: var(--grey); background: var(--row); border-radius: 20px; padding: 2px 8px; }
.modul.aktiv { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.modul.aktiv .stufe { background: var(--teal); color: #fff; }
.modul.aus { opacity: .62; }
.zahlen { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.zahlen div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; min-width: 140px; }
.zahlen b { display: block; font-size: 24px; color: var(--teal); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; color: #fff; background: var(--teal); padding: 7px 8px; font-weight: 600; }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:nth-child(even) td { background: var(--row); }
.tab-wrap { overflow-x: auto; }
.r { text-align: right; white-space: nowrap; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.ok, .freigegeben, .belegt { background: var(--green-l); color: var(--green); }
.hinweis, .in_pruefung, .entwurf, .angenommen { background: var(--amber-l); color: var(--amber); }
.kritisch { background: var(--red-l); color: var(--red); }
.nz, .ersetzt { background: var(--row); color: var(--grey); }
.frei { color: var(--green); } .lizenz { color: var(--amber); } .gemischt { color: var(--grey); }
label { display: block; font-size: 13px; color: var(--grey); margin: 8px 0 3px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--txt); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
textarea { min-height: 70px; resize: vertical; }
.reihe { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
button, .knopf { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer;
  background: var(--teal); color: #fff; text-decoration: none; min-height: 40px; }
button:hover, .knopf:hover { background: var(--teal-h); }
button.zweit, .knopf.zweit { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
button.klein { padding: 4px 10px; min-height: 30px; font-size: 13px; }
button.weg { background: none; color: var(--red); border: 0; padding: 2px 6px; min-height: 0; font-size: 13px; }
button.gross { font-size: 16px; padding: 12px 20px; }
button:disabled { background: #C7D0DA; color: #fff; cursor: not-allowed; }
.meldung { border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.meldung.gut { background: var(--green-l); color: var(--green); }
.meldung.schlecht { background: var(--red-l); color: var(--red); }
.status-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 14px; }
.versionen a { font-size: 13px; margin-right: 6px; }
.versionen a.an { font-weight: 800; text-decoration: none; color: var(--txt); }
.reiter { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; position: sticky; top: 57px; background: var(--bg); padding: 6px 0; z-index: 5; }
.reiter a { white-space: nowrap; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; font-size: 13.5px; color: var(--txt); }
.hindernisse li { margin: 3px 0; }
.hindernisse .bereich { color: var(--grey); font-size: 12.5px; }
.gesperrt-hinweis { background: var(--navy); color: #fff; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.pruef { display: grid; gap: 10px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding: 12px 0; }
.pruef:first-of-type { border-top: 0; }
@media (min-width: 760px) { .pruef { grid-template-columns: 220px 170px 1fr auto; align-items: start; } }
.mitte { max-width: 420px; margin: 8vh auto; }
.qr { background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); width: 220px; display: block; margin: 10px auto; }
code.geheim { font-size: 14px; letter-spacing: 1px; background: var(--row); padding: 4px 6px; border-radius: 6px; word-break: break-all; }
details summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.muted { color: var(--grey); } .klein { font-size: 12.5px; }
footer { text-align: center; color: var(--grey); font-size: 12px; padding: 20px; }
@media (max-width: 640px) {
  header.kopf .in { flex-wrap: wrap; }
  nav.haupt { order: 3; flex-basis: 100%; margin-left: 0; }
  .reiter { top: 98px; }
  h1 { font-size: 21px; }
  td, th { padding: 6px; font-size: 14px; }
}
section[id] { scroll-margin-top: 120px; }
@media (max-width: 640px) { section[id] { scroll-margin-top: 150px; } .zahlen div { flex: 1 1 140px; } }
