/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:              #0A0E1A;
  --surface:         #141927;
  --surface-high:    #1E2535;
  --border:          #2D3748;
  --primary:         #E53E3E;
  --primary-dim:     rgba(229,62,62,.15);
  --text:            #F7FAFC;
  --sub:             #A0AEC0;
  --muted:           #4A5568;

  --deceased:        #FC8181;
  --confirmed:       #F6AD55;
  --symptomatic:     #FBD38D;
  --asymptomatic:    #68D391;
  --recovered:       #76E4F7;
  --suspected:       #B794F4;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --header-h: 60px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  /* iOS safe-area für Notch/Home-Bar */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-content { padding: 28px 0 60px; }

/* ─── Page H1 (SEO + visuell subtil) ────────────────────────────────────────── */
.page-h1 {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: .3px;
  margin-bottom: 18px;
  opacity: .7;
}


/* ─── Skeleton / Loading ─────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-val,
.skeleton-lbl,
.skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-high) 25%, var(--border) 50%, var(--surface-high) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-val  { height: 36px; width: 60%; margin-bottom: 8px; border-radius: 6px; }
.skeleton-lbl  { height: 14px; width: 80%; }
.skeleton-line { height: 14px; margin-bottom: 12px; }
.skeleton-line.short { width: 55%; }
.skeleton { border: 1px solid var(--border) !important; }
.stat-card.skeleton { align-items: flex-start; }

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(20, 25, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
  /* kein overflow-hidden — verhindert sticky-Bugs */
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-btn {
  color: var(--sub);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-btn:hover  { color: var(--text); background: var(--surface-high); }
.nav-btn.active { color: var(--text); background: var(--surface-high); font-weight: 600; }

/* ─── Lang Switcher ──────────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  padding: 4px 9px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  letter-spacing: .5px;
}
.lang-btn:hover  { color: var(--text); }
.lang-btn.active { color: var(--text); background: var(--border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

/* ─── Main / Tabs ────────────────────────────────────────────────────────────── */
.main { min-height: calc(100vh - var(--header-h) - 44px); }
@supports (min-height: 1dvh) {
  .main { min-height: calc(100dvh - var(--header-h) - 44px); }
}
.tab { display: none; }
.tab.active { display: block; }
.map-section { display: none; position: relative; }
.map-section.active {
  display: block;
  height: calc(100vh - var(--header-h));
}
@supports (height: 1dvh) {
  .map-section.active { height: calc(100dvh - var(--header-h)); }
}

/* ─── Alert Banner ───────────────────────────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 28px;
}
.alert-pulse-wrap {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}
@keyframes ping {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%        { transform: scale(1.6); opacity: 0; }
}
.alert-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1.6s ease-in-out infinite;
}
.alert-pulse::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.alert-body { flex: 1; }
.alert-level {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
}
.alert-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.alert-refresh {
  color: var(--sub);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.alert-refresh:hover { color: var(--text); background: var(--surface-high); }

/* ─── Error Box ──────────────────────────────────────────────────────────────── */
.error-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(252,129,129,.1);
  border: 1px solid var(--deceased);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  color: var(--deceased);
  font-size: 14px;
}

/* ─── Section Title ─────────────────────────────────────────────────────────── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 32px;
}
.section-title:first-of-type { margin-top: 0; }

/* ─── Stats Grid ─────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: border-color .2s, transform .15s;
  cursor: default;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--muted); }
.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
  margin-top: 2px;
}

/* ─── Card ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 4px;
}

/* ─── Generation Bars ────────────────────────────────────────────────────────── */
.gen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.gen-row:last-child { border-bottom: none; }
.gen-label { font-size: 13px; color: var(--sub); width: 140px; flex-shrink: 0; }
.bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-high);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
  transition: width .8s cubic-bezier(.25,.46,.45,.94);
}
.gen-count {
  font-size: 14px;
  font-weight: 700;
  width: 28px;
  text-align: right;
}

/* ─── Vessel Card ────────────────────────────────────────────────────────────── */
.vessel-card { }
.vessel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.vessel-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(246,173,85,.12);
  border: 1px solid rgba(246,173,85,.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--confirmed);
  flex-shrink: 0;
}
.vessel-name { font-size: 16px; font-weight: 700; }
.vessel-sub  { font-size: 12px; color: var(--sub); margin-top: 2px; }
.vessel-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.vessel-stat { display: flex; flex-direction: column; }
.vs-num { font-size: 28px; font-weight: 800; color: var(--confirmed); }
.vs-lbl { font-size: 11px; color: var(--sub); margin-top: 2px; }
.vs-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Sources ────────────────────────────────────────────────────────────────── */
.source-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.source-link:last-of-type { border-bottom: none; }
.source-link:hover { background: var(--surface-high); }
.source-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.source-ico.confirmed  { background: rgba(246,173,85,.15); color: var(--confirmed); }
.source-ico.symptomatic { background: rgba(251,211,141,.15); color: var(--symptomatic); }
.source-ico.asymptomatic { background: rgba(104,211,145,.15); color: var(--asymptomatic); }
.source-body { flex: 1; }
.source-name { font-size: 14px; font-weight: 600; }
.source-sub  { font-size: 12px; color: var(--sub); margin-top: 1px; }
.source-arrow { color: var(--muted); flex-shrink: 0; }
.source-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── Last Updated ───────────────────────────────────────────────────────────── */
.last-updated {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.ad-wrap {
  margin: 20px 0;
  min-height: 50px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ─── Cases Controls ─────────────────────────────────────────────────────────── */
.cases-controls {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: var(--bg);
  padding: 16px 0 12px;
}
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  gap: 8px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.search-wrap:focus-within { border-color: var(--primary); }
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 12px 0;
}
.search-input::placeholder { color: var(--muted); }
.search-clear {
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.search-clear:hover { color: var(--text); background: var(--surface-high); }
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .15s;
}
.chip:hover  { color: var(--text); border-color: var(--muted); }
.chip.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.cases-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

/* ─── Cases Grid ─────────────────────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.loading-msg {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--sub);
  font-size: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ─── Case Card ─────────────────────────────────────────────────────────────── */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.case-card:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.case-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.case-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.gen-tag {
  font-size: 11px;
  color: var(--sub);
  background: var(--surface-high);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.case-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--sub);
  overflow: hidden;
}
.case-loc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.case-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 6px;
}
.case-nat {
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-quarantine {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.case-quarantine.warn  { color: #F6AD55; }
.case-quarantine.urgent { color: #FC8181; }

/* ─── Nationalities Card ─────────────────────────────────────────────────────── */
.nat-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}
.nat-flag  { font-size: 15px; line-height: 1; }
.nat-name  { color: var(--text); font-weight: 500; }
.nat-count {
  background: var(--surface);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--sub);
  font-weight: 600;
}

/* ─── Modal source link ──────────────────────────────────────────────────────── */
.modal-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 0;
}
.modal-source-link:hover { text-decoration: underline; }

/* ─── Status Badge ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ─── Map ────────────────────────────────────────────────────────────────────── */
#map {
  width: 100%;
  height: 100%;
  background: #1a2332;
}
.leaflet-container { background: #1a2332; }
.leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-content {
  margin: 12px 14px;
  font-family: 'Inter', sans-serif;
  min-width: 160px;
}
.pop-name  { font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.pop-status{ font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.pop-loc   { font-size: 11px; color: var(--sub); }
.pop-date  { font-size: 11px; color: var(--muted); margin-top: 3px; }
.leaflet-control-attribution { background: rgba(10,14,26,.8) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--sub) !important; }

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 12px;
  z-index: 999;
  background: rgba(20,25,39,.93);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.legend-item:last-child { margin-bottom: 0; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(10,14,26,.8);
  flex-shrink: 0;
}
.legend-label { font-size: 12px; font-weight: 500; }
.legend-route-dash {
  width: 24px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #F6AD55 0, #F6AD55 7px,
    transparent 7px, transparent 11px
  );
  flex-shrink: 0;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .map-legend {
    bottom: 12px;
    left: 8px;
    padding: 8px 9px;
    gap: 0;
  }
  .legend-item {
    gap: 5px;
    margin-bottom: 4px;
  }
  .legend-dot {
    width: 8px;
    height: 8px;
  }
  .legend-label {
    font-size: 10px;
  }
  .legend-route-dash {
    width: 18px;
  }
}

/* ─── Map Filter Bar ─────────────────────────────────────────────────────────── */
.map-filter-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 5px;
  background: rgba(20,25,39,0.93);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  max-width: calc(100vw - 80px);
  scrollbar-width: none;
  pointer-events: all;
}
.map-filter-bar::-webkit-scrollbar { display: none; }
.map-filter-btn {
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  background: transparent;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  cursor: pointer;
  flex-shrink: 0;
}
.map-filter-btn:hover { color: var(--text); background: var(--surface-high); }
.map-filter-btn[data-status="all"].active         { background: var(--primary);    border-color: var(--primary);    color: #fff; }
.map-filter-btn[data-status="deceased"].active    { background: #FC8181;           border-color: #FC8181;           color: #0A0E1A; }
.map-filter-btn[data-status="confirmed"].active   { background: #F6AD55;           border-color: #F6AD55;           color: #0A0E1A; }
.map-filter-btn[data-status="symptomatic"].active { background: #FBD38D;           border-color: #FBD38D;           color: #0A0E1A; }
.map-filter-btn[data-status="asymptomatic"].active{ background: #68D391;           border-color: #68D391;           color: #0A0E1A; }
.map-filter-btn[data-status="recovered"].active   { background: #76E4F7;           border-color: #76E4F7;           color: #0A0E1A; }
.map-filter-btn[data-status="suspected"].active   { background: #B794F4;           border-color: #B794F4;           color: #0A0E1A; }

/* ─── Map Layer Bar ──────────────────────────────────────────────────────────── */
.map-layer-bar {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: all;
  flex-wrap: nowrap;
  max-width: calc(100vw - 80px);
  overflow-x: auto;
  scrollbar-width: none;
}
.map-layer-bar::-webkit-scrollbar { display: none; }
.map-layer-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,26,.72);
  color: var(--muted);
  backdrop-filter: blur(10px);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s, border-color .15s;
}
.map-layer-btn:hover { color: var(--sub); background: var(--surface-high); }
.map-layer-btn.active {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
  background: rgba(30,36,54,.9);
}
.map-layer-btn[data-layer="passenger"].active { border-color: rgba(246,173,85,.4);  color: #F6AD55; }
.map-layer-btn[data-layer="edges"].active      { border-color: rgba(252,129,129,.4); color: #FC8181; }
.map-layer-btn[data-layer="parachute"].active  { border-color: rgba(239,68,68,.4);   color: #ef4444; }

/* ─── Animated Lines ─────────────────────────────────────────────────────────── */
@keyframes dashflow {
  to { stroke-dashoffset: -13; }
}
@keyframes dashflow-edge {
  to { stroke-dashoffset: -11; }
}
.passenger-flight-line {
  animation: dashflow 1.8s linear infinite;
}
.transmission-edge-line {
  animation: dashflow-edge 2.2s linear infinite;
}

/* ─── Tooltip dark ───────────────────────────────────────────────────────────── */
.leaflet-tooltip.tt-dark {
  background: rgba(10,14,26,.92);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  padding: 6px 10px;
}
.leaflet-tooltip.tt-dark::before { display: none; }

/* ─── Parachute Marker ───────────────────────────────────────────────────────── */
@keyframes parachute-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-7px) rotate(2deg); }
}
.parachute-wrap {
  animation: parachute-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(239,68,68,.5));
}

/* ─── Ship Marker ───────────────────────────────────────────────────────────── */
@keyframes ship-ring-pulse {
  0%   { transform: scale(0.85); opacity: .7; }
  100% { transform: scale(2.2);  opacity: 0; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -17; }
}
.ship-route-line {
  animation: dash-flow 0.65s linear infinite;
}
.ship-marker-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ship-marker-icon {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(10, 14, 26, 0.9);
  border: 1.5px solid rgba(246,173,85,.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ship-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(246,173,85,.5);
  animation: ship-ring-pulse 2.4s ease-out infinite;
}
.ship-ring.r2 { animation-delay: 1.2s; }

/* ─── Case Pulse Rings (confirmed + deceased) ────────────────────────────────── */
@keyframes case-pulse {
  0%   { transform: scale(0.4); opacity: 0.75; }
  100% { transform: scale(2.1); opacity: 0; }
}
.case-pulse-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  pointer-events: none;
}
.case-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: case-pulse 2.4s ease-out infinite;
}
.case-pulse-ring.r2 { animation-delay: 1.2s; }
.case-pulse-wrap.deceased  .case-pulse-ring { border: 1.5px solid rgba(252,129,129,0.6); }
.case-pulse-wrap.confirmed .case-pulse-ring { border: 1.5px solid rgba(246,173,85,0.6); }

/* ─── Timeline ───────────────────────────────────────────────────────────────── */
.tl-card { padding: 0 16px 4px; overflow: hidden; }
.tl-days-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tl-days-badge span:first-child {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tl-days-lbl {
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}
.tl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 36px;
}
.tl-date {
  font-size: 11px;
  color: var(--muted);
  width: 50px;
  flex-shrink: 0;
  padding-top: 5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 26px;
}
.tl-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  transition: box-shadow .3s;
}
.tl-line {
  width: 2px;
  min-height: 26px;
  background: var(--border);
  margin: 2px 0;
  flex: 1;
}
.tl-body { flex: 1; padding-bottom: 18px; }
.tl-last .tl-body { padding-bottom: 8px; }
.tl-label {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  padding-top: 4px;
}
.tl-critical .tl-body {
  background: rgba(252,129,129,.06);
  border-radius: 6px;
  padding: 4px 8px 18px;
  border-left: 2px solid rgba(252,129,129,.4);
}

@media (max-width: 480px) {
  .tl-date { width: 40px; font-size: 10px; }
  .tl-days-badge span:first-child { font-size: 34px; }
}

/* ─── Info Page ──────────────────────────────────────────────────────────────── */
.info-header {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.info-logo-wrap {
  width: 80px;
  height: 80px;
  background: rgba(229,62,62,.12);
  border: 1px solid rgba(229,62,62,.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 16px;
}
.info-title   { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.info-version { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.info-desc    { font-size: 14px; color: var(--sub); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.body-text { font-size: 14px; color: var(--text); line-height: 1.65; }
.body-text strong { color: var(--text); font-weight: 700; }

/* ─── Source Cards ───────────────────────────────────────────────────────────── */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.source-card:hover { border-color: var(--muted); background: var(--surface-high); }
.source-card-api { cursor: default; }
.source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.source-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 4px;
}
.source-badge.who   { background: rgba(0,122,255,.18); color: #60AEFF; }
.source-badge.ecdc  { background: rgba(0,180,160,.18); color: #34D4C0; }
.source-badge.rki   { background: rgba(246,173,85,.18); color: #F6AD55; }
.source-badge.cdc   { background: rgba(118,228,247,.18); color: #76E4F7; }
.source-badge.promed{ background: rgba(183,148,244,.18); color: #B794F4; }
.source-badge.ont   { background: rgba(252,129,129,.18); color: #FC8181; }
.source-badge.hmap  { background: rgba(104,211,145,.18); color: #68D391; }
.source-badge.api   { background: rgba(229,62,62,.18);   color: var(--primary); }
.source-ext { color: var(--muted); flex-shrink: 0; }
.source-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.source-sub {
  font-size: 11px;
  color: var(--sub);
  line-height: 1.4;
  flex: 1;
}
.source-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  align-self: flex-start;
}
.source-tag.rss  { background: rgba(104,211,145,.15); color: #68D391; }
.source-tag.ref  { background: rgba(160,174,192,.12); color: var(--muted); }
.source-tag.live { background: rgba(229,62,62,.15);   color: var(--primary); }

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.symptom-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sub);
}
.symptom-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--symptomatic);
  flex-shrink: 0;
}

.disclaimer-box {
  display: flex;
  gap: 14px;
  background: rgba(251,211,141,.08);
  border: 1px solid rgba(251,211,141,.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.disclaimer-icon { color: var(--symptomatic); flex-shrink: 0; margin-top: 2px; }
.disclaimer-box p { font-size: 13px; color: var(--sub); line-height: 1.6; }
.disclaimer-box strong { color: var(--text); font-weight: 700; }

/* ─── Info Button & Popover ──────────────────────────────────────────────────── */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 3px;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  position: relative;
  top: -1px;
}
.info-btn:hover, .info-btn-open {
  color: var(--text);
  border-color: rgba(229,62,62,.7);
  background: rgba(229,62,62,.1);
}
.info-popover {
  position: absolute;
  z-index: 9000;
  background: rgba(12,17,33,.97);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  animation: pop-in .14s ease;
  pointer-events: auto;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-5px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.info-pop-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
  line-height: 1.3;
}
.info-pop-def {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.65;
  margin: 0;
}

/* ─── Clickable stat cards ───────────────────────────────────────────────────── */
.stat-clickable {
  cursor: pointer;
  position: relative;
}
.stat-clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(229,62,62,.5);
  box-shadow: 0 4px 16px rgba(229,62,62,.1);
}
.stat-clickable:active { transform: translateY(-1px); }
.stat-click-hint {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .03em;
  margin-top: 4px;
  opacity: 0;
  transition: opacity .15s;
}
.stat-clickable:hover .stat-click-hint { opacity: 1; }

/* ─── Quick Facts ────────────────────────────────────────────────────────────── */
.qf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.qf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.qf-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 5px;
}
.qf-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Transmission Chain ─────────────────────────────────────────────────────── */
.transmission-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 4px 4px;
}
.trans-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  min-width: 54px;
}
.trans-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(229,62,62,.08);
  border: 1px solid rgba(229,62,62,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.trans-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
  line-height: 1.3;
}
.trans-arrow {
  color: var(--muted);
  font-size: 20px;
  flex-shrink: 0;
  padding-bottom: 20px;
  line-height: 1;
}
.trans-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── Protection List ────────────────────────────────────────────────────────── */
.protect-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 8px;
}
.protect-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.protect-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(104,211,145,.12);
  border: 1px solid rgba(104,211,145,.25);
  color: #68D391;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Suspect Steps ──────────────────────────────────────────────────────────── */
.suspect-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.suspect-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.suspect-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(229,62,62,.12);
  border: 1px solid rgba(229,62,62,.25);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.suspect-body { flex: 1; }
.suspect-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.suspect-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* ─── Impressum inline ───────────────────────────────────────────────────────── */
.impressum-inline {
  margin-top: 32px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.impressum-inline h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.impressum-row {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 5px;
  line-height: 1.5;
}
.impressum-key {
  color: var(--muted);
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}
.impressum-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.impressum-block {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.impressum-block strong { color: var(--sub); font-weight: 600; }

@media (max-width: 768px) {
  .qf-grid { grid-template-columns: repeat(2, 1fr); }
  .trans-icon { width: 38px; height: 38px; font-size: 18px; }
  .trans-arrow { font-size: 16px; }
  .impressum-row { flex-direction: column; gap: 2px; }
  .impressum-key { min-width: unset; }
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,14,26,.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
}
.modal-close:hover { color: var(--text); background: var(--surface-high); }
.modal-name  { font-size: 20px; font-weight: 700; margin-bottom: 10px; padding-right: 32px; line-height: 1.3; }
.modal-id    { font-size: 11px; color: var(--muted); font-family: monospace; margin-top: 6px; }
.detail-section { margin-top: 20px; }
.detail-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 8px;
}
.detail-row:last-child { border-bottom: none; }
.detail-key   { color: var(--sub); width: 120px; flex-shrink: 0; }
.detail-val   { color: var(--text); font-weight: 500; flex: 1; text-align: right; }
.detail-notes {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  background: var(--surface-high);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
  white-space: pre-wrap;
}

/* ─── Map Preview Card ───────────────────────────────────────────────────────── */
.map-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .15s;
  margin-bottom: 4px;
}
.map-preview-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.map-preview-visual {
  height: 160px;
  background: #111827;
  position: relative;
  overflow: hidden;
}
@keyframes map-dot-pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.mpp {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-dot-pulse 3s ease-out infinite;
}
.mpp.d1 { animation-delay: 0s; }
.mpp.d2 { animation-delay: 0.75s; }
.mpp.d3 { animation-delay: 1.5s; }
.mpp.d4 { animation-delay: 2.25s; }
.map-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.map-preview-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.map-preview-sub {
  font-size: 12px;
  color: var(--sub);
}
.map-preview-btn {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.map-preview-btn:hover { background: #c53030; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 2px;
}
.footer-sep { color: var(--muted); }
.footer-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}
.footer-tag {
  font-size: 11px;
  color: var(--muted);
}
.footer-link {
  color: var(--sub);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.footer-link:hover { color: var(--text); }
.footer-time { color: var(--muted); }
@media (max-width: 600px) {
  .footer-tag { display: none; }
}

/* ─── Scan Status (Header) ──────────────────────────────────────────────────── */
.scan-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 160px;
  overflow: hidden;
}
.scan-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes scan-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asymptomatic);
  flex-shrink: 0;
}
.scan-dot.scanning {
  animation: scan-pulse 1.2s ease-in-out infinite;
  background: var(--asymptomatic);
}
.scan-done .scan-dot { background: var(--muted); }

/* ─── News Filter Bar ────────────────────────────────────────────────────────── */
.news-filter-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-country-select {
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  max-width: 200px;
}
.news-country-select:hover,
.news-country-select:focus { border-color: var(--muted); }
.news-country-select option { background: var(--surface-high); color: var(--text); }
.news-disclaimer {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

/* ─── News Panel ─────────────────────────────────────────────────────────────── */
.news-card { padding: 0; overflow: hidden; }
.news-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--surface-high); }
.news-item-meta {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 6px;
  flex-wrap: wrap;
}
.news-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.news-country-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--sub);
  background: rgba(118,228,247,0.1);
  border: 1px solid rgba(118,228,247,0.2);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-safe-tag {
  font-size: 10px;
  font-weight: 600;
  color: #68D391;
  background: rgba(104,211,145,0.1);
  border: 1px solid rgba(104,211,145,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ago {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.news-title {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-empty {
  padding: 24px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ─── News Map Markers ───────────────────────────────────────────────────────── */
.news-map-marker {
  transition: opacity .3s;
}

/* ─── Loading Screen (App-Splash-Screen für Web) ─────────────────────────────── */
#appLoading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #060910 0%, #0A0E1A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#appLoading.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-rings {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-logo {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  background: rgba(229,62,62,0.1);
  border: 1.5px solid rgba(229,62,62,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes loading-ring-pulse {
  0%   { transform: scale(0.65); opacity: 0.7; }
  100% { transform: scale(2.2);  opacity: 0; }
}
.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(229,62,62,0.35);
  animation: loading-ring-pulse 2.4s ease-out infinite;
}
.loading-ring.r2 { animation-delay: 0.8s; }
.loading-ring.r3 { animation-delay: 1.6s; }
.loading-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 5px;
}
.loading-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3.5px;
  margin-top: -14px;
  opacity: 0.75;
}


/* ─── Case Toast Notification (aus App-notificationService) ──────────────────── */
.case-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 2000;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  animation: toast-slide-in 0.35s cubic-bezier(.21,1.02,.73,1) both;
}
@keyframes toast-slide-in {
  from { transform: translateX(calc(100% + 28px)); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}
.toast-close {
  font-size: 15px;
  color: var(--muted);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.toast-close:hover { color: var(--text); background: var(--surface-high); }
@media (max-width: 480px) {
  .case-toast { right: 12px; left: 12px; max-width: none; bottom: 70px; }
}

/* ─── Responsive — alle Breakpoints ─────────────────────────────────────────── */

/* Tablet & kleiner: 768px */
@media (max-width: 768px) {
  .scan-status { display: none; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 4px;
    z-index: 1000;
  }
  .nav.open .nav-btn { width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--radius-sm); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .vessel-stats { flex-wrap: wrap; gap: 16px; }
  .vs-divider { display: none; }
  .header-inner { gap: 12px; }
}

/* Großes Handy: 480px */
@media (max-width: 480px) {
  .header-inner { gap: 10px; padding: 0 14px; }
  /* Logo-Text kürzen */
  .logo-text { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
  .section-content { padding: 20px 0 48px; }
  .container { padding: 0 14px; }
  .modal { padding: 18px 16px; }
  .case-toast { right: 12px; left: 12px; max-width: none;
                bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* Kleines Handy: 390px — Logo-Text verstecken damit Hamburger sichtbar bleibt */
@media (max-width: 390px) {
  .logo-text { display: none; }
  .header-inner { gap: 8px; }
  .lang-btn { padding: 4px 7px; font-size: 11px; }
}

/* Sehr kleines Handy: 360px — Sprachschalter verstecken */
@media (max-width: 360px) {
  .lang-switcher { display: none; }
  .logo-icon { width: 28px; height: 28px; }
}

/* Tablet Landscape / kleiner Laptop: 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .container { padding: 0 24px; }
}

/* Großer Laptop / Desktop: 1025px – 1440px */
@media (min-width: 1025px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* Ultra-wide: >1440px — Container begrenzt Breite, bleibt zentriert */
@media (min-width: 1440px) {
  .container { max-width: 1200px; }
}
