/* Teaser: Luftraumkarte im Stil von Entwurf G.
   Wird von toolbox-dev per sub_filter in die unveränderte Testfassung der Karte eingehängt. */
@font-face { font-family: "B612"; src: url("../fonts/b612-latin-400-normal.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "B612"; src: url("../fonts/b612-latin-700-normal.woff2") format("woff2"); font-weight: 700; }
@font-face { font-family: "B612 Mono"; src: url("../fonts/b612-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; }

:root {
  --bg: #1e252c;
  --bg-light: #29313a;
  --text: #edf1f4;
  --text-muted: #b7c1c9;
  --accent: #ffb300;
  --border: #414c57;
  --badge-bg: #333c46;
  --gut: #3ddc84;
  --schlecht: #ff6b6b;
  --warnung: #ffb300;
  --schatten: 0 1px 3px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.30);
  --schatten-stark: 0 2px 6px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.40);
}
body, button, input, select, textarea { font-family: "B612", system-ui, sans-serif !important; }
#sidebar-footer .meta, .item-badge, .badge { font-family: "B612 Mono", monospace; }

/* Seitenleiste wie das Instrumentenbrett: Carbon im Kopf, Tafeln darunter */
#sidebar { background: var(--bg); border-color: var(--border); }
#sidebar-header { background: linear-gradient(165deg, #ffffff1c, transparent 45%, #00000059), url(bilder/carbon.jpg) 0 0 / 150px; border-bottom: 1px solid #000; }
#sidebar-header h1 { color: #fff; text-shadow: 0 1px 3px #000; }
#reiter [role=tab][aria-selected=true] { color: var(--accent); }

/* Hervorgehobene Knöpfe: Bernstein mit dunkler Schrift */
.pane-gross.active, #profile-toggle.active, .tri-actions button.active, .tier-btn-sm.active, .fb-primary,
#sidebar-content button[style*="accent"] { color: #1e252c !important; }
[style*="background: var(--accent)"], .willkommen button { color: #1e252c; }
#igc-toggle.active { color: #1e252c; }
.badge-red { background: #ff6b6b26; }
.badge-green { background: #3ddc8426; }
.willkommen-warnung { background: #ffb3001a; border-left-color: var(--accent); }
.willkommen-warnung h3 { color: var(--accent); }
.tri-form button[aria-pressed=true] { background: #3ddc8426; color: var(--gut); }
.tri-schnellwahl button[aria-pressed=true], .tri-knopf.active { background: #1f8f4e; border-color: #1f8f4e; }
.tri-drehgriff { color: var(--gut); }
.tri-drehgriff { filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 2px #000); }

/* Leaflet-Bedienelemente und Fenster */
.leaflet-bar a, .leaflet-control-layers, .leaflet-control-zoom a { background: var(--bg-light) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-light); color: var(--text); box-shadow: var(--schatten-stark); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.leaflet-control-attribution { background: #1e252cc0 !important; color: var(--text-muted) !important; }
.leaflet-control-attribution a { color: var(--text) !important; }

/* Grundkarte leicht abgedunkelt, Lufträume bleiben in voller Farbe */
.leaflet-tile-pane { filter: brightness(.78) contrast(1.05) saturate(.85); }

/* Hinweis, dass es ein Teaser ist */
body::after { display: none; content: ""; position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 3000; padding: .2rem .6rem; border-radius: 6px; background: #ffb300; color: #1e252c; font: 700 12px "B612 Mono", monospace; pointer-events: none; }
.download-main, .download-main *, #willkommen-ok, #fb-open, #fb-open * { color: #1e252c !important; }
.toolbox-zurueck { display: inline-flex; width: 30px; height: 30px; margin-right: .5rem; color: #fff; flex: none; }
.toolbox-zurueck svg { width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Feinschliff v2: gleiche Oberflächen- und Fokuslogik wie im Hauptwerkzeug */
:root { color-scheme: dark; --bg: #171e25; --bg-light: #222d37; --text: #f3f6f8; --text-muted: #bac6cf; --accent: #ffc247; --border: #465461; }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 3px; }
button, input, select, textarea { accent-color: var(--accent); }
#sidebar { box-shadow: 8px 0 28px #0003; }
#sidebar-header { background-size: auto, 150px; }
.leaflet-bar a:hover, .leaflet-control-zoom a:hover { background: #35434f !important; }
.leaflet-popup-content-wrapper { border: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
