/* Kopfzeile neu (17.11.2026): dunkel wie die Seitenköpfe, weißes Logo, helle Menüpunkte.
 * Beim Scrollen wird daraus eine schwebende Glas-Leiste mit runden Ecken. Der Hintergrund ist ein
 * Pseudo-Element, die Kopfzeile behält ihre Höhe, deshalb springt nichts. Markup: Header.astro.
 */
.ods-site header.nav {
  /* Navy nur über dem Teil des eigenen Platzes, der noch im Bild ist (--slot-h aus Header.astro).
     So scheint beim Wechsel Pille ↔ Leiste nie der helle Seitenhintergrund durch. */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  isolation: isolate;
}
.ods-site header.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 153, 0, 0) 0%, rgba(255, 153, 0, .35) 50%, rgba(255, 153, 0, 0) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, #0f1130 0%, #13153a 100%);
  border-radius: 0;
  transition: inset .55s cubic-bezier(.22, 1, .36, 1), border-radius .55s cubic-bezier(.22, 1, .36, 1),
    background-color .3s, box-shadow .4s, backdrop-filter .4s;
}
/* bündige Leiste 1 px nach unten überlappen lassen (Halbpixel-Versatz zur Hinweisleiste) */
.ods-site header.nav:not(.schwebend)::before { inset: 0 0 -1px 0; }
/* Kein Hintergrund hinter der Pille. Der erste Abschnitt jeder Seite (dunkler Seitenkopf oder heller
   Abschnitt) wird per Skript in Header.astro unter die Pille verlängert: Abstand nach oben −Kopfhöhe,
   Innenabstand +Kopfhöhe. So bleiben Hintergrund, Bilder und Videos lückenlos und der Inhalt steht still.
   (Ein transparenter Rand ging nicht: overflow:hidden der Seitenköpfe schneidet am Innenrand ab.) */
:root { --kopf-h: 74px; }
/* Platz für die Scrollleiste immer reservieren: sonst verschiebt sich die zentrierte Pille zwischen
   Seiten mit und ohne Scrollleiste um ein paar Pixel nach links/rechts */
html { scrollbar-gutter: stable; }
/* Logo: feste Breite aus dem Seitenverhältnis, damit die Menüpunkte beim Laden nicht rutschen */
.ods-site header.nav .logo-img { width: auto; aspect-ratio: 602 / 345; }
/* Startseite: Drohnenflug ist bildschirmhoch und klebt oben, nur hochziehen */
.ods-site .flug-track { margin-top: calc(-1 * var(--kopf-h)); }

/* ===== Hinweis-Popup (Fahrtgebiete), einmal pro Besuch ===== */
.ods-site .ods-hinweis {
  position: fixed;
  z-index: 70;
  top: 92px;
  left: 50%;
  width: min(560px, calc(100% - 24px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)), rgba(19, 21, 58, .92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 153, 0, .35) inset, 0 24px 50px -20px rgba(8, 9, 30, .7);
  opacity: 0;
  transform: translate(-50%, -14px) scale(.98);
  transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.ods-site .ods-hinweis.offen { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ods-site .ods-hinweis[hidden] { display: none; }
.ods-site .ods-hinweis .oh-icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 153, 0, .15);
  color: var(--o-500, #ff9900);
}
.ods-site .ods-hinweis .oh-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ods-site .ods-hinweis .oh-text { flex: 1; min-width: 0; }
.ods-site .ods-hinweis p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.ods-site .ods-hinweis p b { color: #fff; font-weight: 600; }
.ods-site .ods-hinweis .oh-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--o-500, #ff9900); }
.ods-site .ods-hinweis .oh-link:hover { color: var(--o-300, #ffc766); }
.ods-site .ods-hinweis .oh-zu {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  margin: -4px -4px 0 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.ods-site .ods-hinweis .oh-zu:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ods-site .ods-hinweis .oh-zu:focus-visible { outline: 2px solid var(--o-500, #ff9900); outline-offset: 2px; }
.ods-site .ods-hinweis .oh-zu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 600px) { .ods-site .ods-hinweis { top: 84px; } }
html.menu-offen .ods-site .ods-hinweis { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ods-site .ods-hinweis { transition: opacity .2s; transform: translate(-50%, 0); } }

/* ===== Hinweis als Info-Box auf den Fahrplan-Seiten ===== */
.ods-site .ods-hinweis-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--o-50, #fff4e0);
  border: 1px solid var(--o-100, #ffe2b3);
  border-radius: 16px;
  color: var(--o-900, #7a4900);
  font-size: 15px;
  line-height: 1.5;
}
.ods-site .ods-hinweis-box b { color: #5a3500; font-weight: 600; }
.ods-site .ods-hinweis-box .oh-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--o-500, #ff9900); color: #1a1206; }
.ods-site .ods-hinweis-box .oh-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.ods-site .ods-hinweis-box p { margin: 4px 0 0; }
/* gescrollt: schwebende Glas-Leiste */
.ods-site header.nav.schwebend { box-shadow: none; border-color: transparent; }
.ods-site header.nav.schwebend::before {
  /* Pille sitzt um den Inhalt (.wrap: max 1240 px, 32 px Rand) mit 16 px Luft links und rechts */
  inset: 7px calc(max(0px, (100% - 1240px) / 2) + 16px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(17, 19, 52, .95);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 18px 40px -18px rgba(8, 9, 30, .65);
}
/* Inhalt der Pille luftiger: Elemente etwas kleiner, damit oben und unten Platz bleibt */
.ods-site header.nav.schwebend .nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.ods-site header.nav.schwebend .lang-menu summary { height: 34px; }
.ods-site header.nav.schwebend .logo-img { height: 36px; }
@media (max-width: 1240px) {
  /* .wrap hat hier 20 px Rand: Pille 6 px vom Bildschirmrand, Inhalt 14 px innen */
  .ods-site header.nav.schwebend::before { inset: 7px 6px; }
  /* bei voller Rundung braucht der Inhalt mehr Abstand zum Rand */
  .ods-site header.nav.schwebend:not(.nav-open) .nav-inner { padding-left: 32px; padding-right: 26px; }
}
@media (max-width: 600px) {
  .ods-site header.nav.schwebend .logo-img { height: 32px; }
}

/* Logo weiß (Datei ods-orient-logo-white.png, in Header.astro gesetzt) */
.ods-site header.nav .logo-img { filter: none; }

/* Menüpunkte (Desktop) */
@media (min-width: 1201px) {
  .ods-site header.nav .nav-links a { color: rgba(255, 255, 255, .72); transition: color .2s; }
  .ods-site header.nav .nav-links a:hover { color: #fff; }
  .ods-site header.nav .nav-links a.active { color: #fff; }
  .ods-site header.nav .nav-links a::after { height: 2px; border-radius: 2px; bottom: -6px; }
}

/* Sprachwahl (Desktop) als Glas-Chip */
.ods-site header.nav .lang-menu summary {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}
.ods-site header.nav .lang-menu summary:hover,
.ods-site header.nav .lang-menu[open] summary { color: #fff; border-color: rgba(255, 153, 0, .7); background: rgba(255, 255, 255, .1); }

/* Burger weiß */
.ods-site header.nav .nav-burger span { background: #fff; }
.ods-site header.nav .nav-burger:focus-visible { outline: 2px solid var(--o-500, #ff9900); outline-offset: 2px; border-radius: 10px; }

/* Handy-Menü offen: Leiste wieder bündig, damit Kopf und Menü eine Fläche bilden */
.ods-site header.nav.nav-open::before {
  inset: 0;
  border-radius: 0;
  background: #13153a;
  box-shadow: none;
}

/* Fokus sichtbar auf dunklem Grund */
.ods-site header.nav a:focus-visible { outline: 2px solid var(--o-500, #ff9900); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .ods-site header.nav::before { transition: none; }
}

/* ===== Handy/Tablet: Sprachwahl wie am Desktop als Chip in der Pille (vor dem Burger) ===== */
@media (max-width: 1200px) {
  .ods-site header.nav .nav-cta .lang-menu { display: block !important; }
  .ods-site header.nav .nav-cta { gap: 10px; }
  .ods-site header.nav .lang-menu summary { height: 36px; padding: 0 11px 0 10px; gap: 6px; font-size: 13px; }
  .ods-site header.nav .lang-menu summary svg { width: 16px; height: 16px; }
  .ods-site header.nav .lang-menu-list { right: -4px; min-width: 200px; }
  /* Im aufgeklappten Menü stehen die Sprachen schon oben – die Chips unten entfallen */
  .ods-site header.nav .nav-links .lang-switch.nav-only-mobile { display: none !important; }
}
@media (max-width: 380px) {
  .ods-site header.nav .lang-menu summary svg { display: none; }
}

/* Arabische Seite (Kopf von rechts nach links): Sprachmenü klappt nach rechts auf statt aus dem Bild */
.ods-site header.nav.nav-rtl .lang-menu-list { right: auto !important; left: -4px; transform-origin: top left; }
.ods-site header.nav.nav-rtl .lang-menu-list::before { right: auto; left: 22px; }
