/* === Allgemeine Stile === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* === Header === */
header.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
    background-color: transparent; /* Sicherstellen, dass der Container transparent ist */
}

header .logo img {
    max-height: 100px;
    margin-right: 15px;
    background-color: transparent !important; /* Erzwinge Transparenz auf allen Geräten */
    display: block; /* Vermeidet Rendering-Fehler */
}

header .site-title {
    font-size: 1.5rem;
    font-weight: 600;
}

header .contact-info {
    text-align: right;
}

header .contact-info a {
    color: white;
    text-decoration: none;
}

header .contact-info a:hover {
    text-decoration: underline;
}

/* === Navigation === */
nav#Navigation {
    background-color: var(--secondary-color);
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    transition: background-color 0.3s ease;
}

nav#Navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav#Navigation ul li {
    margin: 0 10px;
    position: relative;
}

nav#Navigation ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 4px;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav#Navigation ul li a:hover {
    background-color: #8a72b8;
    transform: translateY(-2px);
}

/* === Footer === */
footer {
    text-align: center;
    padding: 15px;
    background: var(--footer-background);
    color: white;
}

footer a {
    color: #f4f4f4;
    text-decoration: none;
}

footer a:hover {
    color: #8a72b8;
}

/* === Grundfarben und Anpassungen === */
:root {
    --primary-color: #b13d8a; /* Dunkleres Lila für Header */
    --secondary-color: #a48bc6; /* Dunkleres Helllila für Navigation */
    --text-color: #4e3d6b; /* Dunkleres Lila für Text */
    --background-color: #f4f4f4;
    --footer-background: #333;
    --link-hover-color: #8a72b8;
}

/* === Responsive Anpassungen === */

/* Für Bildschirme kleiner als 768px (Tablets) */
@media (max-width: 768px) {
    header.main-header {
        flex-direction: column;
        padding: 10px 20px;
    }

    header .logo img {
        max-height: 70px;
    }

    header .site-title {
        font-size: 1.2rem;
    }

    nav#Navigation {
        width: 100%;
        max-width: none;
        margin: 10px 0;
        border-radius: 10px;
    }

    nav#Navigation ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav#Navigation ul li {
        margin: 0;
    }

    nav#Navigation ul li a {
        font-size: 1rem;
        padding: 16px 20px; /* Größerer Klickbereich */
        text-align: left;
    }

    footer {
        padding: 10px;
    }

    footer a {
        font-size: 0.9rem;
    }
}

/* Für sehr kleine Bildschirme (Smartphones im Hochformat < 480px) */
@media (max-width: 480px) {
    header.main-header {
        padding: 10px;
    }

    header .site-title {
        font-size: 1.1rem;
    }

    nav#Navigation {
        width: 100%;
        padding: 0;
    }

    nav#Navigation ul {
        flex-direction: column;
    }

    nav#Navigation ul li {
        margin: 0;
    }

    nav#Navigation ul li a {
        font-size: 1rem;
        padding: 14px 20px; /* Optimierter Klickbereich */
    }

    footer {
        font-size: 0.8rem;
        padding: 8px;
    }
}
