/* =========================================
   Header – Matmoe Modern
   DSGVO-safe: no external fonts/icons
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;

    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);

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

body {
    padding-top: 92px;
}

@media (max-width: 980px) {
    body {
        padding-top: 82px;
    }
}

/* =========================================
   Blur nur Desktop / kompatible Geräte
   ========================================= */

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
    .site-header {
        background: rgba(5, 5, 5, 0.82);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
}

@media (max-width: 980px) {
    .site-header {
        background: rgba(5, 5, 5, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* =========================================
   Layout
   ========================================= */

.site-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Logo */

.site-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo-wrap .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    box-shadow:
        0 12px 34px rgba(0,0,0,0.28),
        0 0 34px rgba(144,192,39,0.10);
    line-height: 0;
}

.site-logo-wrap img,
.site-logo-wrap .custom-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 60px;
    object-fit: contain;
}

.site-logo-text {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 850;
}

/* Desktop Navigation */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--matmoe-primary);
    transition: width 0.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
    color: #ffffff;
}

.main-menu a:hover::after,
.main-menu .current-menu-item > a::after {
    width: 100%;
}

/* CTA */

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--matmoe-primary);
    color: #101010;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(144,192,39,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(144,192,39,0.38);
}

/* =========================================
   Mobile Toggle
   ========================================= */

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

/* =========================================
   Mobile Overlay + Panel
   ========================================= */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;

    width: min(88vw, 380px);
    max-width: 380px;
    height: 100dvh;
    min-height: 100vh;

    background:
        radial-gradient(circle at top right, rgba(144,192,39,0.14), transparent 36%),
        linear-gradient(180deg, #10120e 0%, #050505 100%);

    border-left: 1px solid rgba(255,255,255,0.10);
    box-shadow: -30px 0 80px rgba(0,0,0,0.45);

    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease;
    will-change: transform;
}

.mobile-menu-panel-inner {
    height: 100%;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.mobile-menu-head span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-menu-close {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
}

.mobile-menu-close span {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav {
    margin-bottom: 28px;
}

.mobile-menu-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-list li {
    margin: 0;
    padding: 0;
}

.mobile-menu-list a {
    display: flex;
    padding: 15px 0;
    color: rgba(255,255,255,0.82);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
    color: var(--matmoe-primary);
}

.mobile-menu-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--matmoe-primary);
    color: #101010;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(144,192,39,0.32);
}

/* =========================================
   Open State
   ========================================= */

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
    transform: translate3d(0, 0, 0);
}

/* =========================================
   Sticky Scroll Effekt
   ========================================= */

.site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.site-header.is-scrolled .site-header-inner {
    padding: 12px 24px;
}

.site-header.is-scrolled .site-logo-wrap .custom-logo-link {
    padding: 6px 12px;
}

.site-header.is-scrolled .site-logo-wrap img {
    max-height: 48px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 980px) {

    .site-header-inner {
        padding: 14px 20px;
        gap: 16px;
    }

    .site-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-logo-wrap .custom-logo-link {
        padding: 8px 14px;
        border-radius: 15px;
    }

    .site-logo-wrap img,
    .site-logo-wrap .custom-logo {
        max-width: 160px;
        max-height: 52px;
    }

    .site-header.is-scrolled {
        background: rgba(5, 5, 5, 0.96);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .site-header.is-scrolled .site-header-inner {
        padding: 14px 20px;
    }

    .site-header.is-scrolled .site-logo-wrap .custom-logo-link {
        padding: 8px 14px;
    }

    .site-header.is-scrolled .site-logo-wrap img {
        max-height: 52px;
    }
}

@media (max-width: 600px) {

    body {
        padding-top: 76px;
    }

    .site-header-inner {
        padding: 12px 16px;
    }

    .site-logo-wrap img,
    .site-logo-wrap .custom-logo {
        max-width: 140px;
        max-height: 46px;
    }

    .mobile-menu-panel {
        width: 88vw;
        max-width: 360px;
    }

    .mobile-menu-panel-inner {
        padding: 22px;
    }

    .mobile-menu-list a {
        font-size: 20px;
    }
}