/* Anfang von generellem Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Oswald", sans-serif;
  text-align: center;
  background: linear-gradient(to bottom, white, #f9e9d5);
  margin: 0;
  padding: 0;
}

h1 {
  color: #e68300;
  font-size: 4rem;
  margin: 0rem 0rem;
}

h2 {
  color: #e68300;
  font-size: 2.2rem;
}

p {
  color: #333;
  font-size: 1.2rem;
  margin: 0 10%;
  line-height: 1.7;
}

.weiterer-text {
  margin: 0% 10%;
  font-size: 2rem;
  color: #333;
}



#meldungen,
#section-text {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Unterschiede */
#meldungen {
  justify-content: center;
}

#section-text {
  justify-content: flex-start;
  padding-top: 10vh;
}

/* Ende generell Styling */

/* anfang 'Was sind wilde Abfall Deponien'styling  */
.centered-text {
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.abfall-bilder {
  scale: 0.6;
}

/* Ende'Was sind wilde Abfall Deponien'styling */

/* Anfang chart.js styling */

#chart-container {
  position: relative;
  width: 70%;
  margin: 30px auto;
}

.zeitfilter {
  border-radius: 100px;
  margin: 2% 1%;
  padding: 1% 2%;
  border: 2px solid var(--Entsorgungs-Orange, #FF931F);
  background: rgba(255, 147, 31, 0.34);
}

.zeitfilter:hover {
  background: rgba(255, 147, 31);
  transition-duration: 0.5s;
}



/* Ende Chart.js styling */

/* Anfang styling von leaflet Karte und Infopanel */

#karten-container {
  position: relative;
  width: 70%;
  margin: 30px auto;
}


/* Karte nimmt 70% Breite */
#map {
  flex: 3;
  height: 100%;
  z-index: 1;
}

.leaflet-interactive {
  cursor: pointer;
  transition: opacity 0.2s;
  stroke: #fff;
  stroke-width: 1.5;
}

.leaflet-interactive:hover {
  opacity: 0.7;
  stroke: #d00000;
  stroke-width: 2.5;
  z-index: 1000;
}



/* Container mit Karte + InfoBox nebeneinander */
#mapContainer {
  display: flex;
  width: 90%;
  height: 70vh;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#abfallChart {
  margin: 2%;
}

/* Rechte InfoBox */
#infoPanel {
  flex: 1;
  background: linear-gradient(to bottom, #fff7ec, #ffe5cc);
  border-left: 3px solid #ff931f;
  padding: 1.5rem;
  text-align: left;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

/* Titel in der InfoBox */
#infoPanel h2 {
  color: #e68300;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #ffd4a8;
  padding-bottom: 0.3rem;
}

/* Scrollbar dezent */
#infoPanel::-webkit-scrollbar {
  width: 6px;
}

#infoPanel::-webkit-scrollbar-thumb {
  background: #ff931f;
  border-radius: 10px;
}

#infoPanel::-webkit-scrollbar-track {
  background: #fff2e0;
}

/* Top Abfallkategorie Styling */
.topKatBox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(to right, #fff5e6, #ffe0b3);
  border-radius: 10px;
  padding: 0.8rem;
  margin: 0.6rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.topKatImg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 1rem;
}

.topKatName {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e68300;
}

/* Ghüderauti Animation styling */
#ghuederauti-container {
  position: fixed;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1000;
  pointer-events: none;
  overflow: visible;
}

#ghuederauti {
  width: 100px;
  will-change: transform;
  transition: transform 0.4s ease;
  position: absolute;
  bottom: 0;
  left: 0;
  transform-origin: center;
}

#playAudioBtn {
  position: fixed;
  bottom: 70px;
  left: 20px;
  background: #FF931F;
  color: black;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 100px;
  margin: 2% 1%;
  padding: 1% 2%;
  border: 2px solid var(--Entsorgungs-Orange, #FF931F);
  background: rgba(255, 147, 31, 0.34);

}

#playAudioBtn:hover {
  background: #e67300;
  transition-duration: 0.3s;
}

/* Ende ghüderauti */

/* Anfang Footer Styling */
#footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1%;
  background-color: #FF931F;
  color: black;
  text-align: center;
  z-index: 1000;
  height: 50px
}

#footer a {
  color: black;
  /* Linkfarbe */
  text-decoration: none;
  /* Unterstreichung entfernen */
}

#footer a:hover {
  text-decoration: underline;
  /* Unterstreichung beim Hover */
}

/* Ende Footer Styling */

/* --- Scrollytelling Abschnitt --- */

#abfall-bilder {
  position: absolute;
}

.abfall-img {
  margin: 5%;
  width: 10%;
  /* ← hier stellst du die Bildgrösse ein */
  opacity: 0;
  transform: scale(0.8);
  /* 60 % der Originalgrösse */
  transition: all 1.5s ease-out;
}

/* --- Einflug aus verschiedenen Richtungen --- */
/* BebbiSagg */
#abfall-bilder.enter-active .abfall-img:nth-child(1) {
  transform: translate(50%, -40%) scale(0.8);
  opacity: 1;
}

/* Sperrgut */
#abfall-bilder.enter-active .abfall-img:nth-child(2) {
  transform: translate(350%, -70%) scale(0.8) rotate(15deg);
  opacity: 1;
}

/* elektromüll */
#abfall-bilder.enter-active .abfall-img:nth-child(3) {
  transform: translate(-100%, -150%) scale(0.9);
  opacity: 1;
}

/* sonderabfall */
#abfall-bilder.enter-active .abfall-img:nth-child(4) {
  transform: translate(100%, 100%) scale(0.6) rotate(20deg);
  opacity: 1;
}

/* Papiermüll */
#abfall-bilder.enter-active .abfall-img:nth-child(5) {
  transform: translate(-40%, -30%) scale(0.6) rotate(-15deg);
  opacity: 1;
}

/* Metall */
#abfall-bilder.enter-active .abfall-img:nth-child(6) {
  transform: translate(-10%, 20%) scale(0.5) rotate(-10deg);
  opacity: 1;
}

/* Kompost */
#abfall-bilder.enter-active .abfall-img:nth-child(7) {
  transform: translate(-10%, -10%) scale(1);
  opacity: 1;
}

/* unbrennbares */
#abfall-bilder.enter-active .abfall-img:nth-child(8) {
  transform: translate(-30%, -20%) scale(0.6) rotate(-15deg);
  opacity: 1;
}

/* --- Fade-in für den Story-Text im ersten Abschnitt --- */
.story-text p {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.5s ease-out;
}

/* Wenn sichtbar */
.story-text.visible p {
  opacity: 1;
  transform: translateY(0);
}