/* forecast.css – Modul „Wind-Vorhersage". Farben aus der Marken-Palette (Flat-UI, siehe
   addictedSportsMain.css): Türkis #1abc9c als Modul-Akzent (Wind/Wetter), Ink #1d1d1c,
   Grau #bdc3c7/#ecf0f1/#7f8c8d, Blau #3498db, Orange #e67e22. KEINE runden Ecken. */
:root {
  --fc-accent: #1abc9c; --fc-accent-d: #16a085;
  --fc-ink: #1d1d1c; --fc-mut: #7f8c8d;
  --fc-border: #bdc3c7; --fc-bg: #ecf0f1;
  --fc-blue: #3498db; --fc-orange: #e67e22; --fc-red: #c10925; --fc-amber: #f39c12;
  /* addicted-Identität: Exo 2 (site-weit geladen) für Überschriften/Zahlen, Rot als Signal. */
  --fc-head: 'Exo 2', 'Titillium Web', system-ui, sans-serif;
}

/* Durchgängig EckIG – auch native Formular-Elemente (Datum/Select/Button) und evtl.
   vererbte Rundungen aus dem Legacy-Rahmen. */
.forecast, .forecast *, .fc-modal, .fc-modal * { border-radius: 0 !important; }

.forecast .fc-wrap { max-width: 1010px; margin: 0 auto; padding: 0; }
/* Legacy-Layout kappt die Spalte bei #wrapper(980)/#page(940). Für Forecast anheben, damit
   der Content wirklich 1010px erreicht. !important, weil die Webcam-Regel #wrapper überschreibt;
   width:100% + max-width hält es responsiv UND zentriert (margin auto). */
body.forecast #wrapper, body.forecast #page {
   margin-left: auto; margin-right: auto;width: 1010px;
}
body.forecast #page {
  max-width: 970px;
}
.forecast h1 { color: var(--fc-ink); font-family: var(--fc-head); font-weight: 800; letter-spacing: .01em; margin: .4em 0 .1em; }
.forecast .fc-crumb { font-size: .85rem; color: var(--fc-mut); margin: .6em 0; }
.forecast .fc-crumb a { color: var(--fc-red); text-decoration: none; }
.forecast h2 { color: var(--fc-ink); font-family: var(--fc-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1.1rem; margin: 1.6em 0 .6em; border-left: 4px solid var(--fc-red); padding: .05em 0 .05em .6em; }
.forecast .fc-sub { color: var(--fc-mut); font-size: .9rem; margin: .2em 0 1em; }

/* Block 1 – allgemeiner 3-Tages-Forecast: Karten pro Tag */
.forecast .fc-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.forecast .fc-day { background: #fff; border: 1px solid var(--fc-border); border-top: 3px solid #9a9ea1;
  padding: 10px 12px 13px; text-align: center; }
.forecast .fc-day-kein    { border-top-color: #95a5a6; }
.forecast .fc-day-wenig   { border-top-color: var(--fc-blue); }
.forecast .fc-day-surfbar { border-top-color: var(--fc-accent); }
.forecast .fc-day-big     { border-top-color: var(--fc-red); }
.forecast .fc-day h3 { margin: 0 0 .25em; font-family: var(--fc-head); font-weight: 700; font-size: .95rem; color: var(--fc-ink); text-transform: uppercase; letter-spacing: .02em; }
.forecast .fc-day .fc-wx { font-size: 2rem; line-height: 1; }
.forecast .fc-day .fc-temp { font-family: var(--fc-head); font-size: 1.25rem; font-weight: 800; margin: .25em 0; }
.forecast .fc-day .fc-meta { font-size: .8rem; color: var(--fc-mut); }
.forecast .fc-day .fc-wind { font-size: .82rem; color: var(--fc-mut); margin: .35em 0 .1em; }
.forecast .fc-day .fc-wind b { font-family: var(--fc-head); font-weight: 800; font-size: 1.02rem; color: var(--fc-ink); }
/* Mini-Verteilungsbalken (Chancen je Stufe) in der Tageskachel – ersetzt das Chancen-Diagramm. */
.forecast .fc-day .fc-pbar-wrap { margin: .5em 0 .15em; }
.forecast .fc-day .fc-pbar-lbl { display: block; font-family: var(--fc-head); font-weight: 700; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--fc-mut); margin-bottom: 2px; }
.forecast .fc-day .fc-pbar { display: flex; height: 6px; overflow: hidden; border: 1px solid var(--fc-border); }
.forecast .fc-day .fc-pbar span { display: block; height: 100%; }
.forecast .fc-guete { margin: .35em 0 .1em; font-size: .8rem; color: var(--fc-mut); line-height: 1.3; }
.forecast .fc-guete .fc-guete-h { font-weight: 600; color: var(--fc-ink); }
.forecast .fc-guete-good { color: var(--fc-accent-d); }
.forecast .fc-guete-good .fc-guete-h { color: var(--fc-accent-d); }
/* Wind-Ursache/Regime (Föhn/Kaltluft/Front) – dezente Pille, Farbe nach Ursache. */
.forecast .fc-regime { display: inline-block; margin: .3em 0 .1em; padding: .12em .55em; font-size: .76rem;
    border: 1px solid var(--fc-border); border-radius: 999px; color: var(--fc-mut); background: var(--fc-bg); }
.forecast .fc-regime b { font-weight: 600; }
.forecast .fc-regime-foehn    { border-color: #e2b6ad; background: #fbeee9; color: #9a3b28; }
.forecast .fc-regime-foehn b  { color: #8a3423; }
.forecast .fc-regime-kaltluft { border-color: #aac6e0; background: #eaf2fa; color: #2a5f8a; }
.forecast .fc-regime-kaltluft b { color: #234f74; }
.forecast .fc-regime-front    { border-color: #c3bcd8; background: #efecf6; color: #524a86; }
.forecast .fc-regime-front b  { color: #3c3466; }
/* Güte je Tag im navigierbaren Verlauf (Vorhersage vs. gemessen) */
.forecast .fc-guete-hist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -.2em 0 .7em; }
.forecast .fc-guete-hist .fc-gh { font-size: .78rem; color: var(--fc-mut); background: var(--fc-bg); padding: .18em .55em; border: 1px solid var(--fc-border); }
.forecast .fc-guete-hist .fc-gh b { color: var(--fc-ink); font-weight: 600; }
.forecast .fc-guete-hist .fc-gh-good { border-color: var(--fc-accent); }
.forecast .fc-guete-hist .fc-gh-good b { color: var(--fc-accent-d); }
.forecast .fc-guete-hist .fc-gh-m { color: var(--fc-ink); }
.forecast .fc-evallink { margin: 1.8em 0 .4em; text-align: center; font-size: .92rem; }
.forecast .fc-evallink a { color: var(--fc-accent-d); text-decoration: none; }
.forecast .fc-badge { display: inline-block; margin-top: .5em; padding: .15em .6em; font-size: .8rem; font-weight: 600; color: #fff; }
.forecast .fc-badge.kein    { background: #95a5a6; }
.forecast .fc-badge.wenig   { background: var(--fc-blue); }
.forecast .fc-badge.surfbar { background: var(--fc-accent); }
.forecast .fc-badge.big     { background: var(--fc-red); }

/* addicted Sport-Hero der Spot-Vorhersageseite (dunkel, Exo 2, Webcam-Thumb). */
.forecast .fc-hero { background: var(--fc-ink); color: #fff; padding: 13px 18px; margin: .4em 0 .2em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.forecast .fc-hero-main { flex: 1; min-width: 210px; }
.forecast .fc-hero-name { font-family: var(--fc-head); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: .01em; }
.forecast .fc-hero-sub { font-size: .78rem; color: #9a9ea1; margin: .25em 0 .7em; text-transform: uppercase; letter-spacing: .03em; }
.forecast .fc-hero-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.forecast .fc-hero-wind { display: inline-flex; align-items: baseline; gap: 8px; }
.forecast .fc-hero-peak { font-family: var(--fc-head); font-weight: 800; font-size: 1.55rem; }
.forecast .fc-hero-peak small, .forecast .fc-hero-meas small { font-size: .62em; font-weight: 600; color: #9a9ea1; }
.forecast .fc-hero-boe { font-family: var(--fc-head); font-weight: 800; font-size: 1.05rem; color: #c9ccce; }
.forecast .fc-hero-boe .bl { font-family: var(--fc-head); font-weight: 700; font-size: .58em; text-transform: uppercase;
  letter-spacing: .05em; color: #9a9ea1; margin-right: 1px; }
.forecast .avgs { font-size: .62em; font-weight: 700; color: #9a9ea1; margin-right: 1px; }
.forecast .fc-hero-meta { font-size: .8rem; color: #c9ccce; }
.forecast .fc-hero-meas .lbl { font-size: .68rem; color: #9a9ea1; text-transform: uppercase; letter-spacing: .04em; }
.forecast .fc-hero-meas .v { font-family: var(--fc-head); font-weight: 800; font-size: 1.3rem; line-height: 1.1;
  display: inline-flex; align-items: baseline; gap: 8px; }
.forecast .fc-hero-meas .v b { color: #2fd39b; font-weight: 800; }
.forecast .fc-hero-cam { width: 132px; height: 84px; object-fit: cover; display: block; flex: 0 0 auto; background: #2b3439; }
.forecast .fc-hero .fc-badge { margin: 0; }
/* Knoten-Zahl auf der Marken-Windskala (windColor aus addictedSportsMain.css). */
.forecast .fc-knpill { display: inline-block; font-family: var(--fc-head); font-weight: 800; padding: 0 .3em; color: #1d1d1c; }
.forecast .fc-hero .fc-knpill { color: #fff; }
/* Mobil: Hero schlank halten (soll nicht den halben Screen füllen). */
@media (max-width: 560px) {
  .forecast .fc-hero { padding: 10px 12px; gap: 10px; }
  .forecast .fc-hero-name { font-size: 1.2rem; }
  .forecast .fc-hero-sub { margin: .2em 0 .5em; }
  .forecast .fc-hero-peak { font-size: 1.3rem; }
  .forecast .fc-hero-cam { width: 92px; height: 62px; }
}
/* Wahrscheinlichkeit am Tages-Badge (etwas leiser als die Stufe selbst). */
.forecast .fc-badge .fc-badge-p { font-weight: 600; opacity: .85; }
/* Farbige Stichworte in der Chancen-Erklärung (passend zu den Balkenfarben). */
.forecast .fc-ink-surf { color: var(--fc-accent-d); font-weight: 600; }
.forecast .fc-ink-kein { color: var(--fc-mut); font-weight: 600; }

/* Block 2/3/4 – Chart-Container */
.forecast .fc-chartbox { background: #fff; border: 1px solid var(--fc-border); padding: 12px; }
.forecast .fc-chartbox canvas { width: 100% !important; }
/* Wind-Verlauf im Look des Webcam-Wind-Charts: dunkler Kasten, rote/weiße Linien. */
.forecast .fc-chartbox-wind { background: #fff; border-color: var(--fc-border); padding: 10px 8px; }

/* Wind im Zeitverlauf: pro Tag eine Mini-Tabelle, Stunden = SPALTEN. Wind/Böe nach windColor.
   Grid: 2 Tage nebeneinander (voll) → 1 Tag je Reihe (≤900px) → Spalten werden Zeilen (≤560px). */
.forecast .fc-wg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: .3em 0 1.2em; }
.forecast .fc-wgd { border: 1px solid var(--fc-border); background: #fff; overflow: hidden; min-width: 0; }
.forecast .fc-wgd-head { background: var(--fc-ink); color: #fff; font-family: var(--fc-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; padding: 5px 10px; border-bottom: 2px solid var(--fc-red); }
.forecast .fc-wgd table { border-collapse: collapse; width: 100%; font-size: 11px; table-layout: fixed; }
.forecast .fc-wgd th, .forecast .fc-wgd td { border: 1px solid var(--fc-border); text-align: center; padding: 2px 2px; white-space: nowrap; overflow: hidden; }
.forecast .fc-wgd thead th { background: #f4f6f7; color: var(--fc-mut); font-family: var(--fc-head); font-weight: 700; font-size: 10px; }
.forecast .fc-wgd-cols .fc-wg-lbl { width: 58px; max-width: 58px; text-overflow: ellipsis; }
.forecast .fc-wgd .fc-wg-lbl { text-align: left; padding: 2px 6px; color: var(--fc-mut);
  font-family: var(--fc-head); font-weight: 700; font-size: 10px; background: #f4f6f7; }
.forecast .fc-wgd .fc-wg-h { color: var(--fc-mut); font-weight: 700; }
.forecast .fc-wgd .fc-wg-kn { font-family: var(--fc-head); font-weight: 800; color: #1d1d1c; }
.forecast .fc-wgd .fc-wg-lo { background: #eef2f3; }
.forecast .fc-wgd .fc-wg-na { background: #f7f9fa; color: #b4bcc0; }
.forecast .fc-wgd tr.fc-wg-temp td, .forecast .fc-wgd td.fc-wg-temp { color: var(--fc-mut); }
.forecast .fc-wgd .fc-wg-drv, .forecast .fc-wgd tr.fc-wg-drv td { color: #6b7378; font-size: 10px; background: #fbfcfc; }
.forecast .fc-wgd thead .fc-wg-drv { color: #6b7378; }
.forecast .fc-wgd .fc-wg-wxc { font-size: 13px; }
/* Zwei Orientierungen: Spalten-Tabelle sichtbar, Zeilen-Tabelle erst auf dem Handy. */
.forecast .fc-wgd-rows { display: none; }
@media (max-width: 900px) { .forecast .fc-wg { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .forecast .fc-wgd-cols { display: none; }
  .forecast .fc-wgd-rows { display: table; }
  .forecast .fc-wgd-rows .fc-wg-lbl { width: auto; }
}
.forecast .fc-chart-tall { position: relative; height: 340px; }
.forecast .fc-chart-tall canvas { height: 100% !important; }
/* Mittelhoher Chart (Chancen-Balken) – feste Höhe + maintainAspectRatio:false → sauberes Resize. */
.forecast .fc-chart-mid { position: relative; height: 270px; }
.forecast .fc-chart-mid canvas { height: 100% !important; }
/* Schmale Geräte: Chart bekommt Mindestbreite (Zoom) und die Box wird horizontal wischbar. */
.forecast .fc-scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.forecast .fc-swipehint { display: none; }

/* HTML-Tooltip des Wind-Charts (Werte + Webcambild dieser Stunde). Hängt an <body>,
   also außerhalb von .forecast – eigene, eckige Gestaltung. */
.fc-tip { position: absolute; z-index: 9997; transform: translate(-50%, -100%); pointer-events: none;
  opacity: 0; transition: opacity .1s; background: rgba(29,29,28,.92); color: #fff; padding: 8px 10px;
  font-size: .8rem; line-height: 1.5; max-width: 260px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.fc-tip .fc-tip-t { font-weight: 700; margin-bottom: 3px; }
.fc-tip .fc-tip-r { white-space: nowrap; }
.fc-tip .fc-tip-sw { display: inline-block; width: 9px; height: 9px; margin-right: 5px; }
.fc-tip .fc-tip-cam { margin-top: 6px; }
.fc-tip .fc-tip-cam img { display: block; width: 100%; max-width: 240px; height: auto; }
/* Archiv-Navigation steuert ALLE Diagramme → fixe Fußleiste, klebt am unteren Viewport-Rand
   (position:fixed ignoriert overflow-Ancestors, die sticky ausgehebelt hatten). */
.forecast .fc-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--fc-ink); margin: 0; padding: 5px 8px 6px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.28); }
.forecast .fc-nav .fc-navlbl { flex-basis: 100%; text-align: center; color: #9a9ea1; font-family: var(--fc-head);
  font-weight: 700; font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; line-height: 1; margin-bottom: 1px; }
.forecast .fc-wrap { padding-bottom: 74px; }   /* Platz für die fixe Nav-Fußleiste (inkl. Label);
                                                  bei aktivem Bottom-Anchor via JS erhöht. */
/* Slot 2 (Skyscraper): rechts NEBEN der Content-Spalte (max 1010px) mit 10px Abstand.
   Überschreibt die von der Webcam geerbte Regel #slot2{position:absolute} (höhere Spezifität). */
.forecast #slot2 {
  position: fixed;
  top: -115px;
  left: calc(50% + 505px);
  width: 160px;
  overflow: hidden;
  z-index: 40;
}

/*@media (max-width: 1629px) { .forecast #slot2 { display: none; } }*/   /* zu wenig Platz rechts */
/* Slot 1 (Leaderboard) im Content zentrieren statt der Webcam-table-cell-Regel. */
.forecast #slot1 { display: block; text-align: center; }
.forecast .fc-nav .fc-nval { color: #fff; }
.forecast .fc-nav .arrow-up { border-bottom-color: #fff; } .forecast .fc-nav .arrow-down { border-top-color: #fff; }
.forecast .fc-nav .fc-navsep { border-left-color: #55585a; }
.forecast .fc-nav .fc-today { color: #fff; border: 1px solid #55585a; background: transparent; }
.forecast .fc-navgrp { display: inline-flex; flex-direction: column; align-items: center; padding: 0 9px; }
.forecast .fc-navsep { display: inline-flex; border-left: 1px solid var(--fc-border); margin-left: 6px; padding-left: 6px; }
.forecast .fc-nbtn { background: none; border: 0; padding: 3px 6px; cursor: pointer; line-height: 0; }
.forecast .fc-nval { font-weight: 600; color: var(--fc-ink); font-size: 1rem; line-height: 1.35; white-space: nowrap; }
.forecast .fc-nav .arrow-up, .forecast .fc-nav .arrow-down { display: block; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; margin: 0 auto; }
.forecast .fc-nav .arrow-up { border-bottom: 7px solid var(--fc-border); }
.forecast .fc-nav .arrow-down { border-top: 7px solid var(--fc-border); }
.forecast .fc-nbtn:hover .arrow-up { border-bottom-color: var(--fc-red); }
.forecast .fc-nbtn:hover .arrow-down { border-top-color: var(--fc-red); }
.forecast .fc-nav .fc-today { margin-left: 14px; }
.forecast .fc-today { padding: .35em .7em; border: 1px solid var(--fc-accent); background: #fff; color: var(--fc-accent-d);
  font-size: .85rem; cursor: pointer; }
.forecast .fc-today:hover { background: var(--fc-accent); color: #fff; }
.forecast .fc-h3 { color: var(--fc-ink); font-size: 1rem; margin: 1.3em 0 .2em; }
.forecast .fc-cap { color: var(--fc-mut); font-size: .84rem; margin: 0 0 .5em; }

/* Legende (Wind-Stufen) für Einsteiger */
.forecast .fc-legend { font-size: .84rem; color: var(--fc-mut); margin: .8em 0 .2em; line-height: 1.9; }
.forecast .fc-legend .fc-badge { font-size: .72rem; padding: .08em .5em; margin: 0 .15em; }

/* Qualitätsseite: Tabellen */
.forecast .fc-tbl { border-collapse: collapse; width: 100%; margin: .3em 0 1em; font-size: .9rem; background: #fff; }
.forecast .fc-tbl th, .forecast .fc-tbl td { border: 1px solid var(--fc-border); padding: .4em .6em; text-align: center; }
.forecast .fc-tbl thead th { background: var(--fc-bg); color: var(--fc-ink); font-weight: 600; }
.forecast .fc-tbl tbody th { background: #f7f9fa; text-align: left; }
.forecast .fc-tbl .fc-pos { color: var(--fc-accent-d); font-weight: 600; }
.forecast .fc-tblwrap { overflow-x: auto; }
.forecast .fc-sort { cursor: pointer; text-decoration: underline dotted; white-space: nowrap; user-select: none; }
.forecast .fc-sort:hover { color: var(--fc-accent-d); }
.forecast .fc-sort[data-dir] { color: var(--fc-accent-d); }
.forecast .fc-arr { font-size: .7rem; }
.forecast .fc-tbl-days td, .forecast .fc-tbl-days th { white-space: nowrap; }
.forecast .fc-tbl-days .fc-badge { font-size: .72rem; padding: .05em .5em; }
.forecast .fc-camlink { display: inline-block; padding: .2em .5em; background: var(--fc-accent);
  color: #fff; text-decoration: none; font-size: .8rem; }
.forecast .fc-camlink:hover { background: var(--fc-accent-d); }

/* Modell-Banner (Version + Changelog) */
.forecast .fc-model { background: #fff; border: 1px solid var(--fc-border); border-left: 4px solid var(--fc-accent-d);
  padding: .7em 1em; margin: 1em 0; }
.forecast .fc-model-head { font-size: 1.02rem; }
.forecast .fc-model-badge { display: inline-block; background: var(--fc-accent-d); color: #fff; font-weight: 700;
  font-size: .8rem; padding: .1em .55em; margin-right: .3em; }
.forecast .fc-model-old { font-size: .82rem; color: var(--fc-red); }
.forecast .fc-model-res { margin: .5em 0 .2em; }
.forecast .fc-model-next { margin: .4em 0 .2em; color: var(--fc-mut); font-size: .9rem; }
.forecast .fc-model details { margin: .3em 0; } .forecast .fc-model summary { cursor: pointer; color: var(--fc-accent-d); font-size: .9rem; }
.forecast .fc-model details ul { margin: .3em 0 .3em 1.1em; } .forecast .fc-model details li { margin: .2em 0; font-size: .9rem; }
.forecast .fc-model-vers { margin-top: .5em; font-size: .85rem; color: var(--fc-mut); }
.forecast .fc-vchip { display: inline-block; padding: .12em .6em; border: 1px solid var(--fc-border);
  text-decoration: none; color: var(--fc-accent-d); margin: 0 .15em; }
.forecast .fc-vchip.active { background: var(--fc-accent); color: #fff; border-color: var(--fc-accent); font-weight: 600; }

/* Öffentliche Herleitung „Wie unsere Vorhersage entsteht" */
.forecast .fc-story { background: #fff; border: 1px solid var(--fc-border); border-left: 4px solid var(--fc-accent);
  padding: .4em 1.1em 1em; margin: 1.2em 0; }
.forecast .fc-story h2 { border-bottom: none; margin: .6em 0 .2em; }
.forecast .fc-story p { line-height: 1.55; margin: .6em 0; }

/* Gemeinsames Fazit */
.forecast .fc-concl { background: #eafaf7; border: 1px solid #bfe6dd; border-left: 4px solid var(--fc-accent); padding: .6em 1em; margin: 1em 0; }
.forecast .fc-concl ul { margin: .3em 0 .2em 1.1em; } .forecast .fc-concl li { margin: .25em 0; }

/* Urteil-Badge + Erfassung */
.forecast .fc-verd { display: inline-block; padding: .1em .5em; font-size: .74rem; font-weight: 600; color: #fff; }
.forecast .fc-verd-korrekt { background: #27ae60; }
.forecast .fc-verd-grenzwertig { background: #e1a700; }
.forecast .fc-verd-echter-fehler { background: var(--fc-red); }
.forecast .fc-verd-offen { background: #95a5a6; }
.forecast .fc-vbtn { padding: .12em .5em; border: 1px dashed var(--fc-accent); background: #fff; color: var(--fc-accent-d);
  font-size: .74rem; cursor: pointer; white-space: nowrap; }
.forecast .fc-vbtn:hover { background: var(--fc-accent); color: #fff; }
.forecast .fc-tbl-days td .fc-vnote { white-space: normal; max-width: 260px; font-size: .78rem; color: var(--fc-ink);
  margin: .25em auto 0; line-height: 1.35; text-align: left; }
.forecast .fc-tbl-days .fc-vedit { margin-top: .2em; }

/* Urteil-Dialog (Modal) – Root NICHT unter .forecast scopen (per JS ans <body> gehängt). */
.fc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center;
  justify-content: center; z-index: 100000; }
.fc-modal[hidden] { display: none; }
.forecast .fc-modal-box { background: #fff; padding: 1.2em 1.4em; width: min(460px, 92vw); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.forecast .fc-fld { display: block; margin: .6em 0; font-size: .85rem; color: var(--fc-mut); }
.forecast .fc-fld select, .forecast .fc-fld textarea { width: 100%; margin-top: .25em; padding: .45em .5em;
  border: 1px solid var(--fc-border); font-size: .9rem; color: var(--fc-ink); }
.forecast .fc-modal-act { display: flex; align-items: center; gap: .6em; margin-top: .8em; }
.forecast .fc-btn2 { padding: .35em .7em; border: 1px solid var(--fc-border); background: #fff; color: var(--fc-mut); font-size: .85rem; cursor: pointer; }

/* Attribution + Ad-Slots */
.forecast .fc-attrib { font-size: .78rem; color: var(--fc-mut); margin: .4em 0 0; }
.forecast .fc-attrib a { color: var(--fc-accent-d); }
.forecast .fc-adslot { margin: 18px auto; text-align: center; min-height: 90px; }

/* Übersicht */
.forecast .fc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.forecast .fc-tile { position: relative; background: #fff; border: 1px solid var(--fc-border); padding: 16px; }
.forecast .fc-tile h3 { margin: 0 0 .2em; color: var(--fc-ink); }
.forecast .fc-tile-link { position: absolute; inset: 0; }

/* ── Übersicht: reiche Spot-Kacheln (Webcam + Live-Messung + 4-Tage-Klassifikation) ── */
.forecast .fc-otiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 1em 0; }
.forecast .fc-otile { border: 1px solid var(--fc-border); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.forecast .fc-otile:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.forecast .fc-otile-top { border-color: var(--fc-accent); box-shadow: 0 0 0 2px var(--fc-accent) inset; }
.forecast .fc-otile-live { border-color: #27ae60; }
.forecast .fc-otile-link { display: block; text-decoration: none; color: inherit; }
.forecast .fc-ohero { position: relative; aspect-ratio: 16 / 9; background: #2c3e50; overflow: hidden; }
.forecast .fc-oimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.forecast .fc-oimg-none { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: #34495e; font-size: .85rem; opacity: .85; }
.forecast .fc-ohero-top, .forecast .fc-ohero-bot { position: absolute; left: 0; right: 0; display: flex;
  align-items: center; gap: 8px; padding: 7px 10px; color: #fff; }
.forecast .fc-ohero-top { top: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.forecast .fc-ohero-bot { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); justify-content: space-between; }
.forecast .fc-otime { font-size: .8rem; font-weight: 600; opacity: .9; }
.forecast .fc-omeas { font-size: .9rem; }
.forecast .fc-omeas b { font-size: 1.1rem; }
.forecast .fc-omeas small { opacity: .85; font-size: .72rem; }
.forecast .fc-omeas-none { opacity: .75; font-size: .8rem; }
.forecast .fc-otrend.up { color: #2ecc71; }
.forecast .fc-otrend.dn { color: #ff7043; }
.forecast .fc-oage { margin-left: auto; font-size: .72rem; opacity: .85; }
.forecast .fc-oname { font-weight: 600; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.forecast .fc-oname small { font-weight: 400; opacity: .85; font-size: .8rem; }
.forecast .fc-otop { background: var(--fc-accent); color: #fff; font-size: .72rem; font-weight: 600; padding: .14em .6em; border-radius: 999px; white-space: nowrap; }
.forecast .fc-olive { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: #27ae60;
  color: #fff; font-size: .74rem; font-weight: 600; padding: .14em .55em; border-radius: 999px; white-space: nowrap; }
.forecast .fc-olive-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: fc-pulse 1.4s infinite; }
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.forecast .fc-odays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--fc-border); }
.forecast .fc-oday { background: #fff; padding: 9px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.forecast .fc-oday-dow { font-size: .78rem; color: var(--fc-mut); }
.forecast .fc-oday .fc-badge { margin: 0; font-size: .66rem; padding: .1em .45em; }
.forecast .fc-oday-w { font-size: .82rem; font-weight: 600; color: var(--fc-ink); }
.forecast .fc-oday-surfbar { background: #eafaf5; }
.forecast .fc-oday-big { background: #fdf0e6; }

/* ── Windtag-Katalog (Modell v0): Kachelansicht + Ursachen-Labels ─────────────── */
.forecast .fc-wd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1em 0 1.2em; }
.forecast .fc-wd-total { font-size: .95rem; color: var(--fc-ink); margin-right: .4em; }
.forecast .fc-wd-filter { display: inline-flex; align-items: center; gap: .35em; padding: .25em .6em; border: 1px solid var(--fc-border);
  background: #fff; color: var(--fc-mut); font-size: .84rem; cursor: pointer; }
.forecast .fc-wd-filter:hover { border-color: var(--fc-accent); }
.forecast .fc-wd-filter.active { border-color: var(--fc-accent-d); color: var(--fc-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--fc-accent); }
.forecast .fc-wd-sort { margin-left: auto; font-size: .84rem; color: var(--fc-mut); }
.forecast .fc-wd-sort select { margin-left: .3em; padding: .3em .4em; border: 1px solid var(--fc-border); background: #fff; color: var(--fc-ink); }

/* Ursachen-Badges (auch als Filter-Chip) */
.forecast .fc-wd-badge { display: inline-block; padding: .12em .55em; font-size: .74rem; font-weight: 600; color: #fff; white-space: nowrap; }
.forecast .fc-wd-foehn     { background: var(--fc-orange); }
.forecast .fc-wd-kaltluft  { background: var(--fc-blue); }
.forecast .fc-wd-front     { background: #8e44ad; }
.forecast .fc-wd-fehlalarm { background: #95a5a6; }
.forecast .fc-wd-offen     { background: #fff; color: var(--fc-mut); border: 1px dashed var(--fc-border); }

.forecast .fc-wd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.forecast .fc-wd-card { background: #fff; border: 1px solid var(--fc-border); display: flex; flex-direction: column; }
.forecast .fc-wd-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #223; overflow: hidden; }
.forecast .fc-wd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.forecast .fc-wd-img.fc-wd-noimg, .forecast .fc-wd-img:has(.fc-wd-ph) { background: repeating-linear-gradient(45deg,#e8ecee,#e8ecee 8px,#dfe4e6 8px,#dfe4e6 16px); }
.forecast .fc-wd-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--fc-mut); font-size: .8rem; }
.forecast .fc-wd-time { position: absolute; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; padding: .1em .45em; font-weight: 600; }
.forecast .fc-wd-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: .4em; }
.forecast .fc-wd-date { font-size: .86rem; font-weight: 600; color: var(--fc-ink); }
.forecast .fc-wd-stats { display: flex; flex-wrap: wrap; gap: .2em .7em; font-size: .78rem; color: var(--fc-mut); }
.forecast .fc-wd-stats b { color: var(--fc-red); }
.forecast .fc-wd-set { display: inline-flex; align-items: center; gap: .5em; padding: .2em .3em; border: 1px solid transparent;
  background: none; cursor: pointer; align-self: flex-start; font-size: .8rem; color: var(--fc-mut); }
.forecast .fc-wd-set:hover { border-color: var(--fc-border); }
.forecast .fc-wd-edit { text-decoration: underline; }
.forecast .fc-wd-lab { align-self: flex-start; }
.forecast .fc-wd-card .fc-vnote { font-size: .78rem; color: var(--fc-ink); background: var(--fc-bg); padding: .3em .5em; }

/* Großes Klassifikations-Popup (Bild-Cockpit) */
.fc-wd-modal .fc-wd-box { position: relative; display: flex; gap: 0; background: #fff; width: min(1120px, 96vw);
  max-height: 92vh; box-shadow: 0 10px 50px rgba(0,0,0,.4); }
.fc-wd-x { position: absolute; top: 0; right: 0; z-index: 3; width: 40px; height: 40px; border: none;
  background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.fc-wd-x:hover { background: var(--fc-red); }
.fc-wd-stage { position: relative; flex: 1 1 auto; min-width: 0; background: #1a2026; display: flex;
  flex-direction: column; align-items: center; justify-content: center; }
.fc-wd-stage #fcWdImg { max-width: 100%; max-height: calc(92vh - 52px); object-fit: contain; display: block; }
.fc-wd-stage #fcWdImg.fc-wd-broken { display: none; }
.fc-wd-imgmeta { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .82rem; font-weight: 600; padding: .15em .55em; }
.fc-wd-imgnav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px;
  justify-content: center; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.fc-wd-imgnav button, .fc-wd-archlink { padding: .3em .7em; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45);
  color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.fc-wd-imgnav button:hover, .fc-wd-archlink:hover { background: var(--fc-accent); border-color: var(--fc-accent); }
.fc-wd-panel { flex: 0 0 320px; display: flex; flex-direction: column; gap: .7em; padding: 44px 16px 16px; overflow-y: auto; }
.fc-wd-daynav { display: flex; align-items: center; gap: .5em; }
.fc-wd-daynav button { flex: 0 0 auto; padding: .3em .6em; border: 1px solid var(--fc-border); background: #fff;
  color: var(--fc-accent-d); font-size: .82rem; font-weight: 600; cursor: pointer; }
.fc-wd-daynav button:hover { background: var(--fc-accent); color: #fff; border-color: var(--fc-accent); }
.fc-wd-prog { flex: 1 1 auto; text-align: center; line-height: 1.2; }
.fc-wd-prog b { display: block; color: var(--fc-ink); font-size: .95rem; }
.forecast .fc-wd-mstats, .fc-wd-mstats { display: flex; flex-wrap: wrap; gap: .2em .7em; font-size: .8rem; color: var(--fc-mut); }
.fc-wd-hint { font-size: .84rem; color: var(--fc-ink); background: var(--fc-bg); padding: .5em .6em; border-left: 3px solid var(--fc-accent); }
.fc-wd-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fc-wd-choice { display: flex; align-items: center; justify-content: center; padding: .5em; border: 2px solid var(--fc-border);
  background: #fff; cursor: pointer; }
.fc-wd-choice:hover { border-color: var(--fc-mut); }
.fc-wd-choice.active { border-color: var(--fc-ink); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--fc-ink); }
.fc-wd-modal textarea { width: 100%; padding: .45em .5em; border: 1px solid var(--fc-border); font: inherit; resize: vertical; }

/* Mobil */
@media (max-width: 720px) {
  .fc-wd-modal .fc-wd-box { flex-direction: column; width: 96vw; }
  .fc-wd-stage #fcWdImg { max-height: 46vh; }
  .fc-wd-panel { flex: 1 1 auto; padding: 12px; }
}

/* Mobil */
@media (max-width: 980px) { .forecast .fc-wd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .forecast .fc-days, .forecast .fc-grid { grid-template-columns: repeat(2, 1fr); }
  .forecast .fc-wd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .forecast .fc-days, .forecast .fc-grid { grid-template-columns: 1fr; }
  .forecast .fc-wd-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .forecast .fc-wd-sort { margin-left: 0; width: 100%; }
  .forecast .fc-chart-tall { height: 300px; min-width: 680px; }   /* breiter als Viewport → wischbar */
  .forecast .fc-chart-mid { min-width: 460px; }                    /* Chancen-Balken: zoomen + wischen */
  .forecast .fc-scrollx { touch-action: pan-x; padding: 8px; }
  .forecast .fc-swipehint { display: block; text-align: center; margin: -.2em 0 .8em; }
  .forecast h2 { font-size: 1.05rem; }
}

/* Föhn-Diagnose (scrollbarer Chart + Kennzahlen) */
.forecast .fc-fdiag-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.forecast .fc-fdiag-card { background: var(--fc-bg); padding: .6em 1em; min-width: 120px; }
.forecast .fc-fdiag-num { font-size: 1.6rem; font-weight: 700; color: var(--fc-ink); line-height: 1.1; }
.forecast .fc-fdiag-lbl { font-size: .8rem; color: var(--fc-mut); }
.forecast .fc-fdiag-legend { display: flex; flex-wrap: wrap; gap: .3em 1.1em; font-size: .8rem; color: var(--fc-mut); margin: .4em 0 .8em; }
.forecast .fc-fdiag-legend span { display: inline-flex; align-items: center; gap: .4em; }
.forecast .fc-fdiag-legend i { width: 15px; height: 3px; display: inline-block; }
.forecast .fc-fdiag-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--fc-border); background: #fff; }
.forecast .fc-fdiag-inner { height: 470px; position: relative; }

/* Feedback-Widget: gemeinsame Regeln jetzt zentral in shared/news-shared.css
   (Forecast + Historie, eine Quelle). Nichts modul-spezifisches mehr hier. */
