/* InnoPLAN – Nacht-Cockpit. Ruhige Flächen, der Verlauf der Marke gehört allein dem Modulfeld. */
:root {
  --nacht: #141b27; --flaeche: #1b2433; --flaeche-2: #212c3e; --linie: #2c384c;
  --text: #dbe3ee; --leise: #93a0b4; --akzent: #34d1bf; --akzent-dunkel: #0f3b3a;
  --warn: #e8b660; --fehler: #f08a8a;
  --gruen: #3ddc84; --tuerkis: #1fc8c8; --blau: #4b8df8; --violett: #8f6bf2;
  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--nacht); color: var(--text); font: 15px/1.5 var(--schrift); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.2; } h2 { font-size: 17px; } h3 { font-size: 14px; color: var(--leise); font-weight: 500; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.kopf { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--linie); }
.marke { font-size: 18px; font-weight: 650; text-decoration: none; letter-spacing: -0.02em; padding-bottom: 3px; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--gruen), var(--tuerkis), var(--blau), var(--violett)) 1; }
.marke img { vertical-align: -4px; margin-right: 8px; border-radius: 5px; }
.mika header h2 { display: flex; align-items: center; gap: 12px; } .mika header img { border-radius: 50%; object-fit: cover; }
.plan.luft { cursor: crosshair; background: #0e131c; }
.knopf:disabled { opacity: .45; cursor: default; }
.kopf .titel { color: var(--leise); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf .rechts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--leise); padding: 8px 12px 8px 8px; border-radius: var(--r); }
.zurueck:hover { color: var(--text); background: var(--flaeche); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--r); border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; text-decoration: none; }
.knopf { white-space: nowrap; }
.knopf:hover { background: var(--flaeche-2); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #06211f; font-weight: 600; }
.knopf.haupt:hover { filter: brightness(1.08); }
.knopf.still { border-color: transparent; background: none; color: var(--leise); }
.knopf.still:hover { color: var(--text); background: var(--flaeche); }
.knopf.gefahr:hover { color: var(--fehler); }

.seite { max-width: 980px; margin: 0 auto; padding: 56px 28px 80px; }
.seite.schmal { max-width: 440px; }
.seite > h1 + p { color: var(--leise); margin: 10px 0 0; max-width: 60ch; }
.zeile-oben { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste li { border-bottom: 1px solid var(--linie); }
.liste a { display: grid; grid-template-columns: 1fr 180px 110px 110px; gap: 20px; align-items: baseline; padding: 18px 14px; text-decoration: none; border-radius: 6px; }
.liste a:hover { background: var(--flaeche); }
.liste .name { font-weight: 600; font-size: 16px; }
.liste span + span { color: var(--leise); }
.liste .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.leer { padding: 64px 0; color: var(--leise); }
.leer strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

.feld { display: block; margin-bottom: 16px; }
.feld > .lab { display: block; color: var(--leise); font-size: 13px; margin-bottom: 6px; }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 8px; border: 1px solid var(--linie); background: var(--nacht); }
.feld input:hover, .feld select:hover { border-color: #3b4a63; }
.feld .einheit { position: relative; display: block; }
.feld .einheit input { padding-right: 52px; }
.feld .einheit i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--leise); font-style: normal; font-size: 13px; pointer-events: none; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hinweis { color: var(--leise); font-size: 13px; margin: 0 0 16px; }
.meldung { color: var(--fehler); min-height: 22px; margin: 8px 0; }
.meldung.gut { color: var(--akzent); }

.schritte { display: flex; align-items: center; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--linie); overflow-x: auto; }
.schritte a { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; text-decoration: none; color: var(--leise); border-bottom: 2px solid transparent; white-space: nowrap; }
.schritte a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--linie); font-size: 12px; font-weight: 600; }
.schritte a:hover { color: var(--text); }
.schritte a[aria-current] { color: var(--text); border-bottom-color: var(--akzent); }
.schritte a[aria-current] b { background: var(--akzent); border-color: var(--akzent); color: #06211f; }
.schritte .stand { margin-left: auto; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 24px; }
.schritte .stand strong { color: var(--text); font-weight: 600; }

.arbeit { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 115px); }
.buehne { padding: 28px; min-width: 0; }
.arbeit > .buehne, .arbeit > .seitenfeld { overflow-y: auto; }
.seitenfeld { border-left: 1px solid var(--linie); padding: 28px 28px 60px; background: var(--flaeche); }
.seitenfeld h2 { margin: 30px 0 16px; padding-top: 26px; border-top: 1px solid var(--linie); }
.seitenfeld h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.reiter button { min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--linie); background: none; cursor: pointer; color: var(--leise); }
.reiter button[aria-pressed="true"] { background: var(--flaeche-2); color: var(--text); border-color: #3b4a63; }
.reiter button.neu { border-style: dashed; }

.plan { width: 100%; height: min(62vh, 640px); display: block; touch-action: none; user-select: none; background:
  radial-gradient(ellipse at 50% 40%, #1c2637 0%, var(--nacht) 70%); border-radius: 14px; }
.plan .dach { fill: #232e41; stroke: #5d6e8a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan .raster line { stroke: #223046; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .modul { stroke: #0e1420; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.plan .modul:hover { filter: brightness(1.25); }
.plan .weg { fill: none; stroke: #5d6e8a; stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.plan .weg:hover { stroke: var(--akzent); }
.plan .hindernis { fill: #3a2f2a; stroke: var(--warn); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: move; }
.plan .griff { fill: var(--nacht); stroke: var(--akzent); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: grab; }
.plan .kante { stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; cursor: copy; }
.plan .schiene { stroke: #e6edf7; stroke-width: 2; vector-effect: non-scaling-stroke; }
.plan .punkt { fill: #fff; stroke: #0e1420; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan text { fill: var(--leise); font-family: var(--schrift); }
.plan .z-feld { fill: #1f6f78; } .plan .z-rand { fill: #3566b8; } .plan .z-eck { fill: #7652d6; }
@keyframes aufbau { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plan.frisch .modul { animation: aufbau .5s both; }
@media (prefers-reduced-motion: reduce) { .plan.frisch .modul { animation: none; } }
.unterzeile { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--leise); font-size: 13px; margin-top: 14px; }
.unterzeile .farbe { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; margin: 4px 0 36px; }
.werte div span { display: block; color: var(--leise); font-size: 13px; }
.werte div strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.werte div small { color: var(--leise); }
.tafel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tafel th { text-align: left; font-weight: 500; color: var(--leise); font-size: 13px; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--linie); }
.tafel td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tafel td.r, .tafel th.r { text-align: right; padding-right: 0; white-space: nowrap; }
.tafel td.r { padding-left: 14px; }
.tafel td small { color: var(--leise); display: block; }
.abschnitt { margin-top: 40px; }
.abschnitt > h2 { margin-bottom: 14px; }
.warnungen { margin: 18px 0 0; padding: 0; list-style: none; }
.warnungen li { padding: 12px 16px; border-left: 3px solid var(--warn); background: #2a2618; border-radius: 0 8px 8px 0; margin-bottom: 8px; color: #ecd9ae; font-size: 14px; }
.marke-quelle { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linie); color: var(--leise); margin-left: 10px; vertical-align: middle; }
.marke-quelle.warn { border-color: var(--warn); color: var(--warn); }
.balken { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--flaeche-2); margin: 10px 0 8px; }
.balken i { display: block; }
.diagramm rect { fill: url(#verlauf-d); } .diagramm text { fill: var(--leise); font-size: 11px; font-family: var(--schrift); }
.hind-zeile { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.hind-zeile .knopf { padding: 8px 10px; }
.hind-zeile .feld { margin-bottom: 10px; }

.mika { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--flaeche); border-left: 1px solid var(--linie); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; z-index: 20; }
.mika.offen { transform: none; box-shadow: -30px 0 60px rgba(5, 9, 16, .5); }
.mika header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--linie); }
.mika .verlauf { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mika .verlauf p { margin: 0; padding: 12px 16px; border-radius: 12px; max-width: 92%; white-space: pre-wrap; }
.mika .verlauf .ich { align-self: flex-end; background: var(--akzent-dunkel); }
.mika .verlauf .sie { background: var(--flaeche-2); }
.mika form { display: flex; gap: 10px; padding: 18px 24px 24px; border-top: 1px solid var(--linie); }
.mika form input { flex: 1; min-height: 42px; padding: 9px 13px; border-radius: 8px; border: 1px solid var(--linie); background: var(--nacht); }
@media (prefers-reduced-motion: reduce) { .mika { transition: none; } }

.bericht { background: #fff; color: #1b2330; max-width: 860px; margin: 0 auto; padding: 56px 64px; border-radius: 6px; }
.bericht h1 { font-size: 26px; } .bericht h2 { font-size: 16px; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #1b2330; }
.bericht .firma { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 44px; font-size: 13px; color: #556072; }
.bericht .firma strong { color: #1b2330; font-size: 16px; display: block; }
.bericht .tafel th, .bericht .tafel td { border-color: #d9dee6; } .bericht .tafel th, .bericht .tafel td small, .bericht .werte div span, .bericht .werte div small { color: #5d6878; }
.bericht .plan { background: #f3f5f8; height: 330px; } .bericht .plan .dach { fill: #e3e8ef; stroke: #7b8799; } .bericht .plan text { fill: #5d6878; } .bericht .plan .schiene { stroke: #1b2330; } .bericht .plan .raster line { stroke: #e6eaf0; }
.bericht .diagramm text { fill: #5d6878; }
.bericht .klein { font-size: 12px; color: #5d6878; margin-top: 30px; }
.bericht .werte { margin-bottom: 10px; }
.bericht-leiste { max-width: 860px; margin: 0 auto 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--leise); }

.sz { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.sz nav { border-right: 1px solid var(--linie); padding: 28px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--flaeche); }
.sz nav a { padding: 11px 16px; border-radius: 8px; text-decoration: none; color: var(--leise); }
.sz nav a:hover { color: var(--text); background: var(--flaeche-2); }
.sz nav a[aria-current] { color: var(--text); background: var(--flaeche-2); box-shadow: inset 3px 0 0 var(--akzent); }
.sz main { padding: 48px 56px 90px; max-width: 1040px; min-width: 0; }
.sz main > h1 + p { color: var(--leise); margin: 10px 0 0; max-width: 68ch; }
.sz main h2 { margin: 44px 0 16px; }
.sz form { max-width: 640px; } .sz form.suchzeile, .sz form.wh { max-width: none; }
.sz code { background: var(--flaeche-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.feld small { display: block; color: var(--leise); font-size: 12.5px; margin-top: 6px; }
.feld textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; resize: vertical; }
.status { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #56627a; }
.status.gut { background: var(--gruen); } .status.schlecht { background: var(--fehler); }
.dienste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.dienste li { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--linie); }
.dienste li > div { flex: 1; min-width: 0; } .dienste strong { display: block; font-weight: 600; } .dienste span { color: var(--leise); font-size: 14px; }
.pruefzeile { display: flex; align-items: center; gap: 12px; color: var(--leise); font-size: 14px; margin: 4px 0 8px; flex-wrap: wrap; }
.fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; } .fuss .meldung { margin: 0; flex: 1; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.haken { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; cursor: pointer; } .haken input { width: 18px; height: 18px; accent-color: var(--akzent); }
.reiter button .status { margin-right: 8px; }
.breit { overflow-x: auto; } .breit .tafel td { white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.suchzeile { display: flex; gap: 10px; margin-bottom: 14px; } .suchzeile input { flex: 1; min-height: 40px; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--linie); background: var(--nacht); }
.wh { padding: 6px 0 14px; } .wh p { color: var(--warn); max-width: 70ch; }
@media (max-width: 1000px) {
  .sz { grid-template-columns: 1fr; } .sz nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--linie); padding: 10px 12px; } .sz nav a { white-space: nowrap; } .sz nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--akzent); }
  .sz main { padding: 28px 16px 60px; } .drei { grid-template-columns: 1fr; }
  .arbeit { grid-template-columns: 1fr; height: auto; } .arbeit > .buehne, .arbeit > .seitenfeld { overflow-y: visible; } .plan { height: 52vh; } .seitenfeld { border-left: 0; border-top: 1px solid var(--linie); }
  .liste a { grid-template-columns: 1fr 90px; } .liste a span:nth-child(2), .liste a span:nth-child(4) { display: none; }
  .kopf, .schritte { padding-left: 16px; padding-right: 16px; } .buehne, .seitenfeld { padding: 20px 16px; } .bericht { padding: 28px 22px; }
  .schritte .stand { display: none; }
}
@media (max-width: 600px) {
  .kopf { gap: 8px; } .kopf .titel, .zurueck span { display: none; } .zurueck { padding: 10px; } .kopf .knopf { padding: 8px 12px; }
  .paar { grid-template-columns: 1fr; gap: 0; } h1 { font-size: 24px; }
}
@media print {
  body { background: #fff; } .kopf, .schritte, .bericht-leiste, .mika { display: none !important; }
  .buehne { padding: 0; } .arbeit { display: block; height: auto; } .bericht { padding: 0; max-width: none; border-radius: 0; }
  .bericht h2, .bericht .plan, .bericht tr { break-inside: avoid; } .bericht h2 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
