/* Gestaltung – Farben und Masse laut docs/SPEC.md «Gestaltung». Nachthimmel-dunkel mit Rotlicht-Akzent. */
:root {
  --grund: #0b0d14;
  --flaeche: #141826;
  --flaeche-2: #1b2133;
  --rand: rgba(255, 255, 255, .10);
  --text: #e9ecf3;
  --leise: #a3abc0;
  --akzent: #ff5d4d;
  --akzent-2: #ffb38a;
  --gut: #6fd3a5;
  --achtung: #ffcc4d;
  --info: #9db0d3;
  --rand-stark: rgba(255, 255, 255, .18);
  --breite: 1120px;
  --lesen: 72ch;
  --radius: 10px;
  --abstand: clamp(16px, 4vw, 32px);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bild-filter: none;
  color-scheme: dark;
}
/* Rotlicht-Modus: ganze Seite rot/schwarz, Bilder gedimmt und rot getönt (für draussen am Teleskop) */
html.rotlicht {
  --grund: #000;
  --flaeche: #0d0000;
  --flaeche-2: #160101;
  --rand: rgba(255, 40, 20, .22);
  --rand-stark: rgba(255, 40, 20, .38);
  --text: #ff4632;
  --leise: #b8301f;
  --akzent: #ff2a12;
  --akzent-2: #e0301c;
  --gut: #e0301c;
  --achtung: #ff3a20;
  --info: #c4321f;
  --bild-filter: grayscale(1) brightness(.42) sepia(1) hue-rotate(-50deg) saturate(6);
}
html.rotlicht img, html.rotlicht svg.logo { filter: var(--bild-filter); }
html.rotlicht .held { background-image: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(17px, 1rem + .15vw, 18px);
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin: 1.8em 0 .55em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); margin-top: .3em; letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); }
h3 { font-size: 1.18rem; }
p, ul, ol, dl { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 2em 0; }
code { background: var(--flaeche-2); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--rand-stark); color: var(--leise); }
.leise { color: var(--leise); }
.leer { color: var(--leise); font-style: italic; }
.baufehler { background: #ff0033; color: #fff; padding: 0 .3em; font-weight: 700; }
.etikett { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: .1em .5em; border: 1px solid var(--rand-stark); border-radius: 99px; color: var(--leise); vertical-align: .12em; }
.etikett-gut { color: var(--gut); border-color: currentColor; }

.springen { position: absolute; left: -9999px; top: 0; background: var(--akzent); color: #000; padding: .5em 1em; z-index: 10; }
.springen:focus { left: 8px; top: 8px; }

/* ---------- Kopf ---------- */
.band { background: var(--flaeche-2); border-bottom: 1px solid var(--rand); font-size: .85rem; text-align: center; padding: .4em var(--abstand); }
.band a { color: var(--leise); text-decoration: none; }
.band a:hover { color: var(--akzent-2); }
.kopf { border-bottom: 1px solid var(--rand); background: var(--grund); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .7rem var(--abstand); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.marke { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.08rem; margin-right: auto; }
.marke:hover { color: var(--text); }
.logo { flex: none; }
.menue-knopf, .rotlicht-knopf {
  font: inherit; font-size: .9rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand-stark);
  border-radius: 99px; padding: .38em .9em; display: inline-flex; align-items: center; gap: .5em; cursor: pointer; min-height: 40px;
}
.menue-knopf:hover, .rotlicht-knopf:hover { border-color: var(--akzent); }
.menue-knopf { display: none; }
.js .menue-knopf { display: inline-flex; }
.menue-strich, .menue-strich::before, .menue-strich::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menue-strich::before, .menue-strich::after { content: ""; position: absolute; left: 0; }
.menue-strich::before { top: -5px; }
.menue-strich::after { top: 5px; }
.rotlicht-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 2px rgba(255, 93, 77, .25); }
.rotlicht-knopf[aria-pressed="true"] { background: #2a0500; border-color: var(--akzent); }

.hauptnav { flex-basis: 100%; order: 3; }
.js .hauptnav { display: none; }
.js .kopf.offen .hauptnav { display: block; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav > ul { display: flex; flex-direction: column; gap: 2px; padding: .4rem 0 .6rem; }
.hauptnav a, .hauptnav summary { display: block; padding: .55em .75em; border-radius: 8px; color: var(--text); text-decoration: none; cursor: pointer; }
.hauptnav a:hover, .hauptnav summary:hover { background: var(--flaeche-2); color: var(--text); }
.hauptnav a[aria-current="page"] { color: var(--akzent-2); background: var(--flaeche); }
.hauptnav summary { list-style: none; }
.hauptnav summary::-webkit-details-marker { display: none; }
.hauptnav summary::after { content: "▾"; margin-left: .4em; font-size: .8em; color: var(--leise); }
.hauptnav details[open] summary::after { content: "▴"; }
.hauptnav .mehr ul { padding-left: .8rem; border-left: 1px solid var(--rand); margin-left: .75rem; }

@media (min-width: 1080px) {
  .menue-knopf, .js .menue-knopf { display: none; }
  .kopf-innen { flex-wrap: nowrap; }
  .hauptnav, .js .hauptnav { display: block; flex-basis: auto; order: 2; }
  .rotlicht-knopf { order: 3; }
  .marke { margin-right: auto; }
  .hauptnav > ul { flex-direction: row; align-items: center; padding: 0; gap: .1rem; }
  .hauptnav a, .hauptnav summary { padding: .45em .7em; font-size: .95rem; }
  .hauptnav .mehr { position: relative; }
  .hauptnav .mehr ul {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 5; margin: 0; padding: .4rem;
    background: var(--flaeche); border: 1px solid var(--rand-stark); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
  }
}

/* ---------- Seite ---------- */
main { display: block; }
main:focus { outline: none; }
.seite { max-width: var(--breite); margin: 0 auto; padding: 0 var(--abstand) 3rem; }
.inhalt > *, .seiten-kopf > * { max-width: var(--lesen); }
.inhalt > .breit, .inhalt > .kasten, .inhalt > section.breit { max-width: 100%; }
.inhalt > .kasten, .inhalt > .empfehlung, .inhalt > .kosmoskop-box, .inhalt > .steckbrief { max-width: calc(var(--lesen) + 4rem); }
.inhalt li + li { margin-top: .25em; }
/* Zurück-Knopf + Brotkrumen in einer Zeile */
.seiten-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding-top: 1.1rem; }
.seiten-leiste .krumen { padding-top: 0; }
.zurueck { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; padding: .35rem .85rem; border: 1px solid var(--rand-stark); border-radius: 999px;
  background: var(--flaeche); color: var(--text); font-size: .9rem; text-decoration: none; }
.zurueck:hover, .zurueck:focus-visible { border-color: var(--akzent); color: var(--akzent-2); }
/* Blättern am Seitenende: vorherige / Übersicht / nächste Seite im Bereich */
.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rand); }
.blaettern a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); text-decoration: none; min-width: 0; }
.blaettern a:hover, .blaettern a:focus-visible { border-color: var(--akzent); }
.blaettern-next { text-align: right; }
.blaettern-uebersicht { text-align: center; }
.blaettern-art { font-size: .8rem; color: var(--leise); }
.blaettern-titel { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) {
  .blaettern { grid-template-columns: 1fr 1fr; }
  .blaettern-uebersicht { grid-column: 1 / -1; grid-row: 2; }
  .blaettern > span:empty { display: none; }
}
.krumen { font-size: .85rem; color: var(--leise); padding-top: 1.1rem; }
.krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2em .5em; padding: 0; margin: 0; }
.krumen li + li::before { content: "›"; margin-right: .5em; color: var(--leise); }
.krumen a { color: var(--leise); text-decoration: none; }
.krumen a:hover { color: var(--akzent-2); }
.seiten-kopf { padding: 1.2rem 0 .4rem; }
.lead { font-size: 1.17em; color: var(--leise); line-height: 1.55; }

figure { margin: 1.8em 0; }
.bild img { border-radius: var(--radius); background: var(--flaeche); }
figcaption { font-size: .8rem; color: var(--leise); margin-top: .5em; line-height: 1.45; }
figcaption .unterschrift { display: block; font-size: .9rem; color: var(--text); margin-bottom: .15em; }
figcaption a { color: var(--leise); }
.titelbild { max-width: 100%; margin: .6rem 0 2rem; }
.titelbild img { width: 100%; max-height: 440px; object-fit: cover; }

/* Tabellen: auf dem Handy seitlich scrollen statt die Seite zu verbreitern */
.tabelle { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border: 1px solid var(--rand); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { background: var(--flaeche); font-weight: 600; white-space: nowrap; }
.sortierbar td:first-child { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: .3em; align-items: center; }
th button::after { content: "↕"; color: var(--leise); font-size: .8em; }
th[aria-sort="ascending"] button::after { content: "↑"; color: var(--akzent-2); }
th[aria-sort="descending"] button::after { content: "↓"; color: var(--akzent-2); }

/* ---------- Kästchen ---------- */
.kasten { --farbe: var(--info); margin: 1.8em 0; padding: 1rem 1.2rem; border: 1px solid var(--rand); border-left: 4px solid var(--farbe); border-radius: var(--radius); background: var(--flaeche); }
.kasten-titel { display: flex; align-items: center; gap: .5em; font-weight: 700; color: var(--farbe); margin-bottom: .45em; }
.kasten-inhalt > :last-child { margin-bottom: 0; }
.kasten-tipp { --farbe: var(--gut); }
.kasten-familie { --farbe: var(--akzent-2); }
.kasten-achtung { --farbe: var(--achtung); }
.kasten-info { --farbe: var(--info); }
.kasten-sonne { --farbe: var(--akzent); border: 2px solid var(--akzent); border-left-width: 6px; background: linear-gradient(0deg, rgba(255, 93, 77, .10), rgba(255, 93, 77, .10)), var(--flaeche); }
.kasten-sonne .kasten-titel { font-size: 1.05em; }
.kasten-sonne a { color: var(--text); font-weight: 600; }

/* ---------- Boxen am Seitenende ---------- */
.kosmoskop-box, .empfehlung, .steckbrief, .diesen-monat { margin: 2em 0; padding: 1.1rem 1.25rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.kosmoskop-box-titel { display: flex; align-items: center; gap: .5em; font-weight: 700; margin-bottom: .5em; }
.kosmoskop-box ul { margin: 0; padding-left: 1.2em; }
.kosmoskop-link::after { content: " ↗"; font-size: .85em; }
.empfehlung { border-style: dashed; }
.empfehlung[hidden] { display: none; }
.empfehlung-vorschau { font-size: .8rem; color: var(--achtung); margin-bottom: .4em; }
.empfehlung-titel { font-weight: 700; margin-bottom: .3em; }
.empfehlung-text { color: var(--leise); }
.empfehlung-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: .4em 0 .8em; }
.empfehlung-links a { display: inline-flex; align-items: center; gap: .5em; padding: .45em .85em; border: 1px solid var(--rand-stark); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--flaeche-2); }
.empfehlung-links a:hover { border-color: var(--akzent); }
.empfehlung-links small { color: var(--leise); }
.empfehlung-untertitel { font-size: .85rem; font-weight: 600; color: var(--leise); margin: .8em 0 .3em; }
.empfehlung-produkte { list-style: none; padding: 0; margin: .3em 0 .8em; display: grid; gap: .5rem; }
.empfehlung-produkte li { display: grid; gap: .15em; }
.empfehlung-produkte a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1em .5em; text-decoration: none; color: var(--text); }
.empfehlung-produkte a:hover .produkt-titel { color: var(--akzent); text-decoration: underline; }
.empfehlung-produkte .produkt-titel { font-weight: 600; }
.empfehlung-produkte small, .produkt-kurz { color: var(--leise); }
.produkt-kurz { font-size: .9rem; }
.empfehlung-hinweis { font-size: .78rem; color: var(--leise); margin: 0; }
.faq details { border-bottom: 1px solid var(--rand); padding: .2em 0; }
.faq summary { cursor: pointer; padding: .6em 0; font-weight: 600; }
.faq details > div { padding: 0 0 .8em; color: var(--text); }
.quellen { font-size: .85rem; color: var(--leise); }
.quellen h2 { font-size: 1.05rem; }
.quellen ol { padding-left: 1.4em; }
.quellen a { color: var(--leise); }
.weiterlesen h2 { font-size: 1.2rem; }

/* ---------- Karten ---------- */
.karten { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.karten li + li { margin-top: 0; }
.karte a { display: flex; flex-direction: column; gap: .35em; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); text-decoration: none; transition: border-color .15s; }
.karte a:hover { border-color: var(--rand-stark); background: var(--flaeche-2); }
.karte-titel { font-weight: 700; letter-spacing: -.01em; }
.karte-text { color: var(--leise); font-size: .92rem; line-height: 1.5; }
.karte a:hover .karte-titel { color: var(--akzent-2); }
.karte[hidden] { display: none; }
.instrument { display: inline-flex; align-items: center; gap: .4em; color: var(--akzent-2); font-size: .9rem; }
.objekt-karte .instrument { margin-top: auto; padding-top: .3em; }
.objekte-filter { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: end; margin: 1.5em 0 0; padding: 1rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.objekte-filter label { display: flex; flex-direction: column; gap: .25em; font-size: .85rem; color: var(--leise); }
select { font: inherit; font-size: .95rem; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--rand-stark); border-radius: 8px; padding: .4em .6em; min-height: 40px; }
.filter-zahl { margin: 0; font-size: .85rem; color: var(--leise); }

/* ---------- Steckbrief ---------- */
.steckbrief h2 { margin: 0 0 .6em; font-size: 1.1rem; }
.steckbrief dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.steckbrief dl > div { display: grid; grid-template-columns: minmax(8.5em, 35%) 1fr; gap: .8em; padding: .45em 0; border-top: 1px solid var(--rand); }
.steckbrief dt { color: var(--leise); font-size: .9rem; }
.steckbrief dd { margin: 0; }
.aufsuchen { margin-top: .9em; padding-top: .8em; border-top: 1px solid var(--rand); }
.aufsuchen-titel { font-weight: 700; margin-bottom: .3em; }
.aufsuchen > :last-child { margin-bottom: 0; }

/* ---------- Himmelskalender ---------- */
.kalender h2 { margin-top: 1.4em; }
.ereignisse { list-style: none; padding: 0; }
.ereignis { padding: .9rem 0; border-top: 1px solid var(--rand); }
.ereignis:target { background: var(--flaeche); outline: 1px solid var(--rand-stark); border-radius: 6px; padding-left: .8rem; padding-right: .8rem; }
.ereignis-zeit { font-size: .9rem; color: var(--leise); margin-bottom: .2em; display: flex; flex-wrap: wrap; gap: .3em .6em; align-items: center; }
.ereignis-titel { font-weight: 700; margin-bottom: .25em; }
.ereignis-text { margin-bottom: .3em; }
.ereignis-meta { font-size: .85rem; color: var(--leise); margin: 0; }
.typ-finsternis .etikett { color: var(--akzent); border-color: currentColor; }
.jahr-wahl { display: flex; gap: .5rem; margin: 1em 0; }
.jahr-wahl button { font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand-stark); border-radius: 99px; padding: .3em 1em; cursor: pointer; min-height: 40px; }
.jahr-wahl button[aria-pressed="true"] { border-color: var(--akzent); color: var(--akzent-2); }
.diesen-monat h2 { margin: 0 0 .6em; font-size: 1.2rem; }
.dm-liste ul { list-style: none; padding: 0; margin: 0 0 .6em; }
.dm-liste li { padding: .45em 0; border-top: 1px solid var(--rand); }
.dm-liste .dm-datum { display: block; font-size: .85rem; color: var(--leise); }
.dm-link { margin: 0; font-size: .92rem; }

/* ---------- Listen ---------- */
.sternwarten-liste, .nachweise { list-style: none; padding: 0; }
.sternwarten-liste li, .nachweise li { padding: .7em 0; border-top: 1px solid var(--rand); }
.sw-name, .nw-titel { font-weight: 700; margin: 0 0 .15em; }
.sw-meta, .sw-hinweis, .nw-meta, .nw-wo { margin: 0; font-size: .9rem; color: var(--leise); }
.alphabet { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1em 0; }
.alphabet a { min-width: 2.2em; text-align: center; padding: .25em .4em; border: 1px solid var(--rand); border-radius: 6px; text-decoration: none; }
.glossar dt { font-weight: 700; margin-top: .9em; }
.glossar dd { margin: .15em 0 0; color: var(--text); }
.zeitleiste { list-style: none; padding: 0; border-left: 2px solid var(--rand-stark); margin-left: .4rem; }
.zeitleiste > li { position: relative; padding: 0 0 1.4rem 1.3rem; }
.zeitleiste > li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--grund); border: 2px solid var(--akzent); }
.zl-jahr { font-weight: 700; color: var(--akzent-2); margin: 0; }
.zl-titel { font-weight: 700; margin: 0 0 .2em; }
.quellen-alle h3 { font-size: 1rem; color: var(--leise); }

/* ---------- Quiz, Berater, Rechner ---------- */
.quiz-fragen { padding-left: 1.3em; }
.quiz-frage { margin-bottom: 1.4em; }
.quiz fieldset { border: 1px solid var(--rand); border-radius: var(--radius); padding: .8rem 1rem; margin: 0; background: var(--flaeche); }
.quiz legend { font-weight: 600; padding: 0 .3em; }
.quiz label { display: flex; gap: .55em; align-items: baseline; padding: .3em 0; cursor: pointer; }
.quiz label.richtig { color: var(--gut); }
.quiz label.falsch { color: var(--akzent); text-decoration: line-through; }
.quiz-aufloesung { font-size: .92rem; margin-top: .5em; color: var(--leise); }
.quiz-aufloesung summary { cursor: pointer; }
.quiz-rueckmeldung { font-weight: 700; margin: .5em 0 0; }
.quiz-ergebnis, .berater-buehne, .rechner { padding: 1rem 1.2rem; border: 1px solid var(--rand-stark); border-radius: var(--radius); background: var(--flaeche); margin: 1.5em 0; }
.berater-ergebnis { margin: 1.5em 0; padding-top: .5em; border-top: 1px solid var(--rand); }
.berater-buehne fieldset { border: 0; padding: 0; margin: 0 0 1em; }
.berater-buehne legend { font-weight: 700; font-size: 1.1em; margin-bottom: .5em; }
.berater-buehne label { display: flex; gap: .6em; align-items: baseline; padding: .55em .7em; margin-bottom: .4em; border: 1px solid var(--rand); border-radius: 8px; cursor: pointer; }
.berater-buehne label:hover { border-color: var(--rand-stark); }
.knopf, .berater button, .quiz-ergebnis button {
  font: inherit; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--rand-stark); border-radius: 99px; padding: .45em 1.1em; cursor: pointer; min-height: 42px; margin-right: .5em;
}
.knopf:hover, .berater button:hover, .quiz-ergebnis button:hover { border-color: var(--akzent); }
.berater button.haupt { background: var(--akzent); border-color: var(--akzent); color: #1a0402; font-weight: 700; }

/* ---------- Startseite ---------- */
.held {
  position: relative; border-bottom: 1px solid var(--rand); background-color: var(--grund);
  /* dezenter Sternenhimmel nur aus CSS */
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 27% 68%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 35%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 58% 15%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 66% 74%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 42%, rgba(255,220,200,.75), transparent 60%),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 93% 81%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 6% 86%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 50% 55%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(255, 93, 77, .10), transparent 70%),
    linear-gradient(180deg, #0e1220, var(--grund));
}
.held-innen { max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 8vw, 5.5rem) var(--abstand) clamp(2rem, 6vw, 4rem); }
.held h1 { max-width: 20ch; margin: 0 0 .4em; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); }
.held .lead { max-width: 52ch; margin: 0; }
.start .inhalt { padding-top: .5rem; }
.start > .kasten, .start > .diesen-monat { max-width: calc(var(--lesen) + 4rem); }
.karten.einstieg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--rand); background: var(--flaeche); color: var(--leise); font-size: .9rem; margin-top: 2rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2.2rem var(--abstand) 2.6rem; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.fuss-name { color: var(--text); font-weight: 700; font-size: 1rem; }
.fuss-titel { color: var(--text); font-weight: 600; margin-bottom: .5em; }
.fuss ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.2rem; }
.fuss li { padding: .15em 0; break-inside: avoid; }
.fuss a { color: var(--leise); }
.fuss a:hover { color: var(--akzent-2); }
.fuss-warnung strong { color: var(--akzent); }
@media (min-width: 760px) {
  .fuss-innen { grid-template-columns: 1.4fr 1fr .8fr; }
  .fuss nav:last-child ul { columns: 1; }
}

@media print {
  .band, .kopf, .fuss, .objekte-filter, .rotlicht-knopf { display: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* === Rechner (T4) === */
/* Formulare aus skripte/rechner.js; Rahmen kommt von .rechner. Farben nur über Variablen (Rotlicht-Modus stellt sie um). */
.rechner-form { margin: 0; }
.rechner-titel { font-weight: 700; font-size: 1.1em; margin: 0 0 .2em; }
.rechner-beispiel { font-size: .88rem; color: var(--leise); margin: 0 0 .9em; }
.rechner-modus { border: 0; padding: 0; margin: 0 0 .9em; min-width: 0; }
.rechner-modus legend { font-size: .9rem; color: var(--leise); padding: 0; margin-bottom: .3em; }
.rechner-modus label { display: flex; gap: .5em; align-items: baseline; padding: .3em 0; cursor: pointer; }
.rechner-modus input { accent-color: var(--akzent); }
.rechner-felder { display: grid; gap: .8rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.rechner-feld[hidden] { display: none; }
.rechner-feld label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3em; line-height: 1.35; }
.rechner-optional { font-weight: 400; color: var(--leise); }
.rechner-eingabe { display: flex; align-items: center; gap: .5em; }
.rechner-eingabe input { font: inherit; width: 100%; min-width: 0; min-height: 44px; padding: .4em .65em; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--rand-stark); border-radius: 8px; }
.rechner-eingabe input:focus { border-color: var(--akzent); }
.rechner-eingabe input[aria-invalid="true"] { border-color: var(--achtung); }
.rechner-eingabe input::placeholder { color: var(--leise); opacity: 1; }
.rechner-einheit { flex: none; min-width: 1.6em; color: var(--leise); font-size: .95rem; }
.rechner-hilfe { font-size: .82rem; color: var(--leise); margin: .3em 0 0; line-height: 1.45; }
.rechner-ausgabe { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--rand); }
.rechner-ergebnis { margin: 0 0 .4em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .6em; }
.rechner-wert { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); font-weight: 700; color: var(--akzent-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rechner-wert-text { color: var(--leise); }
.rechner-details { margin: 0 0 .6em; padding-left: 1.2em; font-size: .95rem; }
.rechner-hinweis { margin: .5em 0 0; padding: .5em .8em; border-left: 3px solid var(--info); background: var(--flaeche-2); border-radius: 0 6px 6px 0; font-size: .93rem; }
.rechner-hinweis-ok { border-left-color: var(--gut); }
.rechner-hinweis-warnung { border-left-color: var(--achtung); }

/* «Diesen Monat»: vergangene Termine abschwächen */
.dm-vorbei { opacity: .5; }

/* ---------- Kompakt: «Auf einen Blick», aufklappbare Abschnitte, Bild-Karten (15.10.2026) ---------- */
.inhalt > .blick, .inhalt > .abschnitte { max-width: calc(var(--lesen) + 4rem); }
.blick { margin: 0 0 2em; padding: 1.1rem 1.25rem; border: 1px solid var(--rand-stark); border-left: 4px solid var(--akzent); border-radius: var(--radius); background: var(--flaeche); }
.blick-titel { margin: 0 0 .5em; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-2); }
.blick-punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: .35em; }
.blick-punkte li { position: relative; padding-left: 1.6em; line-height: 1.45; }
.blick-punkte li::before { position: absolute; left: 0; top: 0; width: 1.2em; text-align: center; font-weight: 700; }
.blick-punkte .punkt::before { content: "•"; color: var(--akzent-2); }
.blick-punkte .plus::before { content: "✓"; color: var(--gut); }
.blick-punkte .minus::before { content: "✗"; color: var(--achtung); }
.blick-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .6rem 1.2rem; margin: .9em 0 0; padding-top: .8em; border-top: 1px solid var(--rand); }
.blick-fakten dt { font-size: .78rem; color: var(--leise); }
.blick-fakten dd { margin: 0; font-weight: 600; }
.blick-punkte + .blick-fakten { margin-top: .9em; }

.abschnitte { margin: 2em 0; }
.abschnitte-leiste { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin: 0 0 .5em; font-size: .9rem; color: var(--leise); }
.knopf.klein { min-height: 34px; padding: .25em .9em; font-size: .85rem; margin: 0; }
details.abschnitt { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); margin: 0 0 .55rem; }
details.abschnitt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-radius: var(--radius); }
details.abschnitt > summary::-webkit-details-marker { display: none; }
details.abschnitt > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--akzent-2); transition: transform .15s; }
details.abschnitt[open] > summary::after { content: "–"; }
details.abschnitt > summary:hover { background: var(--flaeche-2); }
details.abschnitt > summary h2 { margin: 0; font-size: 1.15rem; }
.abschnitt-inhalt { padding: .2rem 1.1rem 1rem; }
.abschnitt-inhalt > :first-child { margin-top: .3em; }
.abschnitt-inhalt > .kasten, .abschnitt-inhalt > figure { max-width: 100%; }

details.quellen > summary { cursor: pointer; list-style: none; }
details.quellen > summary::-webkit-details-marker { display: none; }
details.quellen > summary h2 { display: inline; }
details.quellen > summary h2::before { content: "▸ "; color: var(--leise); }
details.quellen[open] > summary h2::before { content: "▾ "; }
details.quellen { margin: 2em 0; }

.karte.mit-bild a { padding: 0 0 1rem; overflow: hidden; }
.karte.mit-bild .karte-titel, .karte.mit-bild .karte-text, .karte.mit-bild .instrument { padding: 0 1.1rem; }
.karte-bild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--flaeche-2); margin-bottom: .55rem; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--bild-filter); transition: transform .3s; }
.karte a:hover .karte-bild img { transform: scale(1.04); }

.held.mit-bild { background-image: none; overflow: hidden; }
.held-bild { position: absolute; inset: 0; margin: 0; }
.held-bild img { width: 100%; height: 100%; object-fit: cover; filter: var(--bild-filter); }
.held-bild figcaption { position: absolute; right: .6rem; bottom: .4rem; font-size: .7rem; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px #000; }
.held-bild figcaption a { color: inherit; }
.held.mit-bild::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,20,.88), rgba(11,13,20,.45) 60%, rgba(11,13,20,.15)); z-index: 1; }
.held.mit-bild .held-innen { position: relative; z-index: 2; }
.start > .karten.einstieg { margin-top: 1.6rem; }
.start > .blick { max-width: calc(var(--lesen) + 4rem); margin-top: 1.5rem; }

/* ---------- Vertrauen und Werbelinks sichtbar (15.10.2026) ---------- */
.stand { margin: .7em 0 0; font-size: .85rem; color: var(--leise); }
.stand a { color: var(--leise); }
.blick-schnellwahl { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .9em 0 0; padding-top: .8em; border-top: 1px solid var(--rand); font-size: .9rem; color: var(--leise); }
.blick-schnellwahl[hidden] { display: none; }
.blick-schnellwahl .knopf { text-decoration: none; color: var(--text); }
.empfehlung-produkte li { padding: .7rem .85rem; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche-2); }
.empfehlung-produkte a.produkt-titel { font-weight: 600; color: var(--text); text-decoration: none; }
.empfehlung-produkte a.produkt-titel:hover { color: var(--akzent-2); text-decoration: underline; }
.produkt-knopf { justify-self: start; display: inline-flex; align-items: center; gap: .5em; margin-top: .35em; padding: .4em .9em; border-radius: 99px; background: var(--akzent); color: #1a0402 !important; font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.produkt-knopf:hover { filter: brightness(1.1); }
.produkt-knopf .etikett { color: #1a0402; border-color: rgba(26,4,2,.5); }
.empfehlung { scroll-margin-top: 1rem; }

/* Kontaktformular (functions/api/kontakt.js) */
.kontaktformular { max-width: 34rem; margin: 1.5em 0; }
.kontaktformular p { margin: 0 0 1em; }
.kontaktformular label { display: block; font-weight: 600; margin-bottom: .3em; }
.kontaktformular input, .kontaktformular textarea { box-sizing: border-box; width: 100%; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand-stark); border-radius: var(--radius); padding: .55em .7em; min-height: 44px; }
.kontaktformular input:focus, .kontaktformular textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.kontaktformular textarea { resize: vertical; }
.kontaktformular .knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #1a0402; font-weight: 700; }
.kf-falle { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
