:root{font-family:system-ui,sans-serif;color:#183c40;background:#fafbf8;line-height:1.6}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1160px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce4df;gap:24px}nav,.actions{display:flex;flex-wrap:wrap;gap:20px}nav a[aria-current]{border-bottom:3px solid #148077}.brand{font-size:26px;font-weight:800;text-decoration:none}.brand span{display:block;font-size:12px;font-weight:400}a{color:#08695f;text-underline-offset:4px}h1{font-size:clamp(32px,5vw,58px);line-height:1.15;letter-spacing:-1.5px;max-width:850px}h2{line-height:1.3}section{margin:36px 0}.hero{max-width:830px;padding:30px 0}.hero>p{font-size:20px}.eyebrow{letter-spacing:2px;font-size:12px!important;font-weight:700;color:#467065}.cards,.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.cards article,.callout,.stats>div{padding:24px;background:#fff;border:1px solid #dce4df;border-radius:16px}.stats strong{display:block;font-size:32px}.columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}.muted,small{color:#556967;font-size:14px}.callout{background:#eef5ec}label{display:block;font-weight:600;margin:16px 0 8px}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #8caaa2;background:#fff;color:#183c40;border-radius:8px;padding:12px;margin:8px 0}button,.button{font:inherit;display:inline-block;border:0;border-radius:8px;padding:12px 18px;background:#0b6a61;color:#fff;cursor:pointer;text-decoration:none}button:disabled{opacity:.5}.hero .button{margin:20px 12px 0 0}:focus-visible{outline:3px solid #b77818;outline-offset:3px}#search-results a{display:block;padding:12px;border-bottom:1px solid #dce4df}#profile-map{height:380px;border-radius:12px;background:#e8eeeb}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;background:#fff}th,td{text-align:left;padding:14px;border-bottom:1px solid #dce4df;vertical-align:top}pre{white-space:pre-wrap;background:#eef3ef;padding:18px}footer{border-top:1px solid #dce4df;color:#556967;font-size:13px}.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:12px;background:white;padding:12px;z-index:10000}details{padding:20px;background:#eef3ef}.compare-form{display:flex;gap:20px;align-items:end}.compare-form label{flex:1;min-width:0}.compare-form button{margin-bottom:8px}@media(max-width:650px){header{align-items:start;flex-direction:column;gap:12px}header,main,footer{padding:18px}nav{gap:24px}.compare-form{display:block}.hero{padding:0}.actions{gap:12px}.stats{grid-template-columns:1fr}#profile-map{height:300px}}@media print{header,footer,.actions,form,#profile-map{display:none}body{background:#fff}main{max-width:none;padding:0}.cards,.columns{display:block}section{break-inside:avoid}h1{font-size:32px}}

.discovery-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:32px;align-items:start}.discovery-split .hero{margin:12px 0;padding:12px 0}.discovery-split h1{font-size:clamp(32px,3.5vw,48px)}.discovery-map-panel{margin:12px 0}.map-filters{display:flex;gap:12px}.map-filters label{flex:1;min-width:0;margin:0}.map-filters select{font-size:14px;padding:8px}.discovery-map-panel .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.discovery-map-panel .stats>div{padding:10px;font-size:12px}.discovery-map-panel .stats strong{font-size:24px}#home-map{height:320px;background:#e8eeeb;border-radius:12px}#home-map-status{font-size:13px}.ego-scroll{max-height:520px;overflow:auto;border:1px solid #dce4df;border-radius:12px}#ego-graph{display:block;width:100%;min-width:570px;background:#fff}#ego-graph [tabindex]{cursor:pointer}#ego-graph [tabindex]:focus circle{stroke:#a46500;stroke-width:4}#ego-sort{max-width:420px}@media(max-width:800px){.discovery-split{grid-template-columns:1fr;gap:0}.discovery-split .hero>p{font-size:17px}.discovery-map-panel{margin:0}.map-filters{flex-wrap:wrap}#home-map{height:260px}}

.executive-hero{background:linear-gradient(135deg,#0b6a61 0%,#084c46 100%);color:#fff;border-radius:16px;padding:26px 30px;margin:24px 0;box-shadow:0 8px 24px -4px rgba(11,106,97,0.22)}
.executive-hero h2{color:#fff;margin:0 0 8px 0;font-size:clamp(20px,2.6vw,30px);font-weight:800;line-height:1.2}
.executive-hero p{color:#e2f2ef;font-size:15px;margin:0;line-height:1.5}
.button-dossier{background:#fff!important;color:#084c46!important;font-weight:700!important;font-size:15px!important;padding:12px 20px!important;box-shadow:0 4px 12px rgba(0,0,0,0.12);display:inline-flex;align-items:center;gap:8px}
.button-dossier:hover{background:#f0fdfa!important;color:#042f2c!important}
.peer-active-row{background:#eefbf9!important;border-left:4px solid #0b6a61;font-weight:700}
.peer-badge-current{display:inline-block;font-size:10px;background:#0b6a61;color:#fff;padding:2px 6px;border-radius:10px;margin-left:6px;font-weight:600;vertical-align:middle}
.executive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:20px 0}
.executive-card{background:#fff;border:1px solid #dce4df;border-radius:14px;padding:22px;box-shadow:0 2px 8px rgba(0,0,0,0.02)}
.badge-executive{display:inline-block;background:#e6fffa;color:#0b6a61;border:1px solid #99f6e4;font-size:11px;font-weight:700;letter-spacing:1px;padding:3px 8px;border-radius:12px;text-transform:uppercase}
.methodology-footer{margin-top:48px;border-top:2px solid #e2e8e5;padding-top:24px}
.curated-pills{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.curated-pill{padding:4px 10px;background:#eef3ef;border-radius:6px;text-decoration:none;font-size:13px;font-weight:600;color:#183c40;transition:background .15s}
.curated-pill:hover{background:#dcebe2}
.curated-pill-highlight{background:#dcfce7;color:#166534;border:1px solid #86efac}

.city-header-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-bottom:12px}
.city-header-info{flex:1;min-width:280px}
.city-photo-card{width:260px;height:160px;flex-shrink:0;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,0.08);border:1px solid #dce4df;background:#eef3ef;position:relative}
.city-photo-inner{width:100%;height:100%;position:relative}
.city-photo-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.city-photo-card:hover img{transform:scale(1.04)}
.city-photo-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);padding:8px 10px;display:flex;justify-content:space-between;align-items:flex-end;color:#fff}
.city-photo-desc{font-size:11px;color:#f1f5f4;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.city-photo-license{font-size:10px;color:#d1fae5;text-decoration:none;font-weight:600;white-space:nowrap;background:rgba(0,0,0,0.35);padding:1px 5px;border-radius:4px}
.city-photo-license:hover{text-decoration:underline;color:#fff}
@media(max-width:650px){
  .city-photo-card{width:100%;height:180px;margin-top:12px}
}

/* Hardened Profile Map & Bobbels */
#profile-map {
  height: 400px;
  border-radius: 12px;
  background: #e8eeeb;
  border: 1px solid #dce4df;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
#profile-map .leaflet-control-zoom,
#profile-map .leaflet-bar {
  border: 1px solid #c7d4cd !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  border-radius: 6px !important;
  overflow: hidden;
}
#profile-map .leaflet-control-zoom a,
#profile-map .leaflet-bar a {
  background-color: #ffffff !important;
  color: #183c40 !important;
  border-bottom: 1px solid #e2e8e5 !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
#profile-map .leaflet-control-zoom a:hover,
#profile-map .leaflet-bar a:hover {
  background-color: #f0fdfa !important;
  color: #0b6a61 !important;
}
#profile-map .leaflet-interactive {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28)) !important;
  cursor: pointer;
  transition: transform 0.15s ease;
}
#profile-map .leaflet-interactive:hover {
  transform: scale(1.18);
}
@media (max-width: 650px) {
  #profile-map {
    height: 320px;
  }
}

/* ==========================================================================
   Interactive World Map Timeline & Animation (Zeitreise)
   ========================================================================== */
.timeline-page-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.timeline-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.timeline-kpi-card {
  background: #ffffff;
  border: 1px solid #dce4df;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.timeline-kpi-card:hover {
  border-color: #0b6a61;
}

.timeline-kpi-card.hero-kpi {
  background: linear-gradient(135deg, #0b6a61 0%, #115e59 100%);
  color: #ffffff;
  border-color: #042f2e;
  box-shadow: 0 4px 14px rgba(11, 106, 97, 0.25);
}

.timeline-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #55726b;
  margin-bottom: 4px;
}
.timeline-kpi-card.hero-kpi .timeline-kpi-label {
  color: #a7f3d0;
}

.timeline-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #183c40;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.timeline-kpi-card.hero-kpi .timeline-kpi-val {
  color: #ffffff;
  font-size: 28px;
}
.timeline-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.timeline-kpi-card.hero-kpi .timeline-kpi-sub {
  color: #e6fffa;
}

/* Map Canvas Container */
.timeline-map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c7d4cd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  background: #e6ece8;
  margin-bottom: 1rem;
}

#timeline-map {
  width: 100%;
  height: 560px;
  background: #e6ece8;
}

.timeline-map-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid #dce4df;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #183c40;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.timeline-pulse-dot {
  width: 10px;
  height: 10px;
  background: #ca8a04;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(202, 138, 4, 0.4);
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(202, 138, 4, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 138, 4, 0); }
}

/* Controls Console */
.timeline-console {
  background: #ffffff;
  border: 1px solid #dce4df;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
}

.timeline-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.timeline-playback-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play-toggle {
  background: #0b6a61;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(11, 106, 97, 0.3);
  transition: all 0.15s ease;
}
.btn-play-toggle:hover {
  background: #085049;
  transform: translateY(-1px);
}
.btn-play-toggle.playing {
  background: #ca8a04;
}
.btn-play-toggle.playing:hover {
  background: #a16207;
}

.btn-step {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-step:hover {
  background: #ccfbf1;
  color: #115e59;
}

.timeline-speed-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12px;
}
.timeline-speed-btn {
  background: none;
  border: none;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.timeline-speed-btn.active {
  background: #ffffff;
  color: #0b6a61;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-mode-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #eef3ef;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12px;
}
.timeline-mode-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #467065;
  cursor: pointer;
}
.timeline-mode-btn.active {
  background: #0b6a61;
  color: #ffffff;
}

.timeline-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* Slider and Histogram Section */
.timeline-scrubber-section {
  position: relative;
  margin: 10px 0 16px 0;
}

.timeline-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-bottom: 6px;
}
.timeline-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b6a61;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.timeline-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.timeline-histogram-wrap {
  width: 100%;
  height: 44px;
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.timeline-histogram-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.timeline-cursor-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ca8a04;
  pointer-events: none;
  box-shadow: 0 0 6px #ca8a04;
  transition: left 0.05s linear;
}

.timeline-decade-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 2px 0;
}
.decade-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.decade-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.decade-pill.active {
  background: #0b6a61;
  border-color: #085049;
  color: #ffffff;
}

/* Historical Milestone & Feed Row */
.timeline-context-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}
@media (max-width: 820px) {
  .timeline-context-row {
    grid-template-columns: 1fr;
  }
}

.timeline-milestone-card {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 5px solid #ca8a04;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.timeline-milestone-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #854d0e;
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-milestone-card p {
  font-size: 13px;
  color: #713f12;
  margin: 0;
  line-height: 1.5;
}

.timeline-feed-card {
  background: #ffffff;
  border: 1px solid #dce4df;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.timeline-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.timeline-feed-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #183c40;
  margin: 0;
}
.timeline-feed-list {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.timeline-feed-item {
  width: 100%;
  text-align: left;
  flex-shrink: 0;
  color: #183c40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.timeline-feed-item:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0b6a61;
}
.timeline-feed-cities {
  font-weight: 600;
  color: #1e293b;
}
.timeline-feed-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 650px) {
  #timeline-map {
    height: 400px;
  }
  .timeline-kpi-val {
    font-size: 20px;
  }
}


/* Allow cards and form columns to shrink on narrow phones. */
@media (max-width: 360px) {
  .cards, .columns { grid-template-columns: minmax(0, 1fr); }
}
.cards > *, .columns > * { min-width: 0; overflow-wrap: anywhere; }
