:root {
  --bg: #f9f9f9;
  --text: #222;
  --primary: #4A90E2;
  --highlight: #d90c1a;
}

* {
  box-sizing: border-box;
}

html, body {
  background: transparent !important;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* === HEADER === */
header {
  background-color: #fff;
  padding-top: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: static;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
}

/* === NAV === */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu li a:hover {
  color: var(--highlight);
}

/* === LAYOUT CONTAINER === */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  background: transparent !important;
}

/* === INTRO TEXT BLOCK === */
.intro-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 0;
  background: transparent !important;
}

.intro-text-block {
  text-align: left;
  background: transparent;
}

h1.left-aligned {
  font-size: 26px;
  margin-bottom: 20px;
}

#description {
  font-size: 15px;
  line-height: 1.5;
}

.description-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0 20px 0; 
  width: 100%;
  max-width: 800px;
}


/* === FILTER CONTAINER === */
#filter-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start; /* links ausgerichtet */
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
  background: transparent;
}

/* === FILTER BLOCK === */
.filter-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 0;
  gap: 5px;
}

/* === FILTER ZEILE === */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* === KATEGORIE LABEL === */
.filter-label {
  margin-right: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #f41f1f;
  min-width: 60px;
}

/* === FILTER BUTTON === */
.filter-button {
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #f33c3c;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-button:hover {
  background: #de9b9b;
}

.filter-button.active {
  background: var(--highlight);
  color: white;
  border-color: var(--highlight);
}

.filter-button.reset {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c00;
  padding: 4px 12px;
}

/* === SVG MAP === */
#viz-wrapper {
  position: relative;
  background: transparent !important;
}

.svg-container {
  width: 100%;
  padding-bottom: 80px;
}

svg#viz {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 950;
  background: transparent;
  display: block;
}

/* === TOOLTIP === */
.tooltip {
  position: absolute;
  background: white;
  border: 1px solid #3a78c0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #222;
  max-width: 240px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip strong {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

/* === FOOTER === */
footer {
  background-color: #fff;
  color: #444;
  font-size: 13px;
  text-align: center;
  padding: 50px 0 10px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

footer a {
  color: #3a3aff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
