/* Heimatradar – dunkles Fernseher-Design. Keine Inline-Styles (Sicherheitsrichtlinie), alles hier. */
:root {
  --grund: #081119;
  --grund-2: #0d1b26;
  --karte: #122230;
  --karte-2: #1a2f40;
  --linie: #233a4c;
  --text: #eef4f7;
  --gedimmt: #b4c6d1;
  --schwach: #93a9b6;
  --mint: #3cf0b4;
  --mint-hell: #7dffd2;
  --gold: #ffb02e;
  --gelb: #ffd23f;
  --blau: #6cb6ff;
  --radius: 22px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zahl: "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
  /* Bildschirm-Einheiten über Variablen: im TV-Modus wird die Seite als 1920×1080 gebaut und skaliert (siehe unten) */
  --vw: 1vw;
  --vh: 1vh;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse at 50% -10%, #133246 0%, #0a1620 45%, var(--grund) 100%) fixed;
  color: var(--text);
  font: 17px/1.4 var(--schrift);
  -webkit-font-smoothing: antialiased;
  min-height: calc(100 * var(--vh));
}
[hidden] { display: none !important; }
a { color: var(--mint-hell); }
a:hover, a:focus-visible { color: #fff; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.akzent { color: var(--mint); }
.gedimmt { color: var(--gedimmt); }
.klein { font-size: 14px; color: var(--schwach); }
.noscript { padding: 2rem; text-align: center; }

/* Symbole */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.klein-i { width: .95em; height: .95em; }
.wetter-i { width: 52px; height: 52px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wetter-i.gross { width: clamp(64px, calc(6 * var(--vw)), 104px); height: clamp(64px, calc(6 * var(--vw)), 104px); }
/* Wetter-Symbole: eigene Klassennamen ohne Vorfahren-Selektor, sonst greifen sie in <use>-Kopien nicht */
.wi-gelb { stroke: var(--gelb); }
.wi-hell { stroke: #d6e4ec; }
.wi-blau { stroke: var(--blau); }
.wi-fuell { fill: var(--karte); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font: 600 15px var(--schrift); color: var(--text); background: var(--karte-2);
  border: 1px solid var(--linie); border-radius: 999px; cursor: pointer;
}
.knopf:hover { border-color: var(--mint); }
.knopf.an { background: rgba(60, 240, 180, .14); border-color: var(--mint); color: var(--mint-hell); }
.auswahl { min-height: 44px; padding: 6px 12px; font: 600 15px var(--schrift); color: var(--text); background: var(--karte-2); border: 1px solid var(--linie); border-radius: 999px; }
input[type="range"] { accent-color: var(--mint); width: 120px; }

/* ---------- Ortswahl ---------- */
.ortswahl { max-width: 980px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.ortswahl-kopf h1 { font-size: clamp(36px, calc(6 * var(--vw)), 64px); letter-spacing: -0.03em; margin: 12px 0 4px; }
.ortswahl-kopf p { color: var(--gedimmt); font-size: 19px; margin: 0 0 28px; }
.logo-gross { width: 120px; height: 120px; filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .45)); }
.orte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-bottom: 24px; }
.orte button {
  min-height: 72px; padding: 16px 20px; font: 700 20px var(--schrift); color: var(--text); text-align: left;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; transition: transform .15s, border-color .15s;
}
.orte button:hover, .orte button:focus-visible { transform: translateY(-2px); border-color: var(--mint); }
.orte button .i { color: var(--gold); }

/* ---------- Board ---------- */
.board { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 18px; min-height: calc(100 * var(--vh)); }
.kopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.marke { display: flex; align-items: center; gap: 16px; }
.logo { width: clamp(52px, calc(4.4 * var(--vw)), 76px); height: clamp(52px, calc(4.4 * var(--vw)), 76px); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }
.markenname { font-size: clamp(26px, calc(2.4 * var(--vw)), 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ortname { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: clamp(16px, calc(1.3 * var(--vw)), 22px); color: var(--gedimmt); }
.ortname .i { color: var(--gold); }
.uhr { text-align: center; }
.zeit { font: 700 clamp(64px, calc(7 * var(--vw)), 128px)/.9 var(--zahl); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sek { font-size: .36em; color: var(--schwach); margin-left: 4px; letter-spacing: 0; }
.datum { font-size: clamp(17px, calc(1.4 * var(--vw)), 24px); color: var(--gedimmt); font-weight: 500; margin-top: 6px; }
.jetzt { display: flex; align-items: center; justify-content: flex-end; gap: 16px; text-align: right; }
.temp { font: 700 clamp(48px, calc(5 * var(--vw)), 88px)/.9 var(--zahl); letter-spacing: -0.03em; }
.jetzt .gedimmt { font-size: clamp(15px, calc(1.2 * var(--vw)), 20px); margin-top: 6px; }

/* Warnung (Farben nach DWD-Stufen) – dezent: dunkle Leiste, farbiger Rand, Symbol und Titel in Stufenfarbe */
.warnung {
  --w: #ffd23f;
  display: flex; align-items: center; gap: 12px; padding: 5px 16px; border-radius: 12px; line-height: 1.25;
  font-size: clamp(14px, calc(1 * var(--vw)), 18px); color: var(--text);
  background: var(--karte);                                     /* Ersatz für ältere Fernseher-Browser */
  border: 1px solid var(--linie); border-left: 6px solid var(--w);
  background: linear-gradient(90deg, color-mix(in srgb, var(--w) 16%, var(--karte)) 0%, var(--karte) 60%);
  border: 1px solid color-mix(in srgb, var(--w) 45%, transparent); border-left: 6px solid var(--w);
  animation: warnRein .5s ease both;
}
.warnung.stufe-2 { --w: #ffa02e; }
.warnung.stufe-3 { --w: #ff5a5f; }
.warnung.stufe-4 { --w: #d66bd0; }
.warnung .i { width: 1.25em; height: 1.25em; color: var(--w); }
.warn-text { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; min-width: 0; }
.warn-text strong { color: var(--w); }
.warn-text span { font-weight: 500; color: var(--gedimmt); }
.warn-mehr { font-size: .8em; font-weight: 700; color: var(--w); border: 1px solid color-mix(in srgb, var(--w) 60%, transparent);
             padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.warn-mehr:empty { display: none; }
.warn-link { margin-left: auto; color: var(--gedimmt); font-size: .8em; font-weight: 600; white-space: nowrap; }
@keyframes warnRein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Raster */
.raster { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr .95fr; gap: 20px; min-height: 0; }
.spalte { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.karte {
  background: linear-gradient(180deg, var(--karte) 0%, #0f1d29 100%);
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px; min-height: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: karteRein .6s cubic-bezier(.2, .8, .3, 1) both;
}
.raster > :nth-child(2) { animation-delay: .08s; } .raster > :nth-child(3) { animation-delay: .16s; }
@keyframes karteRein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fd9c0; }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); font-size: clamp(16px, calc(1.35 * var(--vw)), 22px); }
.liste li:first-child { border-top: 0; }
.liste .wert { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.hinweis { margin: 0; font-size: 14px; color: var(--schwach); }

/* Müll */
.muell { border-color: var(--art, var(--linie)); }
.muell-gross { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.muell .liste li { flex-wrap: wrap; gap: 4px 14px; }                 /* „Danach: …“ bricht auf schmalen Bildschirmen sauber um */
.muell-gross > div:last-child { flex: 1 1 210px; min-width: 0; }
.tonnen { display: flex; gap: 8px; flex-shrink: 0; }
.tonne { width: clamp(48px, calc(3.9 * var(--vw)), 72px); height: clamp(48px, calc(3.9 * var(--vw)), 72px); border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--art, var(--karte-2)); color: var(--art-text, #10202b); }
.tonne svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muell-wann { font-size: clamp(18px, calc(1.6 * var(--vw)), 26px); font-weight: 700; color: var(--art, var(--gedimmt)); }
.muell-titel.lang { font-size: clamp(24px, calc(2.2 * var(--vw)), 40px); }
.muell-titel { font-size: clamp(30px, calc(3 * var(--vw)), 54px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.muell.dringend .tonne { animation: tonnePuls 2.4s ease-in-out infinite; }
@keyframes tonnePuls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); } 50% { box-shadow: 0 0 0 12px rgba(255, 210, 63, .18), 0 0 40px rgba(255, 210, 63, .35); } }
.art-gelb   { --art: #ffd23f; --art-text: #3a2d00; }
.art-rest   { --art: #a9b4bb; --art-text: #11181d; }
.art-bio    { --art: #b98a52; --art-text: #23150a; }
.art-papier { --art: #4f9dff; --art-text: #061b33; }
.art-sonder { --art: #ff8a3d; --art-text: #2b1300; }
.mini-tonnen { display: inline-flex; gap: 5px; }
.mini-tonne { width: 1.35em; height: 1.35em; border-radius: 6px; display: inline-grid; place-items: center; background: var(--art); color: var(--art-text); }
.mini-tonne svg { width: 72%; height: 72%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.punkt-art { width: 14px; height: 14px; border-radius: 50%; background: var(--art); display: inline-block; }
.beispiel { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #3a2f12; color: var(--gelb); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

/* Wetter */
.wetter { overflow: hidden; }
.tage { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.tag { background: var(--karte-2); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.tag.heute { outline: 2px solid rgba(60, 240, 180, .5); }
.tag-name { font-size: clamp(15px, calc(1.25 * var(--vw)), 21px); font-weight: 700; }
.tag-max { font: 700 clamp(22px, calc(1.9 * var(--vw)), 32px) var(--zahl); }
.tag-min { font-size: clamp(14px, calc(1.1 * var(--vw)), 18px); color: var(--gedimmt); }
.tag-regen { font-size: clamp(13px, calc(1 * var(--vw)), 16px); color: var(--blau); font-weight: 600; }
.tag .wetter-i { animation: schweben 6s ease-in-out infinite; }
.tag:nth-child(2) .wetter-i { animation-delay: -1.2s; } .tag:nth-child(3) .wetter-i { animation-delay: -2.4s; }
.tag:nth-child(4) .wetter-i { animation-delay: -3.6s; } .tag:nth-child(5) .wetter-i { animation-delay: -4.8s; }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Kalender */
.zaehler { display: flex; align-items: center; gap: 16px; font-size: clamp(16px, calc(1.35 * var(--vw)), 22px); }
.zahl { font: 700 clamp(40px, calc(3.6 * var(--vw)), 64px)/1 var(--zahl); color: var(--gelb); min-width: 1.6em; text-align: center; }
.zaehler.feiertag-zaehler .zahl { color: var(--mint); }

/* Sonne & Mond */
.himmel-zeilen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: clamp(17px, calc(1.4 * var(--vw)), 23px); font-weight: 600; }
.himmel-zeilen > div { display: flex; align-items: center; gap: 10px; }
.himmel-zeilen .i { color: var(--gold); width: 1.4em; height: 1.4em; }
.mond-zeile { grid-column: 1 / -1; }
.mond { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #f1ead2; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 18px rgba(241, 234, 210, .35); }
.mond-schatten { position: absolute; inset: 0; border-radius: 50%; background: #0d1b26; transform: translateX(var(--mond-x, 0%)); }

/* Fuß */
.fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 14px; color: var(--schwach); }
.musik { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fuss-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.recht a { color: var(--gedimmt); }

/* ---------- Sonne & Mond im Kalender ---------- */
.himmel-block { border-top: 1px solid var(--linie); padding-top: 12px; }
.himmel-block .himmel-zeilen { font-size: clamp(15px, calc(1.15 * var(--vw)), 20px); gap: 8px 18px; }

/* Kein Element darf das Raster breiter machen als den Bildschirm */
.raster > *, .spalte > .karte { min-width: 0; }
.himmel-block .himmel-zeilen > div { min-width: 0; }

/* ---------- Frost & Pollen (Zusatzzeile im Wetter) ---------- */
.wetter-zusatz { display: flex; flex-wrap: wrap; gap: 8px; }
.zusatz { display: inline-block; line-height: 1.35; padding: 6px 14px; border-radius: 999px; font-weight: 600;
          font-size: clamp(14px, calc(1.05 * var(--vw)), 19px); background: var(--karte-2); color: var(--text); }
.zusatz.frost { background: rgba(108, 182, 255, .16); color: #bfe0ff; box-shadow: inset 0 0 0 1px rgba(108, 182, 255, .45); }
.zusatz.bodenfrost { background: rgba(108, 182, 255, .08); color: #bfe0ff; }
.zusatz.pollen { background: rgba(180, 220, 90, .12); color: #d9f2a6; }
.zusatz b { font-weight: 800; }
.zusatz.pollen.ruhig { background: transparent; color: var(--schwach); font-weight: 500; padding-left: 4px; }

/* ---------- Wichtige Nummern ---------- */
.nummern .liste li { font-size: clamp(14px, calc(1.15 * var(--vw)), 20px); padding: 8px 0; align-items: baseline; }
.nummern .wert { white-space: nowrap; }

/* ---------- Spritpreise ---------- */
.sprit-tabelle { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.sprit-kopf, .sprit-zeile { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 4.6em); gap: 8px; align-items: baseline; }
.sprit-kopf { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--schwach); padding-bottom: 4px; }
.sprit-kopf span:not(:first-child), .sprit-zeile .p { text-align: right; }
.sprit-zeile { padding: 5px 0; border-top: 1px solid var(--linie); font-size: clamp(15px, calc(1.2 * var(--vw)), 21px); }
.sprit-zeile .tank { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.sprit-zeile .tank small { display: block; font-weight: 500; font-size: .72em; color: var(--gedimmt); }
.sprit-zeile .p { font-weight: 700; }
.sprit-zeile .p sup { font-size: .6em; margin-left: 1px; }
.sprit-zeile .p.leer { color: var(--schwach); font-weight: 500; }
.sprit-zeile .p.billig { color: var(--mint); }
.sprit-zeile .p.sortiert { text-decoration: underline; text-decoration-color: rgba(60, 240, 180, .35); text-underline-offset: 4px; }
.sprit-quelle { margin: 4px 0 0; font-size: 12px; color: var(--schwach); }
.sprit-quelle a { color: var(--gedimmt); }
.sprit-demo { color: var(--gold); font-weight: 700; }

/* ---------- Schulferien ---------- */
.ferien-block { border-top: 1px solid var(--linie); padding-top: 12px; }
.unterlabel { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--schwach); margin-bottom: 6px; }
.ferien-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ferien-liste li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; font-size: clamp(15px, calc(1.15 * var(--vw)), 20px); }
.ferien-liste .f-name { font-weight: 700; }
.ferien-liste .f-zeit { color: var(--gedimmt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ferien-liste .f-bis { font-size: .85em; font-weight: 700; color: var(--blau); min-width: 5.5em; text-align: right; }
.ferien-liste li.laufend .f-name, .ferien-liste li.laufend .f-bis { color: var(--mint); }
.feiertag-hinweis { display: block; font-size: .8em; color: var(--schwach); }

/* ---------- Veranstaltungen ---------- */
.ver-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.ver-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--gedimmt);
          font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; }
.ver-qr img { width: clamp(80px, calc(5 * var(--vw)), 100px); height: auto; border-radius: 10px; background: #fff; padding: 5px; }
.ver-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ver-liste li { flex-shrink: 0; }
.ver-liste li > a, .ver-liste li > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.ver-tag { width: 86px; padding: 6px 4px; border-radius: 12px; background: var(--karte-2); text-align: center; line-height: 1.1; }
.ver-tag b { display: block; font: 700 clamp(18px, calc(1.35 * var(--vw)), 26px) var(--zahl); }
.ver-tag span { font-size: 13px; color: var(--gedimmt); text-transform: uppercase; letter-spacing: .06em; }
.ver-tag.ist-heute b { font-size: clamp(15px, calc(1.05 * var(--vw)), 20px); }
.ver-tag.ist-heute { background: rgba(60, 240, 180, .16); color: var(--mint-hell); }
.ver-titel { font-weight: 700; font-size: clamp(16px, calc(1.3 * var(--vw)), 23px); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-info { color: var(--gedimmt); font-size: clamp(13px, calc(1 * var(--vw)), 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-text { min-width: 0; }
.ver-liste li.eigen .ver-tag { background: rgba(255, 176, 46, .18); color: var(--gold); }
.ver-ort { margin-top: 1px; }
.ver-liste li.eigen .ver-info { color: var(--gold); }
.ver-liste a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 12px; }

/* ---------- Handy / schmale Bildschirme ---------- */
/* Hochformat/Tablet bis 1100 px – Fernseher im Querformat (auch 960×540) behalten das TV-Raster */
@media (max-width: 1100px) and (max-aspect-ratio: 3/2), (max-width: 1100px) and (max-height: 499px) {
  .raster { grid-template-columns: 1fr 1fr; }
  .spalte { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .spalte.spalte-mitte, .spalte.spalte-links { grid-column: auto; display: flex; }
}
@media (max-width: 720px) {
  .board { padding: 12px 12px; gap: 10px; }
  /* Kopf: Name links, Gradzahl mit Wettersymbol oben rechts, darunter die Uhr */
  .kopf { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .marke { grid-column: 1; grid-row: 1; gap: 10px; }
  .logo { width: 40px; height: 40px; }
  .markenname { font-size: 24px; }
  .ortname { font-size: 14px; margin-top: 3px; }
  .jetzt { grid-column: 2; grid-row: 1; gap: 8px; justify-content: flex-end; text-align: right; }
  .jetzt .wetter-i.gross { width: 40px; height: 40px; }
  .temp { font-size: 38px; }
  .jetzt .gedimmt { font-size: 12px; margin-top: 2px; max-width: 9em; line-height: 1.2; }
  .uhr { grid-column: 1 / -1; grid-row: 2; text-align: left; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .zeit { font-size: 46px; }
  .datum { font-size: 14px; margin-top: 0; }
  .karte { padding: 14px 16px; gap: 12px; }
  .warnung { padding: 4px 12px; font-size: 13px; gap: 8px; }
  .raster { grid-template-columns: 1fr; gap: 12px; }
  .spalte { display: flex; gap: 12px; }
  .ver-inhalt { grid-template-columns: 1fr; }
  .ver-qr { flex-direction: row; justify-content: center; gap: 14px; text-align: left; }
  .tage { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .tag { padding: 10px 2px; }
  .tag .wetter-i { width: 40px; height: 40px; }
  .warnung { flex-wrap: wrap; }
  .warn-link { margin-left: 0; font-size: 11px; }
}
/* Fernseher/große Bildschirme: alles auf einen Blick, nichts scrollt */
@media (min-width: 900px) and (min-height: 500px) and (min-aspect-ratio: 3/2) {
  body.board-aktiv { height: calc(100 * var(--vh)); overflow: hidden; }
  .board { height: calc(100 * var(--vh)); }
  /* Platz nutzen: Tageskarten und Müll-Liste füllen die Höhe */
  .tag { justify-content: space-evenly; padding: 18px 6px; }
  .tag .wetter-i { width: clamp(52px, calc(4.6 * var(--vw)), 92px); height: clamp(52px, calc(4.6 * var(--vw)), 92px); }
  .tag-name { font-size: clamp(16px, calc(1.45 * var(--vw)), 26px); }
  .tag-max { font-size: clamp(24px, calc(2.5 * var(--vw)), 46px); }
  .tag-min { font-size: clamp(15px, calc(1.3 * var(--vw)), 24px); }
  .tag-regen { font-size: clamp(13px, calc(1.1 * var(--vw)), 19px); }
  .muell .liste li { font-size: clamp(16px, calc(1.45 * var(--vw)), 25px); padding: 12px 0; }
  .spalte-links .kalender { flex: 1; }
  .spalte-rechts > .karte { flex: 1; justify-content: center; }
  .spalte-rechts > .sprit { flex: none; justify-content: flex-start; }
}

/* ---------- Fernseher: kleine Schrift größer, damit sie aus dem Sitzabstand lesbar bleibt ----------
   Die Fläche ist 2240 px breit; 1 px dort ≈ 0,86 px auf einem Full-HD-Fernseher. Nur auf dem Fernseher (html.tv-skala), Handy bleibt unverändert. */
html.tv-skala .label { font-size: 21px; }
html.tv-skala .unterlabel { font-size: 19px; }
html.tv-skala .hinweis, html.tv-skala .klein { font-size: 21px; }
html.tv-skala .fuss { font-size: 21px; }
html.tv-skala .fuss .knopf, html.tv-skala .fuss .auswahl { font-size: 21px; }
html.tv-skala .ver-tag span, html.tv-skala .ver-qr { font-size: 19px; }
html.tv-skala .ver-info, html.tv-skala .tag-regen, html.tv-skala .zusatz { font-size: 21px; }
html.tv-skala .radio-zeitleiste, html.tv-skala .radio-naechste-kopf, html.tv-skala .radio-status { font-size: 20px; }
html.tv-skala .sprit-kopf, html.tv-skala .sprit-quelle { font-size: 18px; }
html.tv-skala .warn-link { font-size: 19px; }
/* Die größere Fußzeile braucht Platz: oben und unten etwas weniger Rand */
html.tv-skala .board { padding: 18px 28px 12px; gap: 14px; }

/* ================= Premium-Look =================
   Tonale Glas-Karten mit eigener Akzentfarbe, Kantenlicht, ruhiges Farbleuchten im Hintergrund, Verlaufs-Typografie.
   Nur Farbverläufe und Schatten (kein backdrop-filter), damit es auch auf älteren Fernsehern flüssig bleibt. */
body::before { content: ""; position: fixed; inset: -12%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 14% 8%, rgba(60, 240, 180, .12), transparent 70%),
    radial-gradient(40% 46% at 88% 14%, rgba(108, 182, 255, .15), transparent 70%),
    radial-gradient(46% 40% at 62% 104%, rgba(255, 150, 60, .10), transparent 70%);
  animation: leuchten 60s ease-in-out infinite alternate; }
@keyframes leuchten { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }

.karte { --akzent-rgb: 60, 240, 180;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(var(--akzent-rgb), .14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(27, 49, 67, .88) 0%, rgba(13, 27, 38, .93) 100%);
  border: 1px solid rgba(255, 255, 255, .075); border-top-color: rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 26px 50px -20px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .25); }
.karte.wetter { --akzent-rgb: 108, 182, 255; }
.karte.termine { --akzent-rgb: 255, 176, 46; }
.karte.nummern { --akzent-rgb: 255, 107, 107; }
.karte.muell { --akzent-rgb: 255, 210, 63; border-color: var(--art, rgba(255, 255, 255, .075)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 26px 50px -20px rgba(0, 0, 0, .65), 0 0 70px -26px var(--art, transparent); }
.muell .tonne { box-shadow: 0 0 36px -6px var(--art, transparent), inset 0 2px 0 rgba(255, 255, 255, .35); }

/* Überschriften: Symbol in getönter Plakette */
.label { color: rgba(255, 255, 255, .84); }
.label .i { box-sizing: content-box; width: 1.05em; height: 1.05em; padding: .42em; border-radius: .75em;
  color: rgb(var(--akzent-rgb)); background: rgba(var(--akzent-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), .25); }

/* Uhr und Temperatur mit Verlauf und weichem Leuchten */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .zeit { background: linear-gradient(180deg, #ffffff 25%, #a6d3e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 26px rgba(60, 240, 180, .24)); }
  .zeit .sek { -webkit-text-fill-color: var(--mint); color: var(--mint); }
  .temp { background: linear-gradient(180deg, #ffffff 20%, #ffd9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 22px rgba(255, 176, 46, .22)); }
  .feiertag-zaehler .zahl { background: linear-gradient(180deg, #8dffd9, #1fd29a); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(60, 240, 180, .35)); }
}

/* Tageskarten: Glas, heutiger Tag leuchtet, Temperaturspanne als Balken */
.tag { background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .06); }
.tag.heute { outline: 0; border-color: rgba(60, 240, 180, .6);
  background: linear-gradient(172deg, rgba(60, 240, 180, .26), rgba(60, 240, 180, .05));
  box-shadow: 0 0 46px -10px rgba(60, 240, 180, .5), inset 0 1px 0 rgba(255, 255, 255, .14); }
.tag-spanne { position: relative; width: 62%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; flex-shrink: 0; }
.tag-spanne-balken { position: absolute; top: 0; bottom: 0; left: calc(var(--von, 0) * 1%); right: calc((100 - var(--bis, 100)) * 1%); border-radius: 3px;
  background: linear-gradient(90deg, #6cb6ff, #ffd23f 62%, #ff9a3c); }

/* Veranstaltungs-Datum als Glas-Plakette */
.ver-tag { background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .08); }
.ver-liste li.eigen .ver-tag { background: linear-gradient(180deg, rgba(255, 176, 46, .28), rgba(255, 176, 46, .1)); border-color: rgba(255, 176, 46, .4); }
.ver-tag.ist-heute { background: linear-gradient(180deg, rgba(60, 240, 180, .3), rgba(60, 240, 180, .1)); border-color: rgba(60, 240, 180, .45); }

/* Fernseher: Kalender-Zahl groß als Blickfang, Fußzeile in einer ruhigen Reihe */
html.tv-skala .feiertag-zaehler .zahl { font-size: 104px; }
html.tv-skala .kalender { justify-content: space-between; }
html.tv-skala .fuss { flex-wrap: nowrap; }
html.tv-skala .fuss-rechts { flex: 1; flex-wrap: nowrap; align-items: center; gap: 6px 22px; }
html.tv-skala .quellen { flex: 1 1 0; min-width: 0; line-height: 1.3; }
html.tv-skala .recht { white-space: nowrap; }
html.tv-skala .fuss .knopf { flex: none; }

/* ---------- Alle Termine (Müll + Schadstoffmobil): Knopf im Müll-Band und große Ansicht ---------- */
.karte.muell { cursor: pointer; }
.muell-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.muell-auf { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent;
  padding: 5px 14px; border-radius: 999px; font: 700 14px var(--schrift); color: var(--text);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.muell-auf::after { content: " ›"; color: var(--mint); }
.muell-auf:hover { border-color: var(--mint); background: rgba(60, 240, 180, .14); }
.muell-auf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-color: var(--mint); background: rgba(60, 240, 180, .18); }

.dialog { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px; background: rgba(3, 9, 15, .78); animation: dialogRein .25s ease both; }
@keyframes dialogRein { from { opacity: 0; } to { opacity: 1; } }
.dialog-karte { width: min(1500px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 24px 26px; border-radius: 26px;
  background: radial-gradient(90% 60% at 0% 0%, rgba(255, 210, 63, .1), transparent 60%), linear-gradient(180deg, rgba(28, 50, 68, .98), rgba(11, 23, 33, .99));
  border: 1px solid rgba(255, 255, 255, .14); border-top-color: rgba(255, 255, 255, .22); box-shadow: 0 40px 100px rgba(0, 0, 0, .65); animation: dialogKarte .3s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes dialogKarte { from { transform: translateY(16px) scale(.98); } to { transform: none; } }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-kopf h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.dialog-zu { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 20px; border-radius: 999px; font: 700 16px var(--schrift); color: #04221a; background: var(--mint); }
.dialog-zu:hover { background: var(--mint-hell); }
.dialog-zu:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.dialog-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dialog-abschnitt { min-width: 0; }
.dialog-abschnitt h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #8fd9c0; }
.dialog-schad-kopf { margin: 0 0 8px; font-weight: 700; color: var(--gold); font-size: 17px; }
.dialog-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dialog-liste li { display: grid; grid-template-columns: minmax(7.5em, auto) auto minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 18px; }
.dialog-liste li:first-child { border-top: 0; }
.dialog-liste .d { display: flex; flex-direction: column; line-height: 1.2; }
.dialog-liste .rel { color: var(--gedimmt); font-size: .8em; }
.dialog-liste .t { font-weight: 700; min-width: 0; }
.dialog-liste.tour li { grid-template-columns: 7.5em minmax(0, 1fr); }
.dialog-liste.tour li b { font-variant-numeric: tabular-nums; }
.dialog-liste.tour li.eigen { color: var(--gold); font-weight: 800; background: rgba(255, 176, 46, .12); border-radius: 12px; padding-left: 12px; padding-right: 12px; margin: 0 -12px; }   /* margin gleicht das Einrücken aus, damit die Zeiten untereinander stehen */
.dialog-liste.tour li.vorbei { opacity: .45; }
.dialog-hinweis { margin: 0; text-align: center; font-size: 14px; color: var(--schwach); }
@media (max-width: 900px) {
  .dialog-spalten { grid-template-columns: 1fr; gap: 20px; }
  .dialog-liste li { font-size: 16px; }
  /* Handy: Datum links, Tonnen rechts, Bezeichnung darunter in voller Breite */
  .dialog-liste:not(.tour) li { grid-template-columns: minmax(0, 1fr) auto; }
  .dialog-liste:not(.tour) li .t { grid-column: 1 / -1; }
  .dialog-liste:not(.tour) li .mini-tonnen { justify-self: end; }
}

/* Fernseher: große Schrift, nichts scrollt */
html.tv-skala .dialog-karte { width: 1800px; padding: 36px 48px; gap: 24px; overflow: hidden; }
html.tv-skala .dialog-kopf h2 { font-size: 40px; }
html.tv-skala .dialog-zu { font-size: 24px; padding: 10px 28px; }
html.tv-skala .dialog-abschnitt h3 { font-size: 22px; margin-bottom: 14px; }
html.tv-skala .dialog-schad-kopf { font-size: 28px; }
html.tv-skala .dialog-liste li { font-size: 30px; padding: 12px 0; }
html.tv-skala .dialog-liste .rel { font-size: 24px; }
html.tv-skala .dialog-liste.tour li { grid-template-columns: 8.5em minmax(0, 1fr); }
html.tv-skala .dialog-hinweis { font-size: 22px; }

/* ---------- Schadstoffmobil: nächster Halt im Müll-Band ---------- */
.muell-rechts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.schadstoff { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 14px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 176, 46, .16), rgba(255, 176, 46, .06)); border: 1px solid rgba(255, 176, 46, .38); }
.schadstoff .i { width: 1.9em; height: 1.9em; color: var(--gold); margin-top: 2px; }
.schadstoff-text { min-width: 0; }
.schadstoff-titel { font-weight: 800; font-size: 16px; color: var(--gold); line-height: 1.25; }
.schadstoff-halte { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.schadstoff-halte li { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 15px; line-height: 1.3; color: var(--text); }
.schadstoff-halte b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.schadstoff.bald { border-color: rgba(255, 176, 46, .85); box-shadow: 0 0 36px -8px rgba(255, 176, 46, .55); }

/* ---------- Fernseher-Umbau: Müll oben breit, Kalender größer, Radio flach, Nummern größer ----------
   Müllabfuhr ist das Wichtigste und liegt als breites Band unter der Warnleiste. Dadurch hat der Kalender die ganze linke Spalte. */
html.tv-skala .karte.muell { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 40px; padding: 16px 30px 18px; flex: none; }
html.tv-skala .muell .muell-kopf { grid-column: 1; grid-row: 1; }
html.tv-skala .muell-auf { font-size: 20px; padding: 6px 18px; }
html.tv-skala .muell .muell-gross { grid-column: 1; grid-row: 2; flex-wrap: nowrap; gap: 26px; }
html.tv-skala .muell .muell-gross > div:last-child { flex: 1 1 auto; }
html.tv-skala .muell .muell-rechts { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; align-items: flex-end; gap: 14px; }
html.tv-skala .schadstoff { padding: 12px 20px; gap: 16px; }
html.tv-skala .schadstoff-titel { font-size: 24px; }
html.tv-skala .schadstoff-halte li { font-size: 24px; }
html.tv-skala .muell .liste li { font-size: 32px; padding: 0; border: 0; justify-content: flex-end; gap: 24px; }
html.tv-skala .muell .hinweis { grid-column: 1 / -1; }
html.tv-skala .tonne { width: 96px; height: 96px; border-radius: 22px; }
html.tv-skala .muell-titel { font-size: 78px; }
html.tv-skala .muell-titel.lang { font-size: 58px; }
html.tv-skala .muell-wann { font-size: 30px; }

/* Kalender: die ganze linke Spalte, Ferien (nur zwei) und Sonne/Mond groß */
html.tv-skala .kalender { gap: 22px; }
html.tv-skala .zaehler { font-size: 29px; }
html.tv-skala .ferien-liste { gap: 12px; }
html.tv-skala .ferien-liste li { font-size: 29px; }
html.tv-skala .ferien-liste .f-bis { font-size: 27px; min-width: 6em; }
html.tv-skala .unterlabel { font-size: 21px; margin-bottom: 10px; }
html.tv-skala .himmel-block .himmel-zeilen { font-size: 29px; gap: 14px 24px; }

/* Wetter etwas kompakter, damit die Veranstaltungen darunter wieder Platz für mehrere Einträge haben */
html.tv-skala .spalte-mitte .wetter { gap: 12px; padding-top: 18px; padding-bottom: 16px; }
html.tv-skala .spalte-mitte .wetter .tag { padding: 8px 6px; gap: 3px; }
html.tv-skala .spalte-mitte .wetter .tag .wetter-i { width: 52px; height: 52px; }
html.tv-skala .spalte-mitte .wetter .tag-max { font-size: 40px; }
html.tv-skala .spalte-mitte .wetter .tag-name { font-size: 24px; }

/* Rechte Spalte: Radio als flaches Band, Nummern bekommen den Rest und werden größer (bleiben aber immer sichtbar) */
html.tv-skala .spalte-rechts > .radio-karte { flex: none; }
html.tv-skala .spalte-rechts > .nummern { flex: 1; justify-content: center; gap: 14px; padding: 22px 28px; }
html.tv-skala .spalte-rechts > .nummern .liste li { font-size: 27px; padding: 12px 0; }
html.tv-skala .radio-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 14px 24px; }
html.tv-skala .radio-inhalt > .label { grid-column: 1; grid-row: 1; }
html.tv-skala .radio-titelblock { grid-column: 1; grid-row: 2; }
html.tv-skala .radio-bedienung { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
html.tv-skala .radio-zeitleiste { grid-column: 1 / -1; grid-row: 3; }
html.tv-skala .radio-inhalt { position: relative; }
html.tv-skala .radio-naechste { grid-column: 1 / -1; grid-row: 4; flex-direction: row; align-items: baseline; gap: 14px; min-width: 0; padding-right: 140px; }   /* rechts bleibt Platz für „Blätter“ */
html.tv-skala .radio-naechste-kopf { white-space: nowrap; flex: none; }
html.tv-skala .radio-naechste-liste { flex-direction: row; min-width: 0; overflow: hidden; }
html.tv-skala .radio-naechste-liste li:nth-child(n+2) { display: none; }           /* kompakt: nur der nächste Titel */
html.tv-skala .radio-zeile { position: absolute; right: 24px; bottom: 12px; }

/* ---------- Nachtmodus: nach Sonnenuntergang sanft gedimmt (app.js, himmelZeigen) ---------- */
/* Eine dunkle, durchsichtige Schicht über der Seite (billiger zu zeichnen als ein Filter, wichtig für ältere Fernseher) */
body::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; background: rgba(2, 8, 16, .32); opacity: 0; transition: opacity 4s ease; }
html.nacht body.board-aktiv::after { opacity: 1; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer; transition: opacity .6s ease; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #12384c 0%, #081723 55%, #03090f 100%); transition: opacity .55s ease; }
.intro.weg { opacity: 0; pointer-events: none; }
.intro.flug::before { opacity: 0; }
.intro-buehne { position: relative; display: flex; flex-direction: column; align-items: center; }
.intro-logo { width: clamp(150px, calc(16 * var(--vw)), 230px); height: clamp(150px, calc(16 * var(--vw)), 230px); position: relative; z-index: 1;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); animation: logoRein .7s cubic-bezier(.2, .9, .3, 1.2) both;
  transition: transform .75s cubic-bezier(.6, 0, .2, 1); }
@keyframes logoRein { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.intro-puls { position: absolute; top: 18%; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: puls 1.6s ease-out .35s 2; }
@keyframes puls { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(48); opacity: 0; } }
.intro .ring { transform-box: view-box; transform-origin: 100px 104px; animation: ringAuf .6s cubic-bezier(.2, .8, .3, 1) both; }
.intro .r1 { animation-delay: .15s; } .intro .r2 { animation-delay: .3s; } .intro .r3 { animation-delay: .45s; }
@keyframes ringAuf { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.intro .strahl { transform-box: view-box; transform-origin: 100px 104px; animation: strahlDreh 1.25s cubic-bezier(.3, .1, .2, 1) .45s both; }
@keyframes strahlDreh { from { transform: rotate(-450deg); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(0); opacity: 1; } }
.intro .punkt { transform-box: fill-box; transform-origin: center; opacity: 0; animation: punkt .9s ease-out both; }
.intro .p1 { animation-delay: .9s; } .intro .p2 { animation-delay: 1.15s; } .intro .p3 { animation-delay: 1s; }
@keyframes punkt { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.8); } 100% { opacity: .4; transform: scale(1); } }
.intro .pin { transform-box: view-box; transform-origin: 130.8px 64.6px; animation: pinPop .6s cubic-bezier(.2, 1.4, .4, 1) 1.6s both; }
@keyframes pinPop { 0% { transform: scale(0) translateY(-20px); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.intro-name { margin-top: 26px; font-size: clamp(40px, calc(5 * var(--vw)), 76px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.intro-name span { display: inline-block; opacity: 0; animation: buchstabe .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.intro-name span.m { color: var(--mint); }
@keyframes buchstabe { from { opacity: 0; transform: translateY(18px) scale(.8); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.intro-ort { margin-top: 10px; font-size: clamp(20px, calc(2 * var(--vw)), 30px); font-weight: 600; color: #ffd166; letter-spacing: .06em; opacity: 0; animation: ortRein .7s ease 2.6s both; }
@keyframes ortRein { from { opacity: 0; transform: translateY(6px); letter-spacing: .3em; } to { opacity: 1; transform: none; letter-spacing: .06em; } }
.intro-skip { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .4); font-size: 14px; opacity: 0; animation: ortRein .6s ease 1s both; }
.intro.flug .intro-name, .intro.flug .intro-ort, .intro.flug .intro-skip, .intro.flug .intro-puls { opacity: 0 !important; transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Fernseher im Querformat: Die Seite wird immer als 2240×1260 gebaut (16:9) und auf den Bildschirm skaliert.
   So sieht sie auf 960×540, 1280×720, 1920×1080 und 4K gleich aus. --skala, --dx und --dy setzt app.js.
   Zahlen hier und in app.js (TV_B, TV_H) müssen zusammenpassen. Alles größer/kleiner: beide Stellen im gleichen Verhältnis ändern. */
html.tv-skala { --vw: 22.4px; --vh: 12.6px; overflow: hidden; height: 100%; background: var(--grund); }
html.tv-skala body { width: 2240px; height: 1260px; min-height: 0; overflow: hidden;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--skala, 1)); transform-origin: 0 0; }
html.tv-skala body.board-aktiv, html.tv-skala .board { height: 1260px; }

/* TV-Modus: Wetter und Veranstaltungen teilen sich die mittlere Spalte; was nicht passt, lässt app.js weg */
@media (min-width: 900px) and (min-height: 500px) and (min-aspect-ratio: 3/2) {
  .spalte-mitte .wetter { flex: 0 0 auto; }
  .spalte-mitte .wetter .tage { flex: none; }
  .spalte-mitte .wetter .tag { padding: 12px 6px; gap: 4px; }
  .spalte-mitte .wetter .tag .wetter-i { width: clamp(44px, calc(3.4 * var(--vw)), 66px); height: clamp(44px, calc(3.4 * var(--vw)), 66px); }
  .spalte-mitte .tag { overflow: hidden; }
  .spalte-mitte .termine { flex: 1; min-height: 0; }
  .ver-inhalt { flex: 1; min-height: 0; }
  .ver-liste { height: 100%; min-height: 0; overflow: hidden; }
}

/* ---------- Dorfaquarium (Kachel mit eingebettetem 3D-Aquarium, Vollbild per Klick) ---------- */
.karte.aquarium { padding: 0; gap: 0; overflow: hidden; aspect-ratio: 16 / 9; min-height: 180px; background: #06182a; }
.aquarium-rahmen { display: block; width: 100%; height: 100%; border: 0; background: #06182a; }
@media (min-width: 900px) and (min-height: 500px) and (min-aspect-ratio: 3/2) {
  /* Fernseher: Aquarium füllt den freien Platz der rechten Spalte, die Nummern rücken kompakt darunter */
  .spalte-rechts > .aquarium { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; justify-content: stretch; }
  .spalte-rechts > .nummern { flex: none; justify-content: flex-start; gap: 8px; padding: 16px 22px; }
  .spalte-rechts > .nummern .liste li { padding: 4px 0; font-size: clamp(14px, calc(1.0 * var(--vw)), 18px); }
}

/* ---------- Musik-Kachel (rechte Spalte): klassischer Player mit Hintergrundbild ---------- */
.radio-karte { position: relative; overflow: hidden; isolation: isolate; padding: 0; }
.radio-bild { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.radio-karte::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 17, 25, .62) 0%, rgba(8, 17, 25, .38) 55%, rgba(8, 17, 25, .55) 100%); }
.radio-inhalt { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.radio-titelblock { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.radio-titel { margin: 0; font-weight: 800; font-size: clamp(18px, calc(1.7 * var(--vw)), 32px); line-height: 1.15; color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-status { margin: 0; font-size: clamp(13px, calc(1 * var(--vw)), 18px); color: var(--gedimmt); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.radio-bedienung { display: flex; align-items: center; justify-content: center; gap: clamp(14px, calc(1.4 * var(--vw)), 28px); }
.radio-taste { all: unset; box-sizing: border-box; display: grid; place-items: center; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent;
  width: clamp(44px, calc(3 * var(--vw)), 58px); aspect-ratio: 1; color: var(--text); background: rgba(10, 22, 32, .55); border: 1px solid var(--linie);
  backdrop-filter: blur(2px); transition: border-color .15s, background .15s; }
.radio-taste .i { width: 46%; height: 46%; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.radio-taste.gross { width: clamp(58px, calc(4.2 * var(--vw)), 80px); background: var(--mint); color: #04221a; border-color: var(--mint); }
.radio-taste:hover { border-color: var(--mint); }
.radio-taste.gross:hover { background: var(--mint-hell); }
.radio-taste:active { transform: translateY(1px); }
.radio-taste:focus-visible { outline: 3px solid var(--gelb); outline-offset: 4px; }
.radio-zeitleiste { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: clamp(12px, calc(.9 * var(--vw)), 16px);
  color: var(--gedimmt); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.radio-balken { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: rgba(255, 255, 255, .18); }
.radio-balken::-webkit-progress-bar { background: rgba(255, 255, 255, .18); border-radius: 4px; }
.radio-balken::-webkit-progress-value { background: var(--mint); border-radius: 4px; }
.radio-balken::-moz-progress-bar { background: var(--mint); border-radius: 4px; }
.radio-naechste { display: flex; flex-direction: column; gap: 6px; }
.radio-naechste-kopf { margin: 0; font-size: clamp(12px, calc(.9 * var(--vw)), 16px); letter-spacing: .14em; text-transform: uppercase; color: var(--gedimmt); font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.radio-naechste-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.radio-naechste-liste li { font-size: clamp(14px, calc(1.1 * var(--vw)), 20px); color: var(--text); padding-left: 1.4em; position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.radio-naechste-liste li::before { content: "♪"; position: absolute; left: 0; color: var(--gold); }
.radio-zeile { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Jahreszeit-Effekt: Blätter (Oktober, November), Schnee (Dezember bis 6. Januar), siehe src/js/radio.js ---------- */
.effekt { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.effekt.wetter-effekt { z-index: 35; }               /* Wetter-Stimmung liegt unter dem Jahreszeit-Effekt (Blätter, Schnee) */
