body {
    background-color:#747474;
    color: #FFF;
    font-family: "Passion One";
    font-size: 120px;
    font-style: normal;
    font-weight: 40;
    line-height: normal;
    margin: 0;
    height: 100vh;
    background: #818181; /* grauer Hintergrund */
    display: flex;
    justify-content: flex-start; /* horizontal zentrieren */
    align-items: center;
    flex-direction: column; /* Elemente untereinander anordnen */
}

h1 {
  font-size: 190px;          /* Größe nur für h1 */
  font-weight: bold;        /* optional */
  margin: 0;
  padding: 0;
  text-align: center;
  color: white;  
  margin-top: -400px;  
  font-family: "Passion One", sans-serif;       
}

p{
  color: #FFF;
text-align: center;
font-family: "Passion One";
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
/*Rahmen Titelseite*/
  .frame {
  width: 98vw;
  min-height: 1060px;
  max-width: none;
  background: #818181;
  border: 27px solid #fff;
  border-radius: 2px;
  box-sizing: border-box;
  padding: 400px 60px;   /* vorher: 40px → jetzt deutlich größer innen */
  margin: 0 auto 40px auto;
}

.p-icon {
  width: 1em;             /* passt SVG an Textgröße an */
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  margin-right: -45px;
}

.title-text {
  display: inline-block;
  line-height: 1;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

/* Container für die beiden Dropdowns */
.select-group {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Dropdown-Boxen */
.select-box {
  background: #0086EC;
  color: white;
  font-weight: bold;
  border: 4px solid white;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 20px;
  text-align: center;
  appearance: none; /* entfernt Standardpfeil */
  cursor: pointer;
  width: 240px;
}

.select-box:focus {
  outline: none;
  box-shadow: 0 0 0 3px #66bfff;
}

/* Hauptbutton */
.action-button {
  background: #0086EC;
  color: white;
  font-weight: 800;
  font-size: 22px;
  border: 4px solid white;
  border-radius: 10px;
  padding: 18px 32px;
  width: 80%;
  max-width: 700px;
  cursor: pointer;
  transition: 0.2s ease;
}

.action-button:hover {
  background: #0073cc;
}



.charts-grid {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}



#charts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.chart-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;

  /* 👉 Nur die Box wird breiter */
  width: 500px;        /* ⬅️ z. B. von 300 → 420 */
  max-width: 90%;
  box-sizing: border-box;

  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* Chart bleibt zentriert */
}

.chart-card canvas {
  width: 240px !important;   /* Fixiere die Chart-Größe */
  height: 240px !important;  /* unabhängig von Boxbreite */
}

.chart-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  color: #333;
}

/* ⬇️ Button-Styling und Position */
.chart-card button {
  position: absolute;        /* ⬅️ ermöglicht freie Platzierung */
  bottom: 15px;              /* Abstand vom unteren Rand */
  left: 20px;                /* Abstand vom linken Rand */
  padding: 8px 16px;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.chart-card button:hover {
  background-color: #0064bb;
  transform: scale(1.03);
}





/* Container für alle Charts */
#charts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Einzelne Karten */
.chart-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;

  /* Breite der Box */
  width: 420px;
  max-width: 90%;
  box-sizing: border-box;

  position: relative;          /* notwendig für Button absolute Position */
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Chart-Größe fixieren, unabhängig von Box */
.chart-card canvas {
  width: 260px !important;
  height: 260px !important;
}


/*Overlay Lage & Tagesdurchschnitt*/
.overlay {
  width: 714px;
  height: 820px;
  transform: translate(-50%, -50%);
  flex-shrink: 0;
  border-radius: 16px;
  border: 21px solid #FFF;
  background: #747474;

  position: fixed;   /* bleibt über allem, auch beim Scrollen */
  top: 50%;
  left: 50%;
  z-index: 1000;     /* Overlay liegt über anderen Elementen */
  display: none;
}

.close-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 3px;
  background: #D9D9D9;
  border: none;
  cursor: pointer;

  position: absolute;
  top: 15px;
  right: 15px;

  font-size: 20px;
  line-height: 30px;
  text-align: center;
  color: #333;
}

.overlay-title {
  width: 70px;
  height: 37px;
  flex-shrink: 0;

  color: #FFF;
  font-family: "Passion One", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  position: absolute;
  top: 20px;
  left: 20px;
  margin: 0;
}

