/* Astronomie – Polarlicht-Übersicht (Baustein polarlicht), baut auf style.css und fragen.css auf */
.pl { margin: 1.8em 0 2.2em; }
.pl-ort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.pl-ort label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.pl-ort-feld { display: inline-flex; align-items: center; border: 1px solid var(--rule); background: var(--panel); }
.pl-ort-feld:focus-within { border-color: var(--volt); }
.pl-ort-feld input { width: 4.2em; padding: 8px 4px 8px 10px; background: none; border: 0; outline: 0; color: #fff; font: 500 1rem/1 var(--display); text-align: right; }
.pl-ort-feld input.pl-falsch { color: #ff8f7a; }
.pl-ort-feld i { font-style: normal; color: var(--soft); font-size: .82rem; padding-right: 10px; }
.pl-ort button { padding: 7px 12px; background: none; border: 1px solid var(--rule); color: var(--soft); font: 500 .76rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pl-ort button:hover, .pl-ort button:focus-visible { border-color: var(--volt); color: #fff; }
.pl-ort button[hidden] { display: none; }
.pl-ort small { flex: 1 1 100%; color: var(--soft); font-size: .82rem; }
.pl-ampel { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--soft); background: var(--panel); }
.pl-ampel b { display: block; font: 500 1.35rem/1.25 var(--display); color: #fff; }
.pl-ampel span + div span, .pl-ampel div span { display: block; margin-top: 6px; color: var(--soft); font-size: .92rem; line-height: 1.5; }
.pl-punkt { flex: none; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; background: var(--soft); }
.pl-s1 { border-left-color: #8a97ab; } .pl-s1 .pl-punkt { background: #8a97ab; }
.pl-s2 { border-left-color: #ffc24a; } .pl-s2 .pl-punkt { background: #ffc24a; box-shadow: 0 0 14px rgba(255, 194, 74, .7); }
.pl-s3 { border-left-color: #5fe08a; } .pl-s3 .pl-punkt { background: #5fe08a; box-shadow: 0 0 16px rgba(95, 224, 138, .8); }
.pl-s4 { border-left-color: #5fe08a; } .pl-s4 .pl-punkt { background: #5fe08a; box-shadow: 0 0 22px rgba(95, 224, 138, 1); }
.pl-jetzt { margin: 10px 0 0; padding: 12px 16px; border: 1px solid #5fe08a; color: #fff; font-size: .95rem; }
.pl-jetzt[hidden] { display: none; }
.kb .pl-kacheln { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.kb .pl-kacheln li { position: relative; margin: 0; padding: 14px 16px 46px; background: var(--panel); min-width: 0; }
.pl-kacheln li#pl-k-kp { padding-bottom: 14px; }
.pl-kacheln span { display: block; color: var(--soft); font-size: .8rem; }
.pl-kacheln strong { display: block; margin-top: 4px; font: 400 1.45rem/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-kacheln small { display: block; margin-top: 4px; color: var(--soft); font-size: .78rem; line-height: 1.35; }
.pl-kacheln li.pl-auf strong { color: #5fe08a; text-shadow: 0 0 18px rgba(95, 224, 138, .5); }
.pl-kacheln li.pl-auf strong::after { content: 'günstig'; margin-left: 8px; font: 500 .66rem/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; text-shadow: none; }
.pl-spur { position: absolute; left: 16px; right: 16px; bottom: 8px; width: calc(100% - 32px); height: 34px; overflow: visible; }
.pl-spur .pl-linie { fill: none; stroke: #9fd4ff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pl-spur .pl-schwelle { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pl-bild { margin: 30px 0 0; }
.pl-bild figcaption { color: var(--ink); font: 500 1rem/1.3 var(--display); letter-spacing: .04em; margin-bottom: 12px; }
.pl-bild figcaption small { display: block; margin-top: 4px; color: var(--soft); font: .85rem/1.45 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; }
.pl-box { position: relative; }
#pl-kp { display: block; width: 100%; height: auto; overflow: visible; }
#pl-kp text { fill: var(--soft); font: 12px "Segoe UI", system-ui, sans-serif; }
#pl-kp .grid { stroke: var(--rule); stroke-width: 1; }
#pl-kp .pl-nacht { fill: rgba(159, 212, 255, .07); }
#pl-kp .pl-bal { fill: #9fd4ff; }
#pl-kp .pl-bal.pl-moeglich { fill: #ffc24a; }
#pl-kp .pl-bal.pl-gut { fill: #5fe08a; }
#pl-kp .pl-bal.pl-prog { opacity: .5; }
#pl-kp .pl-marke { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 5 4; }
#pl-kp .pl-marke-t { fill: var(--ink); font-size: 11.5px; }
#pl-kp .pl-nun { stroke: #fff; stroke-width: 1; opacity: .7; }
#pl-kp .pl-nun-t { fill: #fff; font-size: 11.5px; }
#pl-kp .pl-hit { fill: transparent; }
#pl-kp .pl-hit:hover { fill: rgba(159, 212, 255, .08); }
.pl-tip { position: absolute; z-index: 3; pointer-events: none; background: #0d1322; border: 1px solid var(--volt); padding: 8px 12px; font-size: .85rem; line-height: 1.45; color: var(--text); white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.pl-tip b { color: #fff; }
.pl-karte-box { border: 1px solid var(--rule); background: #070b14; max-width: 700px; }
#pl-karte { display: block; width: 100%; height: auto; }
.pl-karte-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; max-width: 700px; }
.pl-karte-leiste button { padding: 8px 14px; background: none; border: 1px solid var(--volt); color: #fff; font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.pl-karte-leiste button:hover, .pl-karte-leiste button:focus-visible { background: rgba(159, 212, 255, .1); }
.pl-karte-leiste input { flex: 1 1 100%; margin: 0; accent-color: #9fd4ff; }
.pl-karte-skala { flex: 1 1 100%; display: flex; justify-content: space-between; margin-top: -6px; color: var(--soft); font-size: .78rem; }
.pl-karte-skala i { font-style: normal; }
.pl-karte-wahl { display: flex; }
.pl-karte-wahl button + button { border-left: 0; }
.pl-karte-leiste .pl-karte-wahl button { border-color: var(--rule); color: var(--soft); }
.pl-karte-leiste .pl-karte-wahl button[aria-pressed="true"] { border-color: var(--volt); color: #fff; background: rgba(159, 212, 255, .14); }
.pl-karte-leiste span { flex: 1 1 100%; color: var(--soft); font-size: .86rem; }
.pl-details { margin-top: 14px; border-top: 1px solid var(--rule); }
.pl-details summary { cursor: pointer; padding: 12px 0; color: var(--ink); font: 500 .95rem/1 var(--display); letter-spacing: .08em; }
.kb .pl-details table { width: 100%; margin-bottom: 0; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.pl-details th, .pl-details td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); }
.pl-details .pl-tag th { color: var(--ink); padding-top: 14px; }
.pl-quelle { margin-top: 14px; color: var(--soft); font-size: .85rem; }
.pl-info { width: 1.5em; height: 1.5em; margin-left: 4px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--soft); font: 600 .72rem/1 var(--display); cursor: pointer; vertical-align: middle; }
.pl-info:hover, .pl-info:focus-visible, .pl-info[aria-expanded="true"] { border-color: var(--volt); color: #fff; }
.pl-hilfe { position: absolute; z-index: 4; left: -1px; top: 100%; width: min(320px, 86vw); padding: 12px 14px; background: #0d1322; border: 1px solid var(--volt); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); color: var(--text); font-size: .86rem; line-height: 1.5; }
.pl-hilfe[hidden] { display: none; }
.pl-hilfe a { white-space: nowrap; }
.pl-kacheln li:nth-child(n+3) .pl-hilfe { left: auto; right: -1px; }
@media (max-width: 760px) { .pl-kacheln { grid-template-columns: 1fr 1fr; } .pl-kacheln li:nth-child(odd) .pl-hilfe { left: -1px; right: auto; } .pl-kacheln li:nth-child(even) .pl-hilfe { left: auto; right: -1px; } }
@media (max-width: 520px) { #pl-kp text { font-size: 17px; } #pl-kp .pl-marke-t, #pl-kp .pl-nun-t { font-size: 16px; } }

/* Benachrichtigung per Mail */
.pl-abo { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--rule); background: var(--panel); }
.kb .pl-abo h3 { margin: 0 0 8px; }
.pl-abo p { margin: 0 0 12px; }
.pl-abo-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.pl-abo-zeile label { flex: 1 1 100%; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.pl-abo-zeile input { flex: 1 1 16em; min-width: 0; padding: 7px 12px; background: var(--bg, #0b0d12); border: 1px solid var(--rule); color: #fff; font: inherit; }
.pl-abo-zeile input:focus { outline: 0; border-color: var(--volt); }
.pl-abo-zeile button, .pl-abo-knopf { padding: 8px 14px; background: none; border: 1px solid var(--volt); color: #fff; font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.pl-abo-zeile button:hover, .pl-abo-zeile button:focus-visible, .pl-abo-knopf:hover, .pl-abo-knopf:focus-visible { background: rgba(159, 212, 255, .1); }
.pl-abo-zeile button.pl-abo-ab { border-color: var(--rule); color: var(--soft); }
.pl-abo-zeile button.pl-abo-ab:hover, .pl-abo-zeile button.pl-abo-ab:focus-visible { border-color: var(--volt); color: #fff; }
.pl-abo-zeile button:disabled { opacity: .5; cursor: default; }
.pl-abo .pl-abo-hinweis { color: var(--soft); font-size: .82rem; }
.pl-abo .pl-abo-meldung { margin: 0; padding: 10px 12px; border-left: 3px solid var(--volt); }
.pl-abo .pl-abo-meldung.pl-falsch { border-left-color: #ff8f7a; color: #ff8f7a; }
.pl-abo-meldung[hidden] { display: none; }
/* Lichtverschmutzungskarte */
.lk-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.lk-leiste button, .lk-unten button { padding: 8px 14px; background: none; border: 1px solid var(--volt); color: #fff; font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.lk-leiste button:hover, .lk-leiste button:focus-visible, .lk-unten button:hover, .lk-unten button:focus-visible { background: rgba(159, 212, 255, .1); }
.lk-leiste button:disabled { border-color: var(--rule); color: var(--soft); opacity: .55; cursor: default; background: none; }
.lk-leiste .pl-karte-wahl button { border-color: var(--rule); color: var(--soft); }
.lk-leiste .pl-karte-wahl button[aria-pressed="true"] { border-color: var(--volt); color: #fff; background: rgba(159, 212, 255, .14); }
.lk-box { border: 1px solid var(--rule); background: #05070c; }
#lk-bild { display: block; width: 100%; height: 600px; cursor: grab; touch-action: none; }
#lk-bild:active { cursor: grabbing; }
#lk-bild:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.lk-unten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.kb .lk-unten p { margin: 0; flex: 1 1 20em; }
.lk-unten button[hidden] { display: none; }
.lk-skala { margin: 14px 0 0; }
#lk-legende { display: block; max-width: 100%; height: auto; }
.lk-skala figcaption { color: var(--soft); font-size: .82rem; margin-top: 4px; }
/* Heute Nacht */
.hn-kopf { margin-bottom: 12px; }
.hn-kopf .pl-karte-wahl button { padding: 8px 14px; background: none; border: 1px solid var(--rule); color: var(--soft); font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.hn-kopf .pl-karte-wahl button:hover, .hn-kopf .pl-karte-wahl button:focus-visible { background: rgba(159, 212, 255, .1); }
.hn-kopf .pl-karte-wahl button[aria-pressed="true"] { border-color: var(--volt); color: #fff; background: rgba(159, 212, 255, .14); }
.kb .hn-kacheln { grid-template-columns: repeat(4, 1fr); }
.kb .hn-kacheln li { padding-bottom: 14px; }
.hn-kacheln strong { white-space: normal; }
.hn-leiste { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--panel); overflow-x: auto; }
.hn-zeile { display: flex; align-items: stretch; gap: 2px; margin-bottom: 2px; min-width: 520px; }
.hn-titel { flex: 0 0 4.6em; color: var(--soft); font-size: .78rem; line-height: 22px; }
.hn-zelle { flex: 1 1 0; min-width: 0; height: 22px; background: #141b2b; color: #05070c; font: 600 .7rem/22px "Segoe UI", system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.hn-uhr { background: none; color: var(--soft); font-weight: 400; border-bottom: 2px solid transparent; }
.hn-uhr.hn-gut { color: #5fe08a; border-bottom-color: #5fe08a; }
.hn-d0 { background: #7fa4d6; } .hn-d1 { background: #3d5f96; } .hn-d2 { background: #17284a; } .hn-d3 { background: #060a14; box-shadow: inset 0 0 0 1px #1f2c47; }
.hn-m0 { background: #0b111e; box-shadow: inset 0 0 0 1px #1f2c47; } .hn-m1 { background: #6b6a52; } .hn-m2 { background: #ffe9a3; }
.hn-w { background: none; box-shadow: inset 0 0 0 1px #1f2c47; } .hn-w0 { background: #5fe08a; } .hn-w1 { background: #c9b458; } .hn-w2 { background: #8a97ab; }
.kb .hn-legende { margin: 8px 0 0; color: var(--soft); font-size: .78rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hn-legende .hn-zelle { flex: 0 0 14px; height: 14px; margin-left: 8px; }
.hn-legende .hn-zelle:first-child { margin-left: 0; }
@media (max-width: 760px) { .kb .hn-kacheln { grid-template-columns: 1fr 1fr; } }
/* Fragezeichen außerhalb der Kacheln */
.pl-hat-hilfe { position: relative; display: inline-block; }
.pl-hat-hilfe .pl-hilfe { left: auto; right: -1px; top: calc(100% + 6px); text-align: left; }
.lk-unten .pl-hat-hilfe .pl-info { margin-left: 0; }
.hn-kacheln li:nth-child(n+3) .pl-hilfe { left: auto; right: -1px; }
@media (max-width: 760px) { .hn-kacheln li:nth-child(odd) .pl-hilfe { left: -1px; right: auto; } .hn-kacheln li:nth-child(even) .pl-hilfe { left: auto; right: -1px; } }
/* Heute Nacht: Standort wählen */
.hn-ort strong { font: 500 1.05rem/1.2 var(--display); color: #fff; margin-right: 6px; }
.hn-suchrahmen { position: relative; display: inline-block; }
.hn-ort .pl-ort-feld input { width: 13em; text-align: left; padding: 8px 10px; font-size: .92rem; }
.kb .hn-treffer { position: absolute; z-index: 5; left: 0; top: calc(100% + 2px); min-width: 100%; width: max-content; max-width: 86vw; margin: 0; padding: 0; list-style: none; background: #0d1322; border: 1px solid var(--volt); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.kb .hn-treffer[hidden] { display: none; }
.kb .hn-treffer li { margin: 0; }
.hn-ort .hn-treffer button { display: block; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); font: 400 .9rem/1.3 inherit; letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; }
.hn-ort .hn-treffer button:hover, .hn-ort .hn-treffer button:focus-visible { background: rgba(159, 212, 255, .14); color: #fff; outline: 0; }
.hn-treffer .hn-leer { padding: 9px 12px; color: var(--soft); font-size: .86rem; }
.hn-kartenlink { font-size: .86rem; }
/* ISS */
#iss-karte { display: block; width: 100%; height: auto; }
.iss-welt figcaption span { white-space: nowrap; }
.iss-fluege { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 26px; margin-top: 18px; }
.iss-liste { flex: 1 1 380px; min-width: 0; }
.iss-liste .hn-kopf { display: flex; align-items: center; gap: 10px; }
.kb .iss-tab { margin-bottom: 0; }
.kb .iss-tab td:first-child { width: auto; white-space: nowrap; }
.kb .iss-tab td, .kb .iss-tab th { white-space: nowrap; padding: 7px 8px; }
.iss-zeile { cursor: pointer; }
.iss-zeile:hover td, .iss-zeile:focus-visible td { background: rgba(159, 212, 255, .08); color: #fff; }
.iss-zeile:focus-visible { outline: 0; }
.iss-zeile.iss-an td { background: rgba(159, 212, 255, .14); color: #fff; }
.iss-zeile.iss-nicht td { color: var(--soft); }
.iss-himmelbild { flex: 0 0 300px; max-width: 100%; margin: 0; }
#iss-himmel { display: block; width: 300px; max-width: 100%; height: auto; }
.iss-himmelbild figcaption { margin-top: 8px; color: var(--soft); font-size: .86rem; line-height: 1.5; }
#iss-karte { cursor: crosshair; touch-action: pan-y; }
.iss-tip { white-space: normal; width: max-content; max-width: min(300px, 80vw); }
.iss-tip b, .iss-tip span { display: block; }
.kb .iss-legende { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--soft); font-size: .8rem; }
.kb .iss-legende li { margin: 0; display: flex; align-items: center; gap: 7px; }
.iss-legende i { flex: none; display: inline-block; width: 22px; height: 0; }
.iss-l-bahn { border-top: 2px solid rgba(255, 194, 74, .9); }
.iss-l-alt { border-top: 2px solid rgba(255, 194, 74, .35); }
.iss-l-kreis { border-top: 1px dashed rgba(255, 255, 255, .7); }
.iss-legende .iss-l-punkt { width: 10px; height: 10px; border-radius: 50%; background: #ffc24a; box-shadow: 0 0 0 4px rgba(255, 194, 74, .25); margin: 0 6px; }
.iss-legende .iss-l-ort { width: 8px; height: 8px; border-radius: 50%; background: #9fd4ff; margin: 0 7px; }
.iss-legende .iss-l-nacht { width: 22px; height: 12px; background: #04070d; border: 1px solid var(--rule); }
.kb .lk-zurueck { padding: 8px 14px; border: 1px solid var(--rule); color: var(--soft); font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.kb .lk-zurueck:hover, .kb .lk-zurueck:focus-visible { border-color: var(--volt); color: #fff; }
.kb .lk-zurueck.lk-zurueck-an { border-color: var(--volt); color: #fff; background: rgba(159, 212, 255, .14); }
.lk-zurueck[hidden] { display: none; }
