/* ========== Allgemeines Layout & Farben ========== */
body {
  font-family: system-ui, sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

/* ========== Hauptcontainer & Statistik-Karten ========== */
.scope-toggle {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
}
.scope-toggle:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

h1 {
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  width: 100%;
}

.stat {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.stat h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

canvas#genreChart {
  margin: 20px auto;
  max-width: 100%;
}

.progress-container {
  margin-top: 15px;
  width: 100%;
  max-width: 400px;
  background-color: #333;
  border-radius: 10px;
  position: relative;
  height: 25px;
  overflow: hidden;
  display: none; /* Standard: ausgeblendet */
}

.progress-bar {
  height: 100%;
  background-color: #3b82f6;
  width: 0%;
  transition: width 0.3s ease;
}

#genreProgressText {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 25px;
  color: white;
  font-size: 14px;
}

/* === NEU: Für nebeneinander Darstellung der beiden Genre-Charts === */
/* Neuer Container für zwei Charts nebeneinander */
.dual-chart-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  flex-wrap: wrap; /* Responsives Verhalten auf kleinen Screens */
}

.chart-half {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat.dual-chart-box {
  margin-top: 50px;
}

/* ========== Navigation + Dropdown Menü ========== */
.nav {
  padding: 10px;
  background-color: #1a1a1a;
  border-radius: 20px;
  font-family: sans-serif;
  position: absolute;
  left: 89%;
  top: 2%;
  min-width: 120px;
  font-size: 15px;
}

.dropdown-header {
  text-align: center;
  width: 100%;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-parent {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdown-trigger {
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

.dropdown {
  display: none;
  position: absolute;
  top: 32px;
  right: 1px;
  background-color: #1a1a1a;
  border-radius: 10px;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropdown.show {
  display: block;
}

.dropdown li {
  display: block;
  padding: 5px 15px;
}

.dropdown li a {
  position: relative;
  text-decoration: none;
  color: white;
  background: #1a1a1a;
  display: block;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Licht-Swipe Effekt */
.dropdown li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  z-index: 2;
  border-radius: 10px;
}

/* Sanftes Einfaden bei Hover */
.dropdown li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 10px;
}

.dropdown li a:hover::before {
  left: 125%;
}

.dropdown li a:hover::after {
  opacity: 1;
}

/* ========== Tooltip für Menüeintrag ========== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  background-color: black;
  color: white;
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  position: absolute;
  top: 200%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========== Rechtlicher Footer unten rechts ========== */
.rechtliches-unten {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  color: #aaa;
}

.rechtliches-unten a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
}

.rechtliches-unten a:hover {
  text-decoration: underline;
}
