/* =====================================================================
 * VA LH·DE — Corporate Design
 * Dunkelblau (Betriebsfarbe) · Weiß (Information) · Gelb (Aktion/Ferienflug)
 * ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #080f1c; --bg-2: #0c1526;
  --panel: #101c30; --panel-2: #152441; --panel-3: #1b2c4d;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --ink: #eef3fb; --ink-2: #c0cde3; --muted: #8496b3;
  --net: #4f8ff0; --net-deep: #0d2a63; --sun: #f5c518; --sun-deep: #5a4406;
  --accent: #f5c518; --accent-ink: #10203c;
  --go: #2fbf6a; --warn: #f0a52b; --bad: #e5544a; --air: #49b6f2; --done: #7d8fad;
  --grid: rgba(255,255,255,.07);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -24px rgba(0,0,0,.9);
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", monospace;
  --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sp { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 40; height: 58px; display: flex; align-items: center; gap: 14px;
       padding: 0 16px; background: linear-gradient(180deg, #0d1a30, #0a1425); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .txt b { font-size: 15px; font-weight: 700; letter-spacing: .04em; display: block; line-height: 1.1; }
.brand .txt span { font-size: 10.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.top .chip { display: flex; align-items: center; gap: 9px; padding: 6px 12px; background: rgba(255,255,255,.04);
             border: 1px solid var(--line); border-radius: 10px; }
.top .chip .k { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.top .chip .v { font-size: 13.5px; font-weight: 650; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.top .chip .s { font-size: 11px; color: var(--ink-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, var(--net), var(--net-deep));
          display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 9px;
            cursor: pointer; display: grid; place-items: center; position: relative; }
.icon-btn:hover { border-color: var(--line-2); background: rgba(255,255,255,.08); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
#burger { display: none; }

/* ---------- Grundraster ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: calc(100vh - 58px); }
nav.side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 12px 10px; position: sticky; top: 58px;
           height: calc(100vh - 58px); overflow-y: auto; }
nav.side .grp { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
nav.side a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink-2);
             font-weight: 550; font-size: 13.5px; }
nav.side a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
nav.side a.on { background: linear-gradient(90deg, rgba(245,197,24,.16), rgba(245,197,24,.02)); color: var(--ink);
                box-shadow: inset 2px 0 0 var(--accent); }
nav.side a svg { width: 17px; height: 17px; flex: none; opacity: .9; }
nav.side .tag { margin-left: auto; font-size: 10px; background: var(--accent); color: var(--accent-ink); padding: 1px 6px;
                border-radius: 20px; font-weight: 700; }
main { padding: 18px 20px 60px; min-width: 0; }
.disclaimer { border-top: 1px solid var(--line); margin-top: 26px; padding: 14px 20px 26px; color: var(--muted); font-size: 11.5px; }

/* ---------- Überschriften ---------- */
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Karten ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > h2, .card-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line);
                          font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.card-head .sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.card-head .sp { flex: 1; }
.card-body { padding: 16px; }
.card-body.tight { padding: 10px 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: minmax(0,2fr) minmax(320px,1fr); }
.g-side { grid-template-columns: minmax(300px,1fr) minmax(0,2fr); }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
       border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-weight: 600; font-size: 13px; }
.btn:hover { background: rgba(255,255,255,.1); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--ink-2); font-size: 12.5px; font-weight: 550; }
.seg button.on { background: var(--panel-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 3px 9px;
         border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.badge.go i { background: var(--go); } .badge.go { color: #9fe9c0; }
.badge.warn i { background: var(--warn); } .badge.warn { color: #ffd79a; }
.badge.bad i { background: var(--bad); } .badge.bad { color: #ffb3ad; }
.badge.air i { background: var(--air); } .badge.air { color: #a9dcfa; }
.badge.done i { background: var(--done); } .badge.done { color: var(--ink-2); }
.badge.idle i { background: #5b6f92; }
.btag { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em; }
.btag.net { background: rgba(79,143,240,.18); color: #a9c9fb; box-shadow: inset 0 0 0 1px rgba(79,143,240,.4); }
.btag.sun { background: rgba(245,197,24,.16); color: #ffdd7a; box-shadow: inset 0 0 0 1px rgba(245,197,24,.4); }

/* ---------- Tabellen ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 650;
     text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
td { padding: 9px 12px; border-bottom: 1px solid var(--grid); font-size: 13px; }
tbody tr:hover { background: rgba(255,255,255,.035); }
tbody tr.sel { background: rgba(245,197,24,.09); box-shadow: inset 2px 0 0 var(--accent); }
tbody tr.click { cursor: pointer; }
td.num, th.num { text-align: right; font-family: var(--mono); }
.route-cell { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; }
.route-cell .arr { color: var(--muted); }

/* ---------- Startseite ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.hero-photo { padding: 26px 28px; background: linear-gradient(120deg, #0e2246, #101c30 55%, #16233c);
              background-size: cover; background-position: center 62%; }
.hero-brands { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-brands { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; }
.kpi .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 25px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 11.5px; color: var(--ink-2); }
.kpi .d.up { color: #7fe0a8; } .kpi .d.down { color: #ff9e96; }

/* ---------- Formularfelder ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px;
        padding: 9px 11px; font-size: 13.5px; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field .hint { font-size: 11px; color: var(--muted); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- Flug-Kopf (Details) ---------- */
.fl-head { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(120deg, var(--panel-2), var(--panel));
           border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fl-head .no { font-size: 22px; font-weight: 750; letter-spacing: .02em; font-family: var(--mono); }
.fl-head .rt { font-size: 15px; color: var(--ink-2); font-family: var(--mono); }
.leg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 18px 16px; }
.leg .pt .t { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.leg .pt .z { font-size: 11px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.leg .pt .ap { font-size: 13px; font-weight: 650; margin-top: 6px; }
.leg .pt .c { font-size: 12px; color: var(--muted); }
.leg .pt.to { text-align: right; }
.leg .mid { text-align: center; color: var(--muted); font-size: 11.5px; min-width: 120px; }
.leg .bar { height: 2px; background: var(--line-2); position: relative; margin: 8px 0 6px; border-radius: 2px; }
.leg .bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; }
.leg .bar .ac { position: absolute; top: -7px; transform: translateX(-50%); font-size: 13px; color: var(--accent); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line);
      border-top: 1px solid var(--line); }
.dl > div { background: var(--panel); padding: 11px 14px; }
.dl .k { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.dl .v { font-size: 14px; font-weight: 650; margin-top: 3px; font-variant-numeric: tabular-nums; }
.dl .v.sm { font-size: 12.5px; font-weight: 550; }

/* ---------- Ladebalken / Auslastung ---------- */
.meter { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; }
.meter span { display: block; height: 100%; }
.meter .f { background: #c9a227; } .meter .c { background: var(--net); } .meter .y { background: #3f7fd6; }
.meter .fill { background: var(--accent); }

/* ---------- Karte ---------- */
.map-wrap { position: relative; background: radial-gradient(120% 120% at 50% 0%, #0d1c34 0%, #070f1e 70%); border-radius: var(--r); overflow: hidden; }
.map-wrap svg { display: block; width: 100%; }
.map-grid { stroke: rgba(120,160,220,.13); stroke-width: .5; fill: none; }
.map-coast { fill: rgba(80,120,180,.14); stroke: rgba(120,170,230,.35); stroke-width: .6; }
.map-route { stroke: rgba(245,197,24,.28); stroke-width: 1; fill: none; stroke-dasharray: 3 3; }
.map-route.act { stroke: rgba(245,197,24,.75); stroke-dasharray: none; stroke-width: 1.3; }
.map-ap { fill: #9fb5d6; }
.map-ap.base { fill: var(--accent); }
.map-lbl { fill: var(--ink-2); font-size: 5.5px; font-family: var(--mono); }
.map-ac { cursor: pointer; }
.map-ac .body { fill: var(--accent); stroke: #1b1405; stroke-width: .3; }
.map-ac.net .body { fill: #7fb2ff; } .map-ac.sun .body { fill: var(--sun); }
.map-ac.sel .body { fill: #fff; }
.map-ac .lbl { fill: #dfe9fb; font-size: 4.6px; font-family: var(--mono); }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 14px; font-size: 11px; color: var(--ink-2);
              background: rgba(8,15,28,.72); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.map-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ---------- Zeitstrahl Dienstplan ---------- */
.duty { position: relative; padding-left: 26px; }
.duty::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.duty .it { position: relative; padding: 9px 0; display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: baseline; }
.duty .it::before { content: ''; position: absolute; left: -22px; top: 15px; width: 9px; height: 9px; border-radius: 50%;
                    background: var(--panel); border: 2px solid var(--line-2); }
.duty .it.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,197,24,.18); }
.duty .it.done::before { background: var(--done); border-color: var(--done); }
.duty .t { font-family: var(--mono); font-weight: 650; }
.duty .n { font-weight: 550; } .duty .n small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }

/* ---------- Sitzplan ---------- */
.cabin { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 10px; background: var(--bg-2);
         border-radius: 10px; border: 1px solid var(--line); max-height: 460px; overflow-y: auto; }
.cabin .rowline { display: flex; gap: 3px; align-items: center; }
.cabin .rn { width: 22px; text-align: center; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.seat { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06);
        font-size: 9px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.seat:hover:not(.taken) { border-color: var(--accent); }
.seat.taken { background: rgba(255,255,255,.03); color: #4d5c78; cursor: not-allowed; border-style: dashed; }
.seat.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.seat.xl { box-shadow: inset 0 0 0 1px rgba(47,191,106,.5); }
.seat.biz { background: rgba(79,143,240,.14); }
.cabin .aisle { width: 12px; }
.cabin .cls { width: 100%; text-align: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
              color: var(--muted); margin: 6px 0 2px; }

/* ---------- Bordkarte ---------- */
.bp { background: linear-gradient(115deg, #13233f, #0e1a2f); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.bp .bp-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px dashed var(--line-2); }
.bp .bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; padding: 14px 16px; }
.bp .k { font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.bp .v { font-size: 16px; font-weight: 700; font-family: var(--mono); }
.bp .strip { height: 46px; margin: 0 16px 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px,
             var(--ink) 4px 5px, transparent 5px 9px); border-radius: 4px; opacity: .85; }

/* ---------- OFP ---------- */
.ofp { font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; background: #060c17;
       border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 520px; overflow: auto; color: #cfe0f7; }
.ofp b { color: var(--accent); font-weight: 700; }

/* ---------- Fortschritt / Karriere ---------- */
.prog { height: 9px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffe07d); }

/* ---------- Listen ---------- */
.list { display: flex; flex-direction: column; }
.list .li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--grid); }
.list .li:last-child { border-bottom: 0; }
.list .li:hover { background: rgba(255,255,255,.03); }
.list .li .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; flex: none; font-size: 13px; }
.list .li .tt { font-weight: 600; font-size: 13px; }
.list .li .ds { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- Flugzeugfoto ---------- */
.acph { position: relative; border-radius: 10px; overflow: hidden; background: #0b1424; line-height: 0; }
.acph img { width: 100%; height: var(--ph, 120px); object-fit: cover; display: block; }
.acph::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
               background: linear-gradient(transparent, rgba(6,11,20,.72)); }
.acph figcaption { position: absolute; right: 6px; top: 5px; z-index: 2; font-size: 9.5px; line-height: 1.3;
                   color: rgba(255,255,255,.82); text-shadow: 0 1px 3px rgba(0,0,0,.95); max-width: 62%;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                   background: rgba(6,11,20,.4); padding: 2px 6px; border-radius: 5px; }
.acph figcaption a { color: inherit; }
.acph figcaption a:hover { color: #fff; text-decoration: underline; }
.acph .acph-lbl { position: absolute; left: 9px; bottom: 6px; z-index: 2; font-size: 12px; font-weight: 600;
                  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.95); display: flex; gap: 8px; align-items: baseline; }
.acph .acph-lbl b { font-size: 13px; }

/* ---------- Flugzeug-Silhouette ---------- */
.silo { width: 100%; height: auto; display: block; }
.silo .fus { fill: #e8eefb; } .silo .wing { fill: #c3d2ea; } .silo .eng { fill: #9fb2d0; }
.silo .tail-net { fill: #123a86; } .silo .tail-sun { fill: var(--sun); }
.silo .win { fill: rgba(20,35,60,.55); }

/* ---------- Diagramme ----------
 * Kategorienfarben gegen die dunkle Fläche #101c30 geprüft (Helligkeitsband,
 * Farbsättigung, Farbfehlsichtigkeit, Kontrast) — Reihenfolge nie ändern.
 */
:root { --c1: #3f82e0; --c2: #b78a10; --c3: #8b5cf6; --c4: #e0603f; --c5: #16a0b8;
        --seq1: #1b2740; --seq2: #3b3a24; --seq3: #6a5510; --seq4: #9c7511; --seq5: #cfa41d; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart .tk { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--ink); font-size: 11px; font-weight: 600; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .mk { stroke: var(--panel); stroke-width: 2; }
.chart .bar { rx: 4; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.ct { position: fixed; z-index: 70; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line-2);
      border-radius: 9px; padding: 8px 11px; font-size: 12px; box-shadow: 0 14px 34px -14px #000; opacity: 0; transition: opacity .1s; }
.ct.show { opacity: 1; }
.ct .t { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.ct .r { display: flex; align-items: center; gap: 7px; }
.ct .r b { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 14px; }
.hm { display: grid; grid-template-columns: 34px repeat(12, 1fr); gap: 2px; }
.hm .h { font-size: 9.5px; color: var(--muted); text-align: center; }
.hm .rh { font-size: 11px; color: var(--ink-2); display: grid; align-items: center; }
.hm .cell { height: 26px; border-radius: 4px; cursor: default; }

/* ---------- Dialog & Toast ---------- */
.modal { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--ink); padding: 0;
         width: min(680px, calc(100vw - 32px)); max-height: 86vh; box-shadow: 0 40px 100px -30px #000; }
.modal.wide { width: min(1040px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(3,7,14,.72); backdrop-filter: blur(2px); }
.modal .m-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal .m-head h2 { font-size: 15px; font-weight: 650; flex: 1; }
.modal .m-body { padding: 16px; overflow-y: auto; max-height: calc(86vh - 56px); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 90; background: var(--panel-2); border: 1px solid var(--line-2);
         border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow);
         opacity: 0; transform: translateY(10px); transition: .18s; max-width: 380px; font-size: 13px; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-left-color: var(--go); } .toast.err { border-left-color: var(--bad); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600;
               font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Mobile-App-Vorschau ---------- */
.phone { width: 300px; border-radius: 34px; border: 9px solid #05080f; background: var(--bg-2); overflow: hidden;
         box-shadow: 0 30px 70px -20px #000, 0 0 0 1px var(--line-2); }
.phone .notch { height: 24px; background: #05080f; border-radius: 0 0 14px 14px; width: 120px; margin: 0 auto; }
.phone .p-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; height: 560px; overflow-y: auto; }
.phone .p-nav { display: flex; justify-content: space-around; padding: 9px 0 4px; border-top: 1px solid var(--line); background: var(--panel); }
.phone .p-nav div { text-align: center; font-size: 9.5px; color: var(--muted); }
.phone .p-nav div.on { color: var(--accent); }

@media (max-width: 1180px) { .g-main, .g-side { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  nav.side { position: fixed; left: 0; top: 58px; bottom: 0; width: 240px; z-index: 50; transform: translateX(-102%);
             transition: transform .2s; height: auto; }
  nav.side.open { transform: none; box-shadow: 0 0 60px #000; }
  #burger { display: grid; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  main { padding: 14px 12px 50px; }
  .top .chip.hide-sm { display: none; }
  .top { gap: 8px; padding: 0 10px; }
  .brand .txt { display: none; }
  .top .chip { padding: 5px 9px; }
  .top .chip .s { display: none; }
  .avatar + div .v, .avatar + div .k { display: none; }
  .page-head h1 { font-size: 18px; }
  .leg { grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 14px 10px; }
  .leg .pt .t { font-size: 22px; }
  .fl-head .no { font-size: 18px; }
}
