@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* BODY */
body {
    padding-top: 72px;
    opacity: 1;
    transition: opacity 80ms ease-out;
}

body.page-leave {
    opacity: 0;
}

/* HEADER */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 72px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    gap: 16px;

    background: rgba(3, 6, 18, 0.94);

    /*Trennlinie*/
    border-bottom: 1px solid rgba(145, 180, 255, 0.16);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    z-index: 9999;
}



/* EINHEITLICHE SCHRIFT IM HEADER */
.top-nav,
.top-nav * {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* HOME-BUTTON LINKS */
.nav-home {
    display: flex;
    align-items: center;
    gap: 11px;

    color: white;
    text-decoration: none;

    margin-right: auto;
}

.nav-home-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(80, 100, 200, 0.2);
    border: 1px solid rgba(200, 220, 255, 0.22);

    color: white;
    font-size: 25px;
    line-height: 1;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.nav-home:hover .nav-home-icon {
    transform: translateY(-2px) scale(1.04);
    background: #3a4f8d;
}

.nav-home-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #eef3ff;
}

/* SUCHLEISTE */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 260px;
}

.search-bar input[type="text"] {
    width: 330px;
    height: 42px;
    padding: 0 17px;

    border-radius: 999px;
    border: 1px solid rgba(150, 180, 255, 0.26);

    background: rgba(255, 255, 255, 0.075);
    color: white;

    outline: none;

    font-size: 14px;
    font-family: inherit;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.search-bar input[type="text"]::placeholder {
    color: rgba(220, 230, 255, 0.45);
}

.search-bar input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.105);
    border-color: rgba(170, 200, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(105, 135, 255, 0.14);
}

/* SUCH-BUTTON */
.search-bar button {
    width: 92px;
    height: 42px;
    padding: 0;

    border-radius: 999px;
    border: 1px solid rgba(170, 200, 255, 0.26);

    background-color: rgba(80, 100, 200, 0.2);
    color: white;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.search-bar button:hover {
    background-color: #263864;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(80, 110, 210, 0.32);
}

/* BURGER-MENÜ */
.burger-menu {
    position: relative;
}
/*Entfernt Standart List Style vom Burger Menü*/
.burger-menu summary {
    list-style: none;
}

.burger-menu summary::-webkit-details-marker {
    display: none;
}

.burger-button {
    width: 46px;
    height: 46px;
    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(160, 190, 255, 0.26);
    background: rgba(80, 100, 200, 0.2);

    color: white;
    cursor: pointer;

    font-size: 24px;
    line-height: 1;

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.burger-button:hover {
    transform: translateY(-1px);
    background: rgba(100, 130, 255, 0.22);
}

.burger-menu[open] .burger-button {
    background: rgba(95, 120, 255, 0.34);
    box-shadow: 0 0 25px rgba(105, 135, 255, 0.35);
}

/* BURGER-DROPDOWN */
.burger-dropdown {
    position: absolute;
    top: 58px;
    right: 0;

    min-width: 235px;
    padding: 9px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    border-radius: 20px;
    border: 1px solid rgba(160, 190, 255, 0.2);

    background: rgba(8, 13, 35, 0.97);

    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.58);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.burger-dropdown a {
    padding: 13px 14px;

    border-radius: 13px;

    color: #e8eeff;
    text-decoration: none;

    font-size: 14px;
    font-family: inherit;

    transition:
        background 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease;
}

.burger-dropdown a:hover {
    background: rgba(105, 135, 255, 0.18);
    transform: translateX(4px);
    color: white;
}

/* RESPONSIVE HEADER */
@media (max-width: 760px) {
    body {
        padding-top: 72px;
    }

    .top-nav {
        height: 72px;
        padding: 0 12px;
        gap: 10px;
    }

    .nav-home-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .nav-home-text {
        display: none;
    }

    .search-bar {
        flex: 1;
        min-width: 0;
    }

    /*Macht Search Bar 100% */
    .search-bar input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .search-bar button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;

        font-size: 0;
    }

    .search-bar button::after {
        content: "⌕";
        font-size: 20px;
        line-height: 1;
    }

    .burger-button {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .burger-dropdown {
        right: 0;
        width: min(265px, 88vw);
    }
}