/* =========================================================
   HEADER - SITE HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    z-index: 1000;

    display: flex;
    align-items: center;

    background: rgba(8,12,9,0.72);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.4s ease,
        background 0.3s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}
#header-placeholder {
    width: 100%;
}
/* =========================================================
   LOGO + AKTUELLE SEITE
========================================================= */

.header-brand {

    display: flex;

    align-items: center;

    gap: 22px;

    min-width: 0;
}


.current-page {

    position: relative;

    display: flex;

    align-items: center;

    padding-left: 22px;

    color:
        rgba(255,255,255,0.48);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    white-space: nowrap;
}


.current-page::before {

    content: "";

    position: absolute;

    left: 0;

    width: 1px;

    height: 22px;

    background:
        rgba(166,198,106,0.35);
}


.current-page::after {

    content: "";

    width: 5px;

    height: 5px;

    margin-left: 10px;

    border-radius: 50%;

    background:
        var(--lime);
}

/* =========================================================
   HEADER INNER
========================================================= */

.header-inner {

    width:
        min(92%, var(--max-width));

    max-width:
        var(--max-width);

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    box-sizing:
        border-box;
}


/* =========================================================
   HEADER LOGO
========================================================= */

.header-inner .logo {

    flex-shrink:
        0;
}


/* =========================================================
   NAVIGATION
========================================================= */

.header-inner .main-nav {

    margin-left:
        auto;
}




/* =========================================================
   LOGO
========================================================= */

.logo {

    display: flex;
    align-items: center;

    gap: 12px;

    font-weight: 800;
    letter-spacing: 2px;

    font-size: 18px;
}

.logo-symbol {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--lime),
            var(--green-light)
        );

    color: #101510;

    font-weight: 900;

    box-shadow:
        0 0 25px rgba(166,198,106,0.18);
}


/* =========================================================
   NAVIGATION – BASIS
========================================================= */

.main-nav {

    display: flex;
    align-items: center;
}

.main-nav > ul {

    display: flex;
    align-items: center;

    gap: 34px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-nav li {

    position: relative;

    list-style: none;
}


/* =========================================================
   HAUPT-NAVIGATION
========================================================= */

.main-nav > ul > li > a,
.dropdown-toggle {

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 8px 0;

    background: transparent;

    color: #dce1d8;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.main-nav > ul > li > a:hover,
.dropdown-toggle:hover {
    color: var(--lime);
}


/* =========================================================
   HOVER-LINIE
========================================================= */

.main-nav > ul > li > a::after,
.dropdown-toggle::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--lime),
            rgba(166,198,106,0)
        );

    transition:
        width 0.35s
        cubic-bezier(.22,1,.36,1);
}

.main-nav > ul > li > a:hover::after,
.dropdown-toggle:hover::after {
    width: 100%;
}


/* =========================================================
   DROPDOWN-PFEIL
========================================================= */

.dropdown-arrow {

    display: inline-block;

    color: var(--lime);

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.3s ease;
}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {

    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: 230px;

    margin: 0;
    padding: 10px;

    display: flex;
    flex-direction: column;

    gap: 3px;

    list-style: none;

    background:
        rgba(9,13,10,0.98);

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius: 16px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,0.40);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 1100;
}


/* =========================================================
   UNSICHTBARE BRÜCKE
   Verhindert, dass das Dropdown beim
   Hinunterfahren mit der Maus schließt.
========================================================= */

.dropdown-menu::before {

    content: "";

    position: absolute;

    top: -10px;
    left: 0;

    width: 100%;
    height: 10px;

    background: transparent;
}


/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

@media (min-width: 801px) {

    .has-dropdown:hover > .dropdown-menu,
    .has-dropdown:focus-within > .dropdown-menu {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateX(-50%)
            translateY(0);
    }

    .has-dropdown:hover .dropdown-arrow,
    .has-dropdown:focus-within .dropdown-arrow {

        transform:
            rotate(180deg);
    }
}


/* =========================================================
   DROPDOWN-LINKS
========================================================= */

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 44px;

    padding: 10px 14px;

    border-radius: 10px;

    color: #cfd5cc;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


/* Keine Hover-Linie bei Dropdown-Links */

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {

    background:
        rgba(166,198,106,0.10);

    color: var(--lime);

    transform:
        translateX(4px);
}


/* =========================================================
   KONTAKT-BUTTON
========================================================= */

.header-button {
    padding: 11px 20px !important;
    min-height: 42px !important;
    border-radius: 100px;

    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #576157 !important;

    font-weight: 800 !important;

    border: 1px solid rgba(245, 245, 245, 0.15);

    box-shadow: 0 6px 20px rgba(166, 198, 106, 0.14);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.header-button:hover {
    background: #ffffffa2;
    background-color: #fffffffc;

    color: #101510 ;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(166, 198, 106, 0.25);
}

.header-button::after {
    display: none !important;
}

/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle {

    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    background: transparent;

    position: relative;

    z-index: 1101;
}

.menu-toggle span {

    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   RESPONSIVE – TABLET
========================================================= */


/* =========================================================
   RESPONSIVE – TABLET
========================================================= */

@media (max-width: 1050px) {

    .cards-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .intro-grid {

        gap:
            50px;
    }

}




/* =========================================================
   RESPONSIVE – MOBILE
========================================================= */

@media (max-width: 800px) {

    .header-brand {

        gap: 14px;
    }


    .current-page {

        padding-left: 14px;

        font-size: 9px;

        letter-spacing: 0.08em;
    }


    .current-page::before {

        height: 18px;
    }


    .current-page::after {

        width: 4px;

        height: 4px;

        margin-left: 7px;
    }
    /* =====================================================
       HEADER
    ====================================================== */

    .site-header {
        height:
            72px;
    }


    /* =====================================================
       HAMBURGER
    ====================================================== */

    .menu-toggle {

        display:
            block;

        width:
            44px;

        height:
            44px;

        padding:
            0;

        background:
            transparent;

        position:
            relative;

        z-index:
            1101;
    }


    .menu-toggle span {

        display:
            block;

        width:
            25px;

        height:
            2px;

        margin:
            5px auto;

        background:
            #ffffff;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }


    /* =====================================================
       MOBILE NAV
    ====================================================== */

    .main-nav {

        position:
            fixed;

        top:
            72px;

        right:
            0;

        width:
            min(88%, 360px);

        height:
            calc(100vh - 72px);

        padding:
            30px;

        display:
            block;

        background:
            rgba(9,13,10,0.98);

        backdrop-filter:
            blur(20px);

        -webkit-backdrop-filter:
            blur(20px);

        border-left:
            1px solid
            rgba(255,255,255,0.08);

        overflow-y:
            auto;

        transform:
            translateX(100%);

        transition:
            transform 0.4s
            cubic-bezier(.22,1,.36,1);

        z-index:
            1100;
    }


    .main-nav.open {

        transform:
            translateX(0);
    }


    /* =====================================================
       MOBILE HAUPT-UL
    ====================================================== */

    .main-nav > ul {

        width:
            100%;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            6px;

        margin:
            0;

        padding:
            0;

        list-style:
            none;
    }


    .main-nav > ul > li {
        width:
            100%;
    }


    /* =====================================================
       MOBILE HAUPTLINKS
    ====================================================== */

    .main-nav > ul > li > a,
    .dropdown-toggle {

        width:
            100%;

        min-height:
            52px;

        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;

        padding:
            14px 5px;

        color:
            #f2f3ed;

        font-size:
            18px;

        border-bottom:
            1px solid
            rgba(255,255,255,0.07);
    }


    /* Keine Hover-Linie im mobilen Menü */

    .main-nav > ul > li > a::after,
    .dropdown-toggle::after {

        display:
            none;
    }


    /* =====================================================
       MOBILE DROPDOWN
    ====================================================== */

    .dropdown-menu {

        position:
            static;

        width:
            100%;

        max-height:
            0;

        padding:
            0 0 0 15px;

        margin:
            0;

        display:
            flex;

        flex-direction:
            column;

        gap:
            2px;

        overflow:
            hidden;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            none;

        transform:
            none;

        background:
            transparent;

        border:
            none;

        border-radius:
            0;

        box-shadow:
            none;

        backdrop-filter:
            none;

        -webkit-backdrop-filter:
            none;

        transition:
            max-height 0.35s ease,
            padding 0.35s ease;
    }


    .dropdown-menu::before {
        display:
            none;
    }


    /* =====================================================
       GEÖFFNETES DROPDOWN
    ====================================================== */

    .has-dropdown.open > .dropdown-menu {

        max-height:
            300px;

        padding-top:
            6px;

        padding-bottom:
            8px;

        pointer-events:
            auto;
    }


    /* =====================================================
       MOBILE DROPDOWN-LINKS
    ====================================================== */

    .dropdown-menu a {

        width:
            100%;

        min-height:
            44px;

        padding:
            10px 14px;

        color:
            #aeb5aa;

        font-size:
            16px;

        border-left:
            1px solid
            rgba(166,198,106,0.25);

        border-radius:
            0;

        transform:
            none;
    }


    .dropdown-menu a:hover {

        background:
            rgba(166,198,106,0.07);

        color:
            var(--lime);

        transform:
            translateX(3px);
    }


    /* =====================================================
       DROPDOWN-PFEIL
    ====================================================== */

    .has-dropdown.open .dropdown-arrow {

        transform:
            rotate(180deg);
    }


    /* =====================================================
       MOBILE KONTAKT
    ====================================================== */

    .main-nav .header-button {

        justify-content:
            center;

        margin-top:
            18px;

        min-height:
            52px !important;

        border-bottom:
            none !important;
    }


    /* =====================================================
       HAMBURGER → X
    ====================================================== */

    .menu-toggle.active span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {

        opacity:
            0;
    }

    .menu-toggle.active span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);
    }


  }