/* Resonanz – Himmelsatlas. Grund Tiefindigo, Armaturen-Bernstein als einzige Bedienfarbe, Rotlicht für Zahlen. */
:root {
  --grund: #070914;
  --grund-2: #0b0f1f;
  --gitter: #1a2140;
  --linie: #26305a;
  --text: #e8e6f0;
  --text-2: #a9a7c2;
  --text-3: #7d7b9c;
  --bernstein: #ffb454;
  --bernstein-dunkel: #8a5a1a;
  --rot: #ff5a3c;
  --tinte: #bcc7ee;
  --fokus: #ffb454;
  --schrift: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --brett-h: 92px;
  --rand: clamp(16px, 2.2vw, 32px);
}
* { box-sizing: border-box; }
html { background: var(--grund); color-scheme: dark; scrollbar-color: var(--linie) var(--grund); }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font-family: var(--schrift); font-variation-settings: "opsz" 14, "wdth" 100; font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--bernstein); color: var(--grund); }
:focus-visible { outline: 1px solid var(--fokus); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, p, dl, dd, dt, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Himmel */
.himmel { position: fixed; inset: 0; z-index: 0; overflow: hidden; touch-action: none; }
#cv { display: block; width: 100%; height: 100%; cursor: grab; }
#cv:active { cursor: grabbing; }
#cv.zeigt { cursor: pointer; }
/* Ohne WebGL: Standbild statt leerem Canvas */
.kein-webgl .himmel { background: #070914 url("og.webp") center / cover no-repeat; }
.kein-webgl #cv { cursor: default; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  white-space: nowrap; font-size: 12px; letter-spacing: .01em; color: var(--text-2);
  padding-left: 14px; opacity: 0; transition: opacity .5s var(--ease), color .2s;
  will-change: transform, opacity;
}
.label::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 1px; background: currentColor; opacity: .6;
}
.label.aus { transition: none; }
.label.links { padding-left: 0; padding-right: 14px; }
.label.links::before { left: auto; right: 0; }
.label.hell { color: var(--text); font-weight: 500; }
.label.richtung { padding-left: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--bernstein); opacity: 0; }
.label.richtung::before { width: 1px; height: 8px; left: 50%; top: -11px; transform: none; opacity: .8; }
.label.aktiv { color: #fff; font-weight: 600; font-size: 13px; }
.label.galaxie {
  text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; padding-left: 0;
  transform: translate(-50%, -50%); color: var(--w, var(--text-2));
}
.label.galaxie::before { display: none; }
.label.galaxie small { display: block; letter-spacing: .04em; font-weight: 400; text-transform: none; font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 2px; }
.scheibe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; pointer-events: none;
  background: linear-gradient(to top, rgba(255, 180, 84, .32), rgba(255, 180, 84, .11) 38%, rgba(255, 180, 84, 0));
}

/* ---------- Kartusche (Titelblock wie auf einer gedruckten Karte) */
.kartusche {
  position: fixed; z-index: 2; left: var(--rand); top: var(--rand);
  border: 1px solid var(--linie); padding: 14px 16px 12px; max-width: 332px;
  background: rgba(7, 9, 20, .72);
}
.kartusche::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid var(--gitter); pointer-events: none;
}
.kartusche h1 {
  font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.02em;
  font-variation-settings: "opsz" 96, "wdth" 90;
}
.kartusche .unter { margin-top: 5px; color: var(--text-2); font-size: 13px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gitter); font-size: 11px; }
.meta div { display: contents; }
.meta dt { color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; align-self: baseline; }
.meta dd { font-family: var(--mono); font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.status { margin-top: 10px; font-size: 12px; color: var(--bernstein); min-height: 1em; }
.status:empty { display: none; }
.status.fehler { color: var(--rot); }

/* ---------- Armaturenbrett */
.brett {
  position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; min-height: var(--brett-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 14px var(--rand) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie); background: rgba(7, 9, 20, .82);
}
.brett::before {
  content: ""; position: absolute; left: var(--rand); right: var(--rand); top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bernstein-dunkel), transparent);
}
.zeit-titel, .legende-titel, .werte dt {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}
.zeit-schalter { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--linie); overflow: hidden; }
.zeit-schalter button {
  position: relative; z-index: 1; padding: 7px 14px; font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  color: var(--text-2); font-variant-numeric: tabular-nums; transition: color .25s;
}
.zeit-schalter button + button { box-shadow: inset 1px 0 var(--linie); }
.zeit-schalter button:hover { color: var(--text); }
.zeit-schalter button[aria-pressed="true"] { color: var(--grund); }
.zeit-schalter .cursor {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / 3); background: var(--bernstein);
  transition: transform .45s var(--ease); will-change: transform;
}
.legende { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.legende button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border: 1px solid transparent;
  font-size: 12px; color: var(--text-2); letter-spacing: .02em; transition: color .2s, border-color .2s, opacity .3s;
}
.legende button i { width: 8px; height: 8px; background: var(--w); border-radius: 50%; flex: none; }
.legende button.leer { opacity: .4; }
.legende button.leer i { background: var(--text-3); }
.legende button b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legende button:hover { color: var(--text); }
.legende button[aria-pressed="true"] { color: var(--text); border-color: var(--bernstein); }
.legende.gefiltert button:not([aria-pressed="true"]) { opacity: .45; }
.werte { display: grid; grid-auto-flow: column; gap: 22px; text-align: right; }
.werte dt { margin-bottom: 2px; }
.werte dt .kurz { display: none; }
.werte dd { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--rot); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1; text-shadow: 0 0 14px rgba(255, 90, 60, .35); }

/* ---------- Hinweis */
.hinweis {
  position: fixed; z-index: 2; right: var(--rand); top: var(--rand); display: grid; gap: 2px; text-align: right;
  font-size: 12px; letter-spacing: .04em; color: var(--text-3);
  transition: opacity .6s;
}
.hinweis.weg { opacity: 0; }
.nur-tastatur { display: none; }
body.tastatur .nur-tastatur { display: block; }

.noscript { position: fixed; z-index: 5; inset: auto var(--rand) 120px; max-width: 48ch; color: var(--text); border: 1px solid var(--linie); padding: 14px 16px; background: var(--grund); }

/* ---------- Rückblick: Kapitel scrollen über den stehenden Himmel */
.buehne { height: 100vh; height: 100svh; }
.rueckblick { position: relative; z-index: 1; padding-bottom: calc(var(--brett-h) + 40px); }
.kapitel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 10vh var(--rand) calc(var(--brett-h) + 6vh); }
.kapitel:nth-child(even) { justify-content: flex-end; padding-right: calc(var(--rand) + 30px); }
.kapitel:nth-child(odd) { padding-top: clamp(280px, 34vh, 360px); }
.tafel {
  width: min(460px, 100%); border: 1px solid var(--linie); background: rgba(7, 9, 20, .78); padding: 22px 24px 20px;
  position: relative;
}
.tafel::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--gitter); pointer-events: none; }
.tafel h2 {
  margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 42px); line-height: .98; letter-spacing: -.025em; font-weight: 700;
  font-variation-settings: "opsz" 96, "wdth" 88; text-wrap: balance;
}
.tafel p { color: var(--text-2); font-size: 15px; line-height: 1.5; max-width: 52ch; }
.tafel .klein { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.tafel .links { margin-top: 16px; display: flex; gap: 18px; }
.tafel .links a { color: var(--bernstein); text-decoration: none; border-bottom: 1px solid var(--bernstein-dunkel); padding-bottom: 1px; }
.tafel .links a:hover { border-bottom-color: var(--bernstein); }
.tafel .recht { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.tafel .recht a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--linie); }
.tafel .recht a:hover { color: var(--bernstein); border-bottom-color: var(--bernstein); }
.leise { color: var(--text-3); }
.stern-link { color: var(--text); border-bottom: 1px solid var(--linie); padding-bottom: 1px; }
.stern-link:hover { color: var(--bernstein); border-bottom-color: var(--bernstein); }
.punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--w); margin-right: 9px; vertical-align: 1px; }
.mess { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.mess th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 0 0 6px; border-bottom: 1px solid var(--linie); }
.mess td { padding: 7px 0; border-bottom: 1px solid var(--gitter); color: var(--text); vertical-align: baseline; }
.mess tr:last-child td { border-bottom-color: var(--linie); }
.mess .zahl { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--rot); font-size: 13px; padding-left: 14px; white-space: nowrap; }
.mess th.zahl { color: var(--text-3); font-family: var(--schrift); }
.jahre { display: flex; align-items: flex-end; gap: 2px; height: 118px; margin-top: 18px; padding: 14px 0 16px; border-top: 1px solid var(--linie); }
.jahr { position: relative; flex: 1 1 0; display: grid; grid-template-rows: 1fr auto; align-items: end; height: 100%; min-width: 0; }
.jahr i { display: block; height: calc(var(--h) * 60px); background: var(--tinte); min-height: 0; justify-self: stretch; opacity: .9; }
.jahr[style="--h:0.000"] i { height: 1px; background: var(--gitter); }
.jahr b { font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--rot); text-align: center; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.jahr b:empty { display: none; }
.jahr small { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.jahr small:empty { display: none; }
.weiter {
  position: fixed; z-index: 2; right: var(--rand); bottom: calc(var(--brett-h) + 18px); display: inline-flex; align-items: center; gap: 8px;
  color: var(--bernstein); text-decoration: none; font-size: 13px; letter-spacing: .02em; transition: opacity .5s;
}
.weiter svg { animation: nick 2.4s var(--ease) infinite; }
@keyframes nick { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.weiter.weg { opacity: 0; pointer-events: none; }

/* Laternenfluss: ein Pfad durch alle Kapitel, rechts am Rand */
.fluss { position: fixed; z-index: 2; right: calc(var(--rand) - 4px); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; opacity: 0; transition: opacity .5s; }
.fluss.da { opacity: 1; }
.fluss::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--gitter); transform: translateX(-50%); }
.fluss a { position: relative; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--grund); border: 1px solid var(--linie); transition: background .3s, border-color .3s, box-shadow .3s; }
.fluss a[aria-current="true"] { background: var(--bernstein); border-color: var(--bernstein); box-shadow: 0 0 12px rgba(255, 180, 84, .5); }
.fluss a:hover { border-color: var(--bernstein); }
.fluss a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; color: var(--text-2); opacity: 0; transition: opacity .2s; pointer-events: none; }
.fluss a:hover span, .fluss a:focus-visible span { opacity: 1; }

/* ---------- Sternkarte */
.stern {
  position: fixed; z-index: 3; right: var(--rand); top: calc(var(--rand) + 44px); width: min(380px, calc(100vw - 2 * var(--rand)));
  max-height: calc(100vh - var(--brett-h) - var(--rand) - 70px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--linie); background: rgba(7, 9, 20, .92); padding: 18px 20px 16px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease);
  scrollbar-width: thin;
}
.stern::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--gitter); pointer-events: none; }
.stern.da { opacity: 1; transform: none; }
.stern:focus { outline: none; }
@media (max-width: 760px) { body.karte-offen .weiter, body.karte-offen .hinweis { opacity: 0; pointer-events: none; } }
.stern .zu { position: absolute; right: 10px; top: 10px; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); border: 1px solid transparent; }
.stern .zu:hover { color: var(--text); border-color: var(--linie); }
.stern .welt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.stern .welt i { width: 7px; height: 7px; border-radius: 50%; background: var(--w); flex: none; }
.stern h2 { margin: 0; padding-right: 36px; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "wdth" 90; }
.stern .tags { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.plaetze { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.plaetze div { padding: 8px 0; }
.plaetze div + div { border-left: 1px solid var(--gitter); padding-left: 12px; }
.plaetze dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plaetze dd { margin-top: 2px; font-family: var(--mono); font-size: 18px; color: var(--rot); font-variant-numeric: tabular-nums; }
.plaetze dd .leer { color: var(--text-3); }
.songs { margin-top: 6px; }
.songs li { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 0 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gitter); }
.songs li:last-child { border-bottom: 0; }
.kein-cover { width: 40px; height: 40px; display: block; background: var(--grund-2); }
.song-t { min-width: 0; position: relative; }
.song-t b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-t small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-d { font-family: var(--mono); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stern .fuss { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 12px; color: var(--text-3); }
.stern .fuss a { color: var(--bernstein); text-decoration: none; border-bottom: 1px solid var(--bernstein-dunkel); }
.label.klick { pointer-events: auto; cursor: pointer; }
.label.klick:hover { color: #fff; }
.label.gewaehlt { color: var(--bernstein); font-weight: 600; }

/* ---------- Eigener Himmel (Dialog) */
.kart-zeile { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eigen-knopf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bernstein); border-bottom: 1px solid var(--bernstein-dunkel); padding-bottom: 1px; }
.sprache { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--text-3); border: 1px solid var(--gitter); padding: 3px 7px; }
.sprache:hover { color: var(--text); border-color: var(--linie); }
.eigen-knopf:hover { border-bottom-color: var(--bernstein); }
dialog.eigener { border: 1px solid var(--linie); background: var(--grund); color: var(--text); padding: 22px 24px 18px; width: min(560px, calc(100vw - 2 * var(--rand))); max-height: calc(100vh - 2 * var(--rand)); overflow: auto; margin: auto; }
dialog.eigener::backdrop { background: rgba(2, 3, 8, .7); }
.eg-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.eg-kopf h2 { font-size: 26px; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "wdth" 90; }
.eg-kopf .zu { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); border: 1px solid transparent; }
.eg-kopf .zu:hover { color: var(--text); border-color: var(--linie); }
.eg-lede { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.eg-teil { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie); }
.eg-teil h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bernstein); font-weight: 600; }
.eg-teil p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.eg-teil p + p { margin-top: 8px; }
.eg-teil a { color: var(--text); border-bottom: 1px solid var(--linie); text-decoration: none; }
.eg-teil em { font-style: normal; color: var(--text); }
.eg-teil code { font-family: var(--mono); font-size: 12px; color: var(--text); }
.eg-klein { font-size: 12px !important; color: var(--text-3) !important; }
.eg-klein button { color: var(--bernstein); border-bottom: 1px solid var(--bernstein-dunkel); }
.eg-quellen { margin-top: 10px; }
.eg-quellen summary { cursor: pointer; font-size: 13px; color: var(--bernstein); }
.eg-code { display: flex; gap: 10px; align-items: center; border: 1px solid var(--linie); padding: 8px 10px; margin-top: 8px; }
.eg-code code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-code button, .eg-zeile button { padding: 7px 12px; border: 1px solid var(--linie); font-size: 13px; color: var(--text); white-space: nowrap; }
.eg-code button:hover, .eg-zeile button:hover { border-color: var(--bernstein); color: var(--bernstein); }
.eg-zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 10px; }
.eg-zeile input { flex: 1 1 200px; min-width: 0; background: var(--grund-2); border: 1px solid var(--linie); color: var(--text); font: inherit; font-family: var(--mono); font-size: 13px; padding: 8px 10px; }
.eg-zeile input:focus { border-color: var(--bernstein); outline: none; }
.eg-haupt { background: var(--bernstein) !important; color: var(--grund) !important; border-color: var(--bernstein) !important; font-weight: 600; }
.eg-haupt:hover { filter: brightness(1.08); }
.ablage { display: grid; place-items: center; min-height: 86px; margin-top: 10px; border: 1px dashed var(--linie); color: var(--text-2); font-size: 14px; text-align: center; padding: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.ablage:hover, .ablage.drueber { border-color: var(--bernstein); background: rgba(255, 180, 84, .05); }
.ablage u { color: var(--bernstein); text-decoration: none; border-bottom: 1px solid var(--bernstein-dunkel); }
body.ablage-aktiv::after { content: attr(data-ablage); position: fixed; inset: 12px; z-index: 9; border: 1px dashed var(--bernstein); display: grid; place-items: center; color: var(--bernstein); background: rgba(7, 9, 20, .6); font-size: 16px; pointer-events: none; }
dialog.eigener .status { margin-top: 14px; }
.kartusche .unter[data-marke]::after { content: attr(data-marke); color: var(--bernstein); }
#m-quelle { white-space: nowrap; }

/* Heatmap: Wochentag × Stunde, Zellen in Bernstein */
.heat { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); display: grid; gap: 3px; }
.heat-reihe { display: grid; grid-template-columns: 26px repeat(24, 1fr); gap: 2px; align-items: center; }
.heat-tag { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.heat-reihe i { display: block; aspect-ratio: 1; min-height: 9px; background: var(--tinte); opacity: calc(.05 + .95 * var(--a)); }
.heat-achse { position: relative; height: 16px; margin-left: 26px; }
.heat-achse b { position: absolute; left: calc(var(--h) / 24 * 100%); transform: translateX(-50%); font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-3); }
.monate { gap: 1px; }

/* ---------- Easing */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* ---------- Handy */
@media (max-width: 760px) {
  :root { --brett-h: 118px; }
  .kartusche { max-width: calc(100vw - 2 * var(--rand)); padding: 9px 12px 8px; }
  .kartusche h1 { font-size: 20px; }
  .kartusche .unter { font-size: 12px; margin-top: 3px; }
  .meta { margin-top: 8px; padding-top: 7px; gap: 2px 10px; }
  .meta div:nth-child(3) { display: none; }
  .hinweis { top: auto; }
  .brett { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 16px; padding-top: 10px; }
  .legende { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .legende::-webkit-scrollbar { display: none; }
  .legende button { white-space: nowrap; }
  .werte { gap: 14px; }
  .werte dt .lang { display: none; }
  .werte dt .kurz { display: inline; }
  .werte dd { font-size: 16px; }
  .zeit-schalter button { padding: 6px 11px; font-size: 12px; }
  .jahr small.zehner { display: none; }
  .kapitel, .kapitel:nth-child(even), .kapitel:nth-child(odd) { justify-content: center; align-items: flex-end; padding: 8vh var(--rand) calc(var(--brett-h) + 24px); padding-right: var(--rand); }
  .tafel { padding: 16px 16px 14px; }
  .tafel h2 { font-size: 26px; }
  .tafel p { font-size: 14px; }
  .mess { font-size: 13px; }
  .weiter { right: auto; left: var(--rand); bottom: calc(var(--brett-h) + 14px + env(safe-area-inset-bottom)); font-size: 12px; }
  .hinweis { bottom: calc(var(--brett-h) + 14px + env(safe-area-inset-bottom)); font-size: 11px; max-width: 40%; }
  .tafel { background: rgba(7, 9, 20, .9); }
  .stern { right: var(--rand); left: var(--rand); top: auto; bottom: calc(var(--brett-h) + 10px + env(safe-area-inset-bottom)); width: auto; max-height: 62vh; padding: 14px 16px 12px; }
  .stern h2 { font-size: 24px; }
  .fluss { display: none; }
}

/* ---------- Gedruckte Karte: ohne Bewegung ist der Himmel eine stehende Sternkarte */
/* ---------- Vergleich zweier Himmel */
.eg-zeile input[type="checkbox"] { flex: none; accent-color: var(--bernstein); margin-right: 6px; }
.legende.vgl { gap: 4px 10px; }
.vgl-eintrag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 4px; font-size: 12px; color: var(--text-2); letter-spacing: .02em; }
.vgl-eintrag b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vgl-symbol { display: inline-grid; place-items: center; flex: none; }
.vgl-schalter { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--linie); }
.legende .vgl-schalter button { border: 0; border-radius: 0; padding: 6px 10px; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legende .vgl-schalter button + button { box-shadow: inset 1px 0 var(--linie); }
.legende .vgl-schalter button[aria-pressed="true"] { background: var(--bernstein); color: var(--grund); }
.legende .vgl-ende { color: var(--bernstein); border-color: var(--bernstein-dunkel); }
.listen h3 { margin: 18px 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.vgl-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0s !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .scheibe { opacity: .7; }
}
