/* =========================================
   CUSTOM.CSS
   Historische Gramps-Navigation
   Finale Version
   ========================================= */


/* =========================================
   NAVIGATIONSBEREICH
   ========================================= */

.wrappernav {

    background:
        rgba(255,248,220,0.94);

    backdrop-filter:
        blur(3px);

    border-top:
        1px solid rgba(120,90,40,0.18);

    border-bottom:
        1px solid rgba(120,90,40,0.22);

    box-shadow:
        0 3px 12px rgba(0,0,0,0.10);

    position: sticky;
    top: 0;
    z-index: 999;

    margin-top: -6px;
}


/* Sanfte Trennlinie */

.wrappernav::after {

    content: "";

    display: block;

    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(120,90,40,0.22),
            transparent
        );
}


/* =========================================
   MENÜ
   ========================================= */

#dropmenu {

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 10px;

    list-style: none;

    margin: 0;
    padding: 10px 14px;
}


/* Menüeinträge */

#dropmenu li {

    margin: 0;
    padding: 0;
}


/* =========================================
   LINKS
   ========================================= */

#dropmenu li a {

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.16);

    color:
        #4b3621;

    text-decoration: none;

    font-size: 1.05rem;
    font-weight: 700;

    font-family:
        "Cormorant Garamond",
        "Libre Baskerville",
        serif;

    letter-spacing: 0.3px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================
   HOVER
   ========================================= */

#dropmenu li a:hover {

    background:
        rgba(139,94,52,0.24);

    color:
        #5a3f24;

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 10px rgba(0,0,0,0.14);
}


/* =========================================
   AKTIVE SEITE
   ========================================= */

#dropmenu .CurrentSection a {

    background:
        rgba(139,94,52,0.20);

    color:
        #8b5e34;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.10);

    border:
        1px dashed rgba(120,90,40,0.30);
}


/* =========================================
   SVG ICONS
   ========================================= */

.navicon {

    width: 20px !important;
    height: 20px !important;

    min-width: 20px;

    display: inline-block;

    vertical-align: middle;

    margin-right: 4px;

    filter:
        brightness(0)
        saturate(100%)
        invert(20%)
        sepia(29%)
        saturate(643%)
        hue-rotate(352deg)
        brightness(95%)
        contrast(88%);
}


/* =========================================
   MOBILE BUTTON
   ========================================= */

.navIcon {

    display: none;

    background:
        rgba(139,94,52,0.15);

    color:
        #4b3621;

    border:
        1px solid rgba(120,90,40,0.20);

    border-radius: 10px;

    padding: 10px 14px;

    margin: 10px;

    font-size: 1.2rem;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.navIcon:hover {

    background:
        rgba(139,94,52,0.25);

    transform:
        translateY(-1px);
}


/* =========================================
   MOBILE NAVIGATION
   ========================================= */

@media screen and (max-width: 768px) {

    .navIcon {
        display: block;
    }

    #dropmenu {

        display: none;

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        padding: 10px;
    }

    #dropmenu.responsive {
        display: flex;
    }

    #dropmenu li a {

        justify-content: center;

        font-size: 1.05rem;

        padding: 14px;
    }
}

/* =========================================
   HEADERBILD ZENTRIEREN
   ========================================= */

#header {

    text-align: center;

    padding-top: 10px;
}


#SeiteOben {

    display: block;

    width: 100%;
    max-width: 1100px;

    height: auto;

    margin-left: auto;
    margin-right: auto;
}