body {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(41, 40, 40);
}

header {
    margin-top: 24px;
    margin-bottom: 24px;
}

#teaser {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

#teaser img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.mitte {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mitte2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Elemente umbrechen */
    justify-content: center; /* Zentriert die Links */
    padding-top: 24px;
    padding-bottom: 24px;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen, wenn nötig */
    white-space: nowrap; /* Verhindert, dass die Links umbrochen werden */
}

nav ul li {
    flex: 0 0 auto; /* Flex: automatisch an den Inhalt anpassen */
    margin: 5px; /* Abstand zwischen den Elementen */
    box-sizing: border-box; /* Enthält Padding und Border in der Breitenberechnung */
}

nav ul li a {
    font-weight: 600;
    padding: 10px 15px;
    color: rgba(255, 0, 0, 0.763);
    white-space: nowrap; /* Verhindert Zeilenumbruch bei den Links */
    display: block;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 0, 0, 0.5); /* Hintergrundfarbe bei Hover */
}

section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    color: white;
}

footer {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 14px; /* Pixelangabe korrigiert */
    font-weight: 600;
    color: white;
}

section ul {
    display: flex;
    flex-wrap: wrap; /* Elemente in neue Zeilen umbrechen */
    justify-content: center; /* Zentriert die Liste */
    padding-left: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

section ul li {
    margin: 10px;
    flex-basis: calc(33.333% - 20px); /* Drei Elemente pro Zeile */
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    section ul li {
        flex-basis: calc(50% - 20px); /* Zwei Elemente pro Zeile auf Tablets */
        max-width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    section ul li {
        flex-basis: calc(100% - 20px); /* Ein Element pro Zeile auf kleinen Bildschirmen */
        max-width: calc(100% - 20px);
    }
}

section ul li a {
    width: 100%; /* Breite der Links auf 100% setzen */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 2em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    transition: transform 0.5s ease; /* Korrektur des Übergangs */
    overflow: hidden;
}

section ul li a:hover {
    transform: translateY(-20px);
}

section ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(45deg) translateX(150px);
    transition: transform 0.5s ease;
}

section ul li a:hover::before {
    transform: skewX(45deg) translateX(-150px);
}

.input-group {
    margin-bottom: 15px; /* Abstand zwischen den Eingabefeldern */
}

.label {
    display: block; /* Labels als Blockelemente anzeigen */
    margin-bottom: 5px; /* Abstand unterhalb der Labels */
}

input[type="text"],
input[type="password"] {
    width: 100%; /* Volle Breite für Text- und Passworteingabefelder */
    padding: 10px; /* Innenabstand für Eingabefelder */
    border: none; /* Rand entfernen */
    background-color: #444; /* Hintergrundfarbe für Eingabefelder */
    color: #fff; /* Textfarbe auf Weiß setzen */
}

input[type="submit"] {
    background-color: #008CBA;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #005f7d;
}
