/* ═══════════════════════════════════════════════════════════════
   SCHLEIPEGEL — Gestaltung
   Palette »Schlei«: Fjordblau (Schleswig) · Brackwassergrün (Kappeln)
   Serienfarben validiert (dataviz-Validator, hell & dunkel).
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Flächen */
  --page:        #f0f4f5;
  --surface:     #fbfcfc;
  --hero-deep:   #0d1b22;   /* Ostseedämmerung — in beiden Modi */
  --hero-deep-2: #12242e;

  /* Tinte */
  --ink:         #10181c;
  --ink-2:       #46555c;
  --ink-3:       #75858c;
  --grid:        #e2e8ea;
  --baseline:    #c3cdd1;
  --hairline:    rgba(16, 24, 28, 0.10);

  /* Serien (validiert auf --surface) */
  --s-schleswig: #1d6fb0;
  --s-kappeln:   #0b9268;

  /* Akzent Schilf — nur Zierde, nie Datenfarbe */
  --reed:        #b98a2f;

  /* Divergenzpaar Windkomponente (validiert): Ost staut ein, West drückt hinaus */
  --w-ost:       #0d8bab;
  --w-west:      #cf6f10;

  /* Status (fest, nie thematisiert) */
  --st-good:     #0ca30c;
  --st-warn:     #fab219;
  --st-serious:  #ec835a;
  --st-critical: #d03b3b;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 34, .05), 0 8px 28px -12px rgba(13, 27, 34, .12);

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-viz: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page:      #0b1114;
    --surface:   #141c1f;
    --ink:       #f2f7f8;
    --ink-2:     #b6c4c9;
    --ink-3:     #83929a;
    --grid:      #233136;
    --baseline:  #35454b;
    --hairline:  rgba(255, 255, 255, 0.10);
    --s-schleswig: #3d95dd;
    --s-kappeln:   #17aa7a;
    --reed:        #d4a94e;
    --w-ost:       #1ba0c2;
    --w-west:      #d0740f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--s-schleswig); outline-offset: 2px; border-radius: 3px; }

/* ══════════════ HERO ══════════════ */

.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--hero-deep-2) 0%, transparent 60%),
    var(--hero-deep);
  color: #eaf3f7;
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9fd3ee;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #f2f9fc;
}

.wordmark-text em { font-style: normal; color: #9fd3ee; font-weight: 400; }

.hero-live {
  font-size: 13px;
  color: #8fa8b4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--st-good);
  animation: livePulse 2.4s ease-in-out infinite;
}

.hero-live.is-error::before { background: var(--st-critical); animation: none; }

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 640;
  font-variation-settings: "opsz" 96;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 56px;
  max-width: 13ch;
}

.hero-sub {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 17px;
  color: #b8ccd6;
}

.hero-sub strong { color: #eaf3f7; font-weight: 600; }

/* Die Schlei-Silhouette */

.fjord { margin-top: 20px; }

.fjord-svg-wrap { position: relative; }

#fjord-svg { display: block; width: 100%; height: auto; }

.fjord-water {
  fill: url(#waterFill);
  stroke: #58b7e8;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 18px rgba(62, 154, 205, .35));
}

.fjord-place-dot { fill: #6d8896; }

/* Kartografischer Halo: Beschriftung bleibt auch auf der Wasserfläche lesbar */
.fjord-place-label, .fjord-value-label, .fjord-value, .fjord-status {
  paint-order: stroke;
  stroke: var(--hero-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.fjord-place-label {
  font-family: var(--font-viz);
  font-size: 17px;
  fill: #8fa8b4;
  letter-spacing: .04em;
}

.fjord-gauge-halo {
  fill: none;
  stroke: #ffd97a;
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  animation: sonar 3s ease-out infinite;
}

@keyframes sonar {
  0%   { opacity: .8; stroke-width: 3; r: 8; }
  70%  { opacity: 0;  stroke-width: .5; r: 26; }
  100% { opacity: 0; r: 26; }
}

@media (prefers-reduced-motion: reduce) {
  .fjord-gauge-halo { animation: none; opacity: .35; r: 14; }
}

.fjord-gauge-dot { fill: #ffd97a; stroke: var(--hero-deep); stroke-width: 2.5; }

.fjord-gauge-dot.is-inactive { fill: #6d8896; }

.fjord-value-label.is-inactive { fill: #6d8896; }

.fjord-status {
  font-family: var(--font-viz);
  font-size: 16px;
  font-style: italic;
  fill: #8fa8b4;
}

.fjord-value {
  font-family: var(--font-viz);
  font-weight: 700;
  font-size: 26px;
  fill: #ffffff;
}

.fjord-value-label {
  font-family: var(--font-viz);
  font-size: 15.5px;
  font-weight: 500;
  fill: #9fd3ee;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Sonnenkompass: Horizontring mit Himmelsrichtungen, Tagbogen über der Südhälfte */
.compass-ring-hero {
  fill: none;
  stroke: #46606e;
  stroke-width: 1;
  opacity: .75;
}

.compass-tick-hero { stroke: #587280; stroke-width: 1.4; }

.compass-letter-hero {
  font-family: var(--font-viz);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .06em;
  fill: #7d98a6;
  paint-order: stroke;
  stroke: var(--hero-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.sun-arc {
  fill: none;
  stroke: #ffd97a;
  stroke-width: 1.6;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
  opacity: .65;
}

.sun-mark { fill: #ffd97a; opacity: .85; }

/* Mond: silbrige Bahn, Phasen-Glyphe, zweite Zeile in den Ecken */
.moon-arc {
  fill: none;
  stroke: #b9c9d4;
  stroke-width: 1.3;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
  opacity: .45;
}

.moon-outline { fill: none; stroke: #b9c9d4; stroke-width: 1; opacity: .55; }
.moon-lit { fill: #e6edf2; }
.moon-group.is-below { opacity: .3; }

.moon-phase-label {
  font-family: var(--font-viz);
  font-size: 12.5px;
  fill: #b9c9d4;
  paint-order: stroke;
  stroke: var(--hero-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.moon-time {
  font-family: var(--font-viz);
  font-size: 14px;
  font-weight: 550;
  fill: #b9c9d4;
  paint-order: stroke;
  stroke: var(--hero-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.sun-disc { fill: #ffe49d; }
.sun-disc.is-below { opacity: .3; }
.sun-glow { fill: #ffd97a; opacity: .16; }

.sun-time {
  font-family: var(--font-viz);
  font-size: 14px;
  font-weight: 550;
  fill: #d9c491;
  paint-order: stroke;
  stroke: var(--hero-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.sun-night {
  font-family: var(--font-viz);
  font-size: 15px;
  font-style: italic;
  fill: #8fa8b4;
}

.fjord-caption {
  padding: 10px 0 22px;
  font-size: 12px;
  color: #6d8896;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.fjord-bw-legend { color: #8fa8b4; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.bw-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--hero-deep);
  vertical-align: -1px;
}

.fjord-bw-dot {
  stroke: var(--hero-deep);
  stroke-width: 2;
  cursor: pointer;
  transition: r .15s;
}

.fjord-bw-dot:hover, .fjord-bw-dot:focus-visible { r: 8; }

/* ══════════════ SECTIONS ══════════════ */

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0 8px; }

.section-head { margin-bottom: 24px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--reed);
  margin-bottom: 6px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-note {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 62ch;
}

/* ══════════════ WARNBANNER ══════════════ */

.alerts { padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

.alert-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--st-warn);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
}

.alert-card.is-moderate { border-left-color: var(--st-serious); }
.alert-card.is-severe { border-left-color: var(--st-critical); }

.alert-card summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  flex-wrap: wrap;
}

.alert-card summary::-webkit-details-marker { display: none; }

.alert-icon { color: var(--st-critical); font-size: 15px; }
.alert-card.is-minor .alert-icon { color: var(--st-warn); }
.alert-card.is-moderate .alert-icon { color: var(--st-serious); }

.alert-headline { font-weight: 650; }
.alert-time { font-size: 13px; color: var(--ink-3); margin-left: auto; }

.alert-body { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 90ch; }

/* ══════════════ STAT-KACHELN ══════════════ */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 16px;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tile-color, var(--s-schleswig));
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tile-name {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 18px;
}

.tile-sub { font-size: 12.5px; color: var(--ink-3); }

.tile-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  white-space: nowrap;
}

.tile-state .state-ico { font-size: 11px; line-height: 1; }

.tile-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tile-value {
  font-family: var(--font-viz);
  font-size: 46px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tile-unit { font-size: 16px; color: var(--ink-3); font-weight: 500; }

.tile-delta { font-size: 14px; font-weight: 600; }
.tile-delta.up   { color: var(--s-schleswig); }
.tile-delta.down { color: var(--reed); }

.tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.tile-spark { margin-top: 12px; }
.tile-spark svg { display: block; width: 100%; height: 44px; }

.tile-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tile.is-loading .tile-value { color: var(--ink-3); }

.third-gauge-note { margin-top: 14px; }

/* Wind-Kachel */

.wind-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.compass {
  width: 96px;
  height: 96px;
  flex: none;
}

.compass-ring { fill: none; stroke: var(--grid); stroke-width: 1.5; }
.compass-tick { stroke: var(--grid); stroke-width: 1.5; }
.compass-tick-major { stroke: var(--ink-3); stroke-width: 2; }
.compass-letter { fill: var(--ink-3); font-family: var(--font-viz); font-size: 10px; font-weight: 600; }
.compass-needle { stroke: var(--reed); stroke-width: 4; stroke-linecap: round; }
.compass-head { fill: var(--reed); }

.wind-facts { min-width: 0; }

.wind-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ══════════════ FILTER-ZEILE ══════════════ */

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.range-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow);
}

.range-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
}

.range-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.range-btn[aria-pressed="true"] {
  background: var(--hero-deep);
  color: #eaf3f7;
}

.range-btn:disabled { opacity: .45; cursor: wait; }

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.view-toggle:hover { color: var(--ink); }
.view-toggle[aria-pressed="true"] { background: var(--hero-deep); color: #eaf3f7; border-color: transparent; }

/* ══════════════ CHART ══════════════ */

.chart-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 12px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.legend-item[aria-pressed="false"] { opacity: .38; }

.legend-key { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }

.chart-unit { font-size: 12.5px; color: var(--ink-3); }

.chart-wrap { position: relative; }

#chart-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-viz);
  transition: opacity .25s;
}

.chart-wrap.is-refetching #chart-svg { opacity: .45; }

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.chart-loading[hidden] { display: none; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--grid);
  border-top-color: var(--s-schleswig);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* SVG-Chart-Anatomie */
.grid-line { stroke: var(--grid); stroke-width: 1; }
.axis-line { stroke: var(--baseline); stroke-width: 1; }
.tick-label { fill: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ref-band { fill: var(--ink-3); opacity: .14; }
.ref-label { fill: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.series-area { opacity: .09; }
.end-dot { stroke: var(--surface); stroke-width: 2; }
.end-label { font-size: 12px; font-weight: 600; fill: var(--ink-2); }
.crosshair { stroke: var(--baseline); stroke-width: 1; }
.hover-dot { stroke: var(--surface); stroke-width: 2; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 9px 12px;
  font-size: 13px;
  min-width: 168px;
  z-index: 5;
}

.tt-time { color: var(--ink-3); font-size: 12px; margin-bottom: 6px; }

.tt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 1.5px 0;
}

.tt-key { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.tt-name { color: var(--ink-2); flex: 1; }
.tt-val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Wind-Panel unter dem Pegel-Chart (gleiche Zeitachse) */

.wind-panel { margin-top: 4px; border-top: 1px solid var(--hairline); padding-top: 12px; }

.wind-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.wind-panel-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.wind-panel-legend { display: flex; gap: 16px; flex-wrap: wrap; }

.wind-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.wind-key-chip { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }

#wind-svg { display: block; width: 100%; height: auto; font-family: var(--font-viz); }

.wind-zero { stroke: var(--baseline); stroke-width: 1; }
.wind-area-ost { fill: var(--w-ost); opacity: .5; }
.wind-area-west { fill: var(--w-west); opacity: .5; }
.wind-line-ost { fill: none; stroke: var(--w-ost); stroke-width: 1.5; }
.wind-line-west { fill: none; stroke: var(--w-west); stroke-width: 1.5; }
.wind-arrow { stroke: var(--ink-3); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.wind-side-label { fill: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; }

/* Jetzt-Linie + Vorhersagebereich */
.now-line { stroke: var(--ink-3); stroke-width: 1.2; }
.now-label { fill: var(--ink-3); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.future-shade { fill: var(--ink-3); opacity: .05; }

.is-forecast.wind-area-ost, .is-forecast.wind-area-west { opacity: .24; }
.is-forecast.wind-line-ost, .is-forecast.wind-line-west { stroke-dasharray: 3 3.5; opacity: .8; }

.filter-right { display: flex; gap: 8px; flex-wrap: wrap; }

.chart-explainer {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 74ch;
}

.chart-explainer .key-ost, .chart-explainer .key-west {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
  vertical-align: -1px;
}

.chart-explainer .key-ost { background: var(--w-ost); }
.chart-explainer .key-west { background: var(--w-west); }

/* Wind-Animation im Hero */

#wind-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Tabelle */

.table-wrap { max-height: 430px; overflow: auto; border-top: 1px solid var(--hairline); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  text-align: right;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--baseline);
}

.data-table th:first-child, .data-table td:first-child { text-align: left; }

.data-table td {
  padding: 7px 14px;
  text-align: right;
  border-bottom: 1px solid var(--grid);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.data-table td:first-child { color: var(--ink-3); }

/* ══════════════ KARTE + WIKI ══════════════ */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
}

@media (max-width: 880px) { .duo { grid-template-columns: 1fr; } }

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  min-height: 420px;
}

#map { height: 100%; min-height: 420px; background: var(--page); }

.leaflet-container { font-family: var(--font-body); font-size: 13px; }

.map-popup-name { font-weight: 700; margin-bottom: 2px; }
.map-popup-val { font-variant-numeric: tabular-nums; }

.wiki-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wiki-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wiki-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 640;
}

.wiki-desc { font-size: 13.5px; color: var(--reed); font-weight: 600; margin-top: -6px; }

.wiki-extract { color: var(--ink-2); font-size: 15px; }

.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--s-schleswig);
  text-decoration: none;
  margin-top: auto;
}

.wiki-link:hover { text-decoration: underline; }

.wiki-license { font-size: 12px; color: var(--ink-3); }
.wiki-license a { color: inherit; }

/* ══════════════ FOOTER ══════════════ */

.footer {
  margin-top: 72px;
  background: var(--hero-deep);
  color: #8fa8b4;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  font-size: 13.5px;
}

.footer a { color: #b8ccd6; }

.footer-note { margin-top: 10px; font-size: 12.5px; color: #6d8896; }

.imprint {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #6d8896;
}

.imprint-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8fa8b4;
  margin-bottom: 6px;
}

.imprint a { color: #b8ccd6; }

/* ══════════════ RESPONSIVE FEIN ══════════════ */

/* Himmelszeile: auf dem Desktop stehen die Zeiten in den SVG-Ecken,
   mobil ersetzt diese HTML-Zeile die zu klein skalierenden SVG-Labels */
.sky-info { display: none; }

@media (max-width: 700px) {
  .hero-title { margin-top: 36px; }
  .tile-value { font-size: 38px; }
  .section { padding-top: 42px; }

  /* SVG-Texte skalieren mit der Karte — mobil deutlich anheben */
  .fjord-place-label { font-size: 30px; }
  .fjord-value { font-size: 48px; }
  .fjord-value-label { font-size: 27px; }
  .fjord-status { font-size: 27px; }
  .compass-letter-hero { font-size: 30px; }
  .sun-night { font-size: 26px; }

  /* Punkte und Marker mitwachsen lassen (SVG-Geometrie per CSS) */
  .fjord-gauge-dot { r: 10px; }
  .fjord-place-dot { r: 6px; }
  .fjord-bw-dot { r: 9px; }
  .fjord-bw-dot:hover, .fjord-bw-dot:focus-visible { r: 12px; }
  .sun-disc { r: 20px; }
  .sun-glow { r: 42px; }
  .sun-mark { r: 6px; }
  .moon-scale { transform: scale(2.8); }
  .moon-group.is-below .moon-scale { transform: scale(2.2); }

  /* Kleine SVG-Ecklabels und Phasentext ausblenden → HTML-Zeile übernimmt;
     Schleimünde-Annotation weicht dem Platz (Info steht unter den Kacheln) */
  .sun-time, .moon-time, .moon-phase-label,
  .fjord-value-label.is-inactive, .fjord-status { display: none; }
  .sky-info {
    display: block;
    padding-top: 10px;
    font-size: 13.5px;
    color: #b8ccd6;
    text-align: center;
  }

  .sky-info span { white-space: nowrap; }
}
