/* Saisonansicht (Portal-Plan 15.10.2026, Umbau 2.11.2026 nach dem Plan-Doc): Reiter Verdacht/Rückblick oben, Hintergrund-Reiter rechts, ein Menü je Reiter links, Link-Knopf. */
header .kopf-link { margin-left: 14px; color: var(--moos); font-size: 12px; text-decoration: none; }
header .kopf-link:hover { color: var(--papier); text-decoration: underline; }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs button { background: transparent; border: 1px solid var(--moos); color: var(--papier); padding: 6px 12px; cursor: pointer; font: 500 13px/16px var(--font-sans); border-radius: var(--radius-0); }
.tabs button.aktiv { background: var(--papier); color: var(--tanne); border-color: var(--papier); }
#saison-select { display: none; margin-left: auto; font: 500 14px var(--font-sans); padding: 4px 6px; }
#map { position: absolute; top: 56px; bottom: 0; left: 0; right: 0; }
.hg { position: absolute; top: 64px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.hg button { background: var(--surface-raised); border: 1px solid var(--rule); color: var(--ink); padding: 6px 10px; cursor: pointer; font: 500 12px/16px var(--font-sans); text-align: left; border-radius: var(--radius-0); }
.hg button.aktiv { background: var(--tanne); color: var(--papier); border-color: var(--tanne); }
#ebenen { position: absolute; top: 64px; left: 12px; z-index: 5; width: 300px; max-height: calc(100% - 90px); overflow-y: auto; background: var(--surface-raised); padding: var(--space-2) var(--space-4); border-top: 3px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 13px; }
#ebenen summary { cursor: pointer; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-earth); margin: 4px 0 6px; }
#ebenen .gruppe { margin: 6px 0 10px; }
#ebenen .gruppe .label { display: block; margin-bottom: 2px; letter-spacing: 0.2em; font-size: 11px; }
#ebenen label { display: block; margin: 3px 0; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; border: 2px solid transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 6px 20px; font-size: 11px; color: var(--ink-muted); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.link-knopf { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.link-knopf button { padding: 7px 10px; border: 1px solid var(--tanne); background: var(--tanne); color: var(--papier); cursor: pointer; font: 500 12px/16px var(--font-sans); border-radius: var(--radius-0); }
.link-knopf a { font-size: 12px; color: var(--ink-earth); }
.small { font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.hint { margin: 6px 0 0; }
.maplibregl-popup-content { font: 13px/18px var(--font-sans); color: var(--tanne); max-width: 280px; }
.maplibregl-popup-content h3 { margin: 0 0 4px; font: 600 14px/18px var(--font-sans); }
.maplibregl-popup-content dl { display: grid; grid-template-columns: 100px 1fr; gap: 1px 6px; margin: 0; }
.maplibregl-popup-content dt { color: #666; } .maplibregl-popup-content dd { margin: 0; }
@media (max-width: 760px) {
  .tabs { display: none; } #saison-select { display: block; }
  header .kopf-link { display: none; }   /* Telefon: der Link steht unten im Ebenenkasten */
  #ebenen { width: calc(100% - 24px); max-height: 45%; top: auto; bottom: 8px; }
  #ebenen details:not([open]) { max-height: 32px; }
  .hg { top: 108px; flex-direction: row; flex-wrap: wrap; right: 8px; left: 8px; }
  .hg button { padding: 5px 8px; }
}
.hg-hinweis { max-width: 200px; background: var(--surface-raised); padding: 4px 6px; }
.hg-hinweis:empty { display: none; }
/* Ereignisse laut Luftbild (21.10.2026): Legende mit Umriss, ausgegraut ohne Flug nach der Saison, Erklärzeile im Fenster */
#ereig-legende i { border: 1.5px solid; box-sizing: border-box; }
#ereig-hinweis { margin: 0 0 4px 20px; }
#lb-gruppe.aus label, #lb-gruppe.aus .legend { opacity: 0.45; }
#lb-gruppe.aus label { cursor: not-allowed; }
.maplibregl-popup-content p.ereig-art { margin: 0 0 6px; font-size: 12px; line-height: 16px; color: #555; }
.maplibregl-popup-content p.sat-prozent { margin: 0 0 2px; font-size: 13px; line-height: 17px; }
.maplibregl-popup-content p.sat-prozent b { font-weight: 600; }
.maplibregl-popup-content p.sat-prozent-hinweis { margin: 0 0 6px; }
/* Ereignisse laut Satellit (Kette 2.0, 22.10.2026) */
#sat-legende i { border-radius: 1px; }
#sat-legende i.gestrichelt { background: none; border-top: 2px dashed #777; height: 0; width: 14px; vertical-align: 3px; }
#ebenen label.unter { margin-left: 20px; font-size: 12px; }
#sat-hinweis { margin: 0 0 4px 20px; }
#sat-gruppe.aus label, #sat-gruppe.aus .legend { opacity: 0.45; }
/* Startfenster mit dem Mission Statement (Dirk 30.10.2026) */
.mission { position: fixed; inset: 0; z-index: 20; background: rgba(30, 59, 43, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mission[hidden] { display: none; }
.mission-kasten { width: min(560px, 100%); background: var(--surface-raised); color: var(--ink); border-top: 4px solid var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.35); padding: 24px 28px 22px; }
.mission-eyebrow { margin: 0 0 6px; font: 500 12px var(--font-sans); letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-earth); }
.mission-kasten h1 { font-family: var(--font-display); font-variation-settings: "opsz" 24, "SOFT" 30; font-weight: 700; font-size: 24px; line-height: 30px; margin: 0 0 12px; color: var(--tanne); }
.mission-kasten p { margin: 8px 0; font-size: 15px; line-height: 22px; }
.mission-kasten p.small { font-size: 12px; line-height: 16px; }
.mission-kasten button { margin-top: 12px; padding: 9px 16px; border: 1px solid var(--tanne); background: var(--tanne); color: var(--papier); cursor: pointer; font: 500 14px/18px var(--font-sans); border-radius: var(--radius-0); }
@media (max-width: 760px) { .mission-kasten { padding: 18px 16px; } .mission-kasten h1 { font-size: 20px; line-height: 26px; } }
@media (max-width: 760px) { .maplibregl-popup-content { max-height: 36vh; overflow-y: auto; } }   /* Telefon (23.10.2026): Klickfenster scrollt statt unter dem Ebenenkasten zu liegen; 2.11.: 36 vh, damit Abfalltext, Mini-Grafik und Prozentzeile ohne Scrollen sichtbar sind */
/* Umbau 2.11.2026: Menü je Reiter, Farben nach Schwere, Klickfenster mit Mini-Grafik */
#ebenen summary { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--tanne); }
#menu label { display: block; margin: 4px 0; }
#menu .legend { margin: 0 0 6px 20px; gap: 3px 8px; }
#menu .legend .sw { width: 11px; height: 11px; margin: 0 3px 0 0; vertical-align: -1px; border: 0; }
#menu .legend .sw.umriss { background: none; border: 2px solid #7f0000; width: 9px; height: 9px; }
#menu .legend .sw.umriss.blass { opacity: 0.4; border-width: 1px; }
#menu p.small { margin: 2px 0 6px 20px; }
#menu p.small a { color: var(--ink-earth); }
#menu p.small:empty { display: none; }
#bildpunkt-legende[hidden] { display: none; }
.maplibregl-popup-content { max-width: 340px; }
.maplibregl-popup-content p.abfall { margin: 0 0 4px; font-size: 13px; line-height: 17px; font-weight: 600; }
.maplibregl-popup-content svg.mini { display: block; width: 100%; height: auto; margin: 2px 0 0; }
.maplibregl-popup-content p.mini-text { margin: 0 0 6px; }

/* Ort eingeben (Plan-Doc 2, B1, 3.11.2026) */
.ort-zeile { display: flex; gap: 4px; margin: 8px 0 2px; }
#ort { flex: 1; min-width: 0; font: 13px var(--font-sans); padding: 5px 6px; border: 1px solid var(--rule); border-radius: var(--radius-0); }
#ort-los { padding: 5px 10px; font: 500 13px var(--font-sans); cursor: pointer; }
.ort-status { min-height: 14px; margin: 0 0 6px; }
.maplibregl-marker.ort-marke { cursor: default; }

/* Telefon (3.11.2026, B2): Zoom-, Standort- und Maßstabsknöpfe über dem Ebenenkasten statt darunter; bei zugeklapptem Kasten rutschen sie nach unten */
@media (max-width: 760px) {
  .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: calc(45% + 12px); }
  body.ebenen-zu .maplibregl-ctrl-bottom-right, body.ebenen-zu .maplibregl-ctrl-bottom-left { bottom: 48px; }
}

.sw.rueck { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid #1e3b2b; vertical-align: -2px; margin-left: 4px; }

.unter-titel { margin: 10px 0 2px; }

/* Betriebsansicht (Plan-Doc 2, C1, 3.11.2026) */
#betrieb { margin: 8px 0 4px; } #betrieb summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.betrieb-zeile { display: flex; gap: 4px; margin: 6px 0 2px; } #betrieb-zone { flex: 1; min-width: 0; font: 13px var(--font-sans); padding: 4px; }
#betrieb-gpx, #betrieb-kml { padding: 4px 8px; font: 500 12px var(--font-sans); cursor: pointer; }
.betrieb-tabelle { max-height: 220px; overflow-y: auto; border: 1px solid var(--rule); }
#betrieb-liste { width: 100%; border-collapse: collapse; font-size: 12px; } #betrieb-liste th, #betrieb-liste td { padding: 3px 5px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
#betrieb-liste th { position: sticky; top: 0; background: var(--surface-raised); } #betrieb-liste tr.zeile { cursor: pointer; } #betrieb-liste tr.zeile:hover { background: #f3eee3; }
/* Insider-Ansicht (Dirk 4.11.2026): Betrieb und Rückmeldung vor Ort nur für Eingeweihte (?insider=1, Tastenfolge „insider“) */
html:not(.insider) .nur-insider { display: none !important; }
