@font-face {
  font-family: 'MADE Tommy Soft';
  src: url('fonts/MADE\ Tommy\ Soft\ Bold\ PERSONAL\ USE.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}


/* Global Styles */
body {
  margin: 0;
  font-family: 'MADE Tommy Soft', sans-serif;

  /* background-color: #EDF1F6; */
  /* background: linear-gradient(180deg, #EDF1F6 85%, #D0E3FF 100%); */
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;


  background-color: #EDF1F6;
  background-image: url('https://etl.mmp.li/Air_Quality_Schweiz/wind_gif/wind_animated.gif');
  background-size: 150%; /* Hintergrund vergrößern, damit der Effekt flüssiger wirkt */
  background-position: 0 50%; /* Initiale Position (links zentriert) */

}

header {
  background-color: #d9e6ff;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

nav{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav div{
  display: flex;
  align-items: center;
  gap: 20px;
} 

header .logo {
  width: 100px;
}

nav a, nav p {
  text-decoration: none;
  color: #081F5C;
  font-family: "MADE Tommy Soft";
  font-weight: bold;
  font-size: 18px;
}

h1, h2, h5 {
  text-align: center;
  margin-top: 20px;
}

h1 {
  font-size: 40px;
  color: #081F5C;
}

h2 {
  font-size: 25px;
  color: #081F5C;
}

h3, h4 {
  text-align: Left;
  margin: 40px;
}

h3 {
  font-size: 40px;
  margin-bottom: 10px;
  margin-top: 125px;
  color: #081F5C;
}

h4 {
  font-size: 80px;
  margin-top: 10px;
  color: #081F5C;
}

@media (max-width: 768px) {
  h3 {
    font-size: 40px;
  }

  h4 {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: 20px;
  }

  h4 {
      font-size: 40px;
  }
}

h5 {
  font-size: 25px;
  color: #334eac;
  margin-top: 80px;
}

/* Text Homepage */
.text-home {
  font-family: 'Gill Sans';
  font-size: 17px;
  color: #081F5C;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 2%;
}

@media screen and (max-width: 50px) {
  .text-home {
    width: 100%;
    height: auto; 
    }
  }

.text-home2 {
  font-family: 'Gill Sans';
  font-size: 17px;
  color: #081F5C;
  padding: 2% 10% 0 10%;
}

@media screen and (max-width: 50px) {
  .text-home2 {
    width: 100%;
    height: auto; 
    }
  }

  .text-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 60px 0 60px;
  }
  
  .text1-container,
  .text2-container {
    width: 47%; 
    margin-bottom: 20px;
    font-family: 'Gill Sans';
    color: #081F5C;
  }
  
  .text1-container p,
  .text2-container p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  @media (max-width: 768px) {
    .text1-container,
    .text2-container {
      width: 100%;
    }
  }
  
  .text3-anleitung {
    padding: 5% 10% 0 10%;
    font-family: 'Gill Sans';
    color: #081F5C;
    text-align: center;
  }

/* Schweiz Karte SVG */
.cls-1 {
  fill: #f6f6f6;
}

.cls-2 {
  fill: #f7f2eb;
  opacity: 0.8;
}

.cls-3 {
  fill: #c6c6c6;
}

.cls-4 {
  fill: #c7c7c7;
}

.cls-5 {
  font-size: 20px;
}

.cls-5, .cls-6 {
  fill: #081f5c;
  font-family: "MADETommySoft-ExtraBold", 'MADE Tommy Soft';
  font-weight: 700;
}

.cls-6 {
  font-size: 19.97px;
}

.cls-7 {
  fill: #f9f9f9;
}

.cls-8 {
  fill: #c5c5c5;
}

.cls-9 {
  fill: #fafafa;
}

.cls-10 {
  fill: #f8f8f8;
}

.cls-11 {
  fill: #002060;
}

.cls-12 {
  fill: #fbfbfb;
}

.cls-13 {
  fill: #fcfcfc;
}

.cls-14 {
  letter-spacing: -0.03em;
}

.cls-15 {
  letter-spacing: -0.03em;
}

.cls-16 {
  fill: none;
  stroke: #081f5c;
  stroke-miterlimit: 10;
  stroke-width: 3px;
}

.cls-17 {
  fill: #fdfdfd;
}

.chkarte_home {
padding: 50px 50px 70px 50px;
max-height: 600px;
width: 100%;
}

.vergleich_text {
  font-family: 'Gill Sans';
  font-size: 17px;
  color: #081F5C;
  padding: 2% 10% 5% 10%;
}

/* Styling Vergleich ZH BE TI*/

#svgVergleich {
  width: 50%;
  /* display: flex; */
  align-content: center;
  margin: auto;
}

@media screen and (max-width: 768px) {
  #svgVergleich {
    min-width: 350px; 
    min-height: 350px; 
  }
}

.cls-18, .cls-19, .cls-20, .cls-21, .cls-22 {
  font-family: MADETommySoft-ExtraBold, 'MADE Tommy Soft';
  font-weight: 700;
}

.cls-19, .cls-23, .cls-24 {
  fill: #081f5c;
}

.cls-19, .cls-24 {
  font-size: 17px;
}

.cls-25 {
  fill: #f7f2eb;
}

.cls-26 {
  font-family: MyriadPro-Regular, 'Myriad Pro';
}

.cls-20 {
  letter-spacing: -.07em;
}

.cls-27 {
  fill: #bad6eb;
}

.cls-28 {
  fill: #d0e3ff;
}

.cls-21 {
  letter-spacing: -.02em;
}

.cls-22, .cls-29 {
  letter-spacing: 0em;
}

.cls-30 {
  fill: none;
  stroke: #081f5c;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}

.cls-31 {
  letter-spacing: -.03em;
}

.cls-32 {
  fill: #7096d1;
}

/* Styling Vergleich GR VS */

#svgVergleich2 {
  width: 40%;
  /* display: flex; */
  align-content: center;
  margin: auto;
}

@media screen and (max-width: 768px) {
  #svgVergleich2 {
    min-width: 300px; 
    min-height: 300px; 
  }
}

.cls-33, .cls-34, .cls-35, .cls-36, .cls-37 {
  font-family: MADETommySoft-ExtraBold, 'MADE Tommy Soft';
  font-weight: 700;
}

.cls-34, .cls-38, .cls-39 {
  fill: #081f5c;
}

.cls-34, .cls-39 {
  font-size: 17px;
}

.cls-40 {
  fill: #f7f2eb;
}

.cls-41 {
  font-family: MyriadPro-Regular, 'Myriad Pro';
}

.cls-35 {
  letter-spacing: -.07em;
}

.cls-42 {
  fill: #bad6eb;
}

.cls-43 {
  fill: #d0e3ff;
}

.cls-36, .cls-44 {
  letter-spacing: -.02em;
}

.cls-37, .cls-45 {
  letter-spacing: 0em;
}

.cls-46 {
  fill: none;
  stroke: #081f5c;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}

.cls-47 {
  letter-spacing: -.06em;
}

.cls-48 {
  letter-spacing: -.04em;
}

.cls-49 {
  letter-spacing: -.03em;
}

.cls-50 {
  letter-spacing: 0em;
}


/* Schweizer Orte CSS */
.map-container {
  width: 100%;
  max-height: 500px;
  padding: 30px 0 50px 0;
  align-items: center;
}

.flex-container {
  display: flex;
  width: 100%;
  max-height: auto;
  align-items: center;
}

@media screen and (max-width: 885.81px) {
  .map-container {
      flex-direction: column;
  }

  .flex-container {
      flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .map-container {
      flex-direction: column;
  }

  .flex-container {
      flex-direction: column;
  }
}

.title {
  color: #081F5C; 
  text-align: center;
  font-family: "MADE Tommy Soft";
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h6 {
  font-size: 20px;
  font-family: MADE Tommy Soft;
  color: #081F5C;
  padding: 5% 10% 0 10%;
}

@media screen and (max-width: 768px) {
  .h6 {
    width: 100%;
    height: auto; 
    }
  }

.text1-diagramm {
  font-family: 'Gill Sans';
  font-size: 17px;
  color: #081F5C;
  padding: 2% 10% 0 10%;
}

@media screen and (max-width: 768px) {
  .text1-diagramm {
    width: 100%;
    height: auto; 
    }
  }

  .text2-diagramm {
    font-family: 'Gill Sans';
    font-size: 17px;
    color: #081F5C;
    padding: 2% 10% 10% 10%;
  }
  
  @media screen and (max-width: 768px) {
    .text2-diagramm {
      width: 100%;
      height: auto; 
      }
    }

#aqiChart {
  padding: 80px;
  font-family: MADE Tommy Soft;
  font-size: 10px;
  color: #081F5C;
  min-width: 300px;
  min-height: 300px; 
  width: 100%; 
  height: auto; 
}

@media screen and (max-width: 768px) {
  #aqiChart {
    padding: 40px; 
    min-width: 200px; 
    min-height: 200px; 
  }
}

@media screen and (max-width: 480px) {
  #aqiChart {
    padding: 20px; 
    min-width: 200px; 
    min-height: 200px; 
  }
}

/* AQI Richtwerte*/
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(8, 31, 92, 1);
}

.AQI-Text {
  font-family: 'Gill Sans';
  font-size: 17px;
  padding-top: 10px;
}

.info-section {
  padding: 20px;
  border-left: 4px solid #081F5C;
}

.info-section h2 {
  font-family: 'MADE Tommy Soft', sans-serif;
  color: #081f5c;
}

.info-section h3 {
  font-family: 'MADE Tommy Soft', sans-serif;
  color: #333;
}

.richtwerte {
  color: #081F5C;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  cursor: pointer;
}

li {
  padding: 10px;
  margin: 5px 0;
}

li:nth-child(1) {
  background-color: rgba(107, 124, 0, 0.8)
}

li:nth-child(2) {
  background-color: rgba(189, 188, 62, 0.8)
}

li:nth-child(3) {
  background-color: rgba(252, 197, 49, 0.8)
}

li:nth-child(4) {
  background-color: rgba(248, 182, 5, 0.8)
}

li:nth-child(5) {
  background-color: rgba(232, 41, 63, 0.8)
}

li:nth-child(6) {
  background-color: rgba(156, 3, 31, 0.8)
}

ul li:hover {
  background-color: #d3d3d3
}

/* Tooltip styling */
ul li::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(8, 31, 92, 1);
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap; /* Prevent tooltip text from wrapping */
  opacity: 0; /* Hide tooltip by default */
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

/* Show tooltip on hover */
ul li:hover::after {
  opacity: 1;
}



/* Footer */
.footer {
  width: 100%;
  padding: 20px;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-content: center;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 16px;
  color: #334eac;
  margin-bottom: 10px;
  margin-top: 100px;
}

.city-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.city-list a{
  text-decoration: none;
  color: #081F5C;
}

.city {
  font-size: 18px;
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {
  .city-list {
      flex-direction: column;
      gap: 10px;
  }
}

.container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.bubble {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1.5;
}

.bubble span {
    position: absolute;
    display: block;
}

.label {
    top: -30px;
    font-weight: bold;
}

.data {
    bottom: 10px;
}

.zurich {
    width: 120px;
    height: 120px;
    background-color: #FF5733;
}

.bern {
    width: 110px;
    height: 110px;
    background-color: #33FF57;
}

.lugano {
    width: 125px;
    height: 125px;
    background-color: #3357FF;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .label {
        top: -20px;
    }

    .data {
        bottom: 5px;
    }
}


