/* ==========================================================================
   Skihütte Ski-Club Pirmasens – Portal Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --navy-950: #0A1F33;
  --navy-800: #123A5C;
  --navy-600: #1F5C8C;
  --navy-100: #E4ECF3;
  --snow-050: #F6F4EF;
  --snow-000: #FFFFFF;
  --wood-600: #B0742D;
  --wood-100: #F3E6D2;
  --ink-900: #14202B;
  --ink-500: #57616B;
  --ink-300: #8B949C;
  --line: #DDE3E8;
  --ok-green: #3F8F5F;
  --ok-green-bg: #E6F3EA;
  --warn-amber: #C97A16;
  --warn-amber-bg: #FBEEDA;
  --danger-red: #B23A24;
  --danger-red-bg: #FBE7E2;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Layout */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(10, 31, 51, 0.04), 0 4px 16px rgba(10, 31, 51, 0.06);
  --header-h: 64px;
  --nav-h: 72px;
  --max-w: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--snow-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--snow-050);
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--snow-000);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-btn svg { stroke: var(--navy-950); }

.app-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-950);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--snow-000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Welcome hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px 36px;
  color: var(--snow-000);
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q 50 22 100 12 T 200 12 T 300 12 T 400 12 V24 H0 Z' fill='%23F6F4EF'/%3E%3C/svg%3E") bottom / 200px 22px repeat-x;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: #F0C879;
  font-size: 17px;
  margin-bottom: 6px;
}

.hero h1 { font-size: 26px; color: var(--snow-000); margin-bottom: 10px; }

.hero p {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.hero p strong { color: #F0C879; font-weight: 600; }

/* ---------- Weather ---------- */
.weather-card {
  background: var(--snow-000);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 14px;
  margin-top: -14px;
  position: relative;
  z-index: 1;
}

.weather-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-temp {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--navy-950);
  display: flex;
  align-items: flex-start;
  gap: 2px;
}
.weather-temp span.deg { font-size: 20px; margin-top: 2px; }

.weather-meta { font-size: 13px; color: var(--ink-500); margin-top: 2px; }

.weather-day-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-800);
  font-size: 15px;
}

.weather-hours {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.weather-hour { text-align: center; font-size: 12.5px; color: var(--ink-500); }
.weather-hour .t { font-weight: 600; color: var(--ink-900); font-size: 14px; }
.weather-hour .icon { font-size: 18px; margin: 4px 0; }

.weather-note {
  font-size: 11px;
  color: var(--ink-300);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section { margin-top: 28px; }
.section-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 4px;
}
.section-sub { font-size: 13.5px; color: var(--ink-500); margin-bottom: 14px; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wood-600);
  margin-bottom: 8px;
}

/* ---------- Contact cards ---------- */
.contact-card {
  background: var(--snow-000);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-name { font-weight: 600; font-size: 16px; }
.contact-role { font-size: 13px; color: var(--ink-500); }

.call-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--navy-100);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-950);
  cursor: pointer;
}
.call-btn .label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--snow-000);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.faq-q .chev { transition: transform 0.2s ease; flex-shrink: 0; stroke: var(--navy-800); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}
.faq-a-inner { padding: 0 18px 16px; }
.faq-a a { color: var(--navy-800); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--navy-950); color: var(--snow-000); }
.btn-primary:active { background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--navy-800); border: 1px solid var(--line); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--snow-000);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 40;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-300);
}
.nav-item.active { color: var(--wood-600); }
.nav-item svg { stroke: currentColor; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 100%);
}
.login-card {
  background: var(--snow-000);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.login-mark {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
}
.login-card h1 {
  text-align: center;
  font-size: 22px;
  color: var(--navy-950);
  margin-bottom: 4px;
}
.login-card .sub {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--snow-050);
}
.field input:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: 1px;
}
.login-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  min-height: 18px;
}
.login-msg.error { color: var(--danger-red); }
.login-msg.ok { color: var(--ok-green); }

/* ---------- Dashboard / sensor cards ---------- */
.sensor-card {
  background: var(--snow-000);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sensor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.sensor-title { font-weight: 600; font-size: 16px; }
.sensor-updated { font-size: 12px; color: var(--ink-300); font-family: var(--font-mono); }

.sensor-body { display: flex; align-items: center; gap: 18px; }

/* Pegel-Band tank visual */
.pegel-band {
  width: 64px;
  height: 100px;
  flex-shrink: 0;
}

.sensor-stats { flex: 1; }
.sensor-pct {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1;
}
.sensor-pct .unit { font-size: 16px; color: var(--ink-500); font-weight: 400; }
.sensor-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-ok { background: var(--ok-green-bg); color: var(--ok-green); }
.status-warn { background: var(--warn-amber-bg); color: var(--warn-amber); }
.status-danger { background: var(--danger-red-bg); color: var(--danger-red); }

.chip-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--snow-050);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 11px;
  color: var(--ink-500);
}

.sensor-card.placeholder {
  border: 1.5px dashed var(--line);
  box-shadow: none;
  color: var(--ink-300);
}
.sensor-card.placeholder .sensor-title { color: var(--ink-500); }
.placeholder-note { font-size: 13px; line-height: 1.5; }

.calib-toggle {
  font-size: 12.5px;
  color: var(--navy-800);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
}
.calib-box {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.calib-box.open { display: flex; }
.calib-box .field { flex: 1; margin-bottom: 0; }
.calib-box input { padding: 9px 10px; font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.logout-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger-red);
  background: none;
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-q .chev { transition: none; }
}


/* === MEHR-MENU & EVENTS (auto-added) === */
.bottom-nav .nav-item { font-size: 10.5px; }
.bottom-nav .nav-item svg { width: 20px; height: 20px; }
button.nav-item {
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
  margin: 0;
}
.mehr-menu {
  position: fixed;
  right: 12px;
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom));
  background: var(--snow-000);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(10,31,51,0.18);
  border: 1px solid var(--line);
  padding: 6px;
  display: none;
  z-index: 50;
  min-width: 170px;
}
.mehr-menu.open { display: block; }
.mehr-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
}
.mehr-menu-item:active { background: var(--snow-050); }
.mehr-menu-item svg { stroke: var(--navy-800); flex-shrink: 0; }

.event-card {
  background: var(--snow-000);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
  display: block;
}
.event-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--snow-050);
}
.event-card-body { padding: 14px 16px; }
.event-card-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.event-card-date { font-size: 13px; color: var(--ink-500); font-family: var(--font-mono); }


/* === Skihütte-Hub: Tab-Umschalter (Info / Preise / Buchung / Anfrage) === */
.hub-tabs {
  display: flex;
  background: var(--snow-050);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
}
.hub-tab-btn {
  flex: 1;
  white-space: nowrap;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hub-tab-btn.active {
  background: var(--navy-950);
  color: var(--snow-000);
}
.hub-panels { margin-top: 4px; }
.hub-panel { display: none; }
.hub-panel.active { display: block; }

/* === Wasser-Ampel (rot/gelb/grün) – Startseite & Skihütte-Hub === */
.ampel-card {
  background: var(--snow-000);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-top: 16px;
}
.ampel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ampel-title { font-weight: 600; color: var(--ink-900); }
.ampel-updated { font-size: 12px; color: var(--ink-300); }
.ampel-lights {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 0 12px;
}
.ampel-light {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E4E7EA;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.ampel-light.active.red { background: var(--danger-red); opacity: 1; }
.ampel-light.active.yellow { background: var(--warn-amber); opacity: 1; }
.ampel-light.active.green { background: var(--ok-green); opacity: 1; }
.ampel-status {
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
}


/* === Startseite: Hero-CTA-Button & schönere Quick-Link-Karten === */
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  color: var(--snow-000);
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-cta:active { background: rgba(255,255,255,0.26); }
.hero-cta svg { flex-shrink: 0; stroke: currentColor; }

.quicklinks { margin: 0; padding: 0; }
.quicklink-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--snow-000);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 15px 16px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.quicklink-card:active { transform: scale(0.98); }
.quicklink-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quicklink-icon svg { stroke: currentColor; }
.quicklink-icon.navy  { background: var(--navy-100); color: var(--navy-800); }
.quicklink-icon.wood  { background: var(--wood-100); color: var(--wood-600); }
.quicklink-icon.green { background: var(--ok-green-bg); color: var(--ok-green); }
.quicklink-body { flex: 1; min-width: 0; }
.quicklink-title { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.quicklink-sub { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.quicklink-chevron { stroke: var(--ink-300); flex-shrink: 0; }

/* === Skihütte-Hub: Tab "Aktivitäten" – Karten mit Farbbanner === */
.activity-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  text-decoration: none;
  background: var(--snow-000);
  transition: transform 0.15s ease;
}
.activity-card:active { transform: scale(0.98); }
.activity-banner {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.activity-banner.ice    { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-950) 100%); }
.activity-banner.forest { background: linear-gradient(135deg, #3F8F5F 0%, #1F4A30 100%); }
.activity-banner.amber  { background: linear-gradient(135deg, var(--wood-600) 0%, #7A4A10 100%); }
.activity-banner svg { stroke: rgba(255,255,255,0.92); }
.activity-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
}
.activity-body { padding: 16px 18px; }
.activity-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 5px;
}
.activity-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 12px;
}
.activity-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-800);
}
.activity-link svg { stroke: currentColor; flex-shrink: 0; }

.webcam-frame-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5B4D;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* === Startseite: Waldbrandgefahr-Hinweiskarte === */
.fire-card {
  background: var(--snow-000);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-top: 14px;
}
.fire-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.fire-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--warn-amber-bg);
  color: var(--warn-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fire-icon svg { stroke: currentColor; }
.fire-title { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.fire-sub { font-size: 12px; color: var(--ink-500); margin-top: 1px; }

.fire-current {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--snow-050);
  border-radius: var(--radius-sm);
}
.fire-current-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-300);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}
.fire-current-dot.s1 { background: #3F8F5F; }
.fire-current-dot.s2 { background: #8FAF3F; }
.fire-current-dot.s3 { background: #E0B400; }
.fire-current-dot.s4 { background: #E07C1E; }
.fire-current-dot.s5 { background: #B23A24; }
#fire-current-text { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }

.fire-scale { margin: 4px 0 12px; position: relative; }
.fire-scale-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.fire-seg { flex: 1; transition: filter 0.3s ease; filter: grayscale(0.75) opacity(0.55); }
.fire-seg.active { filter: none; }
.fire-seg.s1 { background: #3F8F5F; }
.fire-seg.s2 { background: #8FAF3F; }
.fire-seg.s3 { background: #E0B400; }
.fire-seg.s4 { background: #E07C1E; }
.fire-seg.s5 { background: #B23A24; }
.fire-scale-marker {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-900);
  transition: left 0.4s ease;
  pointer-events: none;
}
.fire-scale-labels {
  display: flex;
  margin-top: 16px;
}
.fire-scale-labels span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-500);
  font-weight: 600;
}
.fire-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0 0 12px;
}
