/* ===== Grundlayout: dunkler Seitenraum, weiße Mittelspalte ===== */
:root{
  --navy:#212f3e;
  --navy-dark:#132434;
  --ink:#1d2b3a;
  --blue:#69bee0;
  --blue-deep:#2a7fb8;
  --gray-line:#c9cdd2;
  --gray-sec:#b2b2b4;
  --orange:#ea8338;
  --lvl1:#00a651; /* sehr niedrig */
  --lvl2:#a6c80a; /* niedrig */
  --lvl3:#ea8338; /* moderat */
  --lvl4:#e8541e; /* erhöht */
  --lvl5:#d1231b; /* hoch */
  --lvl6:#8e0e0e; /* sehr hoch */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--navy);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
}

/* ===== Kopfzeile ===== */
.topbar{background:var(--navy-dark);border-bottom:1px solid #2e4256}
.topbar-inner{
  max-width:1110px;margin:0 auto;padding:14px 24px 10px;
  display:flex;align-items:baseline;gap:14px;
}
.brand-pill{
  background:#fff;color:var(--navy-dark);font-weight:800;font-size:13px;
  letter-spacing:.06em;padding:3px 10px;border-radius:3px;
}
.topbar-label{color:#e8ebef;font-size:20px;font-weight:600}
.lang-toggle{margin-left:auto;display:flex;gap:6px;align-items:center}
.lang-btn{
  background:transparent;border:1px solid #4a5f73;color:#cfd6dd;
  font-size:12px;font-weight:700;letter-spacing:.05em;
  padding:3px 10px;border-radius:3px;cursor:pointer;
}
.lang-btn:hover{border-color:#fff;color:#fff}
.lang-btn.active{background:#fff;color:var(--navy-dark);border-color:#fff}

/* ===== Mittelspalte ===== */
.column{
  background:#fff;max-width:1110px;margin:0 auto;
  padding:0 44px 40px;border-radius:0 0 10px 10px;
}

/* Hero-Leiste */
.hero{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding:26px 0 8px;border-bottom:1px solid #e4e7ea;
}
.hero-pill{
  background:#a5aaae;color:#fff;font-weight:700;font-size:13px;
  letter-spacing:.05em;padding:5px 16px;border-radius:4px;
}
.hero-text{margin:0;font-size:17px;color:#3c4650}

/* Titel */
.page-title{
  margin:34px 0 18px;font-size:44px;line-height:1.12;
  text-transform:uppercase;letter-spacing:.01em;color:var(--ink);
}

/* Aktivitäts-Badge */
.activity-badge{
  display:inline-block;background:var(--orange);color:#fff;
  font-weight:700;font-size:15px;padding:6px 16px;border-radius:4px;
  margin:6px 0 18px;
}
.intro{font-size:16px;line-height:1.55;color:#3c4650;max-width:900px;margin:0 0 30px}

/* ===== Karten ===== */
.card{
  border:1px solid #e4e7ea;border-radius:10px;
  padding:26px 28px 20px;margin:26px 0;
  box-shadow:0 1px 3px rgba(20,35,50,.06);
}
.card-head{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.icon-circle{
  width:56px;height:56px;border-radius:50%;flex:0 0 56px;
  background:#e3f3fa;color:#71c0de;
  display:flex;align-items:center;justify-content:center;
}
.icon-circle svg{width:32px;height:32px}
.card h2{margin:0;font-size:26px;color:var(--ink)}

.chart-wrap{cursor:pointer;border-radius:8px;position:relative}
.chart-card .chart-wrap,.chip-row{position:relative}
.chart-wrap:focus-visible{outline:3px solid var(--blue)}
.chart svg{display:block;width:100%;height:auto}
.chart-xlabels{
  display:flex;justify-content:space-between;
  color:#5b6570;font-size:14px;margin-top:2px;
}
.chart-legend{
  display:flex;gap:26px;justify-content:center;
  font-size:14px;color:#5b6570;margin-top:8px;
}
.lg-now{color:var(--blue-deep);font-weight:600}
.lg-prev{color:#9aa1a8}
.lg-item{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.lg-item svg{flex:none}
.chart-caption{
  color:#6a737c;font-size:13px;margin:10px 0 2px;
}

/* Mouseover-Tooltip: exakte Werte pro Woche */
.chart-tip{
  position:absolute;z-index:30;pointer-events:none;
  transform:translate(-51%,-100%);
  background:rgba(255,255,255,.97);border:1px solid #d5d9dd;border-radius:8px;
  box-shadow:0 4px 14px rgba(20,30,40,.18);
  padding:8px 11px;font-size:13px;color:#3c4650;white-space:nowrap;
}
.chart-tip[hidden]{display:none}
.tip-title{font-weight:700;color:#1e2830;margin-bottom:4px}
.tip-row{display:flex;align-items:center;gap:7px;line-height:1.5}
.tip-bold{font-weight:700;color:#1e2830}
.tip-sw{width:10px;height:10px;border-radius:2px;flex:none}
.tip-flip{transform:translate(-100%,-100%)}


/* Aktivitäts-Annotation im Diagramm */
.annot{font-weight:700;font-size:15px}

/* Definition */
.definition{margin-top:14px;border-top:1px solid #e4e7ea;padding-top:12px}
.definition summary{
  cursor:pointer;color:var(--blue-deep);font-weight:600;font-size:16px;
  list-style:none;
}
.definition summary::before{content:"» ";color:var(--blue-deep)}
.definition[open] summary::before{content:"« "}
.definition-body{margin-top:12px;font-size:14px;color:#3c4650}
.definition-body table{border-collapse:collapse;width:100%;max-width:760px}
.definition-body th,.definition-body td{
  border:1px solid #d8dcdf;padding:6px 10px;text-align:left;font-size:13px;
}
.definition-body th{background:#f2f4f6}
.lvl-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}

/* ===== Quellen (grauer Abschnitt) ===== */
.sources{
  background:var(--gray-sec);border-radius:8px;
  padding:22px 28px;margin-top:34px;color:#22303d;
}
.sources h3{margin:0 0 10px;font-size:18px;text-transform:uppercase;letter-spacing:.04em}
.sources ul{margin:0;padding-left:20px}
.sources li{margin:7px 0;font-size:14px;line-height:1.5}
.sources a{color:#14344e;font-weight:600}

/* ===== Fußbereich ===== */
.footer{background:var(--navy-dark);color:#cfd6dd;padding:26px 24px}
.footer p{max-width:1110px;margin:0 auto;font-size:14px;line-height:1.6}

/* ===== Modal ===== */
.modal-backdrop{
  position:fixed;inset:0;background:rgba(15,25,35,.62);
  display:flex;align-items:center;justify-content:center;
  padding:20px;z-index:50;
}
.modal-backdrop[hidden]{display:none}
.modal{
  background:#fff;border-radius:12px;max-width:980px;width:100%;
  max-height:92vh;overflow:auto;padding:28px 30px;position:relative;
}
.modal-close{
  position:absolute;top:12px;right:16px;border:0;background:none;
  font-size:30px;line-height:1;color:#5b6570;cursor:pointer;
}
.modal h3{margin:0 0 4px;font-size:24px}
.modal-sub{margin:0 0 14px;color:#5b6570;font-size:14px}
.modal-ages{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.modal-ages button{
  border:1px solid #c9cdd2;background:#f2f4f6;border-radius:16px;
  padding:5px 14px;font-size:13px;cursor:pointer;color:#3c4650;
}
.modal-ages button.active{background:var(--blue-deep);border-color:var(--blue-deep);color:#fff}
.modal-chart{position:relative}
.modal-chart svg{display:block;width:100%;height:auto}
.modal-xlabels{display:flex;justify-content:space-between;color:#5b6570;font-size:13px}
.modal-legend{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;color:#5b6570;margin-top:10px}
.modal-note{font-size:13px;color:#6a737c;margin:12px 0 0}

@media (max-width:760px){
  .column{padding:0 18px 30px}
  .page-title{font-size:30px}
  .card{padding:18px 14px}
  .card h2{font-size:20px}
}

/* ---------- Ansicht-Tabs (Deutschland / Europa) ---------- */
.view-tabs{background:#37474f;border-top:1px solid rgba(255,255,255,.18)}
.view-tabs-inner{max-width:760px;margin:0 auto;padding:8px 20px 0;display:flex;gap:6px}
.view-tab{background:transparent;color:#cfd8dc;font-family:inherit;font-size:14px;padding:7px 16px;border:0;border-radius:6px 6px 0 0;cursor:pointer}
.view-tab:hover{color:#fff}
.view-tab.active{background:#f5f5f5;color:#263238;font-weight:600}

/* ---------- Chip-Regler (Europa) ---------- */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 2px}
.chip-group-label{font-size:11px;color:#78909c;text-transform:uppercase;letter-spacing:.04em;margin:4px 2px 0 0}
.chip{border:1px solid #cfd8dc;background:#fff;color:#37474f;font-family:inherit;font-size:12.5px;padding:4px 10px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.chip::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--chip-color,#90a4ae)}
.chip.active{background:#2a7fb8;border-color:#2a7fb8;color:#fff}
.chip.active::before{background:#fff}

/* Länderauswahl */
.eu-controls{display:flex;align-items:center;gap:10px;margin:10px 0 4px}
.eu-select-label{font-size:14px;color:#455a64}
.eu-select{font-family:inherit;font-size:14px;padding:6px 10px;border:1px solid #cfd8dc;border-radius:6px;background:#fff;color:#263238;max-width:260px}

/* Balken Europa */
.eu-bar{cursor:pointer}
.eu-bar:hover rect{opacity:1 !important}
.eu-bar-label{font-size:12px;fill:#37474f}
.eu-bar-value{font-size:11px;fill:#607d8b}

/* ===== Ergänzungen: Status-Elemente, Chip-Regler, Legendenschalter ===== */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.notice{background:#fdecea;border:1px solid #e8b4ac;color:#8a2b21;border-radius:8px;
  padding:10px 14px;font-size:14px;margin:0 0 22px;max-width:900px}
.build-info{max-width:1110px;margin:8px auto 0;font-size:12px;color:#93a0ac}
.nodata{color:#5b6570;font-size:15px;padding:12px 0}
.card-meta{margin-left:auto;display:flex;align-items:center;gap:14px;text-align:right}
.card-meta .value{font-weight:700;font-size:17px;white-space:nowrap}
.card-meta .card-cta{font-size:12px;color:#7c848c;white-space:nowrap}
.lg-item{background:none;border:0;font-family:inherit;font-size:14px;color:#5b6570;
  cursor:pointer;padding:2px 4px;border-radius:4px}
.lg-item:hover{color:#1d2b3a}
.lg-item.lg-off{opacity:.45;text-decoration:line-through}
.lg-hint{font-size:12px;color:#9aa1a8;align-self:center}
.chip-wrap{max-height:none}
.eu-stale{font-style:italic}
.eu-bar-focus{stroke-width:2.6 !important}
.eu-hit:focus-visible{outline:2px solid #2a7fb8;outline-offset:-2px}
@media (max-width:760px){
  .card-meta{margin-left:0;width:100%;justify-content:space-between;text-align:left}
  .card-head{flex-wrap:wrap;gap:10px}
}

/* ===== Werkzeugleiste (erscheint beim Scrollen) ===== */
#sentinel{display:block;height:1px}
.sticky-bar{position:fixed;top:0;left:0;right:0;z-index:40;background:#14344e;color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.22);transform:translateY(-110%);
  transition:transform .18s ease-out}
.sticky-bar.show{transform:translateY(0)}
.sticky-bar[aria-hidden="true"]:not(.show){pointer-events:none}
.sticky-inner{max-width:1110px;margin:0 auto;padding:8px 18px;display:flex;align-items:center;gap:12px}
.sticky-badge{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#6a737c;color:#fff}
.sticky-week{font-size:13px;color:#cfd8dc}
.sticky-week strong{color:#fff}
.sticky-tabs,.sticky-lang{display:flex;gap:4px}
.sticky-tab{background:rgba(255,255,255,.12);border:0;color:#e6ebf0;font-family:inherit;
  font-size:12.5px;padding:5px 10px;border-radius:6px;cursor:pointer}
.sticky-tab:hover{background:rgba(255,255,255,.24);color:#fff}
.sticky-tab.active{background:#f5f5f5;color:#14344e;font-weight:700}
.sticky-lang{margin-left:auto}
.sticky-back{background:none;border:1px solid rgba(255,255,255,.3);color:#cfd8dc;font-family:inherit;
  font-size:12px;padding:5px 10px;border-radius:6px;cursor:pointer}
.sticky-back:hover{color:#fff;border-color:#fff}
@media (max-width:760px){
  .sticky-inner{gap:8px;padding:7px 12px}
  .sticky-week{display:none}
  .sticky-back{display:none}
}

/* ===== Sprungmarken ===== */
.jump-links{max-width:1110px;margin:0 auto;padding:10px 22px 0;display:flex;flex-wrap:wrap;gap:8px}
.jump-links a{font-size:12.5px;color:#14344e;text-decoration:none;border:1px solid #c9d6e2;
  background:#fff;border-radius:999px;padding:4px 12px}
.jump-links a:hover{background:#e8f1f8}
.jump-links a:focus-visible{outline:2px solid #2a7fb8;outline-offset:2px}

/* ===== Detail-Verbesserungen ===== */
.tap-hint{max-width:900px;margin:0 0 16px;font-size:13px;color:#78909c}
.tap-hint:empty{display:none}
.eu-search-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#455a64}
.eu-search{font-family:inherit;font-size:14px;padding:6px 10px;border:1px solid #cfd8dc;
  border-radius:6px;background:#fff;color:#263238;min-width:150px;max-width:200px}
.footer-week{max-width:1110px;margin:0 auto 6px;font-size:14px;color:#cfd6dd}
.footer-week strong{color:#fff}
