/* Universal Styling */
body{
    margin: 0;
}
html {
  scroll-behavior: smooth;
}
a, h1, h2, h3, h4, h5, h6, p, button, .legend-item {
  font-family: neue montreal,-apple-system,BlinkMacSystemFont,avenir next,avenir,segoe ui,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif;
}
  
/* Navigation Section Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

nav{
position: fixed;
z-index: 99;
width: 100vw;
background: white;
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1); /* Fügt einen Schatten hinzu, um die Navigationsleiste abzuheben */
}

nav .wrapper{
position: relative;
max-width: 1200px;
padding: 0px 30px;
height: 70px;
line-height: 70px;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
}
nav .wrapper a{
text-decoration: none;
}

.wrapper .nav-links{
display: inline-flex;
}

.nav-links li{
list-style: none;
}

.nav-links li a{
color: black;
text-decoration: none;
font-size: 18px;
font-weight: 500;
padding: 9px 15px;
border-radius: 5px;
transition: all 0.3s ease;
}

.nav-links li a:hover{
color: grey;
}

.nav-links .mobile-item{
display: none;
}

.nav-links li:hover .drop-menu,
.nav-links li:hover{
transition: all 0.3s ease;
top: 70px;
opacity: 1;
visibility: visible;
}

.wrapper .btn{
color: black;
font-size: 20px;
cursor: pointer;
display: none;
}

.wrapper .btn.close-btn{
color: white;
position: absolute;
right: 55px;
top: 15px;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 970px) {
  .wrapper .btn{
    display: block;
  }
  .wrapper .nav-links{
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: -110%;
    background: #242526;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    transition: all 0.3s ease;
  }
  /* custom scroll bar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #242526;
  }
  ::-webkit-scrollbar-thumb {
    background: #3A3B3C;
  }
  #menu-btn:checked ~ .nav-links{
    left: 0%;
  }
  #menu-btn:checked ~ .btn.menu-btn{
    display: none;
  }
  #close-btn:checked ~ .btn.menu-btn{
    display: block;
  }

  .btn.menu-btn:hover {
    color: grey;
    transition: all 0.3s ease;
  }  
  .btn.close-btn:hover {
    color: grey;
    transition: all 0.3s ease;
  }  

  .nav-links li{
    margin: 15px 10px;
  }
  .nav-links li a{
    color: white;
    padding: 0 20px;
    display: block;
    font-size: 20px;
  }
  .nav-links .desktop-item{
    display: none;
  }
.nav-links .mobile-item{
  display: block;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 500;
  padding-left: 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  }
  .nav-links .mobile-item:hover{
    background: #3A3B3C;
  }
  .nav-links{
    margin-top: 0px;
  }
}

nav input{
  display: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  display: block;
}

#site-name {
  font-size: 20px;
  color: black;
}

#site-name:hover {
  color: grey;
  transition: all 0.3s ease;
}



/* Intro Section Styling*/
.intro {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 0; /* Adjust the padding as needed */
    background: linear-gradient(135deg, rgba(52, 152, 219,0.5) 0%,rgba(243, 65, 65, 0.4) 100%);
    border-bottom-right-radius: 100px; /* Adjust the value as needed */
    border-bottom-left-radius: 100px; /* Adjust the value as needed */
    }
  
  .intro p {
    font-size: 20px;
    line-height: 1.5;
    margin: 0px;
    padding: 0 20px;
  }
  
  @media screen and (max-width: 800px){
    .intro p{
      font-size: 16px;
      padding: 10px;
    }
    .intro h2 {
      padding: 10px;
    }
  }
  


/* Main Part Styling */
.columns-container {
  display: flex;
  padding-top: 20px;
  padding-bottom: 30px;
  width: 90%;
  margin: 0 auto; 
  height: 100%;
  max-width: 1200px;
}

#container {
width: 60%;
    height: 500px;
    margin: 1em auto;
}

.highcharts-credits {
    display: none;
}

.legend-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Media query for screens with a maximum width of 768px (typical for tablets and smaller screens) */
@media only screen and (max-width: 768px) {
    .columns-container {
        flex-direction: column; /* Stack columns on top of each other */
    }

    #container{
        width: 100%; /* Full width for each column on smaller screens */
        margin-bottom: 20px; /* Add space between stacked columns */
    }
    
    #container text {
        font-size: 6.5px !important; /* Adjust the font size for smaller screens */
    }
}




 /* Legend Styling */
 #legend {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
}

.legend-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Media query for screens with a maximum width of 768px (typical for tablets and smaller screens) */
@media only screen and (max-width: 768px) {
  #legend {
      flex-direction: column; /* Display items stacked vertically on smaller screens */
      align-items: center; /* Center the items horizontally */
  }

  .legend-item {
      margin-bottom: 5px; /* Reduce margin between stacked items */
  }

  .legend-circle {
      width: 10px; /* Adjust circle size for smaller screens */
      height: 10px; /* Adjust circle size for smaller screens */
      margin-right: 3px; /* Adjust margin for smaller screens */
  }
}





/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .modal-content h2 {
    text-align: center;
  }
  
  .modal-content p {
    text-align: center;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease-out;
  
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  @media screen and (max-width: 800px){
    .chart-container svg{
      width: 90%;
      height: 300px;
    }
  }

/* More Info */
.button {
    font-size: 1em;
    background-color: #333;
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 5px; 
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    cursor: pointer; 
  }
  
  .button:hover {
    color: grey;
  }
  
  #moreInfo {
    margin: 0 auto;
    background: rgba(255,255,255,0.2);
    padding: 35px;
    border: 2px solid #fff;
    border-radius: 20px/50px;
    background-clip: padding-box;
    text-align: center;
  }

  @media screen and (max-width: 800px) {
    .modal-content {
      background-color: #fefefe;
      margin: 30% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80%;
      max-height: 70%; /* Adjust the max height as needed */
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      overflow-y: auto; /* Enable vertical scrolling */
    }
  }




/* Footer-Styling */
#footer {
  background: linear-gradient(135deg, rgba(52, 152, 219,0.5) 0%,rgba(243, 65, 65, 0.4) 100%);
    padding: 40px 0; /* Innenabstand oben und unten im Footer */
    text-align: center; /* Zentriert den Inhalt horizontal */
    max-width: 1200px;
    margin: 0 auto;
    border-top-right-radius: 100px; /* Adjust the value as needed */
    border-top-left-radius: 100px; /* Adjust the value as needed */
  }
  
  .footer-content {
    display: flex;
    justify-content: space-around;
  }
  
  .footer-section {
    flex: 1; /* Gleiche Breite für alle Footer-Abschnitte */
    text-align: left;
    padding: 20px;
  }
  
  h4 {
    font-size: 18px; /* Stil für Überschriften im Footer */
  }
  
  .footer-section ul {
    list-style: none; /* Entfernt Aufzählungspunkte */
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px; /* Abstand zwischen den Listenelementen */
  }
  
  .footer-section a {
    text-decoration: none;
    color: black;
    margin-right: 10px; /* Abstand zwischen den Social-Media-Links */
  }
  
  .footer-section a:hover{
    color: grey;
    transition: all 0.3s ease;
  }
  
  @media (max-width: 1400px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
  
    .footer-section {
        max-width: 100%; /* Full width on smaller screens */
        text-align: center; /* Center the list items on smaller screens */
        padding: 0;
    }
  }