/* Allgemeine Layout- und Stil-Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #AE1022; /* Roter Farbton */
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

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

nav ul li {
    display: inline-block;
    margin: 0 15px;
    position: relative; /* Für das Dropdown-Menü notwendig */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Dropdown-Menü */
nav ul li.dropdown:hover .dropdown-menu {
    display: block;
}

nav ul li .dropdown-menu {
    display: none; /* Anfangs unsichtbar */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #AE1022; /* Rot für das Dropdown */
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 200px; /* Breite des Dropdowns */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

nav ul li .dropdown-menu li a {
    padding: 10px;
    color: white;
    text-decoration: none;
}

nav ul li .dropdown-menu li a:hover {
    background-color: #9e0d1e; /* Etwas dunklerer Rotton */
}

/* Restliche Stile */
h1 {
    text-align: center;
    margin-top: 2rem;
}

main {
    padding: 2rem;
    text-align: center;
}

footer {
    background-color: #AE1022;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Galerie der Bilder */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.image-gallery img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-gallery img {
        max-width: 80%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    .image-gallery img {
        max-width: 90%;
    }
}

/* Slideshow */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

/* Textfeld-Stil für Aufgaben */
.text-box {
    background-color: #fff; /* Weißer Hintergrund */
    border: 1px solid #ccc; /* Leichter grauer Rand */
    padding: 20px; /* Innenabstand */
    margin: 20px auto; /* Abstand oben und unten, zentriert */
    max-width: 800px; /* Maximale Breite des Textfelds */
    text-align: left; /* Links ausrichten */
    font-size: 1.1rem; /* Etwas größere Schrift für bessere Lesbarkeit */
    line-height: 1.6; /* Zeilenhöhe für besseren Abstand */
    border-radius: 8px; /* Abgerundete Ecken */
}

/* Verlinkungen im Textfeld */
.text-box a {
    color: #AE1022; /* Rot für Links */
    text-decoration: none;
}

.text-box a:hover {
    text-decoration: underline;
}

/* Zentriert die Überschrift der 1. Aufgabe */
#aufgabe1 h2 {
    text-align: center;
}
