
body {
  margin: 0;
  padding: 0;
  background-color: #83cbff;
  font-family: 'Press Start 2P', cursive;
  display: flex;
  flex-direction: column;

}

.header {
  background-color: #86c0e9;
  width: 100%;
  padding: 30px 0;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow: visible;
  z-index: 2;
}

.header h1 {
  color: white;
  font-size: 60px;
  text-shadow: 5px 5px black;
  margin: 0;
}

.map-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  margin-top: 10px;
  position: relative;
  overflow: visible;
  flex-direction: column;
  padding-top: 40px;
  z-index: 1;
}

.map-container svg,
#karte-mini svg,
#svg-wrapper svg {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}
.map-container svg,
#svg-wrapper svg {
  width: 200%;
  height: auto;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}


#svg-wrapper {
  width: 80vw;
  max-width: 800px;
}

#svg-wrapper path,
svg path {
  cursor: pointer;
  stroke: #222;
  fill: #cccccc;
  transition: transform 0.2s ease, fill 0.2s ease;
  transform-origin: center;
}



svg path:hover {
  transform: scale(1.02);
  fill: blue;
}

svg path.selected,
.selected {
  fill: #10ef00;
  stroke-width: 1;
}

#zeitwahl-container {
  text-align: center;
  margin-top: 0px;
  font-family: 'Press Start 2P', monospace;
}

/* gemeinsamer Style für beide selects */
select#kanton-select,
#zeitwahl {
  display: block;
  width: 90%;
  max-width: 300px;
  margin: 1em auto;
  padding: 0.8em 1em;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  text-align: center;
  background: #eef0ee;
  border: 4px solid #000;
  border-radius: 0.5em;
  appearance: none;     /* Pfeil verstecken */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  cursor: pointer;
}

/* Pfeil nach unten (reine CSS-Lösung) */
select#kanton-select::after,
#zeitwahl::after {
  content: '▾';
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.2rem;
}


.choose-text,
h3 {
  color: white;
  text-shadow: 2px 2px 0 black;
  margin-top: 30px;
  font-size: 20px;
}

#resultat-ansicht {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin: 40px 20px 0;
  margin-left: 30px;
  margin-right: 30px;
}

#resultat-links,
#resultat-rechts {
  flex: 1;
 
}
#resultat-links {
  
  line-height: 1.3; /* oder z. B. 1.8 für mehr Luft */
}

#resultat-links p {
  margin: 12px 0;
  font-size: 2vw;
  color: white;
  text-shadow: 2px 2px black;
  font-family: 'Press Start 2P', cursive;
}



.hidden {
  display: none;
}

.st1 {
  fill: #DBDBDB;
  stroke: #f0f0f0;
  stroke-width: 2px;

}

svg {
  max-width: 80vh;
  width: 100%;
  height: auto;
}
/* Ergebnis-Box: fade-in + slide-up */
#resultat-ansicht {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#resultat-ansicht.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mini-Karte: Shrink & Slide-Right, einfachere Variante ===== */

/* Container bekommt einen Rahmen (oder eine Höhe), 
   damit man das Kind sehen kann */
#karte-mini {

  height: 40vh; 
  /* optional: Breite */
  width: 40vw; 
  margin: 0 auto;
  position: relative;
}

/* SVG im Container zentrieren & skalieren */
#karte-mini svg {
  display: block;
  margin: 0 auto;            /* zentriert horizontal */
  transform-origin: center;  
  transform: scale(1.2) translateX(0); /* START größer, mittig */
  transition: transform 0.6s ease-out;
}

/* mit .visible auf Container schrumpfen & slide */
#karte-mini.visible svg {
  transform: scale(1) translateX(30px); /* ENDE: Normalgröße + 30px nach rechts */
}
/* Loader */
#loader {
  /* zentriert + etwas Abstand nach oben */
  display: block;
  margin: 20px auto 0; /* 20px Abstand oben, automatisch zentriert */
  font-family: 'Press Start 2P', cursive;
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

#loader.hidden {
  display: none;
}
#loader.visible {
  display: block;
}
/* Container über allen Inhalten, aber unter Header */
#pollen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1; /* Header hat z-index:2 */
}

/* Ein Pollen-Körnchen */
.pollen {
  position: absolute;
  bottom: -10px;             /* startet leicht unterhalb */
  background: rgba(245,235,150,0.8);
  border-radius: 50%;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
#seiten-titel {
  cursor: pointer;
}


/* Keyframes: von unten nach oben + leichte horizontale Oszillation */
@keyframes floatUp {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--dx)) translateY(-110vh);
    opacity: 0.2;
  }
}



/* Mobile: einblenden */
@media (max-width: 500px) {
  #kanton-select {
    display: block;
  }
 
}


/* ================== Mobil bis 800px ================== */
@media (max-width: 800px) {
  .map-container {
    flex-direction: column;
    padding: 1rem;
    margin-top: 1px;
  }
  .map-container > svg:first-of-type {
    width: 80vw;
  }

  #zeitwahl-container {
    margin-top: 1rem;
    text-align: center;
  }
  #zeitwahl {
    width: 90%;
    font-size: 1rem;
    padding: 0.8rem;
    margin-top: 10px;
    text-align: center;
  }

   #resultat-ansicht {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
    margin: 1rem auto;
  }
  #resultat-links p {
    font-size: 1rem;
    line-height: 1.4;
    margin-left: 15px;
  }

  #karte-mini {
    
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }

  #karte-mini svg {
    display: block;
    width: 80vw;
    height: auto;
    margin: 0 auto;
    transform: scale(1); /* keine Verschiebung */
    margin-right: 10vw;
  }
  }

/* ================== Anzeige-Regeln ================== */

/* Mobil-Dropdown standardmässig verstecken */
/* Standard: Dropdown verstecken */
#kanton-select {
  display: none !important;
}

/* Auf Mobilgeräten (max. 600px) NUR anzeigen, wenn nicht .hidden */
@media only screen and (max-width: 600px) {
  #kanton-select:not(.hidden) {
    display: block !important;
  }
    #karte-mini svg {
     margin-right: 15vw;
  }
  .header h1{
    font-size: 40px;
  }
  .resultat-ansicht{
    margin-left: 10px;
    margin-right: 10px;
  }
  .choose-text,
h3 {
  margin-top: 30px;
  font-size: 15px;
}
}

/* Zeit-Dropdown immer sichtbar */
#zeitwahl {
  display: block !important;
}





