/* ═══════════════════════════════════════════════════════════════════════════
   CS Aviation – Dashboard "HORIZONT"
   Gehört zu modul-wingman-dashboard.php. Benutzt ausschließlich die
   Deep-Sky-Tokens aus wingman-app.css — hier werden KEINE neuen Farben,
   Radien oder Schriften definiert.
   ═══════════════════════════════════════════════════════════════════════════ */

.wm-dash {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: var(--font-body);
    color: var(--navy);
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */

.wm-dash-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--r-badge);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
}
.wm-dash-badge--vfr  { background: #d6f0e2; color: #10653f; }
.wm-dash-badge--mvfr { background: #fbe6c2; color: #7d4a08; }
.wm-dash-badge--ifr  { background: #fae3de; color: #8d2b20; }

.wm-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: var(--r-btn);
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--w-trans), box-shadow var(--w-trans);
}
.wm-dash-btn--light { background: #fff; color: var(--navy); box-shadow: var(--w-shadow-sm); }
.wm-dash-btn--light:hover { transform: translateY(-1px); box-shadow: var(--w-shadow); }

/* ─── A · Hero ───────────────────────────────────────────────────────────── */

.wm-dash-hero {
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

/* Die Höhe ist FEST: das Himmels-SVG nutzt preserveAspectRatio="none" mit
   einer viewBox-Höhe von 330, und die Höhenskala wird in PHP in px auf
   dieselbe Achse gerechnet. Jede andere Höhe verschiebt die Wolken gegen
   ihre Beschriftung. */
.wm-dash-hero__sky { position: relative; height: 330px; }
.wm-dash-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.wm-dash-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(5,27,50,.88) 0%, rgba(5,27,50,.64) 34%,
        rgba(5,27,50,.14) 62%, rgba(5,27,50,0) 78%);
}

.wm-dash-hero__scale { position: absolute; top: 0; right: 20px; bottom: 0; width: 86px; }
/* Eigene Fläche statt bloßer Textfarbe: der Himmel reicht von hellem
   Tagesblau bis zu nächtlichem Navy — eine feste Schriftfarbe ist in einem
   der beiden Fälle immer unlesbar. */
.wm-dash-hero__scale span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.82);
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 600;
    color: #16344f;
}

/* Sonne bzw. Mond liegen bewusst außerhalb des Himmels-SVG: das wird mit
   preserveAspectRatio="none" gestreckt, ein Kreis darin wäre auf Telefonbreite
   eine hochkant stehende Ellipse. */
.wm-dash-hero__gestirn {
    position: absolute;
    top: 58px;
    right: 17%;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffe9ab;
    box-shadow: 0 0 0 28px rgba(255,233,171,.18);
}
.wm-dash-hero__gestirn.is-nacht {
    width: 52px;
    height: 52px;
    background: #e8eef6;
    opacity: .72;
    box-shadow: none;
}

.wm-dash-hero__layer {
    position: absolute;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.88);
    font-size: .64rem;
    font-weight: 700;
    color: #1a3c5a;
    white-space: nowrap;
}

.wm-dash-hero__text {
    position: absolute;
    left: 32px;
    top: 26px;
    right: 44%;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.wm-dash-hero__eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a8c8e8;
}
.wm-dash-hero__h {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}
.wm-dash-hero__sub {
    margin: 0;
    max-width: 24rem;
    font-size: .88rem;
    line-height: 1.45;
    color: #cfe2f6;
}
.wm-dash-hero__sub strong { color: #fff; font-weight: 700; }

.wm-dash-hero__facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 2px 0 0; }
.wm-dash-hero__facts dt {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #a8c8e8;
}
.wm-dash-hero__facts dd {
    margin: 2px 0 0;
    font-family: var(--font-mono);
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.wm-dash-hero__cta { margin: 4px 0 0; }

/* ─── A2 · Band "Bahn & Wind" ────────────────────────────────────────────── */

.wm-dash-rwybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding: 16px 26px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
}

.wm-dash-rwy { flex: none; width: 120px; height: 104px; }
.wm-dash-rwy__n      { font-family: var(--font-body); font-size: 9px; font-weight: 800; fill: #7fa8cd; }
.wm-dash-rwy__ntick  { stroke: #7fa8cd; stroke-width: 1.2; }
.wm-dash-rwy__strip  { fill: #dbe7f2; }
.wm-dash-rwy__center { stroke: #8aa3bb; stroke-width: 1.2; stroke-dasharray: 6 5; }
.wm-dash-rwy__lbl    { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; fill: var(--navy); }
/* Der Pfeil wird nach der Bahn gezeichnet und liegt in einer dunklen Fassung —
   sonst verschwindet das Amber auf dem hellen Bahnstreifen, sobald der Wind
   längs zur Bahn steht. */
.wm-dash-rwy__wind,
.wm-dash-rwy__fassung { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wm-dash-rwy__wind        { stroke: #f2a93b; stroke-width: 2.6; }
.wm-dash-rwy__fassung { stroke: #0b2742; stroke-width: 6; opacity: .85; }
.wm-dash-rwy__fan         { fill: #f2a93b; opacity: .18; }
.wm-dash-rwy__var    { font-family: var(--font-body); font-size: 8.5px; font-weight: 700; fill: #7fa8cd; }

.wm-dash-rwybar__main { flex: 1 1 200px; min-width: 0; }
.wm-dash-rwybar__kicker {
    margin: 0;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #a8c8e8;
}
.wm-dash-rwybar__bahn {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.wm-dash-rwybar__wind {
    margin: 4px 0 0;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: #bcd7ee;
    font-variant-numeric: tabular-nums;
}
.wm-dash-rwybar__src { margin: 3px 0 0; font-size: .68rem; color: #8bb0d4; }

.wm-dash-rwybar__komp { flex: 1 1 300px; min-width: 0; display: flex; gap: 14px; }
.wm-dash-komp {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 14px;
    border-radius: var(--r-control);
    background: rgba(255,255,255,.07);
}
.wm-dash-komp__lbl {
    display: block;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #a8c8e8;
}
.wm-dash-komp__val {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.wm-dash-komp__note { display: block; margin-top: 2px; font-size: .68rem; color: #a8c8e8; }

/* ─── Karten ───────────────────────────────────────────────────────────────
   Dunkles Glas wie das Band "Bahn & Wind" im Hero. Zuvor trugen die Kästen
   eine kräftig blaue Kopfleiste über hellem Grund — das las sich wie eine
   klassische Unterseite, die unter das Dashboard geklebt wurde. Jetzt
   sprechen Hero und Kästen dieselbe Sprache.
   ───────────────────────────────────────────────────────────────────────── */

.wm-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.wm-dash-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(12, 37, 65, .78);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 55px -34px rgba(2, 12, 28, .9),
                inset 0 1px 0 rgba(255, 255, 255, .07);
    color: #eaf2fb;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .wm-dash-card { background: #0d2744; }
}

/* Kopf ohne Farbbalken: eine Akzentmarke, die Überschrift, darunter eine
   Haarlinie. Der Balken machte aus jedem Kasten eine eigene kleine Seite. */
/* Raster statt Flexbox: h3 und p sind Geschwister im Markup und standen
   nebeneinander, sobald sie als Flex-Kinder liefen. Die Akzentmarke bekommt
   die erste Spalte über beide Zeilen, der Zähler rechts seinen Platz über
   padding-right — sonst läuft die Unterzeile darunter. */
.wm-dash-card__head {
    position: relative;
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
    padding: 16px 56px 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.wm-dash-card__head::before {
    content: "";
    grid-row: 1 / span 2;
    align-self: stretch;
    border-radius: 2px;
    background: linear-gradient(180deg, #4b9be0, #1f6cb2);
}
.wm-dash-card__head h3 { grid-column: 2; }
.wm-dash-card__head p  { grid-column: 2; }
.wm-dash-card__head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #ffffff;
}
.wm-dash-card__head p {
    margin: 3px 0 0;
    font-size: .74rem;
    font-weight: 400;
    color: #8fb3d6;
}

.wm-dash-count {
    position: absolute;
    top: 15px;
    right: 18px;
    min-width: 24px;
    padding: 3px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 700;
    color: #cfe3f7;
    text-align: center;
}

.wm-dash-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 18px;
}
.wm-dash-card__body--liste { gap: 9px; }

.wm-dash-leer { margin: 0; font-size: .82rem; color: #8fb3d6; }

/* Die Kästen tragen keine eigene Fläche mehr — Teilflächen darin schon. */
.wm-dash-kachel {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--r-control);
    background: rgba(255, 255, 255, .05);
}

/* ─── B · Flotte ─────────────────────────────────────────────────────────── */

.wm-dash-ac {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 3px solid #4b9be0;
    border-radius: var(--r-control);
    background: rgba(255, 255, 255, .05);
}
.wm-dash-ac--knapp    { border-left-color: var(--accent-amber); }
.wm-dash-ac--kritisch { border-left-color: #e8614f; }

.wm-dash-ac__kopf { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.wm-dash-ac__reg {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #ffffff;
}
.wm-dash-ac__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .72rem;
    color: #8fb3d6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wm-dash-ac__status {
    flex: none;
    padding: 3px 8px;
    border-radius: var(--r-badge);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wm-dash-ac__status--ok       { background: rgba(79, 191, 139, .18); color: #7fdbb0; }
.wm-dash-ac__status--knapp    { background: rgba(245, 158, 11, .18); color: #f2c76b; }
.wm-dash-ac__status--kritisch { background: rgba(232, 97, 79, .20);  color: #ffa897; }

.wm-dash-ac__bar { display: flex; align-items: center; gap: 10px; }
.wm-dash-ac__track {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}
.wm-dash-ac__fill { display: block; height: 100%; border-radius: 99px; background: #4fbf8b; }
.wm-dash-ac--knapp    .wm-dash-ac__fill { background: var(--accent-amber); }
.wm-dash-ac--kritisch .wm-dash-ac__fill { background: #e8614f; }
.wm-dash-ac__rest {
    flex: none;
    font-family: var(--font-mono);
    font-size: .82rem;
    font-weight: 600;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.wm-dash-ac__barlbl {
    margin: -5px 0 0;
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7fa3c7;
}

.wm-dash-ac__werte {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 2px 0 0;
}
.wm-dash-ac__werte dt {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #7fa3c7;
}
.wm-dash-ac__werte dd {
    margin: 1px 0 0;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    color: #e4eefb;
    font-variant-numeric: tabular-nums;
}
.wm-dash-ac__werte dd.is-warn { color: #ffa897; }
.wm-dash-ac__werte dd em {
    display: block;
    font-family: var(--font-body);
    font-size: .64rem;
    font-weight: 500;
    font-style: normal;
    color: #7fa3c7;
}
.wm-dash-ac__werte dd.is-warn em { color: #ffa897; }

.wm-dash-ac__mgl {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-btn);
    background: transparent;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    color: #cfe3f7;
    cursor: pointer;
    transition: border-color var(--w-trans), color var(--w-trans);
}
.wm-dash-ac__mgl:hover { border-color: #4b9be0; color: #ffffff; }
.wm-dash-ac__mgl.is-offen    { border-color: rgba(245, 158, 11, .5); color: #f2c76b; }
.wm-dash-ac__mgl.is-kritisch { border-color: rgba(232, 97, 79, .55); color: #ffa897; }

/* ─── C · Hinweise ───────────────────────────────────────────────────────── */
/* Der Kasten zeigt nur Überschriften — Betriebshinweise sind oft mehrere
   Absätze lang und sprengten sonst die Höhe der Nachbarkarten. */

.wm-dash-hinweis {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    padding: 11px 13px;
    border: 1px solid rgba(245, 158, 11, .26);
    border-radius: var(--r-control);
    background: rgba(245, 158, 11, .09);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--w-trans), transform var(--w-trans);
}
.wm-dash-hinweis:hover { border-color: #f2c76b; transform: translateX(2px); }
.wm-dash-hinweis:focus-visible { outline: 2px solid #4b9be0; outline-offset: 2px; }

.wm-dash-hinweis__punkt {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-amber);
}
.wm-dash-hinweis__kopf { flex: 1 1 auto; min-width: 0; }
.wm-dash-hinweis__titel {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}
.wm-dash-hinweis__meta {
    display: block;
    margin-top: 2px;
    font-size: .68rem;
    font-weight: 600;
    color: #d8b776;
}
.wm-dash-hinweis__pfeil { flex: none; width: 15px; height: 15px; color: #c9a259; }
.wm-dash-hinweis__volltext[hidden] { display: none; }

/* Volltext im Pop-up — das steht auf hellem Grund. */
.wm-dash-hinweis__popuptext { font-size: .92rem; line-height: 1.6; color: var(--navy); }

/* ─── D · Gültigkeiten + Kennzahlen ──────────────────────────────────────── */

.wm-dash-gv { display: flex; flex-direction: column; gap: 6px; }
.wm-dash-gv__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wm-dash-gv__lbl { font-size: .84rem; font-weight: 700; color: #ffffff; }
.wm-dash-gv__bis {
    font-family: var(--font-mono);
    font-size: .74rem;
    color: #9fc3e6;
    font-variant-numeric: tabular-nums;
}
.wm-dash-gv__track {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}
.wm-dash-gv__fill { display: block; height: 100%; border-radius: 99px; background: #4fbf8b; }
.wm-dash-gv--knapp      .wm-dash-gv__fill { background: var(--accent-amber); }
.wm-dash-gv--knapp      .wm-dash-gv__bis  { color: #f2c76b; }
.wm-dash-gv--abgelaufen .wm-dash-gv__fill,
.wm-dash-gv--fehlt      .wm-dash-gv__fill,
.wm-dash-gv--ohne_datum .wm-dash-gv__fill { background: #e8614f; }
.wm-dash-gv--abgelaufen .wm-dash-gv__bis,
.wm-dash-gv--fehlt      .wm-dash-gv__bis,
.wm-dash-gv--ohne_datum .wm-dash-gv__bis  { color: #ffa897; }
.wm-dash-gv__note { margin: 1px 0 0; font-size: .7rem; font-weight: 600; color: #f2c76b; }
.wm-dash-gv--abgelaufen .wm-dash-gv__note,
.wm-dash-gv--fehlt      .wm-dash-gv__note,
.wm-dash-gv--ohne_datum .wm-dash-gv__note { color: #ffa897; }

.wm-dash-kz {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.wm-dash-kz__haupt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wm-dash-kz__haupt span { font-size: .78rem; color: #9fc3e6; }
.wm-dash-kz__haupt strong {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.wm-dash-kz__paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wm-dash-kz__box {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--r-control);
    background: rgba(255, 255, 255, .05);
}
.wm-dash-kz__box span {
    display: block;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7fa3c7;
}
.wm-dash-kz__box strong {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.wm-dash-kz__box em {
    display: block;
    margin-top: 1px;
    font-size: .64rem;
    font-weight: 700;
    font-style: normal;
    color: #7fdbb0;
}
.wm-dash-kz__box.is-warn em { color: #f2c76b; }

/* ─── E · Ausblick ───────────────────────────────────────────────────────── */

.wm-dash-week { display: flex; gap: 8px; align-items: flex-start; }

/* Der Abstandshalter trägt EXAKT die Höhe des Spaltenkopfs:
   Kopf 20 + 8 + Himmel 86 + 8 + Metazeile 26 + 8 = 156 px. Ändert sich eine
   der Höhen oben, muss diese Summe mit. */
.wm-dash-week__axis {
    flex: none;
    width: 34px;
    display: flex;
    flex-direction: column;
}
.wm-dash-week__spacer { flex: none; height: 156px; }
.wm-dash-week__hours  { position: relative; height: 200px; }
.wm-dash-week__hours span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: .62rem;
    color: #7fa3c7;
}

.wm-dash-tag { flex: 1 1 0; min-width: 0; }
.wm-dash-tag__kopf {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    margin: 0 0 8px;
    font-size: .76rem;
}
.wm-dash-tag__kopf strong { font-weight: 800; color: #ffffff; }
.wm-dash-tag__kopf span   { font-weight: 600; color: #7fa3c7; }
.wm-dash-tag__kopf em {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(75, 155, 224, .22);
    font-size: .58rem;
    font-style: normal;
    font-weight: 800;
    color: #a8d2f5;
}

.wm-dash-tag__sky { display: block; width: 100%; height: 86px; border-radius: 14px; }
.wm-dash-tag.is-heute .wm-dash-tag__sky { outline: 2px solid #4b9be0; outline-offset: -2px; }

.wm-dash-tag__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    height: 26px;
    margin: 8px 0;
}
.wm-dash-tag__temp { font-size: .78rem; font-weight: 700; color: #ffffff; }
.wm-dash-tag__temp i { font-size: .66rem; font-weight: 500; font-style: normal; color: #7fa3c7; }

/* Die Tagesachse ist 200 px hoch; PHP rechnet Uhrzeiten mit genau dieser
   Skala in px um (wingman_dash_zeit_y). */
.wm-dash-rail {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: repeating-linear-gradient(to bottom,
        rgba(255, 255, 255, .05) 0 32.3px, rgba(255, 255, 255, .11) 32.3px 33.3px);
}
.wm-dash-rail__night {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
        rgba(0, 0, 0, .26) 0 5px, rgba(0, 0, 0, .12) 5px 10px);
}
.wm-dash-rail__ss { position: absolute; left: 0; right: 0; height: 2px; background: #f2a93b; }

/* left/width setzt PHP je Fenster: überschneidende Lehrerzeiten bekommen
   eigene Spalten, sonst läge nur das zuletzt gezeichnete sichtbar obenauf. */
.wm-dash-slot {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid transparent;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border-radius: 8px;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.wm-dash-slot i { font-style: normal; font-weight: 500; opacity: .85; }
.wm-dash-slot--c0 { background: #2f83c8; }
.wm-dash-slot--c1 { background: #7d61c9; }
.wm-dash-slot--c2 { background: #1b9173; }
.wm-dash-slot--c3 { background: #c2702c; }
.wm-dash-slot--c4 { background: #3284a6; }

.wm-dash-tag__fuss { height: 20px; margin: 8px 0 0; font-size: .68rem; font-weight: 700; color: #9fc3e6; }

.wm-dash-week__fuss {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .76rem;
    color: #9fc3e6;
}
.wm-dash-week__fuss strong { color: #f2c76b; }
.wm-dash-week__fuss a { margin-left: 8px; font-weight: 700; color: #8ecbff; }
.wm-dash-week__fuss a:hover { color: #c2e4ff; }

/* ─── Schmale Ansichten ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .wm-dash-grid { grid-template-columns: 1fr; }
    .wm-dash-hero__text { right: 32px; }
    .wm-dash-hero__scale, .wm-dash-hero__layer { display: none; }
    .wm-dash-hero__scrim {
        background: linear-gradient(180deg, rgba(5,27,50,.86) 0%, rgba(5,27,50,.5) 70%, rgba(5,27,50,.2) 100%);
    }

}

@media (max-width: 640px) {
    .wm-dash-hero__text { left: 20px; right: 20px; top: 20px; gap: 9px; }
    .wm-dash-hero__facts { gap: 16px; }
    .wm-dash-rwybar { padding: 14px 18px; gap: 16px; }
    .wm-dash-rwybar__komp { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .wm-dash-rwy { display: none; }
    .wm-dash-hero__facts dd { font-size: .86rem; }
    .wm-dash-card__body { padding: 15px 16px; }
}

/* ─── Hinweis-Quittierung ────────────────────────────────────────────────── */

/* Quittierte Hinweise verschwinden NICHT — ein Betriebshinweis gilt weiter,
   auch wenn man ihn gelesen hat. Er tritt nur zurück. */
.wm-dash-hinweis.is-quittiert {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
}
.wm-dash-hinweis.is-quittiert .wm-dash-hinweis__titel { color: #c3d8ee; font-weight: 600; }
.wm-dash-hinweis.is-quittiert .wm-dash-hinweis__meta  { color: #7fa3c7; }
.wm-dash-hinweis.is-quittiert .wm-dash-hinweis__pfeil { color: #5d82a8; }
.wm-dash-hinweis.is-quittiert .wm-dash-hinweis__punkt { background: #4fbf8b; }

.wm-dash-hinweis__ok {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--success);
}

.wm-dash-btn--dunkel {
    align-self: flex-start;
    background: var(--navy);
    color: #fff;
}
.wm-dash-btn--dunkel:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--w-shadow); }
.wm-dash-btn--dunkel:disabled { opacity: .55; cursor: default; }

/* ─── Pop-ups ────────────────────────────────────────────────────────────── */
/* "overlay" im Klassennamen ist PFLICHT: wingman-page-template.php blendet
   alle direkten body-Kinder aus, die nicht einer Whitelist entsprechen. Die
   Whitelist setzt zudem position:fixed und z-index:100000 per !important. */

.wm-dash-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6,22,42,.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    overflow-y: auto;
}

.wm-dash-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    border-radius: var(--r-card);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(4,20,45,.45);
}

.wm-dash-modal__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--dsky-header);
    color: #fff;
}
.wm-dash-modal__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.wm-dash-modal__sub { margin: 3px 0 0; font-size: .78rem; color: rgba(255,255,255,.62); }
.wm-dash-modal__close {
    margin-left: auto;
    flex: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--r-btn);
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.wm-dash-modal__close:hover { background: rgba(255,255,255,.26); }

.wm-dash-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── Inhalt: Schnellbriefing ────────────────────────────────────────────── */

.wm-dash-briefing[hidden] { display: none; }
.wm-dash-briefing { display: flex; flex-direction: column; gap: 18px; }

.wm-dash-brief h4 {
    margin: 0 0 8px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-40);
}
.wm-dash-brief__klar { margin: 0 0 9px; font-size: .88rem; line-height: 1.5; color: var(--navy); }
.wm-dash-brief__roh {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--r-control);
    background: #f4f8fc;
    font-family: var(--font-mono);
    font-size: .72rem;
    line-height: 1.65;
    color: #2d4f70;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}
.wm-dash-brief__stand { margin: 8px 0 0; font-size: .68rem; color: var(--ink-40); }

.wm-dash-brief__aktion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--edge);
}
.wm-dash-brief__hinweis { font-size: .72rem; color: var(--ink-40); }

/* Kopf und Fuß erscheinen NUR auf Papier: am Bildschirm stehen Platz und
   Zeitpunkt im Kopf des Pop-ups, auf dem Ausdruck gäbe es sie sonst nicht. */
.wm-dash-brief__druckkopf,
.wm-dash-brief__druckfuss { display: none; }

.wm-dash-notam { margin-bottom: 12px; }
.wm-dash-notam__kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 6px; }
.wm-dash-notam__id {
    font-family: var(--font-mono);
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}
.wm-dash-notam__zeit { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-40); }
.wm-dash-notam__thema { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--navy); }

/* ─── Inhalt: Mängelbuch ─────────────────────────────────────────────────── */

.wm-dash-mangel {
    padding: 14px 16px;
    border: 1px solid var(--edge);
    border-radius: var(--r-control);
    background: #fff;
}
.wm-dash-mangel--kritisch { border-color: #eec6bf; background: #fdf7f5; }
.wm-dash-mangel--hoch     { border-color: #ead7b4; background: #fdfaf3; }
.wm-dash-mangel--behoben  { opacity: .68; }

.wm-dash-mangel__kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 7px; }
.wm-dash-mangel__prio {
    padding: 3px 8px;
    border-radius: var(--r-badge);
    background: rgba(15,37,68,.08);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-60);
}
.wm-dash-mangel--kritisch .wm-dash-mangel__prio { background: #fae3de; color: #8d2b20; }
.wm-dash-mangel--hoch     .wm-dash-mangel__prio { background: #fbe6c2; color: #7d4a08; }
.wm-dash-mangel--behoben  .wm-dash-mangel__prio { background: #d6f0e2; color: #10653f; }

.wm-dash-mangel__meta  { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-40); }
.wm-dash-mangel__titel { margin: 0; font-size: .88rem; font-weight: 700; line-height: 1.4; color: var(--navy); }
.wm-dash-mangel__txt   { margin: 5px 0 0; font-size: .8rem; line-height: 1.5; color: var(--ink-60); }

@media (max-width: 640px) {
    .wm-dash-overlay { padding: 0; }
    .wm-dash-modal   { width: 100%; max-height: 100vh; border-radius: 0; }
}

/* Sieben Spalten mit Zeitachse brauchen Platz. Schon ab etwa 1100 px laufen
   Kopf- und Metazeile in die Nachbarspalte — ab hier wird die Woche waagerecht
   scrollbar statt gequetscht. Der Bruch liegt bewusst höher als der der
   Kartenspalten (900 px). */
@media (max-width: 1100px) {
    .wm-dash-week { overflow-x: auto; padding-bottom: 6px; }
    .wm-dash-tag  { flex: 0 0 124px; }
}

@media (max-width: 640px) {
    .wm-dash-hero__gestirn {
        top: 40px;
        width: 52px;
        height: 52px;
        box-shadow: 0 0 0 18px rgba(255,233,171,.18);
    }
}

.wm-dash-hinweis__fehler {
    margin: 7px 0 0;
    font-size: .72rem;
    font-weight: 700;
    color: var(--w-red);
}

/* Hamburger Silhouette unten rechts im Himmelskasten. Eigenes SVG mit eigener
   viewBox — im gestreckten Himmels-SVG wäre sie auf Telefonbreite
   zusammengequetscht. 12 px vom unteren Rand: dort liegt in der Höhenskala
   GND (y 318 von 330). */
.wm-dash-hero__skyline {
    position: absolute;
    /* Endet vor der Höhenskala: die GND-Marke sitzt auf derselben Linie wie
       die Dächer und läge sonst mitten in der Stadt. */
    right: 88px;
    /* Sitzt auf der Unterkante des Himmelskastens. Vorher stand sie auf der
       GND-Linie der Höhenskala, 12 px darüber — und schwebte sichtbar. */
    bottom: 0;
    width: min(40%, 430px);
    height: 62px;
    display: block;
    pointer-events: none;
}

@media (max-width: 900px) {
    /* Hier ist die Höhenskala ausgeblendet, die Silhouette darf bis an den
       Rand. Sie tritt dafür zurück — der Hero trägt auf schmalen Geräten
       schon Überschrift und Faktenzeile. */
    .wm-dash-hero__skyline { right: 14px; width: 56%; height: 46px; opacity: .72; }
}

/* ─── Druck: nur das Schnellbriefing ──────────────────────────────────────
   Der Knopf „Als PDF speichern" setzt die Klasse am <html> und ruft den
   Druckdialog. Bewusst der Weg über den Browser statt über eine eigene
   PDF-Erzeugung: „Als PDF sichern" ist dort überall eingebaut, der Text
   bleibt durchsuchbar, und das Briefing-Layout wird nur an einer Stelle
   gepflegt. */

@media print {
    html.wm-dash-drucken,
    html.wm-dash-drucken body {
        background: #fff !important;
        overflow: visible !important;
        height: auto !important;
    }
    /* Alles außer dem Pop-up verschwindet — die SPA-Hülle gehört nicht aufs
       Papier. Das Overlay hängt als direktes Kind am body. */
    html.wm-dash-drucken body > *:not(.wm-dash-overlay) { display: none !important; }

    html.wm-dash-drucken .wm-dash-overlay {
        position: static !important;
        display: block !important;
        padding: 0 !important;
        background: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow: visible !important;
    }
    html.wm-dash-drucken .wm-dash-modal {
        width: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    /* Kopfleiste des Pop-ups, Schließen-Knopf und der PDF-Knopf selbst
       gehören nicht in den Ausdruck. */
    html.wm-dash-drucken .wm-dash-modal__head,
    html.wm-dash-drucken .wm-dash-brief__aktion { display: none !important; }

    html.wm-dash-drucken .wm-dash-modal__body {
        overflow: visible !important;
        padding: 0 !important;
        gap: 14px !important;
    }

    html.wm-dash-drucken .wm-dash-brief__druckkopf {
        display: block !important;
        margin-bottom: 4px;
        padding-bottom: 10px;
        border-bottom: 2px solid #0f2544;
    }
    html.wm-dash-drucken .wm-dash-brief__druckkopf strong {
        display: block;
        font-size: 15pt;
        font-weight: 800;
        color: #0f2544;
    }
    html.wm-dash-drucken .wm-dash-brief__druckkopf span {
        display: block;
        margin-top: 3px;
        font-size: 9pt;
        color: #3c536f;
    }
    html.wm-dash-drucken .wm-dash-brief__druckfuss {
        display: block !important;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid #c9d6e2;
        font-size: 8pt;
        color: #3c536f;
    }

    /* Ein Briefing, bei dem ein NOTAM über den Seitenumbruch zerfällt, ist
       im Zweifel das NOTAM, das man überliest. */
    html.wm-dash-drucken .wm-dash-brief,
    html.wm-dash-drucken .wm-dash-notam { break-inside: avoid; page-break-inside: avoid; }

    html.wm-dash-drucken .wm-dash-brief h4 { font-size: 8.5pt; color: #3c536f; }
    html.wm-dash-drucken .wm-dash-brief__klar { font-size: 10pt; color: #000; }
    html.wm-dash-drucken .wm-dash-brief__roh {
        background: #f2f5f8 !important;
        border: 1px solid #d7e0e9;
        font-size: 8.5pt;
        color: #000;
    }

    @page { margin: 16mm; }
}
