/* Navigation */

.nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background-color: var(--st-background);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 20px;
    margin: 20px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid 1px var(--hover-background);
    margin: 20px 10%;
}

.nav .logo-link img {
    width: 80px;
    transform: translateY(3px);
    transition: .2s ease;
    position: relative;
    margin-right: 180px;
}

.nav .logo-link img:hover {
    transform: translateY(3px) scale(0.98);
    filter: brightness(0.7);
}

.nav .menu .links a {
    margin: 0 5px;
    transition: .2s ease;
    position: relative;
    font-size: 16px;
}

.nav .menu .links a:hover {
    background-color: var(--hover-background);
    border-radius: 25px;
    margin: 5px 10px;
    padding: 5px 10px;
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .nav {
        margin: 20px 5%;
    }

    .nav .logo-link img {
        width: 70px;
        margin-right: 100px;
    }

    .nav .menu .links a {
        font-size: 15px;
        margin: 0 3px;
    }

    .nav .scnd-menu .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .nav {
        margin: 16px 4%;
    }

    .nav .logo-link img {
        margin-right: 60px;
    }

    .nav .menu .links a {
        font-size: 14px;
    }
}

/* Burger Button (mobil) */
.burger {
    display: none; /* nur mobil anzeigen */
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--hover-background);
    background: var(--st-background);
    backdrop-filter: blur(10px);
    cursor: pointer;
    outline: none;
    transition: transform .2s ease;
}
.burger:hover { transform: scale(0.98); }
.burger:active { transform: scale(0.96); }

.burger .burger-box { 
    position: absolute; inset: 0; 
    display: grid; place-items: center;
}
.burger .line {
    position: relative;
    width: 22px; height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .2s ease, width .4s cubic-bezier(.2,.8,.2,1);
}
.burger .line-1 { transform: translateY(6px); }
.burger .line-2 { transform: translateY(0); }
.burger .line-3 { transform: translateY(-6px); }

/* Einzigartiger Shine/Glow Effekt */
.burger::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(120px 120px at -20% -20%, #ffffff26, transparent 60%);
    filter: blur(8px);
    opacity: 0;
    transition: opacity .3s ease;
}
.burger.is-active::after { opacity: 1; animation: glowSweep 1.2s ease; }
@keyframes glowSweep {
    0% { background-position: -100% 0; opacity: 0; }
    30% { opacity: 1; }
    100% { background-position: 200% 0; opacity: .25; }
}

/* Morph zur X-Form mit federnder Bewegung */
.burger.is-active .line-1 { transform: translateY(13px) rotate(45deg); width: 22px; }
.burger.is-active .line-2 { opacity: 0; width: 0; }
.burger.is-active .line-3 { transform: translateY(-13px) rotate(-45deg); width: 22px; }

/* Mobile Overlay Menü mit Clip-Path-Reveal (kreisförmig vom Button) */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 900; /* unter der Nav, aber über Inhalt */
    background: color-mix(in srgb, var(--secondary-color) 88%, #000 12%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    clip-path: circle(0px at calc(100% - 12vw) 70px);
    transition: clip-path .6s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
    opacity: 0;
}
.mobile-menu.is-open {
    clip-path: circle(150% at calc(100% - 12vw) 70px);
    opacity: 1;
}
.mobile-menu .mobile-menu__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}
.mobile-menu .links a {
    display: block;
    font-size: 22px;
    padding: 10px 16px;
    margin: 6px 0;
    transition: transform .2s ease, color .2s ease;
}
.mobile-menu .links a:hover { transform: translateY(-2px); color: #e6e6e6; }
.mobile-menu .cta { margin-top: 12px; display: flex; gap: 12px; }

/* Responsive Regeln */
@media (max-width: 900px) {
    .nav { 
        margin: 14px 4vw; 
        padding: 12px 14px;
        border-radius: 50px;
    }
    .nav .logo-link img {
        width: 60px;
        margin-right: 0;
    }
    .nav .menu, .nav .scnd-menu { display: none; }
    .burger { display: inline-block; }
}

@media (max-width: 480px) {
    .nav {
        margin: 12px 3vw;
        padding: 10px 12px;
    }
    .nav .logo-link img {
        width: 50px;
    }
    .burger {
        width: 40px;
        height: 40px;
    }
    .burger .line {
        width: 20px;
    }
}

/* Desktop: Overlay nie sichtbar lassen */
@media (min-width: 901px) {
    .mobile-menu { display: none !important; }
}


/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background-image: url("../../images/hero/background/hero-background.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: right;
    padding: 0 3vw;
    position: relative; /* für absolute Positionierung der Scroll-Maus */
}

.hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

/* Scroll-Maus im Hero mittig unten platzieren */
.hero .scroll-icon {
    position: absolute;
    left: 50%;
    bottom: clamp(14px, 3.5vh, 40px);
    transform: translateX(-50%);
    z-index: 2;
}

.hero .hero-content .inh {
    background-color: var(--st-background);
    font-size: 15px;
    width: fit-content;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 25px;
    align-self: flex-end;
    margin-left: auto;
    backdrop-filter: blur(10px);
}

.hero .hero-content .hero-logo {
    width: 42vw;
    max-width: 600px;
}

.hero-content p {
    max-width: 42vw;
    font-size: 18px;
    line-height: 1.2;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
    }

    .hero .hero-content .hero-logo {
        width: 50vw;
    }

    .hero-content p {
        max-width: 50vw;
        font-size: 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        align-items: center;
        text-align: center;
        background-attachment: scroll;
    }

    .hero .hero-content .inh {
        align-self: center;
        margin-left: 0;
    }

    .hero .hero-content {
        align-items: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero .hero-content .inh {
        font-size: 14px;
    }

    .hero .hero-content .hero-logo {
        width: 70vw;
        max-width: 400px;
    }

    .hero-content p {
        max-width: 80vw;
        font-size: 15px;
    }

    .hero-content .btn {
        font-size: 15px;
        padding: 12px 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        height: 400px;
        max-height: 400px;
        padding: 6vh 4vw 0 4vw;
    }

    .hero .hero-content .hero-logo {
        width: 80vw;
    }

    .hero-content p {
        max-width: 90vw;
        font-size: 14px;
    }
}