/* Gegenanflug – Bildschirm am Empfänger (800 × 480, Touch). Große Bedienelemente (≥ 64 px, Beschluss 2.10 Kiosk),
   Farben aus brand/tokens.css, immer hell (Sonne am Fenster). Lagebild: lage.css der Website. */
* { box-sizing: border-box; }
html, body { margin: 0; width: 800px; height: 480px; overflow: hidden; background: var(--paper, #f6f7fb); color: var(--ink, #10172a);
  font: 18px/1.35 var(--f-body, "Inter", sans-serif); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
/* Kiosk mit Touch: kein Mauszeiger (stünde sonst mitten auf der Karte) */
html, body, body * { cursor: none !important; }
.pi-kopf { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--brand, #27479f); color: #fff; }
.pi-logo { display: block; width: 34px; height: 34px; margin-right: -8px; filter: brightness(0) invert(1); } /* Bildmarke weiß auf der Markenfarbe */
.pi-titel { font: 600 22px/1 var(--f-display, "Barlow Condensed", sans-serif); letter-spacing: .02em; }
.pi-schritte { flex: 1; font-size: 16px; opacity: .9; }
.pi-schritte b { text-decoration: underline; text-underline-offset: 4px; }
.pi-haupt { height: 428px; padding: 16px 20px; overflow: hidden; }
.pi-gross { font: 600 30px/1.2 var(--f-display, "Barlow Condensed", sans-serif); margin: 0 0 12px; }
.pi-text { margin: 0 0 12px; }
.pi-leise { color: var(--text-leise, #4a5470); font-size: 16px; }
.pi-knopf { min-height: 64px; min-width: 64px; padding: 0 24px; border: 2px solid var(--brand, #27479f); border-radius: 32px;
  background: var(--surface, #fff); color: var(--brand, #27479f); font: 600 20px/1 var(--f-body, "Inter", sans-serif); cursor: pointer; }
.pi-knopf--primaer { background: var(--brand, #27479f); color: #fff; }
.pi-knopf--klein { min-height: 40px; padding: 0 14px; font-size: 16px; background: transparent; color: #fff; border-color: #fff; }
.pi-knopf:active { transform: translateY(1px); }
.pi-knopf[disabled] { opacity: .5; }
.pi-leiste { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pi-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 250px; overflow-y: auto; }
.pi-liste button { width: 100%; text-align: left; min-height: 64px; padding: 0 18px; border: 1px solid var(--rule, #cfd5e3); border-radius: 12px;
  background: var(--surface, #fff); font: 500 20px/1 var(--f-body, "Inter", sans-serif); color: var(--ink, #10172a); display: flex; justify-content: space-between; align-items: center; }
.pi-feld { width: 100%; min-height: 56px; font: 500 24px/1 var(--f-body, "Inter", sans-serif); padding: 0 14px; border: 2px solid var(--rule, #cfd5e3); border-radius: 10px; background: #fff; }
.pi-code { font: 700 72px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; margin: 8px 0 16px; color: var(--brand, #27479f); }
.pi-balken { height: 18px; border-radius: 9px; background: var(--rule, #cfd5e3); overflow: hidden; margin: 12px 0; }
.pi-balken > span { display: block; height: 100%; background: var(--brand, #27479f); transition: width .9s linear; }
.pi-ok::before { content: "✓ "; } .pi-fehler { color: #8a4b00; } .pi-fehler::before { content: "! "; }
/* Bildschirmtastatur (eigene, statt Systemtastatur – Wayland-Kiosk ohne Eingabemethode) */
.pi-tastatur { position: fixed; left: 0; right: 0; bottom: 0; height: 236px; padding: 6px; background: #e4e8f1; display: grid; gap: 5px; z-index: 2000; }
.pi-tastatur[hidden], [hidden] { display: none !important; }
.pi-tastatur__zeile { display: flex; gap: 5px; justify-content: center; }
.pi-tastatur button { flex: 0 0 70px; height: 52px; border: 0; border-radius: 8px; background: #fff; font: 500 22px/1 var(--f-body, "Inter", sans-serif); color: #10172a; }
.pi-tastatur button[data-breit] { flex: 0 0 150px; } .pi-tastatur button[data-leer] { flex: 0 0 300px; }
.pi-tastatur button[data-an="1"] { background: var(--brand, #27479f); color: #fff; }
body.mit-tastatur .pi-haupt { height: 192px; padding-top: 8px; }
/* Lagebild im Vollbild: Karte links, Zielliste rechts, große Knöpfe */
.pi-lage { position: fixed; inset: 52px 0 0 0; display: grid; grid-template-columns: 1fr 300px; }
.pi-lage .lage { border: 0; border-radius: 0; height: 428px; display: flex; flex-direction: column; gap: 0; }
.pi-lage .lage__flaeche { flex: 1; margin: 0; border-radius: 0; }
.pi-lage .lage__karte { aspect-ratio: auto; height: 100%; }
.pi-lage .lage__legende, .pi-lage .lage__tooltip, .pi-lage .lage__quellen { display: none; }
.pi-lage .lage__status { margin: 0; padding: 3px 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-lage .lage-lizenz { font-size: 10px; padding: 1px 6px; }
.pi-lage .leaflet-control-zoom { display: none; }
.pi-lage .lage-schalter__knopf { min-height: 44px; font-size: 15px; }
.pi-zoom button { display: grid; place-items: center; padding: 0; }
.pi-zoom { position: absolute; right: 8px; bottom: 56px; z-index: 1000; display: grid; gap: 6px; }
.pi-zoom button { width: 64px; height: 64px; border-radius: 32px; border: 2px solid var(--brand, #27479f); background: rgba(255,255,255,.92); font: 700 30px/1 var(--f-body, "Inter", sans-serif); color: var(--brand, #27479f); }
.pi-ziele { overflow-y: auto; border-left: 1px solid var(--rule, #cfd5e3); background: var(--surface, #fff); padding: 6px 8px; }
.pi-ziele h2 { font: 600 18px/1.2 var(--f-display, "Barlow Condensed", sans-serif); margin: 2px 0 6px; }
.pi-ziele h2 small { font: 500 14px/1 var(--f-body, "Inter", sans-serif); color: var(--text-leise, #4a5470); }
.pi-ziele ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pi-ziele li.pi-leise { padding: 6px 2px; }
/* Eintrag = Knopf (antippen: Karte folgt dem Flugzeug); Platzverkehr kräftig, übriger Verkehr gedämpft */
.pi-ziele ol { gap: 0; }
/* Eintrag zweizeilig: Kennung · Höhe · kt · NM, darunter klein Typ und Squawk; Einheiten klein an der Zahl */
.pi-ziel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 10px; row-gap: 1px; align-items: baseline; width: 100%;
  min-height: 46px; padding: 5px 6px; border: 2px solid transparent; border-bottom-color: var(--rule, #cfd5e3); border-radius: 0; text-align: left;
  background: transparent; color: var(--ink, #10172a); font: 500 14px/1.2 var(--f-body, "Inter", sans-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pi-ziel b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.pi-zahl { text-align: right; }
.pi-zahl:nth-of-type(1) { min-width: 58px; } .pi-zahl:nth-of-type(2) { min-width: 44px; } .pi-zahl:nth-of-type(3) { min-width: 46px; }
.pi-zahl small { margin-left: 2px; font-size: 11px; color: var(--text-leise, #4a5470); }
.pi-ziel__zeile2 { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-leise, #4a5470); }
.pi-sq { margin-left: auto; font: 400 12px/1.2 var(--f-mono, ui-monospace, monospace); font-style: normal; }
.pi-sq--code { font-weight: 700; color: var(--ink, #10172a); }
.pi-ziel--fern { background: transparent; color: var(--text-leise, #4a5470); }
.pi-ziel--fern b { font-weight: 600; }
.pi-ziel--aktiv { border-color: var(--brand, #27479f); border-radius: 8px; background: #e8edfb; color: var(--ink, #10172a); }
/* Folgen: Ring um das Flugzeug (keine Vektoren, Beschluss 2.6) und Hinweis oben */
.pi-folgen-hinweis { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; z-index: 1000; margin: 0; padding: 4px 12px; border-radius: 16px;
  background: var(--brand, #27479f); color: #fff; font: 600 14px/1.3 var(--f-body, "Inter", sans-serif); white-space: nowrap; }
/* Startbildschirm: Hinweis „kein Flugverkehrsdienst“ 5 s (antippen schließt) */
.pi-splash { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--brand, #27479f); color: #fff; text-align: center; }
.pi-splash__inhalt { max-width: 640px; padding: 24px; }
.pi-splash__inhalt img { display: block; margin: 0 auto 8px; filter: brightness(0) invert(1); }
.pi-splash__platz { font: 700 36px/1 var(--f-display, "Barlow Condensed", sans-serif); letter-spacing: .06em; margin: 0 0 18px; }
.pi-splash__text { font-size: 24px; line-height: 1.35; margin: 0 0 18px; }
.pi-splash .pi-leise { color: #dfe6fb; }
.pi-hinweis { position: absolute; left: 8px; right: 150px; top: 44px; z-index: 1000; margin: 0; background: #fff3d6; color: #5c3b00; padding: 3px 10px; border-radius: 8px;
  font-size: 13px; line-height: 1.3; }
/* Einstellungen: scrollbar (Hinweise & Quellen); Erststart-Hinweis */
.pi-haupt--rollen { overflow-y: auto; }
.pi-abschnitt { border-top: 1px solid var(--rule, #cfd5e3); margin-top: 12px; padding-top: 10px; }
.pi-abschnitt h2 { font: 600 22px/1.2 var(--f-display, "Barlow Condensed", sans-serif); margin: 0 0 8px; }
.pi-abschnitt ul { margin: 0 0 8px; padding-left: 20px; font-size: 16px; }
