/* header.css: Header */


header {
    background: linear-gradient(135deg, rgb(1, 44, 22), rgb(18, 209, 91));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding-top: 10px;
    padding-bottom: 5px;
    text-align: center;
}

/* Überschrift */
header h1 {
    margin: 0;
    font-size: 28px; /* Schriftgröße für Desktop */
    font-weight: bold;
    text-align: left; /* Text linksbündig */
}

/* Titel + Navigation in einer Spalte */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Sorgt für horizontale Zentrierung */
    text-align: center;
    margin-bottom: auto; /* Drückt die Navigation nach unten */
}

/* Header-Container mit Flexbox */
.header-container {
    display: flex;
    align-items: flex-start; /* Sorgt dafür, dass der Titel oben am Logo ausgerichtet wird */
    justify-content: center; /* Alles horizontal im Header ausrichten */
    margin-left: 10px;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Logo bleibt links */
.logo-container {
    display: flex;
    align-items: flex-start; /* Oben bündig */
}

/* Logo fix links neben dem Titel */
.logo {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

/* Navigation feintunen */
.nav-grid {
    transform: translateY(-0.75em);
}

.nav-grid li:first-child a {
    white-space: nowrap; /* Verhindert Umbrüche */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #a3d9b2; /* Helles Grün */
}

/* Aktiver Zustand - wenn die Seite aktiv ist */
nav ul li a:focus,
nav ul li a:active {
    color: #a3d9b2; /* Bleibt grün nach dem Klicken */
}

/* Aktiver Navigationspunkt basierend auf der URL */
nav ul li a.active {
    color: #a3d9b2 !important; /* Bleibt grün, wenn die Seite aktiv ist */
    font-weight: bold; /* Optional: Hebt den aktiven Link stärker hervor */
}

/* Container für Titel + Stempel */
.title-container {
    display: flex;
    align-items: center; /* Logo und Titel in einer Linie */
    gap: 15px; /* Abstand zwischen Logo und Text */
}
/* Titel */
.title-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.club-title {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    transform: translateY(-0.0em);
}

.subtitle {
    font-size: 21px;
    font-weight: normal;
    margin-top: 0px;
    margin-bottom: 1px;
    color: rgba(152, 196, 53, 1 );
    font-family: 'UnifrakturMaguntia', cursive;
    transform: translateY(-0.35em);
}

@media (max-width: 800px) {
    /* Header flexbox für zentrierte Anordnung */
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 5px;
    }

    /* Titel optimieren: Erster Teil in einer Zeile, Mayen darunter */
    header h1 {
        font-size: 4.5vw;
        margin: 0;
        line-height: 1.2;
        text-align: center;
    }

    /* Logo mittig ausrichten */
    .logo-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Logo etwas höher setzen ohne den Header zu verschieben */
    .logo {
        max-width: 110px;
        height: auto;
        padding-left: 0;
        transform: translateY(-5px); /* Hebt das Logo leicht an */
    }

    /* Titel + Untertitel anpassen */
    .title-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
    }

    /* Club-Titel kleiner machen & mittig setzen */
    .title-text {
        text-align: center;
    }

    /* Club-Titel optimieren */
    .club-title {
        font-size: 5.3vw;
        font-weight: bold;
        margin: 0;
        line-height: 1.2;
    }

    /* Untertitel in gotischer Schrift */
    .subtitle {
        font-size: 4.5vw;
        font-family: 'UnifrakturMaguntia', cursive;
        color: rgba(152, 196, 53, 1);
        transform: translateY(-0.15em);
    }

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }


    nav ul li a {
        text-decoration: none;
        color: white;
        /*font-size: 5vw; !* Etwas größere Schrift für bessere Lesbarkeit *!*/
        font-weight: bold;
        transition: color 0.3s;
    }

    nav ul li a:hover {
        color: #a3d9b2;
    }

    /* Navigation feintunen */
    .nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2px;
        text-align: center;
    }

    nav ul li {
        width: auto;
        text-align: -webkit-match-parent;
    }


    /* Navigation im mobilen Header untereinander */
    nav {
        width: 100%;
        margin-top: 10px;
    }
}