/* ═══════════════════════════════════════════════════════════════════════════
   Wingman Reservierungskalender · Wochenansicht
   Vorlage: hangar_final_draft.html (Master, 1:1 nachgebaut)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Navy / Slate */
    --navy-900:#0A1428;  --navy-800:#0F1B33;  --navy-700:#152543;  --navy-600:#1E3258;
    --slate-25:#FAFCFE;  --slate-50:#F4F8FC;  --slate-100:#EDF2F8;  --slate-150:#E0E8F1;
    --slate-200:#D5DEEA;  --slate-400:#94A3B8;  --slate-500:#64748B;
    --slate-600:#475569;  --slate-700:#334155;

    /* Akzente */
    --blue-500:#3DA5FF;  --blue-600:#1E7BD0;
    --teal-500:#14B8A6;  --teal-600:#0D9488;
    --green:#16A34A;    --red:#DC2626;
    --amber:#D97706;
    --brand-red:#C8234A;

    /* Aircraft-Default-Tokens (zyklisch je Reg) */
    --ac-1:#E5563E;  --ac-1-tint:#FFF1ED;
    --ac-2:#1E7BD0;  --ac-2-tint:#E8F2FB;
    --ac-3:#7C3AED;  --ac-3-tint:#F1EBFC;
    --ac-4:#CA8A04;  --ac-4-tint:#FBF4DD;

    /* Lehrer-Default-Tokens */
    --instr-1:#0F766E;  --instr-1-tint:#E0F4F1;
    --instr-2:#1D4ED8;  --instr-2-tint:#E4ECFB;
    --instr-3:#9333EA;  --instr-3-tint:#F2E8FB;

    --shadow-strip:0 1px 2px rgba(15,27,51,0.04), 0 4px 10px rgba(15,27,51,0.04);
    --shadow-strip-hover:0 12px 32px rgba(15,27,51,0.10), 0 4px 12px rgba(15,27,51,0.06);
    --shadow-pop:0 24px 48px rgba(15,27,51,0.16), 0 6px 14px rgba(15,27,51,0.08);

    /* Kalender-Geometrie */
    --hour-h: 54px;
    --total-h: 864px;   /* 16 sichtbare Stunden × 54 px */

    /* Legacy-Aliase (Modal-Form, Meldungen) — Deep Sky: Glasflächen, blaue Akzente */
    --res-blue:        #1f6cb2;
    --res-blue-mid:    #175a97;
    --res-blue-light:  rgba(31,108,178,.12);
    --res-red:         #C8234A;
    --res-red-light:   rgba(200, 35, 74, 0.10);
    --res-card:        rgba(255,255,255,.88);
    --res-border:      rgba(255,255,255,.72);
    --res-surface:     rgba(255,255,255,.60);
    --res-text:        #0f2544;
    --res-text-dim:    #3c536f;
    --res-text-muted:  #66809c;
    --res-green:       #1f9d6b;
    --res-green-light: rgba(31, 157, 107, 0.12);
    --res-radius:      16px;
    --res-font:        'Inter', 'Segoe UI', Tahoma, Helvetica, Arial, sans-serif;
    --res-font-mono:   'JetBrains Mono', ui-monospace, 'Menlo', 'Consolas', monospace;
    --res-shadow:      0 24px 60px -36px rgba(4, 20, 45, 0.6);
    --res-transition:  0.18s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

#res-root {
    font-family: var(--res-font);
    color: var(--navy);
    background: transparent;
    margin: 0 auto;
    max-width: 1640px;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
}

/* ═══ SECTION-BAR (Navy mit blauer Akzentlinie LINKS) ═════════════════════ */

.res-section-bar {
    background: var(--dsky-header);
    color: #fff;
    border-radius: 14px 14px 0 0;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--edge);
    border-bottom: none;
    position: relative;
}
.res-section-bar::before {
    content: '';
    position: absolute;
    left: 0; top: 18px; bottom: 18px;
    width: 3px;
    background: var(--blue-bright);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px rgba(75, 155, 224, 0.5);
}
.res-section-bar__title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 14px;
    flex: 1;
    min-width: 0;
}
.res-section-bar__ic {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(61, 165, 255, 0.15);
    border: 1px solid rgba(61, 165, 255, 0.3);
    display: grid;
    place-items: center;
    color: var(--blue-bright);
    flex-shrink: 0;
}
.res-section-bar h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fff;
    line-height: 1.25;
}
.res-section-bar p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #9DB1CC;
    line-height: 1.3;
}
.res-section-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.res-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 14px;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.18s;
    line-height: 1.2;
}
.res-btn:hover { background: rgba(255, 255, 255, 0.08); }
.res-btn--primary {
    background: var(--dsky-accent);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 10px 20px -10px rgba(23, 90, 151, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.res-btn--primary:hover {
    background: linear-gradient(150deg, #3a8fd0, #1f6cb2);
}
.res-toggle-vfg-btn[aria-pressed="false"] {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    opacity: 0.65;
}

/* ═══ STAGE (warmes Off-White-Verlauf) ═══════════════════════════════════ */

.res-stage {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--edge);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 24px 26px 28px;
    position: relative;
    /* WICHTIG: overflow-x:auto statt hidden, damit das Wochengrid auf
       schmalen Viewports horizontal scrollen kann (Mobile-Bug). */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* ═══ TOOLBAR (links Navigation, rechts Filter-Chips) ═══════════════════ */

.res-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.res-toolbar__left,
.res-toolbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-nav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--edge);
    background: var(--glass-strong);
    color: var(--navy);
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-strip);
    transition: background 0.18s, transform 0.18s;
}
.res-nav-btn:hover { background: #fff; transform: translateY(-1px); }

.res-week-pill {
    background: var(--glass-strong);
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--res-font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--edge);
    box-shadow: var(--shadow-strip);
}
.res-week-pill__kw {
    background: var(--blue-deep);
    color: #fff;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.res-btn-light {
    background: var(--glass-strong);
    color: var(--navy);
    border: 1px solid var(--edge);
    padding: 8px 14px;
    border-radius: 999px;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    box-shadow: var(--shadow-strip);
    transition: background 0.18s, transform 0.18s;
}
.res-btn-light:hover { background: #fff; transform: translateY(-1px); }

/* Filter-Chips */
.res-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    color: var(--ink-40);
    cursor: pointer;
    transition: all 0.15s;
}
.res-filter-chip__sw {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ac-color, var(--slate-400));
}
.res-filter-chip[aria-pressed="true"] {
    background: var(--glass-strong);
    color: var(--navy);
    border-color: var(--edge);
    box-shadow: var(--shadow-strip);
}
.res-filter-chip:hover { color: var(--navy); }

/* Reststunden bis zur nächsten Wartung — klein hinter der Registrierung */
.res-filter-chip__rest {
    font-family: var(--res-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--ink-40);
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(15, 37, 68, 0.06);
    line-height: 1.4;
    white-space: nowrap;
}
.res-filter-chip__rest--warn   { background: #FBF4DD; color: #B45309; }
.res-filter-chip__rest--danger { background: #FCE7E7; color: #DC2626; }

/* ═══ GRID (CSS Grid mit 60px Time-Rail + 7 Tagesspalten) ════════════════ */

.res-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(0, 1fr));
    gap: 0;
    position: relative;
    background: var(--glass-strong);
    border: 1px solid var(--edge);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    min-width: 920px;
}

/* ─── Wochenwechsel-Übergang: Blätter-/Wischeffekt ────────────────────────
   Alte Woche gleitet raus (Ghost-Klon), neue gleitet gegenläufig rein.
   WICHTIG: animiert werden nur die KINDER von Grid/Liste — .res-grid clippt
   selbst (overflow:hidden) und der Ghost-Container ebenso; so entsteht in
   .res-stage (overflow-x:auto) nie ein aufblitzender Scrollbalken, der
   frühere scale(0.97)-Workaround entfällt. */
@keyframes res-week-in-next {
    from { opacity: 0; transform: translateX(46px); }
    to   { opacity: 1; transform: none; }
}
@keyframes res-week-in-prev {
    from { opacity: 0; transform: translateX(-46px); }
    to   { opacity: 1; transform: none; }
}
@keyframes res-week-out-next {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(-46px); }
}
@keyframes res-week-out-prev {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(46px); }
}
@keyframes res-week-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.res-week-swipe--next > * {
    animation: res-week-in-next 0.34s cubic-bezier(.22, .61, .36, 1) both;
}
.res-week-swipe--prev > * {
    animation: res-week-in-prev 0.34s cubic-bezier(.22, .61, .36, 1) both;
}

/* Ghost: absolut positionierter Schnappschuss der alten Woche. Der Container
   steht still und clippt seinen animierten Inhalt (auch die Raus-Bewegung
   nach rechts erzeugt so keinen Stage-Overflow). */
.res-week-ghost {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    border-radius: var(--r-card);
}
.res-week-ghost > * { width: 100%; }
.res-week-ghost--next > * > * {
    animation: res-week-out-next 0.34s cubic-bezier(.22, .61, .36, 1) both;
}
.res-week-ghost--prev > * > * {
    animation: res-week-out-prev 0.34s cubic-bezier(.22, .61, .36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .res-week-swipe--next > *,
    .res-week-swipe--prev > * { animation: res-week-fade 0.2s ease both; }
    .res-week-ghost { display: none; }
}

/* Spalten-Header */
.res-col-head {
    padding: 14px 8px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(15, 37, 68, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    position: relative;
    background: var(--glass-strong);
}
.res-col-head--spacer { border-bottom: 1px solid rgba(15, 37, 68, 0.08); }
.res-col-head__dn {
    font-family: var(--res-font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ink-40);
    font-weight: 500;
}
.res-col-head__dd {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1;
    margin-top: 4px;
}
.res-col-head--today {
    background: linear-gradient(180deg, rgba(75, 155, 224, 0.14), var(--glass-strong));
}
.res-col-head--today .res-col-head__dd { color: var(--blue-deep); }
.res-col-head__badge {
    display: inline-block;
    font-family: var(--res-font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: #fff;
    background: var(--blue-deep);
    padding: 2px 7px;
    border-radius: 999px;
    margin-top: 5px;
    font-weight: 600;
}
.res-col-head__util {
    font-family: var(--res-font-mono);
    font-size: 9.5px;
    color: var(--ink-40);
    letter-spacing: 0.10em;
    margin-top: 6px;
}
.res-col-head__util-bar {
    height: 3px;
    background: var(--slate-100);
    border-radius: 999px;
    width: 60%;
    margin-top: 5px;
    overflow: hidden;
}
.res-col-head__util-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
    border-radius: 999px;
}
.res-col-head--empty .res-col-head__util-bar > span { background: var(--slate-200); }

/* Lehrer-Pills im Day-Header */
.res-instr-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    margin-top: 6px;
}
.res-instr-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--res-font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--edge);
    color: var(--ink-60);
    box-shadow: 0 1px 2px rgba(15, 27, 51, 0.03);
    white-space: nowrap;
}
.res-instr-pill__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--instr-color, var(--instr-1));
}

/* Time-Tape */
.res-time-tape {
    position: relative;
    height: var(--total-h);
    background: var(--glass-strong);
}
.res-time-tape__h {
    position: absolute;
    left: 0; right: 10px;
    text-align: right;
    font-family: var(--res-font-mono);
    font-size: 10.5px;
    color: var(--ink-40);
    letter-spacing: 0.04em;
    transform: translateY(-7px);
    pointer-events: none;
}
.res-time-tape__h--major {
    color: var(--ink-60);
    font-weight: 500;
}

/* Day-Column */
.res-day-col {
    position: relative;
    height: var(--total-h);
    background: var(--glass-strong);
    overflow: hidden;
    border-left: 1px solid rgba(15, 37, 68, 0.08);
    /* Freie Fläche ist klickbar (Neu-Modal mit Zeitfenster) */
    cursor: cell;
}
.res-day-col--today {
    background: linear-gradient(180deg, rgba(75, 155, 224, 0.06), var(--glass-strong) 30%);
}
/* Vergangene Tage sind nicht buchbar → kein Klick-Cursor, kein Klick-Handler */
.res-day-col--past { cursor: default; }
.res-day-col::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        transparent 0,
        transparent calc(100%/16 - 1px),
        rgba(15, 37, 68, 0.08) calc(100%/16 - 1px),
        rgba(15, 37, 68, 0.08) calc(100%/16),
        transparent calc(100%/16));
    background-size: 100% calc(100%/16);
    opacity: 0.6;
}

/* Verfügbarkeits-Bänder (mix-blend-multiply) */
.res-avail {
    position: absolute;
    left: 0; right: 0;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    background: var(--instr-tint, var(--instr-1-tint));
}

/* Hit-Layer für Hover/Click (über mix-blend, unter Strips) */
.res-avail-hit {
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
    background: transparent;
    /* Nicht-editierbare Bänder: Klick bucht den freien Slot darunter */
    cursor: cell;
}
.res-avail-hit--editable { cursor: pointer; }
/* Aus „Meine Verfügbarkeit“ (3.111.0): gestrichelter Rand, damit man das
   mitgelesene Band vom selbst eingetragenen unterscheidet.
   Das Band bekommt seine Farbe inline (background) — darum ein Umriss
   und kein Hintergrundmuster, das der Inline-Stil überschriebe. */
.res-avail--raster { outline: 1.5px dashed rgba(15,37,68,.4); outline-offset: -2px; }

/* Tag-Sticker oben am Band */
/* Zeile der Namens-Sticker einer Startzeit. Mehrere Lehrer können zur selben
   Zeit verfügbar sein – ihre Sticker stehen dann nebeneinander statt
   deckungsgleich übereinander (bis 3.50.1 war nur ein Name lesbar). */
.res-avail-tags {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2px;
}

.res-avail-tag {
    color: #fff;
    padding: 3px 8px 3px 9px;
    /* Erster Sticker bleibt bündig an der Spaltenkante (nur rechts unten
       gerundet), die folgenden sind freistehende Chips. */
    border-radius: 0 0 8px 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--res-font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(15, 27, 51, 0.10);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--instr-color, var(--instr-1));
}
.res-avail-tags .res-avail-tag:first-child { border-radius: 0 0 8px 0; }
.res-avail-tag::before {
    content: '';
    flex: 0 0 auto;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

/* NOW-Linie */
.res-now-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--red);
    z-index: 8;
    pointer-events: none;
}
.res-now-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
.res-now-line__time {
    position: absolute;
    left: 6px;
    top: 0;
    transform: translateY(-50%);
    background: var(--red);
    color: #fff;
    font-family: var(--res-font-mono);
    font-size: 9px;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: 0.12em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

/* ═══ STRIPS (Soft tinted cards) ════════════════════════════════════════ */

.res-strip {
    position: absolute;
    left: 6px; right: 6px;
    border-radius: 12px;
    padding: 10px 13px 11px 16px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(180deg, var(--ac-tint, var(--ac-1-tint)), var(--glass-strong-solid) 75%);
    box-shadow: var(--shadow-strip);
    color: var(--navy);
    transition: transform 0.18s cubic-bezier(.2, .8, .2, 1),
                box-shadow 0.18s ease,
                z-index 0s;
    z-index: 3;
    box-sizing: border-box;
}
.res-strip::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--ac-color, var(--blue-500));
    border-radius: 0 3px 3px 0;
}
.res-strip:hover,
.res-strip:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strip-hover);
    z-index: 7;
    outline: none;
}
.res-strip__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-family: var(--res-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--ink-40);
}
.res-strip__reg {
    font-weight: 600;
    letter-spacing: 0.10em;
    color: var(--ac-color, var(--ac-1));
    text-transform: uppercase;
}
.res-strip__name {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 4px;
    line-height: 1.2;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.res-strip__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.res-strip__pill {
    font-family: var(--res-font-mono);
    font-size: 9px;
    letter-spacing: 0.10em;
    background: rgba(15, 37, 68, 0.06);
    color: var(--ink-60);
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.res-strip__pill--instr {
    background: var(--instr-tint, var(--instr-1-tint));
    color: var(--instr-color, var(--instr-1));
    border: 1px solid currentColor;
}

.res-strip--featured {
    box-shadow: 0 0 0 2px var(--ac-color, var(--ac-1)),
                var(--shadow-strip-hover);
    z-index: 6;
}
.res-strip--past { opacity: 0.65; }

/* Wartungsblöcke: Slate-Töne + Schraffur, damit sie klar als Sperre lesbar sind */
.res-strip--wartung {
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0 8px,
        rgba(100, 116, 139, 0.10) 8px 16px
    );
    /* Sperrflächen liegen HINTER normalen Strips (z3) — Hover hebt weiter auf z7.
       Hält bei gleichzeitiger Wartung + Buchung anderer Flugzeuge die Buchung lesbar. */
    z-index: 2;
}
/* Mehrere Flugzeuge gleichzeitig in Wartung: schmale Lanes nebeneinander,
   nur ein vertikales Kennzeichen-Label (Geometrie kommt inline aus dem JS) */
.res-strip--wartung-lane {
    padding: 8px 2px;
    display: flex;
    justify-content: center;
}
.res-strip--wartung-lane::before { top: 6px; bottom: 6px; }
/* Kurze Lane-Strips: das Compact-Padding (6px 10px 6px 14px) würde das
   vertikale Label aus der schmalen Lane drücken — Lane-Padding erzwingen */
.res-strip--compact.res-strip--wartung-lane { padding: 6px 2px; }
/* Solo-Wartung, die mit Buchungen kollidiert: schmale Rand-Lane ÜBER den
   Normal-Strips (z3), sonst wäre sie hinter deren opaker Fläche unsichtbar */
.res-strip--wartung-edge { z-index: 4; }
.res-strip__vlabel {
    writing-mode: vertical-rl;
    font-family: var(--res-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ac-color, #64748B);
    white-space: nowrap;
}
.res-strip__pill--wartung {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}
.res-mobile-card--wartung {
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0 8px,
        rgba(100, 116, 139, 0.08) 8px 16px
    );
}

/* Vorgemerkte Discover-Flüge: Amber + gestrichelter Rahmen — die Blockung ist
   noch unverbindlich und muss sich auf den ersten Blick von einer bestätigten
   Buchung unterscheiden (Schraffur ist schon durch die Wartung belegt). */
.res-strip--dfblock {
    border: 1px dashed var(--ac-color, #B45309);
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 9px,
        rgba(180, 83, 9, 0.09) 9px 18px
    );
}
.res-strip__pill--dfblock {
    background: #FCF3E4;
    color: #92400E;
    border: 1px solid #E7C48A;
}
.res-mobile-card--dfblock {
    border: 1px dashed #B45309;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 9px,
        rgba(180, 83, 9, 0.07) 9px 18px
    );
}

/* Wartungs-Checkbox im Neu-Modal (nur Admin sichtbar) */
.res-wartung-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-60);
    user-select: none;
}
.res-wartung-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #64748B;
    cursor: pointer;
}

/* Compact-Mode für sehr kurze Strips (< 30 min) */
.res-strip--compact {
    padding: 6px 10px 6px 14px;
}
.res-strip--compact .res-strip__name,
.res-strip--compact .res-strip__meta { display: none; }

/* Stacked-Shadow unter überlappenden Strips */
.res-stacked-shadow {
    position: absolute;
    pointer-events: none;
    border-radius: 12px;
    background: var(--glass-strong-solid);
    box-shadow: var(--shadow-strip);
    /* z1 statt z2: der opake Shadow darf Wartungs-Strips (z2) nicht
       überdecken — er soll nur die Stapel-Optik UNTER den Strips liefern */
    z-index: 1;
    border: 1px solid var(--edge);
}

/* ═══ POPOVER (Hover-Detail) ═══════════════════════════════════════════ */

.res-popover {
    position: fixed;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--edge);
    border-radius: var(--r-card);
    width: 300px;
    box-shadow: var(--glass-shadow);
    z-index: 99999;
    overflow: hidden;
    pointer-events: none;
    animation: res-pop-in 0.18s ease;
}
@keyframes res-pop-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.res-popover__head {
    background: var(--dsky-header);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.res-popover__head::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    background: var(--ac-color, var(--blue-500));
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--ac-color, var(--blue-500));
}
.res-popover__ttl { flex: 1; min-width: 0; }
.res-popover__reg {
    font-family: var(--res-font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.res-popover__typ {
    font-size: 11px;
    color: #9DB1CC;
    margin-top: 1px;
}
.res-popover__timewrap {
    text-align: right;
    font-family: var(--res-font-mono);
    font-size: 11px;
    color: #9DB1CC;
    flex-shrink: 0;
}
.res-popover__timewrap b {
    display: block;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-top: 1px;
}
.res-popover__body { padding: 12px 16px; }
.res-popover__row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(15, 37, 68, 0.08);
    font-size: 12.5px;
}
.res-popover__row:last-of-type { border-bottom: none; }
.res-popover__k {
    font-family: var(--res-font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--ink-40);
    text-transform: uppercase;
    font-weight: 500;
}
.res-popover__v { color: var(--navy); font-weight: 500; word-break: break-word; }
.res-popover__instr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--instr-tint, var(--instr-1-tint));
    color: var(--instr-color, var(--instr-1));
    border: 1px solid var(--instr-color, var(--instr-1));
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}
.res-popover__foot {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(15, 37, 68, 0.08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--ink-40);
}
.res-popover__edit {
    color: var(--blue-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.res-popover__esc {
    font-family: var(--res-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    background: var(--glass-strong);
    border: 1px solid var(--edge);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--ink-40);
}

/* ═══ LEGENDE ═══════════════════════════════════════════════════════════ */

.res-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 37, 68, 0.08);
    flex-wrap: wrap;
}
.res-legend__group {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.res-legend__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--ink-40);
    font-family: var(--res-font-mono);
    letter-spacing: 0.04em;
}
.res-legend__sw {
    width: 14px; height: 8px;
    border-radius: 999px;
    background: var(--ac-color, var(--slate-400));
}
.res-legend__sw--ac {
    background: linear-gradient(90deg, var(--ac-color), var(--ac-tint));
}
.res-legend__sw--instr {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--instr-color, var(--instr-1));
    opacity: 0.4;
}

/* ═══ FORMULAR (Modal) — unverändert wie bisher ═══════════════════════════ */

#res-formular-wrapper { padding: 22px 24px 20px; }

.res-form-title {
    font-family: var(--res-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(15, 37, 68, 0.08);
    display: flex; align-items: center; gap: 8px;
}
.res-form-title::before { content: '\2708'; font-size: 1.05rem; color: var(--blue-deep); }
.res-form-title--vfg { color: var(--instr-1); }
.res-form-title--vfg::before { content: '\23F1'; font-size: 1rem; color: var(--instr-1); }

.res-form-row {
    display: flex; align-items: center; gap: 16px;
    padding: 9px 0; border-bottom: 1px solid rgba(15, 37, 68, 0.08);
}
.res-form-row:last-child { border-bottom: none; }
.res-form-row label {
    min-width: 190px; max-width: 190px;
    font-family: var(--res-font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    color: var(--ink-40);
    text-transform: uppercase;
}
.req { color: var(--res-red); margin-left: 2px; }

.res-form-row select,
.res-form-row input[type="text"],
.res-form-row input[type="datetime-local"],
.res-form-row textarea {
    flex: 1;
    /* Leicht blau unterlegt, damit sich die Felder vom Modal-Glas abheben */
    background: var(--slate-100);
    border: 1.5px solid var(--slate-150);
    border-radius: 10px;
    color: var(--res-text);
    font-family: var(--res-font);
    font-size: 0.88rem;
    padding: 8px 12px;
    appearance: none; -webkit-appearance: none;
    transition: border-color var(--res-transition), box-shadow var(--res-transition);
    outline: none; width: 100%; box-sizing: border-box;
}
.res-form-row select:focus,
.res-form-row input[type="text"]:focus,
.res-form-row input[type="datetime-local"]:focus,
.res-form-row textarea:focus {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 4px rgba(31, 108, 178, 0.15);
    background: #fff;
}
.res-form-row textarea { resize: vertical; min-height: 68px; line-height: 1.5; align-self: flex-start; margin-top: 4px; }
/* Der Hinweis für Schüler (3.101.0): eine eigene Zeile UNTER dem Feld,
   eingerückt auf die Feldkante (190 px Beschriftung + 16 px Abstand). Als
   drittes Element in der Flexzeile hätte er das Auswahlfeld gestaucht. */
.res-form-row--hinweis { flex-wrap: wrap; }
.res-form-hint {
    flex-basis: 100%;
    margin: -4px 0 0 206px;
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--ink-40);
}

.res-form-submit { padding-top: 16px; border-bottom: none; justify-content: flex-end; }

#res-submit-btn,
#res-edit-speichern,
#res-vfg-submit,
#res-vfg-edit-speichern {
    background: var(--dsky-accent);
    color: #fff;
    border: none;
    border-radius: var(--r-btn);
    padding: 11px 26px;
    font-family: var(--res-font);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--res-transition);
    box-shadow: 0 10px 20px -10px rgba(23, 90, 151, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
#res-submit-btn:hover,
#res-edit-speichern:hover,
#res-vfg-submit:hover,
#res-vfg-edit-speichern:hover {
    background: linear-gradient(150deg, #3a8fd0, #1f6cb2);
    transform: translateY(-1px);
}
#res-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.res-modal--vfg #res-vfg-submit,
.res-modal--vfg #res-vfg-edit-speichern {
    background: var(--instr-1);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.32);
}
.res-modal--vfg #res-vfg-submit:hover,
.res-modal--vfg #res-vfg-edit-speichern:hover {
    background: #0E5C56;
}
.res-modal--vfg input[type="text"][readonly] {
    background: var(--instr-1-tint);
    border-color: var(--instr-1-tint);
    color: var(--instr-1);
    cursor: not-allowed;
}

.res-edit-actions {
    justify-content: space-between !important;
    gap: 10px;
}
.res-btn-danger {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: var(--r-btn);
    padding: 10px 20px;
    font-family: var(--res-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--res-transition);
}
.res-btn-danger:hover { background: var(--red); color: #fff; }

/* Meldungen */
.res-meldung {
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    border-left: 4px solid;
}
.res-meldung-success { background: var(--res-green-light); border-color: var(--green); color: var(--green); }
.res-meldung-error   { background: var(--res-red-light);   border-color: var(--res-red);   color: var(--res-red); }

/* Overlay/Modal */
.res-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(7px) saturate(120%);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.res-modal {
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: var(--r-card);
    box-shadow: var(--glass-shadow), 0 30px 70px -30px rgba(4, 20, 45, 0.55);
    animation: res-modal-in 0.22s cubic-bezier(.4, 0, .2, 1);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--edge);
}
@keyframes res-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.res-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0;
}
.res-modal-header .res-form-title {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1rem;
}
.res-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink-40);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--res-transition), color var(--res-transition);
}
.res-modal-close:hover { background: var(--res-red-light); color: var(--res-red); }
.res-body-lock { overflow: hidden; }
.res-modal #res-formular-wrapper,
.res-modal.res-card { padding: 0; }
.res-card { background: transparent; }
/* Modal-Glasfläche: muss .res-card (transparent, gleiche Spezifität wie
   .res-modal, aber später im Quelltext) sicher überstimmen */
.res-overlay .res-modal.res-card { background: var(--glass-strong); }
.res-modal #res-meldung { margin: 0 22px 0; }
.res-modal .res-form-row { padding: 8px 22px; }
.res-modal .res-form-row:last-child { padding-bottom: 20px; }

/* DT-Group */
.res-dt-group { display: flex; gap: 8px; flex: 1; }
.res-dt-group input[type="date"],
.res-dt-group select {
    flex: 1 1 120px;
    /* Leicht blau unterlegt, damit sich die Felder vom Modal-Glas abheben */
    background: var(--slate-100);
    border: 1.5px solid var(--slate-150);
    border-radius: 10px;
    color: var(--res-text);
    font-family: var(--res-font);
    font-size: 0.88rem;
    padding: 8px 12px;
    appearance: none; -webkit-appearance: none;
    transition: border-color var(--res-transition), box-shadow var(--res-transition);
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}
.res-dt-group select { flex: 0 0 110px; }
.res-dt-group input[type="date"]:focus,
.res-dt-group select:focus {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 4px rgba(31, 108, 178, 0.15);
    background: #fff;
}

/* Login-Hinweis */
.res-login-hinweis {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    color: var(--ink-60);
    font-size: 0.92rem;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--edge);
    border-radius: var(--r-card);
    box-shadow: var(--glass-shadow);
}
.res-login-icon { font-size: 1.4rem; }
.res-login-hinweis a {
    color: var(--blue-deep);
    font-weight: 700;
    text-decoration: underline;
}
.res-login-hinweis a:hover { color: var(--brand-red); }

/* ═══ MOBILE-LIST (nur < 720px sichtbar) ════════════════════════════════ */

.res-mobile-list { display: none; }

.res-mobile-day {
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--edge);
    border-radius: var(--r-card);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--glass-shadow);
}
.res-mobile-day--today {
    border-color: var(--blue-bright);
    box-shadow: 0 2px 12px rgba(75, 155, 224, 0.18);
}
.res-mobile-day__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 37, 68, 0.08);
}
.res-mobile-day__name {
    font-family: var(--res-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.res-mobile-day__today {
    display: inline-block;
    font-family: var(--res-font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
    background: var(--blue-deep);
    padding: 2px 6px;
    border-radius: 999px;
}
.res-mobile-day__date {
    font-family: var(--res-font-mono);
    font-size: 10px;
    letter-spacing: 0.10em;
    color: var(--ink-40);
    margin-top: 2px;
    text-transform: uppercase;
}
.res-mobile-day__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    max-width: 60%;
}

.res-mobile-empty {
    font-family: var(--res-font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-40);
    padding: 8px 4px;
    text-align: center;
}
.res-mobile-hint {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px dashed var(--edge);
    border-radius: var(--r-card);
    padding: 14px 16px;
    text-align: center;
    color: var(--ink-60);
    font-size: 13px;
    margin-bottom: 10px;
}

.res-mobile-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 6px 0;
    background: linear-gradient(135deg, var(--ac-tint, var(--ac-1-tint)) 0%, var(--glass-strong-solid) 75%);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 27, 51, 0.03);
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
}
.res-mobile-card::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--ac-color, var(--ac-1));
    border-radius: 0 3px 3px 0;
}
.res-mobile-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 12px rgba(15, 27, 51, 0.08);
}
.res-mobile-card[disabled] { cursor: default; opacity: 0.85; }
.res-mobile-card--past { opacity: 0.6; }

.res-mobile-card__time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    width: 56px;
    padding-left: 6px;
    font-family: var(--res-font-mono);
}
.res-mobile-card__hh {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.res-mobile-card__sep {
    font-size: 10px;
    color: var(--ink-40);
    line-height: 1.4;
}
.res-mobile-card__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 4px;
}
.res-mobile-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.res-mobile-card__reg {
    font-family: var(--res-font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ac-color, var(--ac-1));
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.res-mobile-card__pilot {
    font-family: var(--res-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    text-align: right;
}
.res-mobile-card__meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1100px) {
    .res-stage { padding: 18px 16px 22px; }
}
@media (max-width: 900px) {
    /* Tablet/Phablet: kompakteres Grid, Toolbar bleibt einzeilig */
    .res-grid { min-width: 760px; }
    .res-col-head { padding: 10px 4px 12px; height: auto; }
    .res-col-head__dd { font-size: 22px; }
    .res-stage { padding: 14px 14px 20px; }
}
@media (max-width: 720px) {
    /* Mobile: Grid komplett ausblenden, Card-Liste anzeigen */
    .res-section-bar { padding: 14px 16px; flex-wrap: wrap; }
    .res-section-bar__title { padding-left: 10px; }
    .res-section-bar__actions { width: 100%; padding-left: 14px; flex-wrap: wrap; }
    .res-stage { padding: 12px 14px 16px; overflow-x: hidden; }
    .res-toolbar { padding: 0 0 14px; gap: 10px; }
    .res-toolbar__left, .res-toolbar__right { gap: 6px; }
    .res-week-pill { font-size: 11px; padding: 6px 10px; gap: 6px; }
    .res-week-pill__kw { font-size: 9px; padding: 1px 6px; }
    .res-btn-light { font-size: 11.5px; padding: 6px 10px; }

    /* Desktop-Grid auf Mobile komplett ausblenden, stattdessen die Card-Liste */
    .res-grid { display: none; }
    .res-mobile-list { display: block; }
    .res-legend { padding: 12px 0 0; }
    /* Modals: Overlay scrollt als Ganzes (iOS-Adressleiste/Tastatur), Modal nicht mehr intern gekappt */
    .res-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Scroll-Kette kappen: am Overlay-Ende darf nicht die Seite dahinter
           weiterscrollen (Body-Lock ist auf iOS unzuverlässig) */
        overscroll-behavior: contain;
        padding: 12px 10px 28px;
    }
    .res-modal { max-height: none; overflow-y: visible; }
    #res-submit-btn,
    #res-edit-speichern,
    #res-vfg-submit,
    #res-vfg-edit-speichern,
    .res-btn-danger { min-height: 44px; }
    #res-formular-wrapper { padding: 14px 12px; }
    .res-form-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .res-form-row label { min-width: unset; max-width: unset; }
    .res-form-submit { justify-content: stretch; }
    #res-submit-btn { width: 100%; }
    .res-modal-header { padding: 14px 14px 0; }
    .res-modal .res-form-row { padding: 7px 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .res-modal .res-form-row label { min-width: unset; max-width: unset; }
    .res-form-hint { margin: 0; }
    .res-popover { width: 280px; }
}
@media (max-width: 480px) {
    .res-section-bar h2 { font-size: 11.5px; letter-spacing: 0.12em; }
    .res-section-bar p { font-size: 11px; }
    .res-btn { padding: 7px 10px; font-size: 12px; }
    .res-dt-group { flex-direction: column; gap: 6px; }
    .res-dt-group select { flex: 1 1 auto; }
    /* Card noch kompakter */
    .res-mobile-card { padding: 8px 10px; gap: 10px; }
    .res-mobile-card__time { width: 50px; }
    .res-mobile-card__hh { font-size: 13px; }
    .res-mobile-card__pilot { font-size: 12px; }
}

/* ═══ GLAS-FALLBACK (Browser ohne backdrop-filter) ══════════════════════ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .res-stage,
    .res-login-hinweis,
    .res-mobile-hint { background: var(--glass-solid); }
    .res-grid,
    .res-popover,
    .res-modal,
    .res-overlay .res-modal.res-card,
    .res-mobile-day { background: var(--glass-strong-solid); }
    /* Ohne Blur muss der helle Scrim fast deckend sein, sonst unruhig */
    .res-overlay { background: rgba(236, 243, 250, 0.92); }
}
