/* meteo365 v4 — Wetterstation Detailseite.
 *
 * Bewusst KEIN eigenes Design: die Seite laedt components/fc-blocks.css und
 * pages/forecast.css und benutzt deren Klassen (.fc-shell .fc-id .fc-place
 * .fc-tabs .fc-sec .fc-mode .fc-mv .fc-stat .fc-cond .fc-chart .fc-dtab …).
 * forecast.php selbst bleibt unangetastet — hier wird nur mitgelesen.
 *
 * Diese Datei ergaenzt NUR, was es dort nicht gibt: 7-Tage-Streifen,
 * Nachbarliste, Historien-Block. Alles in derselben Sprache —
 * Haarlinien, Monospace-Mikrolabels, EIN Akzent.
 */

/* ---------- Ruecklink + Reiter-Views ---------- */
.sd-back {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; margin-bottom: 2px;
}
.sd-back:hover { color: var(--text); }

.sd-view[hidden] { display: none; }
/* Erste Sektion einer Ansicht ohne Trennlinie — die Reiterleiste trennt schon. */
.sd-view > .fc-sec:first-child { border-top: 0; padding-top: 8px; }

.sd-note { font-size: 12.5px; color: var(--muted); padding: 10px 0; }

/* Kompass und Windrose sind am 25.08.2026 mit dem Wind-Reiter ausgebaut worden.
   Regeln liegen in 100/_ausgebaut/station-detail.css.vor-wind-ausbau-20260825. */

/* ---------- 7-Tage-Streifen ---------- */
.sd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.sd-day { text-align: center; display: grid; gap: 5px; }
.sd-day__name {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.sd-day__hi, .sd-day__lo {
  font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.sd-day__hi { color: var(--text); }
.sd-day__lo { color: var(--muted); }
.sd-day__track {
  position: relative; height: clamp(64px, 12vw, 92px); width: 7px;
  margin-inline: auto; border-radius: 999px; background: var(--line);
}
.sd-day__bar {
  position: absolute; left: 0; right: 0; border-radius: 999px;
  background: linear-gradient(180deg, #f0883e, var(--brand-cyan));
}
.sd-day__rain {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sd-day__rain.is-wet { color: #3b9fe0; }

/* ---------- Nachbarstationen ---------- */
.sd-near-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sd-near {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 13px; background: var(--bg); text-decoration: none; color: var(--text);
  transition: background var(--t) var(--ease);
}
.sd-near:hover { background: rgba(255, 255, 255, .05); }
.sd-near__name { font-size: 13px; min-width: 0; }
.sd-near__meta {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.sd-near__temp { color: var(--text); }

/* ---------- Stammdaten ---------- */
.sd-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 0; }
.sd-dl dt {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.sd-dl dd { margin: 0; font-size: 13px; color: var(--text); }

/* ---------- Historie (lange Reihe) ---------- */
.sd-hist-head {
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(28px, 4.6vw, 44px); color: var(--text); margin: 0;
}
.sd-hist-head span { color: var(--muted); font-weight: 600; font-size: .42em; letter-spacing: .02em; display: block; margin-top: 8px; }

.sd-hist-lead {
  font-size: clamp(15px, 2.1vw, 18px); line-height: 1.4; color: var(--text);
  margin: 0; max-width: 60ch; font-weight: 600; letter-spacing: -.01em;
}
.sd-hist-sub { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; max-width: 60ch; }

/* Jahresmittel: duenne Einzeljahre, kraeftiges Gleitmittel. */
.sd-trend-single { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .5; }
.sd-trend-avg { fill: none; stroke: #f0883e; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sd-ylab {
  position: absolute; left: 0; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
/* Nur das SVG steckt in .sd-plot, damit die Prozent-Position der y-Beschriftung
   exakt auf die Diagrammhoehe passt; die x-Achse steht darunter ausserhalb. */
.sd-plot { position: relative; padding-left: 36px; }
.sd-plot .fc-chart { padding: 0; height: clamp(150px, 22vw, 190px); }
.sd-plotwrap .fc-chart-axis { padding-left: 36px; }
.sd-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.sd-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.sd-legend .sd-legend--avg i { height: 3px; background: #f0883e; }

@media (max-width: 640px) {
  .sd-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .sd-dl dd { margin-bottom: 10px; }
}

/* ---------- Diagramm-Serien (die uebrigen kommen aus forecast.css) ---------- */
.sd-series-hum  { stroke: #3b9fe0; }
.sd-series-pres { stroke: #9b8cf0; }
.sd-band        { fill: #f0883e; opacity: .13; }

/* Drucktendenz neben dem Wert */
.sd-tend { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; font-size: 11.5px; color: var(--muted); }
.sd-tend svg { display: block; }
.sd-tend--rising  { color: #f0883e; }
.sd-tend--falling { color: #3b9fe0; }

/* Einheiten in den Wertkacheln zuruecknehmen */
.fc-cond-val small { font-size: .62em; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }

/* Kacheln sollen die Zeile fuellen: auto-fill liesse bei breitem Schirm leere
   Spalten stehen, auto-fit klappt sie zusammen. */
.sd-view .fc-cond-grid,
[data-station-history] .fc-cond-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Wert, Einheit und Datum gehoeren untereinander — als Inline-Spans liefen sie
   sonst in eine Zeile („44,2 °C18. Juli 1978"). */
.fc-cond-val { display: block; }
.fc-cond .fc-card-sub { display: block; margin-top: 4px; }

/* Datum unter dem Wochentag im 7-Tage-Streifen — eine Stufe leiser als der Tag. */
.sd-day__date {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em;
  color: var(--muted); opacity: .75; font-variant-numeric: tabular-nums;
}

/* ---------- Verlauf: gestapelte Diagramme ----------
   Fuenf Groessen untereinander mit gemeinsamer Zeitachse. Die .fc-mc-*-Regeln
   aus forecast.css tragen Fadenkreuz, Punkt und Tooltip; hier wird nur die
   Hoehe zurueckgenommen (210 px x 5 waeren zwei Bildschirme) und der
   Beschriftungs-Freiraum links geschaffen. */
.sd-charts { margin-top: 4px; }
.sd-ch { margin-bottom: 4px; }
.sd-ch-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 0 0 2px 40px;
}
.sd-ch-t {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.sd-ch-r {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sd-ch .fc-mc-chart { margin-bottom: 6px; padding-left: 40px; }
.sd-ch .fc-mc-chart .fc-chart { height: clamp(84px, 11vw, 112px); }
/* Ohne eigene Achse je Diagramm reicht das Fadenkreuz bis ganz nach unten. */
.sd-ch .fc-mc-cross, .sd-ch .fc-mc-dots { inset: 0; }
.sd-ch .fc-mc-dot { background: var(--text); box-shadow: 0 0 0 2px var(--bg); }
.sd-charts .fc-chart-axis { padding-left: 40px; }
.sd-ch .sd-ylab { z-index: 1; }
.sd-ch .fc-mc-tip[hidden] { display: none; }

@media (max-width: 560px) {
  .sd-ch-h { padding-left: 32px; }
  .sd-ch .fc-mc-chart, .sd-charts .fc-chart-axis { padding-left: 32px; }
}

/* ---------- Tabelle: Zebra + sortierbare Kopfzeile ----------
   Bewusst auf .sd-table beschraenkt, damit die Tabellen der Stadt-Prognose
   (dieselbe Klasse .fc-mc-table) unveraendert bleiben. */
.sd-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .045); }
html[data-theme="light"] .sd-table tbody tr:nth-child(even) td { background: rgba(8, 49, 69, .04); }
.sd-table tbody tr:hover td { background: rgba(255, 255, 255, .08); }
html[data-theme="light"] .sd-table tbody tr:hover td { background: rgba(8, 49, 69, .07); }

.sd-th { cursor: pointer; user-select: none; white-space: nowrap; }
.sd-th:hover { color: var(--text); }
.sd-th.is-sorted { color: var(--text); }
.sd-sort { display: inline-block; width: 1em; margin-left: 4px; font-size: 8px; vertical-align: 1px; color: var(--accent); }

/* Ruecklink als Pille — als nackter Text schwamm er ueber dem Meta-Streifen
   und war als Schaltflaeche nicht erkennbar. */
.sd-back {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--fc-glass, rgba(255, 255, 255, .07));
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.sd-back:hover { color: var(--text); border-color: var(--muted); }
html[data-theme="light"] .sd-back { background: rgba(8, 49, 69, .05); }
.fc-top .sd-back + .fc-id { margin-top: 12px; }

/* Einleitung unter der H1 — serverseitig gerendert, deshalb auch ohne
   JavaScript da. Breite begrenzt, damit die Zeilen lesbar bleiben. */
.sd-lede {
  margin: 14px 0 0; max-width: 68ch;
  font-size: clamp(14px, 1.7vw, 16px); line-height: 1.55; color: var(--muted);
}
.sd-lede strong { color: var(--text); font-weight: 600; }

/* ---------- Fragen & Antworten ----------
   Haarlinien statt Kasten: die Abgrenzung nach oben leistet schon der kraeftige
   Strich des Seitenfusses, ein zweiter Rahmen daneben macht den Block schwer. */
.sd-q-list { margin-top: 10px; }
.sd-q { border-bottom: 1px solid var(--line); }
.sd-q:last-child { border-bottom: 0; }
.sd-q summary {
  cursor: pointer; list-style: none; padding: 14px 26px 14px 0; position: relative;
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: color var(--t) var(--ease);
}
.sd-q summary::-webkit-details-marker { display: none; }
.sd-q summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 15px; color: var(--muted); line-height: 1;
}
.sd-q[open] summary::after { content: "−"; }
.sd-q summary:hover { color: var(--accent); }
/* Offene Frage nur ueber die Textfarbe markieren — eine Flaeche waere hier
   wieder ein Kasten durch die Hintertuer. */
.sd-q[open] summary { color: var(--accent); }
.sd-q p {
  margin: -2px 0 16px; max-width: 68ch; padding-right: 26px;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
}

/* ---------- Seitenfuss-Bereich (Fragen + Nachbarn) ----------
   Alles darueber gehoert zum gewaehlten Reiter, alles ab hier zur Seite. Diese
   Grenze braucht mehr als die uebliche Haarlinie: kraeftigerer Strich im
   Markenblau plus deutlich Luft, sonst laufen Reiterinhalt und Seitentext
   ineinander. Nur die ERSTE Sektion bekommt ihn — untereinander reicht die
   normale Trennung. */
.sd-faq {
  margin-top: clamp(30px, 5vw, 56px);
  padding-top: clamp(24px, 3.4vw, 36px);
  border-top: 2px solid color-mix(in srgb, var(--brand-cyan) 42%, transparent);
}
html[data-theme="light"] .sd-faq {
  border-top-color: color-mix(in srgb, var(--brand-deep) 32%, transparent);
}
/* Die Nachbarliste schliesst direkt an — kein zweiter kraeftiger Strich. */
.sd-faq + [data-nearby-seo] { margin-top: 6px; }

/* ---------- Klima im Jahresverlauf ----------
   Zwoelf Spalten in derselben Bauart wie der 7-Tage-Streifen: Balken von der
   mittleren Tief- zur mittleren Hoechsttemperatur, eingefaerbt aus TEMPERATURE_K.
   Auf schmalen Schirmen scrollt die Reihe waagerecht, statt die Spalten auf
   unleserliche 30 px zu quetschen. */
.sd-clim-wrap { overflow-x: auto; margin-top: 6px; padding-bottom: 4px; }
.sd-clim {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr);
  gap: 6px; min-width: 100%;
}
.sd-clim-col { text-align: center; display: grid; gap: 5px; }
.sd-clim-v {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sd-clim-v--lo { color: var(--muted); }
.sd-clim-track {
  position: relative; height: clamp(90px, 15vw, 130px); width: 9px;
  margin-inline: auto; border-radius: 999px; background: var(--line);
}
.sd-clim-bar { position: absolute; left: 0; right: 0; border-radius: 999px; }
.sd-clim-rain {
  height: 34px; width: 18px; margin-inline: auto; display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.sd-clim-rbar { display: block; width: 100%; background: #3b9fe0; opacity: .75; border-radius: 2px 2px 0 0; }
.sd-clim-mm {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sd-clim-m {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.sd-lg-hi   { background: #f0883e; }
.sd-lg-lo   { background: var(--brand-cyan); }
.sd-lg-rain { background: #3b9fe0; }

/* Jahresauswahl über der Monatstabelle */
.sd-year { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.sd-year__lbl {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* Monatsmittel als Strich im Klimabalken */
.sd-clim-mean {
  position: absolute; left: -3px; right: -3px; height: 2px;
  background: var(--text); transform: translateY(-1px); border-radius: 1px;
  box-shadow: 0 0 0 1px var(--bg);
}
.sd-lg-mean { background: var(--text); height: 2px; }

/* Icon in der freien Ecke der Rekord-Kacheln */
.sd-cond--ico { position: relative; }
.sd-cond-ico {
  position: absolute; top: 11px; right: 12px; width: 20px; height: 20px;
  color: var(--muted); opacity: .55;
}
.sd-cond-ico svg { width: 100%; height: 100%; display: block; }
.sd-cond--ico .fc-cond-label { padding-right: 26px; }

/* Tooltip am Jahresprofil — sitzt IM Gitter, damit die Prozentlage auch beim
   waagerechten Scrollen stimmt. */
.sd-clim { position: relative; }
.sd-clim-tip { top: 2px; }
.sd-clim-col.is-active .sd-clim-track { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-cyan) 45%, transparent); border-radius: 999px; }
.sd-clim-col { cursor: default; }

/* Jahresmittel: SVG-deckungsgleiche Flaeche fuers Fadenkreuz */
/* touch-action:pan-y — horizontales Wischen verfolgt den Zeiger, vertikales
   Scrollen bleibt; sonst bricht der Browser die Verfolgung am Handy ab. */
.sd-plot-in { position: relative; touch-action: pan-y; }
.sd-plot-in .fc-mc-cross, .sd-plot-in .fc-mc-dots { inset: 0; }
.sd-plot-in .fc-mc-dot { background: var(--muted); box-shadow: 0 0 0 2px var(--bg); }
.sd-plot-in .fc-mc-dot.sd-dot-avg { background: #f0883e; }
.sd-plot { cursor: crosshair; }

/* ---------- Tagebuch: dieser Kalendertag über alle Jahre ----------
   Ein Strich je Jahr, Hoehe = Tageshoechstwert. Bei 85 Jahren ist das dichter
   als jedes Balkendiagramm und trotzdem lesbar; das laufende Jahr sticht heraus. */
.sd-diary-bars {
  position: relative; display: flex; align-items: flex-end; gap: 2px;
  height: clamp(90px, 14vw, 130px); margin-top: 14px;
  padding-bottom: 2px; border-bottom: 1px solid var(--line);
}
.sd-dbar {
  flex: 1 1 0; min-width: 2px; height: var(--h, 50%);
  background: var(--muted); opacity: .55; border-radius: 2px 2px 0 0;
  transition: opacity var(--t) var(--ease);
}
.sd-dbar:hover { opacity: 1; }
.sd-dbar.is-empty { height: 4px; opacity: .18; }
.sd-dbar.is-today {
  background: var(--accent); opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sd-diary-tip { top: 2px; }
.sd-diary-ax {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}

/* ---------- Tageskalender je Monat ----------
   Klick auf eine Monatszeile klappt darunter den Monat auf: sieben Spalten,
   Woche ab Montag. Beantwortet „an welchem Tag kamen die 228 mm?". */
.sd-mrow { cursor: pointer; }
.sd-mrow:hover td { background: rgba(255, 255, 255, .05); }
html[data-theme="light"] .sd-mrow:hover td { background: rgba(8, 49, 69, .05); }
.sd-mrow.is-open td { background: rgba(255, 255, 255, .07); }
.sd-calrow > td { padding: 0 0 16px !important; }

.sd-cal { padding: 4px 2px 0; }
.sd-cal-hd, .sd-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sd-cal-hd span {
  font-family: var(--font-mono); font-size: clamp(9.5px, .95vw, 12px); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 4px;
}
/* Aufbau einer Zelle: Tag · Hoechstwert · Farbbalken · (Tiefstwert · Boee) · Regen.
   Die Zahl bleibt in Textfarbe, die Temperaturfarbe traegt der Balken — farbige
   Ziffern auf blauem Grund waren bei 30–42 °C kaum lesbar.
   Groessen ueber clamp(): die Kacheln sind auf breiten Schirmen ~180 px, da war
   eine feste 15-px-Zahl zu zaghaft; auf dem Handy (7 Spalten auf 375 px) bleibt es eng. */
.sd-cal-cell {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 6px 8px;
  text-align: center; display: grid; gap: 2px; min-height: 76px; align-content: start;
  /* Leichter Schatten: hebt die Kachel vom blauen Grund ab, ohne dass aus dem
     ruhigen Raster ein Kartenstapel wird. */
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  background: rgba(255, 255, 255, .02);
}
html[data-theme="light"] .sd-cal-cell {
  box-shadow: 0 1px 3px rgba(8, 49, 69, .12);
  background: rgba(255, 255, 255, .5);
}
/* Leere Tage tragen weder Rand noch Schatten — sonst rastert der Monat falsch. */
.sd-cal-cell.is-blank { border-color: transparent; opacity: .35; box-shadow: none; background: none; }
.sd-cal-d {
  font-family: var(--font-mono); font-size: clamp(9.5px, .95vw, 12px); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sd-cal-t {
  font-family: var(--font-mono); font-size: clamp(15px, 1.5vw, 21px); color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.sd-cal-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin: 3px 14% 4px; }
.sd-cal-row2 {
  display: flex; align-items: baseline; justify-content: center; gap: clamp(6px, .8vw, 11px);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.sd-cal-l { font-size: clamp(10.5px, 1.1vw, 14px); color: var(--muted); }
.sd-cal-g { font-size: clamp(10.5px, 1.1vw, 14px); color: var(--muted); opacity: .85; }
.sd-cal-r {
  font-family: var(--font-mono); font-size: clamp(10.5px, 1.1vw, 14px); color: #3b9fe0;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
/* Windzeichen vor der Boee — ohne das las sich „11° 39" wie zwei Temperaturen. */
.sd-ico-wind {
  width: clamp(11px, 1.15vw, 15px); height: clamp(11px, 1.15vw, 15px);
  vertical-align: -1px; margin-right: 3px; opacity: .7; display: inline-block;
}
/* Der nasseste Tag ist der, den man sucht — deshalb hervorgehoben. */
.sd-cal-cell.is-wettest { border-color: #3b9fe0; background: rgba(59, 159, 224, .10); }
.sd-cal-note {
  margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
@media (max-width: 560px) {
  .sd-cal-cell { min-height: 60px; padding: 5px 2px; }
  .sd-cal-t { font-size: 13px; }
  .sd-cal-row2 { gap: 4px; }
  .sd-cal-l, .sd-cal-g, .sd-cal-r { font-size: 9.5px; }
  .sd-ico-wind { width: 9px; height: 9px; margin-right: 2px; }
}

/* Rekorde innerhalb der Verlauf-Sektion — Zwischenüberschrift statt Sektionslinie */
.sd-rec-h {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 4px 0 8px;
}
[data-hist-records] { margin-bottom: 22px; }
[data-hist-records]:empty { margin-bottom: 0; }

/* Verweis aus der FAQ auf die Ortsprognose */
.sd-q-link { color: var(--brand-cyan); text-decoration: none; white-space: nowrap; }
.sd-q-link:hover { text-decoration: none; }
html[data-theme="light"] .sd-q-link { color: var(--brand-deep); }

/* ---------- Weiterführende Links (Überblick) ---------- */
.sd-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; }
.sd-link {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: var(--bg); text-decoration: none; color: var(--text);
  transition: background var(--t) var(--ease);
}
.sd-link:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="light"] .sd-link:hover { background: rgba(8, 49, 69, .05); }
.sd-link__ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent); opacity: .8; }
.sd-link__ico svg { width: 100%; height: 100%; display: block; }
.sd-link__txt { display: grid; gap: 2px; min-width: 0; }
.sd-link__txt b { font-size: 13.5px; font-weight: 600; }
.sd-link__txt small { font-size: 11.5px; color: var(--muted); }
.sd-link__arr { margin-left: auto; color: var(--muted); flex: 0 0 auto; }
.sd-link:hover .sd-link__arr { color: var(--accent); }

/* hidden-Attribut muss die Klasse schlagen: .fc-mc-tip setzt display:grid und
   ueberstimmt damit die UA-Regel [hidden]{display:none} — der Tooltip stand
   dadurch dauerhaft da (links angeschnitten), statt erst beim Zeigen. */
.fc-mc-tip[hidden] { display: none; }


/* Tagesmodus: die Tiefstwert-Linie in derselben Farbe wie der Höchstwert, nur
   zurückgenommen — beide gehören zur selben Größe. */
.sd-line-lo { opacity: .55; }

/* Die Temperaturspalte auf schmalem Schirm (Farbskala auf volle Breite) steht
   jetzt in components/fc-blocks.css — sie betrifft forecast.php genauso und
   gehoert deshalb in den gemeinsamen Baustein, nicht hierher. */
