/* MFV-Altach – Nachtflug: dunkle Darstellung (Schalter in der Kopfzeile, Wahl im Browser gemerkt, Klasse html.night) */

/* Schalter (wie jetscale): Kippschalter + Beschriftung */
.nswitch{flex:none;display:inline-flex;align-items:center;gap:8px;padding:5px 9px 5px 6px;border:1px solid rgba(255,255,255,.45);background:rgba(0,0,0,.12);color:var(--head-ink);font:700 11px/1 var(--font-m);letter-spacing:.14em;text-transform:uppercase;cursor:pointer;border-radius:2px}
.nswitch:hover,.nswitch:focus-visible{border-color:var(--hot)}
.nswitch .tog{position:relative;width:14px;height:26px;border-radius:3px;background:linear-gradient(#2a2f45,#141827);box-shadow:inset 0 0 0 1.5px #5a6390}
.nswitch .tog i{position:absolute;left:2px;right:2px;bottom:2px;height:11px;border-radius:2px;background:linear-gradient(#e2e6f5,#a7aecb);transition:bottom .25s cubic-bezier(.3,1.4,.5,1),background .25s,box-shadow .25s}
.nswitch .lbl{display:flex;flex-direction:column;gap:3px;text-align:left}
.nswitch .lbl small{font-size:8px;letter-spacing:.16em;opacity:.75}
html.night .nswitch{color:#46ff8c;border-color:#46ff8c;background:#0b1424}
html.night .nswitch .tog i{bottom:13px;background:linear-gradient(#9dffc2,#2fd76f);box-shadow:0 0 10px rgba(70,255,140,.8)}
@media (max-width:1100px){.top .nswitch{order:2;margin-left:auto}.top .menu-toggle{order:3;margin-left:10px}.nswitch .lbl small{display:none}}
@media (max-width:420px){.nswitch .lbl{display:none}}

/* Farben bei Nacht: dieselben Tokens, dunkel */
html.night{color-scheme:dark;
  --bg:#070d19;--ink:#e3eaf5;--muted:#94a4bb;--line:#1f2d45;--card:#0e1829;--paper:#0b1424;--tint:#0b2547;--head:#0a1a33;--head-ink:#ffffff;
  --hl:#6fb4ff;--band:#03060c;--band-ink:#e3eaf5;--band2:#0b2547;--board:#050b16;--chart:#0b1424;--grid:rgba(111,180,255,.18);--grid2:rgba(111,180,255,.06);
  --surface:var(--paper);--accent:var(--hl)}
html.night body{background:var(--bg)}
html.night .cap{background:#0e1829;color:var(--ink)}
html.night .btn.ghost{color:var(--ink)}
html.night .hx .btn.ghost{color:#fff}
html.night img:not(.lg img){filter:brightness(.92)}
/* Handy/Tablet: Menüknopf als Hamburger (offen: ×); der Nacht-Schalter erscheint erst im aufgeklappten Menü oben im Kopf */
@media (max-width:1100px){
  .top .menu-toggle{display:grid;place-items:center;width:46px;height:42px;padding:0}
  .top .menu-toggle .mt-ic{position:relative;display:block;width:22px;height:16px}
  .top .menu-toggle .mt-ic i{position:absolute;left:0;right:0;height:2.5px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s,top .2s}
  .top .menu-toggle .mt-ic i:nth-child(1){top:0}.top .menu-toggle .mt-ic i:nth-child(2){top:7px}.top .menu-toggle .mt-ic i:nth-child(3){top:14px}
  html.menu-open .top .menu-toggle .mt-ic i:nth-child(1){top:7px;transform:rotate(45deg)}
  html.menu-open .top .menu-toggle .mt-ic i:nth-child(2){opacity:0}
  html.menu-open .top .menu-toggle .mt-ic i:nth-child(3){top:7px;transform:rotate(-45deg)}
  html:not(.menu-open) .top .nswitch{display:none}
}
/* Handy: Hamburger rechts auch bei geschlossenem Menü; aufgeklapptes Menü etwas dunkler als der Kopf, mit gelber Kante */
@media (max-width:1100px){
  html:not(.menu-open) .top .menu-toggle{margin-left:auto}
  .top .nav{background:color-mix(in srgb,var(--head) 80%,#03142b);border-top:3px solid var(--hot);box-shadow:0 18px 30px -12px rgba(0,0,0,.45)}
}
@media (max-width:1100px){.top .nav{padding-left:18px;padding-right:18px}}
/* Handy: Flugbuch-Knopf im Kopf zwischen Logo und Hamburger (kompakt); im Fuss kein Flugbuch mehr */
@media (max-width:1100px){
  .top .pill{display:inline-flex!important;order:1;margin-left:auto;align-items:center;gap:6px;padding:8px 12px;font-size:.9rem;white-space:nowrap}
  .top .pill small{display:none}
  html:not(.menu-open) .top .menu-toggle{margin-left:10px}
  html.menu-open .top .nswitch{margin-left:10px}
}
.foot .ft-col .mn>li:has(a[href*="flugbuch"]){display:none}
@media (max-width:600px){.foot a.ft-asvo{height:54px!important;padding:5px 10px!important}}
/* Handy-Kopf: Logo, Flugbuch und Hamburger gleich hoch */
@media (max-width:1100px){.top .brand .lg{height:42px;width:60px;box-sizing:border-box}.top .pill{height:42px;box-sizing:border-box;padding:0 14px}.top .menu-toggle{height:42px;box-sizing:border-box}.top .nswitch{height:42px;box-sizing:border-box}}
/* Handy quer: das aufgeklappte Menü scrollt, wenn es höher ist als der Bildschirm */
@media (max-width:1100px){.top .nav{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}}
