/* ==========================================================================
   FOA Dashboard: the public "Aktuell" block on sternwarte.html
   (section.dash) and the six intern pages (intern/index.html,
   intern/nacht.html, intern/wetter.html, intern/webcams.html,
   intern/teleskop.html, intern/netzwerk.html; body.dash).
   Loaded after site.css and uPlot.min.css, on these pages only.
   Decisions: docs/foa-dashboard.md (Websites workspace). Day mode uses the site tokens; night mode
   (html[data-night]) redefines them in red.
   Flat: no shadows, the site's radii, 1 px hairlines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
/* Status (day): Hellgrün, Gelb, Orangerot only on tile top bars and shapes */
:root {
  --bar-ok: #a5c56c;
  --bar-warn: #ffdc4c;
  --bar-crit: #e65640;
  --bar-none: #005c99;                       /* tiles without a threshold */
  --bar-stale: #9aa6af;
  --bar-nodata: repeating-linear-gradient(90deg, #9aa6af 0 10px, transparent 10px 16px);
  --fill-ok: #a5c56c;   --stroke-ok: rgba(3, 33, 56, 0.35);
  --fill-warn: #ffdc4c; --stroke-warn: rgba(3, 33, 56, 0.35);
  --fill-crit: #e65640; --stroke-crit: rgba(3, 33, 56, 0.35);
  --fill-stale: #9aa6af; --stroke-stale: rgba(3, 33, 56, 0.35);
  --stroke-nodata: #64747f;
  --shape-width: 1;
  --tile-border-crit: #e6e9eb;
  --stale-border-style: solid;
  --stale-border: #e6e9eb;
  --value-stale: #354d60;
  --crit-case: none;
  --banner-warn: #ffdc4c;
  --banner-crit: #e65640;
  --seg-on-bg: #005c99;
  --seg-on-text: #ffffff;
  --cam-empty: #f2f4f5;
  /* intern: telescope state timeline */
  --tl-park: #e6e9eb;
  --tl-off: #c2c2c2;
  --tl-slew: #9aa6af;
  --tl-track: #005c99;
  --tl-error: #e65640;
  --tl-none: repeating-linear-gradient(45deg, #cdd3d7 0 3px, transparent 3px 7px);
}
/* Night mode: red only, nothing brighter than #FF0000 */
html[data-night] {
  --bg: #000000;
  --surface: #140000;
  --surface-2: #1e0000;
  --border: #4a0000;
  --border-strong: #7a0000;
  --text: #ff0000; --text-strong: #ff0000; --link: #ff0000; --link-hover: #ff0000; --focus: #ff0000;
  --text-muted: #cc0000; --text-faint: #cc0000;   /* 14 px semibold or >= 18 px only */
  --link-tint: rgba(255, 0, 0, 0.12);
  /* status without hue: bar, shape and border carry it */
  --bar-ok: #4a0000;
  --bar-warn: repeating-linear-gradient(45deg, #cc0000 0 3px, transparent 3px 6px);
  --bar-crit: #ff0000;
  --bar-none: #7a0000;
  --bar-stale: repeating-linear-gradient(90deg, #4a0000 0 8px, transparent 8px 14px);
  --bar-nodata: repeating-linear-gradient(90deg, #4a0000 0 8px, transparent 8px 14px);
  --fill-ok: transparent; --stroke-ok: #ff0000;
  --fill-warn: #ff0000;   --stroke-warn: #ff0000;
  --fill-crit: #ff0000;   --stroke-crit: #ff0000;
  --fill-stale: transparent; --stroke-stale: #cc0000;
  --stroke-nodata: #cc0000;
  --shape-width: 1.5;
  --tile-border-crit: #ff0000;
  --stale-border-style: dashed;
  --stale-border: #4a0000;
  --value-stale: #cc0000;
  --crit-case: uppercase;
  --banner-warn: #cc0000;
  --banner-crit: #ff0000;
  --seg-on-bg: #1e0000;   /* pressed: + a 2 px #ff0000 ring, 5.04:1 */
  --seg-on-text: #ff0000;
  --cam-empty: #1e0000;
  --tl-park: #1e0000;
  --tl-off: #330000;
  --tl-slew: #7a0000;
  --tl-track: #ff0000;
  --tl-error: repeating-linear-gradient(45deg, #ff0000 0 3px, #000000 3px 6px);
  --tl-none: repeating-linear-gradient(45deg, #4a0000 0 3px, transparent 3px 7px);
}
:root[data-night] { color-scheme: dark; scrollbar-color: #7a0000 #000000; }
/* browser-drawn parts the tokens do not reach: selection, skip link */
html[data-night] ::selection { background: #7a0000; color: #ff0000; }
html[data-night] .skip-link { background: #1e0000; color: #ff0000; border: 1px solid #ff0000; }
html[data-night] *, html[data-night] *::before, html[data-night] *::after { transition: none !important; }

/* --------------------------------------------------------------------------
   Page frame: dash bar, banner, section spacing
   -------------------------------------------------------------------------- */
/* the banner sits under the section head, above the tiles */
.dash-banner:not(:empty) { margin: 0 0 24px; }
.dash-callout { margin: 0; color: var(--text); border-left-color: var(--banner-warn); }
.dash-callout[data-kind="crit"] { border-left-color: var(--banner-crit); }
.dash-callout p { margin: 0; }

.dash .section-head { margin-bottom: 24px; }
.dash .section-head h2 { margin-bottom: 0; }
.dash .section-head h2:not(:last-child) { margin-bottom: 12px; }   /* a lead under the h2 (Beobachtungsbetrieb) */
.dash .tiles + .actions, .dash .sub-block + .actions { margin-top: 32px; }
.dash .section.section-first { padding-top: 40px; }
/* a titled block inside a section (Teleskop, public "Aktuell") */
.sub-block { margin-top: 40px; }
.subhead-sm { margin: 0 0 12px; font: 600 16px/1.3 var(--sans); color: var(--text); }

/* Dashboard tabs (see docs/foa-dashboard.md): the six intern pages as plain links
   in equal cells under the clock strip, like the segmented groups (44 px,
   current page filled). 6 x 1 from 900 px, 3 x 2 below. The lines are the
   1 px gaps over the link color, so both layouts get the same grid. */
.dash-tabs { padding: 16px var(--pad-x) 0; }
.tabs-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  border: 1px solid var(--link); border-radius: var(--radius-btn); overflow: hidden; background: var(--link);
}
.tabs-row a {
  display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 0 4px;
  background-color: var(--bg); color: var(--link); font: 600 15px/1.2 var(--sans); text-align: center; text-decoration: none;
}
.tabs-row a:hover { background-image: linear-gradient(var(--link-tint), var(--link-tint)); }
.tabs-row a[aria-current="page"] { background: var(--seg-on-bg); color: var(--seg-on-text); }
html[data-night] .tabs-row a[aria-current="page"] { box-shadow: inset 0 0 0 2px #ff0000; }
.tabs-row a:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
@media (min-width: 900px) { .tabs-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Night chrome: the site header in red without the univie logo (never
   recolored), the unit bar in red, a red line as the only footer. The night
   switch is one icon button (moon by day, sun at night) in the same place in
   both modes: the header's utility row, or next to the burger below 1180 px. */
html[data-night] :is(.univie-logo, .site-footer) { display: none; }
/* intern: the logo in red only (internal pages, Stefan 2026-11-28; only they carry .logo-night); public night pages keep it hidden */
.univie-logo .logo-night { display: none; }
html[data-night] .univie-logo:has(.logo-night) { display: flow-root; }
html[data-night] .univie-logo img:not(.logo-night) { display: none; }
html[data-night] .univie-logo .logo-night { display: block; }
html[data-night] .site-header:has(.logo-night) { justify-content: space-between; }
html[data-night] .site-header { position: relative; justify-content: flex-end; background: var(--bg); border-bottom-color: var(--border-strong); }
html[data-night] :is(.utility-link, .quicklinks summary, .header-utility .lang-switch):hover::after,
html[data-night] .quicklinks details[open] > summary::after { background: rgba(255, 0, 0, 0.3); }
html[data-night] .utility-link + .quicklinks::before { background: var(--border-strong); }
html[data-night] :is(.quicklinks ul, .nav-sub) { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: none; }
html[data-night] .nav-sub a:hover { background: var(--surface-2); }
html[data-night] .nav-sub a:is([aria-current="page"], .is-section) { background: var(--surface-2); box-shadow: inset 0 0 0 2px #ff0000; }
html[data-night] .menu-panel { background: var(--bg); border-bottom-color: var(--border-strong); box-shadow: none; }
html[data-night] .menu-quicklinks { background: var(--surface-2); }
html[data-night] .unit-bar { background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border-strong); --focus: #ff0000; }   /* a shadow, not a border: same height as by day */
html[data-night] .unit-bar a { color: var(--text); }
@media (max-width: 767px) { html[data-night] .unit-bar a { font-size: 14px; } }
/* at night from 1180 px, where the clock strip is one row, it sticks */
.dash-sticky { display: contents; }
@media (min-width: 1180px) {
  html[data-night] .dash-sticky { display: block; position: sticky; top: 0; z-index: 40; margin-top: 40px; background: var(--bg); }
  html[data-night] .dash-sticky .clock-top { padding-top: 0; }   /* the 40 px stay above as margin, so the strip sits where it does by day */
  html[data-night] body.dash [id] { scroll-margin-top: 150px; }   /* the 129 px strip + air */
}
/* the night switch: a 44 px icon button, in the utility row from 1180 px, next to the burger below */
.header-utility .night-btn { justify-content: center; width: 44px; padding: 0; border: 0; background: none; }
.header-utility .night-btn::after { left: 12px; right: 12px; }
.night-btn-m { display: none; }
@media (max-width: 1179px) {
  .night-btn-m { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
}
.night-footer { display: none; }
html[data-night] .night-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 18px var(--pad-x) 28px;
  border-top: 1px solid var(--border-strong);
  font-size: 16px;
}
html[data-night] .night-footer a { display: inline-flex; align-items: center; min-height: 44px; }
/* the status dots of the wind table (intern/beobachtungsgrenzen.html): hollow, dark and full red; the word says the level */
html[data-night] .status::before { box-shadow: 0 0 0 1px #ff0000 inset; }
html[data-night] .status-go { --status: transparent; }
html[data-night] .status-warn { --status: #7a0000; }
html[data-night] .status-stop { --status: #ff0000; }
/* photos that are not red-only (sternwarte.html aerial view) disappear at night */
html[data-night] .night-hide { display: none; }
html[data-night] .split:has(> .night-hide) > .split-content { grid-column: 1 / -1; max-width: var(--measure); }   /* text alone, one measure */

/* --------------------------------------------------------------------------
   Clock strip (see docs/foa-dashboard.md): Ortszeit, UTC, LST, JD, Sonne,
   Mond. Grid, no card: 2 x 3 on phones, 3 x 2 from 640 px, one row from
   1180 px.
   -------------------------------------------------------------------------- */
:root { --clk-label-size: 12px; --clk-label-color: var(--text-muted); --clk-phase-color: var(--text-muted); }
html[data-night] { --clk-label-size: 14px; --clk-label-color: var(--text); --clk-phase-color: var(--text-muted); }
.clock-top { padding: 40px var(--pad-x) 0; }
.clocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.clk { min-width: 0; }
.clocks dt {
  margin: 0;
  font: 600 var(--clk-label-size)/20px var(--sans);   /* fixed row: the larger night label keeps the strip height */
  letter-spacing: 0.06em;
  color: var(--clk-label-color);
  white-space: nowrap;
}
.clocks dd {
  margin: 0;
  font: 600 18px/1.2 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.clocks abbr { text-decoration: none; }
.clk-arrow { font-weight: 600; color: var(--clk-phase-color); }
.clk-phase { display: inline-block; margin-left: 10px; vertical-align: -2px; color: var(--text); }
.clk-phase svg { display: block; }
/* "Letzte Übertragung …": one small note for weather, Teleskop and Netzwerk */
.wx-stamp, .dash-fresh {
  display: flex; align-items: center; gap: 8px; margin: -8px 0 16px;
  font: 400 14px/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.wx-stamp:empty { display: none; }
html[data-night] :is(.wx-stamp, .dash-fresh) { font-size: 16px; color: var(--text); }
/* Übersicht: the quiet link to the observing limits under the weather tiles (44 px target) */
.dash-more { margin: 8px 0 0; font: 400 14px/1.4 var(--sans); }
.dash-more a { display: inline-flex; align-items: center; min-height: 44px; }
html[data-night] .dash-more { font-size: 16px; }
@media (min-width: 640px) {
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
  .clocks dd { font-size: 20px; }
}
@media (min-width: 1180px) {
  .clocks { display: flex; justify-content: space-between; gap: 16px; }
  .clocks dd { font-size: 22px; min-width: 8ch; }
  .clk:nth-child(4) dd { min-width: 13ch; }   /* JD */
  :is(.clk-sun, .clk-moon) dd { min-width: 8ch; }   /* "−38.4° ↘" without jumps */
}

/* --------------------------------------------------------------------------
   Status shapes (circle gut, triangle Achtung, square kritisch/veraltet)
   -------------------------------------------------------------------------- */
.shape { flex-shrink: 0; stroke-width: var(--shape-width); }
.shape-ok { fill: var(--fill-ok); stroke: var(--stroke-ok); }
.shape-warn { fill: var(--fill-warn); stroke: var(--stroke-warn); stroke-linejoin: round; }
.shape-crit { fill: var(--fill-crit); stroke: var(--stroke-crit); }
.shape-stale { fill: var(--fill-stale); stroke: var(--stroke-stale); }
.shape-nodata { fill: none; stroke: var(--stroke-nodata); stroke-dasharray: 2 1.6; }

/* --------------------------------------------------------------------------
   Tiles: weather, public night, Teleskop
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;   /* the rows of a 2 x 2 phone grid get the same height */
  gap: var(--gap);
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile {
  position: relative;
  min-width: 0;
  padding: 24px 20px 20px;   /* 20 + the 4 px bar */
  background: var(--surface);
  border: 1px var(--tile-bs, solid) var(--tile-bc, var(--border));
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.tile::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: 0;
  height: 4px;
  background: var(--bar, var(--bar-none));
}
.tile[data-state="ok"]   { --bar: var(--bar-ok); }
.tile[data-state="warn"] { --bar: var(--bar-warn); }
.tile[data-state="crit"] { --bar: var(--bar-crit); --tile-bc: var(--tile-border-crit); }
.tile[data-state="none"] { --bar: var(--bar-none); }
.tile[data-state="stale"]  { --bar: var(--bar-stale);  --tile-bs: var(--stale-border-style); --tile-bc: var(--stale-border); }
.tile[data-state="nodata"] { --bar: var(--bar-nodata); --tile-bs: var(--stale-border-style); --tile-bc: var(--stale-border); }

.tile-label {
  margin: 0 0 10px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.tile-value {
  margin: 0;
  font: 400 2.75rem/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.tile-value.is-text { font-size: 1.75rem; line-height: 1.25; white-space: normal; }
.tile-unit { font: 600 16px/1 var(--sans); }
.tile:is([data-state="stale"], [data-state="nodata"]) .tile-value { color: var(--value-stale); }
.tile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font: 600 14px/1.3 var(--sans);
  color: var(--text);
}
.tile[data-state="crit"] .tile-status span { text-transform: var(--crit-case); }
.tile-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}
.tile-sub + .tile-sub { margin-top: 2px; }
.tile-sub.tile-flag { font-weight: 600; color: var(--text); }
@media (max-width: 639px) {
  .tile { padding: 20px 16px 16px; }
  .tile-label { letter-spacing: 0.06em; }   /* "TAUPUNKTABSTAND" fits a 2x2 tile at 390 px */
  .tile-value { font-size: 2.125rem; }
  .tile-value.is-text { font-size: 1.375rem; }
}

/* --------------------------------------------------------------------------
   Webcams and "Nacht …"
   -------------------------------------------------------------------------- */
.dash .webcam img { aspect-ratio: 16 / 9; }   /* the full 16:9 frame here (1920 x 1080 since 2026-11-28) */
.webcam-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: var(--cam-empty);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  color: var(--text-muted);
}
.webcam-empty[hidden], .webcam.is-empty img { display: none; }
/* a 4:3 camera (PAL 704 x 576, shown 768 x 576): stretched, not cropped */
.dash .webcam-4x3 img, .webcam-4x3 .webcam-empty { aspect-ratio: 4 / 3; object-fit: fill; }
.cam-toggle { display: none; }

/* Webcam section: one figure per camera; two side by side from 900 px
   (4fr 3fr: 16:9 and 4:3 frames come out the same height) */
.cam-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cam-grid .figure + .figure { margin-top: 0; }
@media (min-width: 900px) {
  .cam-grid:has(> .webcam + .webcam) { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); }
}
/* public: the capture time under the image, one line */
/* One media control (webcams, satellite): a calm pill under the images,
   centered. Round icon buttons, the shown time in the middle, "Neuestes
   Bild" as a small pill that is filled while the newest frame is shown;
   the satellite adds a filled play button in front. On phones the pill
   takes the full width and the time takes the rest. */
.cam-foot { display: flex; justify-content: center; margin: 16px 0 0; }
.cam-ctl {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
}
.cam-ctl[hidden] { display: none; }
.cam-ctl button {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--link); font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
}
@media (hover: hover) { .cam-ctl button:hover { background-color: var(--link-tint); } }
.cam-ctl button:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
/* aria-disabled, not disabled: a focused arrow keeps focus at the end of the list */
.cam-step[aria-disabled="true"], .cam-step[aria-disabled="true"]:hover { background: transparent; cursor: default; }
.cam-step[aria-disabled="true"] svg { opacity: 0.3; }
.cam-ctl-time {
  display: inline-flex; align-items: center; justify-content: center; min-width: 15ch; padding: 0 8px;
  font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
/* a 36 px pill inside a 44 px target: the 4 px transparent borders above and below are hit area */
.cam-ctl .cam-latest {
  margin-left: 4px; padding: 0 14px; border: solid transparent; border-width: 4px 0; background-clip: padding-box;
  box-shadow: inset 0 0 0 1px var(--link); font-size: 14px;
}
.cam-ctl .cam-latest[aria-pressed="true"] { background-color: var(--seg-on-bg); box-shadow: none; color: var(--seg-on-text); cursor: default; }
.cam-ctl .sat-play { margin-right: 4px; background-color: var(--seg-on-bg); color: var(--seg-on-text); }
@media (hover: hover) { .cam-ctl .sat-play:hover, .cam-ctl .cam-latest[aria-pressed="true"]:hover { background-color: var(--seg-on-bg); opacity: 0.9; } }
.sat-play .sat-i-pause, .sat-play.is-playing .sat-i-play { display: none; }
.sat-play.is-playing .sat-i-pause { display: block; }
@media (max-width: 480px) {
  .cam-foot .cam-ctl:not([hidden]) { display: flex; width: 100%; gap: 0; }
  .cam-ctl-time { flex: 1 1 auto; min-width: 0; padding: 0 2px; font-size: 14px; }
  .arc-foot .arc-date { font-size: 14px; }   /* as the time; .arc-date below sets 15 px */
  .cam-ctl .cam-latest { margin-left: 2px; padding: 0 10px; font-size: 13px; }
  .cam-ctl .sat-play { margin-right: 2px; }
  .sat-date { display: none; }   /* the 3 h loop needs no date on phones */
}
@media (max-width: 400px) {
  .cam-ctl-time { padding: 0; font-size: 13px; }
  .arc-foot .arc-date { font-size: 13px; }
  .cam-ctl .cam-latest { margin-left: 0; padding: 0 7px; }
  .cam-ctl .sat-play { margin-right: 0; }
}   /* "27.11. 18:05 MESZ" fits at 360 px */
/* Webcams (intern, live): day pill, frame pill (the satellite control) and
   slider, the same width (up to 480 px), stacked and centered, then the frame count. The
   native date field is the one date picker; at night it is hidden (the
   system picker cannot be made red only) and the date shows as text. */
.arc-foot { flex-direction: column; align-items: center; gap: 8px; }
.arc-foot[hidden] { display: none; }   /* file:// and #mock=: no controls */
.arc-foot .cam-ctl, .arc-range { width: 100%; max-width: 480px; }
.arc-foot .cam-ctl-time { flex: 1 1 auto; min-width: 0; }
/* Frame pill (webcams, satellite): [play, speed] ‹ time › [Neuestes Bild].
   The two 1fr sides are equal by construction, so the time sits exactly in
   the middle; the webcam pill is 480 px (full width below), the satellite
   pill as wide as its content. The speed button fills the rest of its side. */
:is(#arc-ctl, #sat-ctl):not([hidden]) { display: inline-grid; grid-template-columns: 1fr auto auto auto 1fr; gap: 2px; }
.cam-ctl-lead { display: flex; gap: 4px; min-width: 0; }
.cam-ctl .cam-speed { flex: 1 1 auto; font-variant-numeric: tabular-nums; }
:is(#arc-ctl, #sat-ctl) .sat-play { margin-right: 0; }
:is(#arc-ctl, #sat-ctl) .cam-latest { justify-self: stretch; margin-left: 0; }
@media (max-width: 480px) {
  :is(#arc-ctl, #sat-ctl):not([hidden]), .cam-ctl-lead { gap: 0; }
}
@media (max-width: 400px) {
  :is(#arc-ctl, #sat-ctl) .cam-latest { padding: 0 4px; font-size: 12px; }
}
@media (max-width: 379px) {
  .cam-zone { display: none; }   /* 360 px: "17:42"; the day pill and the announcement keep the zone */
}
.arc-date {
  flex: 0 1 auto; min-width: 0; margin: 0 auto;   /* date and picker icon centered together */
  height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: center;
}
.arc-date:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.arc-date-text, html[data-night] .arc-date { display: none; }
html[data-night] .arc-date-text { display: inline-flex; }
.arc-range { height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.arc-range[hidden] { display: none; }
.arc-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.arc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--border-strong); }
.arc-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-strong); }
.arc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--link); }
.arc-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--link); }
html[data-night] .arc-range::-webkit-slider-runnable-track { background: #4a0000; }
html[data-night] .arc-range::-moz-range-track { background: #4a0000; }
.arc-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-muted); }

/* "Nacht …" (see docs/foa-dashboard.md):
   chart, sky track, object table, Sonne, Mond + "Dunkel ohne Mond", placed
   by areas. Phones: one column. 900 to 1247: chart 12; sky track 5 +
   Sonne 7; Mond 12 (Mond 6 + Objekt 6 with an object). From 1248 (four
   columns are 360 px there): chart 8 + sky track 4; Sonne 6, on the right
   Mond with "Dunkel ohne Mond", then Objekt. */
.night-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; align-items: start;
  grid-template-areas: "chart" "sky" "obj" "sun" "moon";
}
.night-chart { grid-area: chart; min-width: 0; }
.sky-track { grid-area: sky; min-width: 0; }
.night-objbox { grid-area: obj; min-width: 0; }
.night-objbox[hidden] { display: none; }
#night-sun { grid-area: sun; }
.night-moon { grid-area: moon; min-width: 0; }
.night-moon .night-dark { margin-top: 14px; }
@media (min-width: 900px) {
  .night-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: "chart chart chart chart chart chart chart chart chart chart chart chart"
      "sky sky sky sky sky sun sun sun sun sun sun sun" "moon moon moon moon moon moon moon moon moon moon moon moon";
  }
  .has-obj .night-grid {
    grid-template-areas: "chart chart chart chart chart chart chart chart chart chart chart chart"
      "sky sky sky sky sky sun sun sun sun sun sun sun" "moon moon moon moon moon moon obj obj obj obj obj obj";
  }
}
@media (min-width: 1248px) {
  .night-grid { grid-template-areas: "chart chart chart chart chart chart chart chart sky sky sky sky" "sun sun sun sun sun sun moon moon moon moon moon moon"; }
  .has-obj .night-grid {
    grid-template-areas: "chart chart chart chart chart chart chart chart sky sky sky sky"
      "sun sun sun sun sun sun moon moon moon moon moon moon" "sun sun sun sun sun sun obj obj obj obj obj obj";
  }
  .has-obj .night-objbox { margin-top: -12px; }   /* 28 px between the stacked tables */
}
/* intern Übersicht: only Sonne and Mond, 6 + 6 from 900 px */
.night-grid.night-pair { grid-template-areas: "sun" "moon"; }
@media (min-width: 900px) { .night-grid.night-pair { grid-template-areas: "sun sun sun sun sun sun moon moon moon moon moon moon"; } }
.night-figure .chart-plot { position: relative; }
.night-figure .chart-plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.night-figure .chart-legend { display: block; }
.night-figure .u-over { touch-action: pan-y; cursor: crosshair; }
.night-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dotted var(--text-muted); pointer-events: none; }
.night-cross[hidden] { display: none; }
.lg-ut { display: none; }
@media (min-width: 640px) { .lg-ut { display: inline; } }
.night-dark { margin: 0; font: 600 16px/1.45 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }

/* event table, in the row style of .facts */
.night-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.night-table :is(th, td) { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.night-table tbody tr:first-child > *, .night-table thead + tbody > tr:first-child > * { border-top: 1px solid var(--border); }
.night-table thead :is(th, td) { padding: 0 0 6px; border-bottom: 0; font: 600 12px/1.4 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); }
.night-table tbody th { font-weight: 400; color: var(--text-faint); }
.night-table td:nth-child(n + 3), .night-table thead th:nth-child(n + 3) { padding-left: 16px; text-align: right; white-space: nowrap; color: var(--text); }
.night-table td[colspan="2"] { white-space: normal; }
.night-table .nt-icon { width: 24px; padding-right: 8px; color: var(--text); }
.night-table .ev-icon { display: block; fill: currentColor; }
/* group label (Sonne, Mond) as the caption */
.night-table caption.nt-caption {
  padding: 0 0 6px; text-align: left;
  font: 600 12px/1.4 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--link);
}
html[data-night] .night-table caption.nt-caption { color: var(--text); font-size: 14px; }

/* --------------------------------------------------------------------------
   "Verlauf": range switch and charts
   -------------------------------------------------------------------------- */
.range-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  margin: 0 0 28px;
  border: 1px solid var(--link);
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.range-switch button {
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--link);
  background: transparent;
  color: var(--link);
  font: 600 15px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.range-switch button:first-child { border-left: 0; }
.range-switch button:hover { background: var(--link-tint); }
.range-switch button[aria-pressed="true"] { background: var(--seg-on-bg); color: var(--seg-on-text); }
/* night: every pressed segment like the checked Mindesthöhe (#1e0000, 2 px #ff0000 ring) */
html[data-night] :is(.range-switch button[aria-pressed="true"], .cam-ctl .cam-latest[aria-pressed="true"], .cam-ctl .sat-play) { box-shadow: inset 0 0 0 2px #ff0000; }
.range-switch button:focus-visible { outline-offset: -5px; outline-color: currentColor; }

.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px var(--gap); }
@media (min-width: 1024px) {
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chart { margin: 0; min-width: 0; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-title { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--text); }
.chart-now { margin: 0; font: 600 16px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.chart-plot { min-width: 0; overflow: hidden; background: var(--bg); }
.chart-empty {
  display: grid;
  place-items: center;
  height: 220px;
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}
.chart-empty p { margin: 0; }
@media (max-width: 639px) { .chart-empty { height: 180px; } }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-content: flex-start;
  min-height: calc(2 * 1.45em + 2px);   /* fixed while the cursor moves: two lines, three on phones */
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) { .chart-legend { min-height: calc(3 * 1.45em + 4px); } }
.lg-time { font-weight: 600; color: var(--text); }
.lg-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-key { display: inline-block; width: 18px; height: 0; }
.chart-caption { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-faint); }
.chart-table summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 600 14px/1.2 var(--sans);
  color: var(--link);
  cursor: pointer;
}
.chart-table summary::before { content: "\25B8"; margin-right: 8px; }
.chart-table[open] summary::before { content: "\25BE"; }
.chart-table summary::-webkit-details-marker { display: none; }
.table-scroll { max-height: 320px; overflow: auto; border: 1px solid var(--border); }
.table-scroll .data-table { margin: 0; font-variant-numeric: tabular-nums; }
.table-scroll .data-table thead th { position: sticky; top: 0; background: var(--surface); }

/* uPlot: page font, quiet crosshair */
.uplot { font-family: var(--sans); width: auto; }
.uplot .u-cursor-x { border-right: 1px dashed var(--text-muted); }
.uplot .u-cursor-pt { border-radius: 50%; }

/* --------------------------------------------------------------------------
   "Prognose"
   -------------------------------------------------------------------------- */
.forecast-pair { align-items: start; }
.night-forecast-note { display: none; }

/* --------------------------------------------------------------------------
   Night mode: component overrides
   Body text >= 16 px, #CC0000 only for 14 px semibold or >= 18 px, links
   underlined, no images in true color.
   -------------------------------------------------------------------------- */
html[data-night] main a, html[data-night] .night-footer a, html[data-night] .dash-brand {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html[data-night] :is(.tabs-row, .subnav) a, html[data-night] main a.btn { text-decoration: none; }   /* tabs, pill links and buttons are framed */
html[data-night] :is(.figure figcaption, .chart-caption, .facts dt, .webcam-empty, .night-table tbody th, .tl-summary, .chart-empty) { color: var(--text); font-size: 16px; }
html[data-night] .tl-axis { color: var(--text); font-size: 14px; font-weight: 600; }   /* #CC0000 at 12 px was 3.6:1 */
html[data-night] .night-table thead :is(th, td) { font-size: 14px; }
html[data-night] .link-list a { font-size: 16px; }
html[data-night] .tile-label { font-size: 14px; }
html[data-night] :is(.tile-sub, .chart-legend, .net-meta) { font-weight: 600; }
/* small chart text at night in full red: #CC0000 on black is only 3.6:1 */
html[data-night] :is(.chart-legend, .chart-caption) { color: var(--text); }

/* webcams and satellite: each behind one button, then red luminance only */
html[data-night] .cam-toggle { display: inline-flex; min-height: 44px; margin-bottom: 16px; }
html[data-night] .cam-grid:not(.is-shown), html[data-night] .cam-grid:not(.is-shown) ~ .cam-foot { display: none; }
html[data-night] .sat:not(.is-shown) { display: none; }
html[data-night] .webcam img { filter: url(#night-red); background: #000; border-color: var(--border-strong); }
/* satellite: full container width, control inside the figure under the
   image, credit last (left like every caption). The frames are fetched at
   2:1 around the observatory, so the marker is in the middle; no crop. */
.sat img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
html[data-night] .sat img { filter: url(#night-red); border-color: var(--border-strong); }
html[data-night] .webcam-time { background: #000; color: #ff0000; border: 1px solid #7a0000; }

/* Clear Outside is never loaded at night; the link stays */
html[data-night] .forecast .embed-consent, html[data-night] .embed-forget { display: none; }
html[data-night] .night-forecast-note {
  display: block;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 16px;
}
html[data-night] .data-table :is(th, td) { color: var(--text); border-color: var(--border); }
/* site parts of beobachtungsbetrieb.html: eyebrows, badges, muted body
   text and the accent bars in red */
html[data-night] { --blue: #ff0000; --accent: #7a0000; }
html[data-night] .eyebrow { font-size: 14px; color: var(--text); }
html[data-night] :is(.body-muted, .section-intro, .split-content p, .prose p, .prose li) { color: var(--text); }   /* 17 px regular, so not #CC0000 */
html[data-night] .badge { background: transparent; border-color: var(--text); color: var(--text); font-size: 14px; }
html[data-night] .badge-current { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Intern: Teleskop, Netzwerk
   -------------------------------------------------------------------------- */
.tel-timeline {
  position: relative;
  height: 32px;
  border: 1px solid var(--border-strong);
  background: var(--tl-park);
  overflow: hidden;
}
.tl-seg { position: absolute; top: 0; bottom: 0; }
.tl-park { background: var(--tl-park); }
.tl-off { background: var(--tl-off); }
.tl-slew { background: var(--tl-slew); }
.tl-track { background: var(--tl-track); }
.tl-error { background: var(--tl-error); }
.tl-none { background: var(--tl-none); }
.tl-axis { position: relative; height: 22px; margin-top: 4px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 639px) { .tl-axis .tl-minor { display: none; } }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.tl-legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--border-strong); }
.tl-summary { margin: 8px 0 0; font-size: 14px; color: var(--text-muted); }
.tel-pair { margin-top: 40px; align-items: start; }
@media (max-width: 899px) { .tel-pair { grid-template-columns: minmax(0, 1fr); } }

.net-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--gap); }
@media (min-width: 1024px) {
  .net-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .net-layout > :first-child { grid-column: 1 / span 8; }
  .net-layout > :last-child { grid-column: 9 / span 4; }
}
.net-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.net-dev { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.net-dev[data-up="false"] { border-color: var(--border-strong); }
.net-name { display: flex; align-items: flex-start; gap: 8px; margin: 0; font: 600 14px/1.3 var(--sans); color: var(--text); }
.net-name .shape { margin-top: calc((1.3em - 12px) / 2); }   /* dot level with the first line of two-line names */
.net-meta .nw { white-space: nowrap; }
.net-meta { margin: 4px 0 0 20px; font-size: 13px; line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }
html[data-night] .net-meta { font-size: 14px; }
.is-stale .net-dev { border-style: dashed; }
.is-stale .net-name { color: var(--text-muted); }
.push-table { font-variant-numeric: tabular-nums; }
.push-table tr.is-late :is(th, td) { font-weight: 600; color: var(--text); }

/* Messwerte: tiles and the history charts in one section */
.verlauf-head { margin-top: 48px; }

/* Range switch with eight ranges: on phones the buttons share the width,
   at least 44 px each; below 400 px the eight ranges sit 4 x 2 (lines from
   the 1 px gaps, like the tabs), so nothing is cut or scrolls */
@media (max-width: 639px) {
  .range-switch { display: flex; width: 100%; }
  .range-switch button { flex: 1 0 44px; min-width: 44px; padding: 0 4px; font-size: 14px; }
}
@media (max-width: 399px) {
  .verlauf-bar .range-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--link); }
  .verlauf-bar .range-switch button { border-left: 0; background-color: var(--bg); }
  .verlauf-bar .range-switch button:hover { background-image: linear-gradient(var(--link-tint), var(--link-tint)); }
  .verlauf-bar .range-switch button[aria-pressed="true"] { background: var(--seg-on-bg); }
}

/* Verlauf: range switch and the one shared cursor time beside it */
.verlauf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 28px; }
.verlauf-bar .range-switch { margin: 0; }
.verlauf-time { margin: 0; min-width: 22ch; font: 600 15px/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }

/* --------------------------------------------------------------------------
   Object bar, Mindesthöhe, sky track, "Jahresverlauf"
   (see docs/foa-dashboard.md)
   -------------------------------------------------------------------------- */
:root {
  --obj: #0063a6;
  --sk-line: #cdd3d7; --sk-disc: #ffffff; --sk-thr: #64747f; --sk-ann: #f2f4f5; --sk-text: #354d60;
  --sk-obj: #0063a6; --sk-obj-thin: #99c1db; --sk-moon: #2ba4a6; --sk-sun: #e65640;
}
html[data-night] {
  --obj: #ff0000;
  --sk-line: #4a0000; --sk-disc: #000000; --sk-thr: #990000; --sk-ann: #140000; --sk-text: #ff0000;
  --sk-obj: #ff0000; --sk-obj-thin: #7a0000; --sk-moon: #cc0000; --sk-sun: #cc0000;
}
.obj-bar { margin: 0 0 32px; }
/* "Objekt" like the "Mindesthöhe" legend: 14 px semibold, sentence case */
.obj-label { display: block; margin: 0 0 8px; font: 600 14px/1.4 var(--sans); color: var(--text-muted); }
html[data-night] .obj-label { color: var(--text); }
/* input + button with the hint right under them; chip and Mindesthöhe
   top-aligned with the 44 px input */
.obj-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.obj-entry { flex: 1 1 100%; min-width: 0; }
.obj-field { display: flex; gap: 8px; min-width: 0; }
.obj-field input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px;
  font: 400 16px/1 var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-btn);
}
.obj-field input::placeholder { color: var(--text-muted); opacity: 1; }
.obj-field input[aria-invalid="true"] { border-color: var(--banner-crit); border-width: 2px; }
.obj-go { height: 44px; white-space: nowrap; }
.obj-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1.3 var(--sans); color: var(--text); }
.obj-chip[hidden], .alt-group[hidden] { display: none; }
.obj-swatch line { stroke: var(--obj); stroke-width: 2.5; stroke-dasharray: 10 3 2 3; }
.obj-x { width: 44px; height: 44px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--text); font: 400 24px/1 var(--sans); cursor: pointer; }
@media (max-width: 899px) { .obj-chip, .obj-main > .alt-group { flex-basis: 100%; } }
@media (max-width: 479px) { .obj-field { flex-wrap: wrap; } .obj-field input { flex-basis: 100%; } }   /* the whole placeholder fits */
@media (min-width: 900px) { .obj-entry { flex: 0 1 auto; } .obj-field input { width: 360px; } }
/* 900 to 1179: input + button on row 1, chip + Mindesthöhe together on row 2 */
@media (min-width: 900px) and (max-width: 1179px) { .obj-entry { flex: 0 0 100%; } .obj-field input { flex: 0 1 360px; } }
.obj-hint { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.obj-status { margin: 8px 0 0; font: 600 15px/1.45 var(--sans); color: var(--text); }
.obj-status:empty { display: none; }
.obj-cds { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--border); background: var(--surface-2); }
.obj-cds[hidden] { display: none; }
.obj-cds p { margin: 0 0 10px; max-width: var(--measure); font-size: 15px; }
html[data-night] :is(.obj-hint, .obj-cds p) { font-size: 16px; color: var(--text); }
/* Mindesthöhe: radio buttons as a segmented control */
.alt-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.alt-group legend { float: left; margin-right: 10px; padding: 0; font: 600 14px/44px var(--sans); color: var(--text-muted); }
html[data-night] .alt-group legend { color: var(--text); }
.alt-seg { display: inline-flex; border: 1px solid var(--link); border-radius: var(--radius-btn); overflow: hidden; }
.alt-seg label { position: relative; }
.alt-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.alt-seg span {
  display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 10px;
  border-left: 1px solid var(--link); font: 600 15px/1 var(--sans); color: var(--link);
}
.alt-seg label:first-child span { border-left: 0; }
.alt-seg input:checked + span { background: var(--seg-on-bg); color: var(--seg-on-text); }
.alt-seg input:focus-visible + span { outline: 2px solid currentColor; outline-offset: -5px; }
@media (max-width: 399px) { .alt-seg span { min-width: 50px; padding: 0 8px; } }
html[data-night] .alt-seg input:checked + span { background: #1e0000; color: #ff0000; box-shadow: inset 0 0 0 2px #ff0000; }

/* sky track: inline SVG (colors from tokens), readout */
.sky-track { margin: 0; }
.sky-svg { display: block; width: 100%; max-width: 358px; height: auto; margin: 0 auto; }
/* Stefan: chart 8 + sky track 4 from 1248 px (four columns are 360 px
   there, so the circle never overflows). N sits on the LST row, S on the
   MEZ row (measured); the readout starts 8 px under the circle, level with
   the chart legend row. */
/* right-aligned, so circle and readout end with the tables of the 8 + 4 grid */
@media (min-width: 1248px) { .sky-svg { width: 360px; max-width: 100%; margin: -1px 0 0 auto; } }
.sky-svg * { vector-effect: non-scaling-stroke; }
.sk-disc { fill: var(--sk-disc); }
.sk-ann { fill: var(--sk-ann); }
.sk-line { fill: none; stroke: var(--sk-line); stroke-width: 1; }
.sk-horizon { stroke-width: 1.5; }
.sk-thr { fill: none; stroke: var(--sk-thr); stroke-width: 1; stroke-dasharray: 4 4; }
/* a halo in the disc color keeps ring and hour labels readable over a track */
.sk-text, .sk-hour { fill: var(--sk-text); font-family: var(--sans); font-weight: 600; paint-order: stroke; stroke: var(--sk-disc); stroke-width: 3px; stroke-linejoin: round; }
.sk-obj { fill: none; stroke: var(--sk-obj); stroke-width: 2.5; stroke-dasharray: 10 3 2 3; stroke-linejoin: round; }
.sk-obj-thin { fill: none; stroke: var(--sk-obj-thin); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.sk-moon { fill: none; stroke: var(--sk-moon); stroke-width: 2; stroke-linejoin: round; }
.sk-sun { fill: none; stroke: var(--sk-sun); stroke-width: 2; stroke-dasharray: 6 4; }
.sk-obj-f { fill: var(--sk-obj); }
.sk-moon-f { fill: var(--sk-moon); }
.sk-sun-f { fill: var(--sk-sun); }
.sk-pos { stroke: var(--sk-disc); stroke-width: 2; }
.sky-readout { max-width: 358px; margin: 8px auto 0; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--text-muted); }
/* one line each; a narrow column wraps after " · " (no-break spaces inside the parts), so no value is cut */
#sky-l1, #sky-l2 { display: block; overflow-wrap: anywhere; }
#sky-l1 { font-weight: 600; color: var(--text); }
@media (min-width: 1248px) { .sky-readout { max-width: 360px; margin-right: 0; } }
html[data-night] .sky-readout { font-size: 16px; font-weight: 600; color: var(--text); }

/* "Jahresverlauf" */
.section-lead { margin: -8px 0 20px; max-width: var(--measure); font-size: 16px; color: var(--text); }
.year-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 20px; }
.year-controls[hidden] { display: none; }
.year-controls .range-switch { margin: 0; }
.year-figure .chart-plot { position: relative; }
.year-figure .chart-plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.year-figure .u-over { touch-action: pan-y; cursor: crosshair; }
.year-keys { min-height: 0; margin-top: 8px; }
.data-table caption.year-caption { font: 600 15px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
html[data-night] .data-table caption.year-caption { font-size: 16px; }
.year-keys .lg-area { width: 14px; height: 14px; border: 1px solid var(--border-strong); }
.year-readout { display: block; min-height: 0; font-weight: 600; color: var(--text); }
/* headers carry the unit and may wrap (at the soft hyphens) */
.year-figure .data-table thead th { white-space: normal; vertical-align: bottom; hyphens: manual; -webkit-hyphens: manual; }

/* "Prognose": subheads like every other subhead on the dashboard (16 px) */
.dash .forecast-pair .link-group h3 { margin: 0 0 12px; font: 600 16px/1.3 var(--sans); color: var(--text); }
html[data-night] .btn-primary { background: #1e0000; border-color: #ff0000; color: #ff0000; }
html[data-night] .btn-primary:hover { background: #330000; }
