/* meteo365 v4 — Base
   Body, Container, Typo, Header, Menu, Footer, gemeinsame Komponenten.
   Setzt voraus dass tokens.css davor geladen wurde.
*/

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
/* Scrollbar-Platz immer reservieren, damit scrollende (Content) und nicht-scrollende
   (Map) Seiten den zentrierten .container identisch positionieren — kein 7px-Versatz. */
html { scrollbar-gutter: stable; }
body {
  /* min-height statt height:100% — der Body wächst mit dem Inhalt, sonst wird die
     Body-Box auf Viewport-Höhe begrenzt und der sticky Header beim Scrollen freigegeben.
     Map-Seiten positionieren ihre Karte fixed/absolute, brauchen also kein height:100%. */
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Voll-Bleed „Himmel-zu-Meer"-Verlauf als Seiten-Grund (Lagune-Konzept §4).
   Themen-gescopt; flacher var(--bg) oben bleibt Fallback ohne data-theme. */
/* Grundfarbe UNTER dem Verlauf (21.10.2026, Maren: „oft dunkler Hintergrund, dauert
   bis er blau wird"). Der fixierte Verlauf wird vom Browser getrennt gezeichnet und
   kommt bei viel Last (grosse Bilder, Weichzeichner) spaeter. Ohne eigene Farbe zeigt
   Chrome so lange sein Standard-Dunkelgrau (color-scheme: dark). */
html[data-theme="dark"] body {
  background: #0e6288 linear-gradient(180deg, #1391b0 0%, #0e6288 42%, #0a415d 100%);
  background-attachment: fixed;
}
html[data-theme="light"] body {
  background: #eaf7fc linear-gradient(180deg, #ffffff 0%, #eaf7fc 38%, #d3ebf7 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }   /* keine Unterstreichung beim Ueberfahren (Wunsch 11.08.2026) */
/* MapLibre bringt fuer die Quellenangabe eine eigene Unterstreichung mit.
   Die Fremddatei bleibt unangetastet, deshalb hier ueberschrieben. */
.maplibregl-ctrl-attrib a:hover { text-decoration: none; }

h1, h2, h3 { margin: 0 0 .5rem; letter-spacing: -.02em; }
h1 { font-size: clamp(24px, 2.4vw, 36px); }
h2 { font-size: clamp(18px, 1.6vw, 24px); }
h3 { font-size: clamp(14px, 1.1vw, 16px); }
p  { margin: 0 0 1rem; color: var(--muted); }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* ===== Surfaces ===== */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.card .card-inner { padding: 18px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.panel .panel-inner { padding: 18px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(18px);
  box-shadow: var(--header-shadow);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 60px;     /* + 1px Border-Bottom = 61-62px total */
  padding: 1px 0;
}
.app-shell { min-height: 100vh; }

/* ===== Page-Title-Bar — schmaler Streifen unter dem Header mit H1 ===== */
.page-title-bar {
  position: sticky;
  top: 61px;            /* = exakte .site-header Höhe (60px + 1px Border) — bündig, kein Spalt */
  z-index: 1199;
  height: 24px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg,
    var(--header-bg) 0%,
    var(--titlebar-accent) 50%,
    var(--header-bg) 100%);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-title-bar .container {
  display: flex;
  align-items: center;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.brand-block { min-width: 0; flex: 0 0 auto; }
.brand-mark  { display: flex; align-items: center; gap: 0; text-decoration: none; }
.brand-mark:hover { text-decoration: none; }
.brand-logo {
  width: 60px; height: 60px; display: block; object-fit: contain; flex: 0 0 auto;
  border-radius: 50%; position: relative; z-index: 2;
  /* KEIN dunkler Rand — die orange Leuchtturm-Scheibe (#f4a932) soll nahtlos in die
     orange Wortmarken-Pille übergehen (kein optischer Gap, User-Wunsch 2026-06-21). */
}
/* Voll-Logo (Leuchtturm + Wortmarke „meteo365.es" in einem SVG) — ersetzt
   Bildmarke + separate Wortmarke. Höhe an Header angepasst, Breite automatisch. */
/* Logo-Groesse an EINER Stelle: Wortmarke und ® liegen absolut auf dem Bild und
   muessen proportional mitskalieren, sonst rutscht die Schrift aus der Pille.
   Verhaeltnisse stammen aus den frueher live justierten Werten (20/56, 13/56). */
.brand-logo-hybrid { --logo-h: 48px; }
@media (max-width: 560px) { .brand-logo-hybrid { --logo-h: 40px; } }
.brand-logo-full {
  height: var(--logo-h); width: auto; display: block; object-fit: contain; flex: 0 0 auto;
  position: relative; z-index: 2;
}
/* Hybrid-Logo: Voll-Logo (Leuchtturm + Pille + Gap) als SCHARFER Vektor-Hintergrund,
   Wortmarke als gestochen scharfer HTML-Text exakt auf der Pille (kein unscharfer
   SVG-Vektortext mehr). Werte auf die SVG-Geometrie abgestimmt (viewBox 1640×463.92,
   Text-Baseline ~548/284, font-size 180 → bei 56px Höhe). */
.brand-logo-hybrid { position: relative; display: inline-flex; flex: 0 0 auto; }
.brand-wordmark {
  position: absolute;
  left: 32%;              /* Textstart auf der Pille (live justiert: mehr Platz rechts) */
  top: 50%;
  transform: translateY(-52%);
  z-index: 3;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--logo-h, 48px) * .357);   /* = 20/56 der Logohoehe */
  letter-spacing: .005em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(120, 64, 18, .35);
}
.brand-name {
  color: #fff; display: inline-flex; align-items: center; min-height: 40px;
  margin-left: -24px; padding: 0 15px 0 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #f8b03f, #f29c1f);
  border: 1px solid rgba(187, 107, 16, .26);
  font-size: clamp(20px, 1.8vw, 22px); font-weight: 500; letter-spacing: .02em;
  line-height: 1; white-space: nowrap; font-family: var(--font-display);
  text-shadow: 0 0 4px rgba(0, 0, 0, .3);
}
/* Registered-Trademark ® — gehört zur Leuchtturm-Bildmarke (NICHT zur Wortmarke).
   Oben links am Logo-Kreis, außerhalb des orangen Pills, auf dunklem Header. */
.brand-logo-wrap { position: relative; display: inline-flex; flex: 0 0 auto; z-index: 2; }
.brand-tm {
  position: absolute;
  top: 1px; left: -1px;
  font-size: calc(var(--logo-h, 48px) * .232);   /* = 13/56 der Logohoehe */
  line-height: 1;
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  pointer-events: none;
}

.nav {
  display: flex; align-items: center; gap: 18px; flex-wrap: nowrap;
  justify-content: center; flex: 1 1 auto; min-width: 0; overflow: hidden;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; flex: 0 0 auto;
  color: var(--header-ink);
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500; letter-spacing: -.005em;
  transition: color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-link.is-auto-hidden { display: none; }
.nav-link:hover, .nav-link.is-current { color: var(--header-link-hover); text-decoration: none; }

.nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; }
.nav-icon svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
/* Airplane optisch ein Hauch zarter als die anderen Nav-Icons */
.nav-icon--airplane svg {
  width: 16px; height: 16px;
  stroke-width: 1.6;
}

/* ===== Quick-Menu ===== */
/* ── Konto-Symbol links neben dem Menue-Knopf ────────────────────────────────
   Bewusst KLEINER und ruhiger als der Menue-Knopf (46 px, orange): der bleibt
   das Hauptelement. Zwei orange Kreise nebeneinander wuerden konkurrieren. */
/* Lesezeichen-Knopf: merkt sich die aktuelle SEITE.
   Bewusst dieselbe Groesse und Form wie der Konto-Knopf daneben — die beiden
   gehoeren optisch zusammen. Gemerkt = gefuellter Umriss, damit der Zustand
   auch ohne Farbwahrnehmung erkennbar ist. */
.bookmark-btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  margin-right: 8px; padding: 0;
  border: 1px solid var(--header-line);
  background: var(--bg-elev);
  color: var(--header-ink);
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
              border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.bookmark-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.bookmark-btn svg { width: 20px; height: 20px; display: block; }
.bookmark-btn.is-on {
  border-color: var(--accent);
  background: var(--accent-soft-bg);
  color: var(--accent);
}
.bookmark-btn.is-on svg { fill: currentColor; }

.account-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  margin-right: 10px;
  border: 1px solid var(--header-line);
  background: var(--bg-elev);
  color: var(--header-ink);
  text-decoration: none;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.account-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.account-btn svg { width: 21px; height: 21px; display: block; }

/* Angemeldet: Markenfarbe + gefuellter Umriss — der Unterschied muss auch ohne
   Farbwahrnehmung erkennbar sein, deshalb zusaetzlich der Punkt. */
.account-btn.is-signed-in {
  border-color: var(--accent);
  background: var(--accent-soft-bg);
  color: var(--accent);
}
.account-btn-dot {
  position: absolute; right: 3px; bottom: 3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--header-bg);
}

@media (max-width: 480px) {
  .account-btn, .bookmark-btn { width: 36px; height: 36px; margin-right: 8px; }
  .account-btn svg { width: 19px; height: 19px; }
  .bookmark-btn svg { width: 18px; height: 18px; }
}


/* ===== Rechter Kopfzeilen-Cluster: eng gruppiert (Sprache · Merken · Konto · Menü) =====
   Vorher standen die Knöpfe als einzelne Flex-Kinder der .header-row → gap:22px
   PLUS margin-right → viel zu weit auseinander. Jetzt ein gemeinsamer Container
   mit engem gap; die alten Einzel-Abstände werden neutralisiert. */
.header-actions {
  display: flex; align-items: center;
  gap: 8px; flex: 0 0 auto;
}
.header-actions .bookmark-btn,
.header-actions .account-btn { margin-right: 0; }

/* ===== Sprach-Umschalter in der Kopfzeile: aktuelle Flagge + Dropdown ===== */
.lang-menu { position: relative; flex: 0 0 auto; z-index: 1225; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-current {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px;                       /* unsichtbare Tap-Fläche um die runde Flagge */
  border: 0; background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  transition: transform var(--t) var(--ease);
}
.lang-current:hover { transform: translateY(-1px); }
/* Kleine RUNDE Flagge: 3:2-Fahne formatfüllend in den Kreis (cover, keine Verzerrung). */
.lang-current .language-flag {
  position: relative;
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  display: block; flex: 0 0 auto;
  transition: box-shadow var(--t) var(--ease);
}
.lang-current .language-flag svg {
  position: absolute; top: 50%; left: 50%;
  width: 150%; height: 100%;
  transform: translate(-50%, -50%);
  display: block;
}
.lang-current:hover .language-flag,
.lang-menu[open] .lang-current .language-flag {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--accent);
}
/* Pfeil als kleines Badge in der unteren rechten Ecke der Flagge. */
.lang-caret {
  position: absolute; right: 4px; bottom: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--header-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--header-ink);
  transition: transform var(--t) var(--ease);
}
.lang-caret::after {
  content: ""; width: 0; height: 0; margin-top: 1px;
  border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-top: 4px solid currentColor; opacity: .85;
}
.lang-menu[open] .lang-caret { transform: rotate(180deg); }

.lang-drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 156px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--header-line);
  border-radius: 12px;
  box-shadow: var(--header-shadow, 0 12px 30px rgba(0,0,0,.22));
  z-index: 1230;
}
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--header-ink); text-decoration: none;
  font-size: 14px; line-height: 1;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.lang-opt:hover { background: var(--accent-soft-bg); color: var(--accent); text-decoration: none; }
.lang-opt .language-flag {
  position: relative;
  width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  display: block; flex: 0 0 auto;
}
.lang-opt .language-flag svg {
  position: absolute; top: 50%; left: 50%;
  width: 150%; height: 100%; transform: translate(-50%, -50%); display: block;
}

@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .lang-current { padding: 3px; }
  .lang-current .language-flag { width: 20px; height: 20px; }
  .lang-caret { right: 3px; bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-current, .lang-caret { transition: none; }
  .lang-current:hover { transform: none; }
}

.quick-menu { position: relative; flex: 0 0 auto; z-index: 1220; }
.quick-menu summary { list-style: none; }
.quick-menu summary::-webkit-details-marker { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(191, 117, 23, .22);
  background: linear-gradient(180deg, #f8b03f, #f29c1f);
  color: #fff; cursor: pointer; user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(181, 112, 25, .18);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.menu-toggle:hover { transform: translateY(-1px); }

.menu-toggle-icon {
  position: relative; width: 24px; height: 16px; display: inline-block;
  border-top: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.menu-toggle-icon::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2.5px solid currentColor; transform: translateY(-50%);
  transition: opacity var(--t) var(--ease);
}
.quick-menu[open] .menu-toggle-icon {
  width: 22px; height: 22px;
  border-top-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.quick-menu[open] .menu-toggle-icon::before { top: 9px; opacity: 1; }
.quick-menu[open] .menu-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 9px;
  border-top: 2.5px solid currentColor; transform: rotate(90deg);
}

.menu-popover {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(312px, calc(100vw - 24px));
  max-height: calc(100vh - 180px);
  padding: 14px; border-radius: 16px;
  border: 1px solid var(--menu-border); background: var(--menu-bg);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
  overflow-y: auto; overscroll-behavior: contain; z-index: 1230;
}
.menu-group + .menu-group {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--menu-divider);
}
.menu-label {
  display: block; margin-bottom: 8px;
  color: var(--menu-label); font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}

/* Aufklappbare Einstellungs-Sektion „Ajustes": die Kopfzeile ist ein <summary>
   mit derselben Optik wie ein .menu-label, plus rotierendem Chevron rechts. */
summary.menu-ajustes-summary {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0; cursor: pointer; list-style: none;
}
summary.menu-ajustes-summary::-webkit-details-marker { display: none; }
.menu-ajustes-summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .5;
  transition: transform var(--t) var(--ease);
}
.menu-group--ajustes[open] .menu-ajustes-summary::after { transform: rotate(-135deg); }
.menu-ajustes-summary:hover::after { opacity: .85; }
.menu-ajustes-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .menu-ajustes-summary::after { transition: none; }
}

/* Link-Liste (Mehr): kompakte Zeilen mit Chevron statt dicker Karten. */
.menu-links { display: grid; gap: 2px; }
.menu-link {
  display: flex; align-items: center; gap: 10px; min-height: 38px;
  padding: 8px 10px; border-radius: 9px; border: 0;
  background: transparent; color: var(--menu-text);
  font-weight: 600; font-size: 13px;
  transition: background var(--t) var(--ease);
}
.menu-link::after {
  content: ""; width: 7px; height: 7px; margin-left: auto;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .35;
}
.menu-link:hover { background: var(--menu-hover); text-decoration: none; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setting-field { display: flex; flex-direction: column; gap: 6px; }
.setting-field span { color: var(--menu-text); font-size: 12px; font-weight: 600; }
.setting-field select {
  width: 100%; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--menu-input-border); background: var(--menu-input-bg);
  color: var(--menu-text); font-size: 12.5px;
}

/* Sprache / Theme / Basemap als schlanke Segmented Controls (volle Breite,
   gleich breite Segmente). Aktives Segment = Markenorange. */
.language-switch, .theme-switch {
  display: flex; gap: 3px; padding: 3px;
  background: var(--menu-input-bg);
  border: 1px solid var(--menu-input-border);
  border-radius: 11px;
}
.language-chip, .theme-chip {
  border: 1px solid var(--menu-input-border); background: var(--menu-input-bg);
  color: var(--menu-text); border-radius: 9px;
  padding: 7px 12px; font: inherit; font-weight: 600; font-size: 12.5px;
  cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.language-switch .language-chip, .theme-switch .theme-chip {
  flex: 1 1 0; min-width: 0; text-align: center;
  border: 0; background: transparent; border-radius: 8px; padding: 7px 8px;
}
/* Sprach-Chips sind <a> (führen zur selben Seite in anderer Sprache), keine Buttons. */
/* Mit Flagge: aus display:block wird eine Zeile mit Bild + Text. */
.language-switch .language-chip {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.language-flag {
  flex: 0 0 auto;
  width: 18px; height: 12px;
  border-radius: 2px;
  overflow: hidden;
  /* Duenner Rahmen, sonst verschwindet der weisse Anteil der Fahnen auf hellem
     Grund und der schwarze auf dunklem. */
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .45);
  line-height: 0;
}
.language-flag svg { width: 100%; height: 100%; display: block; }
.language-switch .language-chip:hover { text-decoration: none; }
.language-switch .language-chip:hover, .theme-switch .theme-chip:hover { color: var(--accent); }
.language-chip.is-active, .theme-chip.is-active {
  background: linear-gradient(180deg, var(--brand-sun), var(--brand-sun-2));
  border-color: var(--accent-soft-border);
  color: var(--accent-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* Prominenter Sprach-Umschalter (zwischen Navigation und Konto): Flagge über dem
   Namen gestapelt, dezent hervorgehobene Aktiv-Kachel — moderner als die schmale
   Zeile, aber zurückhaltend. Eigener Modifier, damit Design/Kartenstil unberührt
   bleiben. padding-bottom schafft Luft zur „Cuenta"-Gruppe darunter; der Trenner
   nach oben kommt aus „.menu-group + .menu-group". */
.menu-group--lang-top { padding-bottom: 10px; }
.language-switch--hero { gap: 5px; padding: 4px; border-radius: 13px; }
.language-switch--hero .language-chip {
  flex-direction: column; gap: 5px; padding: 8px 5px;
  border: 1.5px solid transparent;   /* Platzhalter, damit die Aktiv-Umrandung keinen Versatz macht */
  border-radius: 10px; font-size: 11.5px; font-weight: 500; line-height: 1;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.language-switch--hero .language-flag {
  width: 24px; height: 16px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .28), 0 1px 1.5px rgba(0, 0, 0, .08);
}
.language-switch--hero .language-chip:not(.is-active):hover { transform: translateY(-1px); }
/* Outline-Stil: dünne orange Umrandung + zarter Orange-Hauch statt oranger
   Vollfläche. Text bleibt in Menüfarbe (Orange nie als Schrift → Kontrast). */
.language-switch--hero .language-chip.is-active {
  background: rgba(244, 169, 50, .13);
  border-color: var(--accent);
  color: var(--menu-text);
  box-shadow: none;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .language-switch--hero .language-chip { transition: none; }
  .language-switch--hero .language-chip:not(.is-active):hover { transform: none; }
}

.favorites-panel  { display: grid; gap: 8px; }
.favorites-actions{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.favorites-actions .theme-chip { text-align: center; }
.favorites-list   { display: grid; gap: 6px; }

.social-row { display: flex; gap: 8px; margin-bottom: 12px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--social-border); background: var(--social-bg); color: var(--social-ink);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.social-link:hover { transform: translateY(-1px); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.menu-meta { display: grid; gap: 4px; color: var(--menu-meta); font-size: 11px; line-height: 1.45; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 24px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--header-line);
  /* Der SCHLICHTE Footer (ohne .site-footer--mega) hatte bis 07.08.2026 keinen
     eigenen Hintergrund. Der Mega-Footer auf den Unterseiten dagegen schon — er
     hing an --header-bg, siehe components/footer.css. Jetzt beide auf
     --footer-bg (blau: #0c587a deckend, hell: transparent = unveraendert). */
  background: var(--footer-bg, transparent);
  color: var(--muted); font-size: 13px;
}
.site-footer .footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ===== Map Controls (Leaflet, global) =====
   Wird auf jeder Map-Page erwartet. Style ist konsistent zwischen
   /earthquakes/, /storms/ und kommenden Pages. Optisch angelehnt an
   die alte next.php (assets/v3.0/css/web.css ~Zeile 1382).
*/
.leaflet-top.leaflet-right .leaflet-control,
.leaflet-top.leaflet-right .leaflet-bar {
  margin-top: 12px;
  margin-right: 12px;
}

.leaflet-bar {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.leaflet-control-zoom a,
.m365-map-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--map-control-bg) !important;
  backdrop-filter: var(--map-control-blur);
  -webkit-backdrop-filter: var(--map-control-blur);
  color: #fff !important;
  font-size: 22px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 24px rgba(4, 39, 58, .24);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.leaflet-control-zoom a + a,
.m365-map-btn + .m365-map-btn { margin-top: 12px !important; }

.leaflet-control-zoom a:hover,
.m365-map-btn:hover {
  background: var(--map-control-bg-hover) !important;
  transform: translateY(-1px);
}
.m365-map-btn.is-active {
  background: linear-gradient(180deg, #f8b03f, #f29c1f) !important;
}
.m365-map-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Util ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Werbung darf die Seite nicht sprengen (global, 2026-07-24) =====
   AdSense (.adsbygoogle in .ads-slot, inc/ad_slot.php) misst die Breite nur beim
   Laden; nach Landscape→Portrait bleibt die zu breite Größe stehen → scrollWidth
   > Viewport → Browser zoomt die ganze Seite raus. Container klippt, Ins auf max
   Viewport-Breite. Gilt site-weit (aus pages/livecams.css hochgezogen). */
.ads-slot { max-width: 100%; overflow: hidden; }
.ads-slot .adsbygoogle { max-width: 100% !important; }
