@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2 {
    margin-bottom: 10px;
}

.BOX	
{
	text-align:center;
    display: flex;
    flex-direction:column;
    gap: 0px;
	padding: 0px;
	margin: 0px;
	height: auto;
	width: 100%;
	background-color:#f1ebe7;  
	font-family: 'arial';	
}

.nav-logo {
    height: 40px;  /* Höhe des Logos, anpassbar nach Bedarf */
    margin-right: 40px; /* Abstand zwischen Logo und den Navigationslinks */
    margin-top: 9px; /* Vergrößert den oberen Rand, um das Logo nach unten zu bewegen */
    align-self: center; /* Vertikale Zentrierung innerhalb der Flex-Container */
}

.MainNav {
    display: flex;
    align-items: center; /* Zentriert die Elemente vertikal */
    justify-content: center; /* Startet die Inhalte am Anfang der Navigationsleiste */
    height: 50px;                                            
    width: 100%;                                            
    background-color: #FF813F;
    border-bottom: solid 2px black;
    border-top: solid 2px black;
    padding-left: 20px; /* Fügt ein Padding auf der linken Seite hinzu, für Abstand vom Bildschirmrand */
}

.NavLevel1, .NavLevel2 a { /* Formatierung aller Texte */
    display: grid;
    z-index: 999;
    text-decoration: none;
    color: #000000;
    font-size: 25px;
    text-align: center;
    font-family: "arial";
    font-weight: bold;
}

.NavLevel1 { /* Stil für die erste Ebene */
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 10px 20px; /* Raum um den Text */
    z-index: 999;
    background-color: transparent;
    justify-content: center;
}

.NavLevel1 a {
    text-decoration: none; 
    color: #000000;
}

/* Ändern des Hintergrunds, wenn der Mauszeiger über ein Element schwebt */
.NavLevel1:hover {
    background-color: #cacbcb;
    cursor: pointer;
}

.NavLevel1 a:visited {
    color: #000000;
    text-decoration: none;
}

/* Stil für die zweite Ebene */
.NavLevel2 {
    display: none;											
    position: absolute;										 
    height: auto;
    width: 223px;
    background-color: #FF813F;
    text-align: center;
    z-index: 999;
    top: 52px; /* Platzierung 100px unterhalb der Nav-Leiste */
}

.NavLevel2 a {
    display: grid;
    line-height: 2.5;
    border-left: solid 2px black;
    border-right: solid 2px black;
    border-bottom: solid 2px black;
}

/* Ändern des Hintergrunds der zweiten Ebene beim Hovern */
.NavLevel2 a:hover {
    background-color: #cacbcb;
    z-index: 999;  
}

.NavLevel1:hover > .NavLevel2 {                                    
    display: block;                                            
}
	
.FOOTER {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #FF813F;
    padding-left: 0;
    font-family: 'arial';
    border-top: solid 2px black;
    border-bottom: solid 2px black;
    z-index: 999; /* Stelle sicher, dass der Footer über anderen Inhalten liegt */
}		
  
  .FOOTER ul 
{
	display: flex;
	justify-content: space-between;
	align-items:center;
	width: 80%;
	margin: 0 auto;
}
  
  
.FOOTER ul li 
{
	display: inline-block;
	align-self:end ;
	padding:10px;
	margin: auto;
	justify-content:space-between;
}
  
.FOOTER ul li a {
	font-family: 'arial';
	color: #000000;
	text-decoration:none;
		
	display:block;
	padding: 10px;
		  
}


.CONTENT 
{
  width: 80%;
  color: #000000;
  background-color: #00000042;
  margin: 50px auto;
  font-family: 'arial';
  font-size: 24px;
  border-radius: 15px;
  text-align: left;
  padding-left: 35px;
  padding-right: 40px;
  height: auto;
	
}

@keyframes fahrenderBagger {
    0% {
        transform: translateX(-920%); /* Startet außerhalb des Bildschirms links */
    }
    100% {
        transform: translateX(920%); /* Bewegt sich bis außerhalb des Bildschirms rechts */
    }
}

.bagger-animation {
    position: absolute;
    bottom: 50px; /* Reduzierter Abstand vom unteren Rand des Footers */
    width: 70px; /* Breite des Baggerbildes */
    animation: fahrenderBagger 30s linear infinite; /* Dauer, Art und Wiederholung der Animation */
}

@media (max-width: 768px) {
    .bagger-animation {
        width: 50px; /* Kleinere Breite für kleinere Bildschirme */
    }
}

.container {
	display: flex;
	justify-content: flex-end;
	padding-right: 1px;
	align-items: center; /* Zentrierung von Bild und Sprechblase vertikal */
  }
  
  .sprechblase {
	position: relative;
	left: 200px;
	max-width: 60%;
	padding: 10px;
	border-radius: 10px;
	background-color: #000000;
  }
  
  .text p {
	margin: 0; /* Um den Abstand des Textes innerhalb der Sprechblase zu entfernen */
	color: #ffffff;

  }
  
  .haken {
	position: absolute;
	top: 20px;
	right: -35px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 17px 42px 0 0;
	border-color: #000000 transparent transparent transparent;
  }
  
  .bild {
	margin-left: 1px; /* Abstand zwischen Sprechblase und Bild anpassen */
  }
  
  .bild img {
	width: 30%; /* Hier die prozentuale Größe des Bildes anpassen */
  }

  .image-overlay-container {
    position: relative;
    text-align: center;
}

.responsive {
    width: 100%;  /* Setzt die Breite des Bildes auf 50% des Containers */
    height: auto; /* Behält das Seitenverhältnis bei */
}

.overlay-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-size: 20px;
    font-weight: bold;
    background-color: #ff823fb0; /* Halbtransparenter schwarzer Hintergrund */
    padding: 10px 20px; /* Innenabstand */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Schatten für 3D-Effekt */
}

.overlay-button {
    display: inline-block;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

.overlay-button:hover {
    background-color: #e57235; /* Dunklerer Orange für Hover-Effekt */
}

.button-musik {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 0px; /* Abstand zwischen den Buttons */
}

.button-musik button {
    background: none; /* Kein Hintergrund für den Button */
    margin-top: 0px;  /* Reduziere den oberen Rand, falls zu viel Platz vorhanden ist */
    border: none; /* Keine Ränder */
    cursor: pointer;
    padding: 10px; /* Polsterung um das Bild */
}

.button-musik button img {
    width: 40px; /* oder eine andere passende Größe */
    height: auto;
    display: block; /* Verhindert unerwünschte Ränder um das Bild */
}

.slider-wrapper {
    position: relative;
    max-width: 60rem;
    margin: 0 auto;
}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
    border-radius: 0.5rem;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

/* Verstecken der Scrollbalken für Webkit-Browser wie Chrome und Safari */
.slider::-webkit-scrollbar {
    display: none;
}

.slider img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

/* Navigationsknöpfe */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e57235;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 0.5rem;
    opacity: 0.75;
    transition: opacity ease 250ms;
}

.prev:hover, .next:hover {
    opacity: 1;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.quiz-container {
  display:  flex;
  justify-content: center;
  box-sizing: border-box;
  font-size: 24px; /* Größere Schrift für die Frage */
  width: 100%;
  height: 70%;
  max-width: 700px;
  margin: 0 auto;
  padding: 2em;
  background-color: #f1ebe7;
  border-radius: 20px;
}

.choices {
  display: flex;
  justify-content: center;
}

.choice {
    justify-content: center;
    background-color: #FF813F;
    color: #000000;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 0 8px; /* Setzt 10px Abstand links und rechts */
}

/* Optional: Entfernen des Abstands am Anfang und Ende */
.choice:first-child {
    margin-left: 0;
}

.choice:last-child {
    margin-right: 0;
}

.choice:hover {
  background-color: #f1ebe7;
}

.choice.correct {
    background-color: #4CAF50; /* Grün */
}

.choice.incorrect {
    background-color: #f44336; /* Rot */
}

#next-question {
    display: block; /* Block-Level-Element macht es einfacher, Breite zu managen */
    width: max-content; /* Der Button nimmt nur so viel Platz ein, wie sein Inhalt benötigt */
    margin: 20px auto; /* Auto-Margin zentriert den Button horizontal */
    background-color: #FF813F; /* Setze eine spezifische Hintergrundfarbe */
    color: black; /* Setze die Textfarbe auf Schwarz (oder eine andere gewünschte Farbe) */
    text-decoration: none; /* Entferne Unterstreichungen */
    padding: 10px 20px; /* Polsterung für besseren Klickbereich und Aussehen */
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 2px solid #000000; /* Schwarzer Rahmen */
}

#next-question:hover {
    background-color: #e57235; /* Dunklerer Orange-Ton beim Hover */
}

#next-question:active {
    transform: scale(0.95); /* Verkleinern beim Klicken */
}

#feedback {
    text-align: center; /* Zentriert den Text horizontal */
    margin-top: 10px; /* Optional: Fügt etwas Abstand oben hinzu */
}

.next-page-button {
    display: block;
    margin: 20px auto;
    background-color: #FF813F;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .next-page-button:hover {
    background-color: #e57235;
  }

  .next-page-button {
    display: inline-block; /* Erlaubt die Zentrierung mit text-align */
    padding: 10px 20px; /* Polsterung für besseren Klickbereich und Aussehen */
    background-color: #FF813F; /* Hintergrundfarbe */
    color: rgb(0, 0, 0); /* Textfarbe */
    text-decoration: none; /* Entfernt die Unterstreichung von Links */
    border-radius: 5px; /* Abgerundete Ecken */
    border: 2px solid #000000; /* Schwarzer Rahmen */
    transition: background-color 0.3s, border-color 0.3s; /* Sanfte Übergänge für Hover-Effekt */
  }
  
  .next-page-button:hover {
    background-color: #e57235;
  }