

/* Header */
.site-header {
    background-color: var(--petrol);
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    /*position: fixed;*/
    top: 0;
    left: 0;
    z-index: 1000;
    color: white;
    transition: height 1s ease;
}

/* Inneres Layout */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    /*gap: 0.8rem;*/
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background-color: transparent; /* sicherstellen */
    will-change: transform; /* Repaint optimieren */
    user-select:none;
    transition: 1s ease;
}

.logo-text {
    font-size: 5em;
    color: var(--white);
    font-weight: 300;
    font-family: 'Segoe UI', sans-serif;
    margin-left: -37px;
    z-index: 2;
    user-select:none;
    transition: 1s ease;
}

/* Menü */
.main-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 20px;
}

.menu-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateY(-15px);
}

.menu-list li {
    padding: 0; /* kein Innenabstand mehr hier */
    border-radius: 1px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.menu-list li a {
    display: flex;
    padding: 0.7rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    z-index: 2;
    transition: background 0.3s ease;
}

.menu-list li a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--glass-gradient);
    pointer-events: none;
    z-index: 1;
}

.menu-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: 0.5s;
}

.menu-list li a:hover {
    background: var(--glass-hover);
}

/* Mobil */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    margin-left: auto;
    user-select: none;
}

@media (max-width: 768px) {
    
    .logo-area {
        display: flex;
        align-items: center;
        margin-left:-30px;
    }
    .main-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-bottom: 0px;
        margin-right:-10px;
    }
    
    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        position: relative;
    }
    
    .menu-list {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--petrol);
        overflow: hidden;
        padding: 0 1rem;
        border-radius: 1px;
        transform: none;
        z-index: 1001;

        max-height: 0;
        transition: max-height 0.5s ease, padding 0.3s ease;
    }

    .menu-list.active {
        max-height: 500px;
        padding: 1rem;
    }

    /* Alle Listenelemente initial unsichtbar */
    .menu-list li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Sichtbar machen */
    .menu-list li.fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    .logo-img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        background-color: transparent; /* sicherstellen */
        will-change: transform; /* Repaint optimieren */
    }

    .logo-text {
        font-size: 2.5em;
        color: var(--white);
        font-weight: 300;
        font-family: 'Segoe UI', sans-serif;
        margin-left: -18px;
    }
    /* Header */
    .site-header {
        background-color: var(--petrol);
        height: 80px;
        width: 100%;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        /*position: fixed;*/
        top: 0;
        left: 0;
        z-index: 1000;
        transition: 1s;
    }
}
