/* ===== BURGER-MENÜ (für alle Seiten) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease; /* Geändert: all für Shrink-Effekt */
    padding: 15px 0; /* Mehr Padding für elegantes Aussehen */
    min-height: 60px; /* Mindesthöhe für bessere Zentrierung */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo-Stile */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color, #333);
    text-decoration: none;
}

/* Quadratisches Logo für Subpages */
body:not(.index-header) .logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Burger-Menü-Stile */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 25px;
    height: 2px; /* Geändert: 2px für elegantere Linien */
    background-color: var(--primary-color, #333);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Navigationsliste */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* Abstand zwischen den Links */
}

.nav-list li {
    margin: 0; /* Geändert: Kein margin-left mehr, da gap verwendet wird */
}

.nav-list a {
    text-decoration: none;
    color: var(--primary-color, #333);
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding: 5px 0;
}

/* Hover-Effekt für Navigationslinks */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #007acc);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE DESIGN (Burger-Menü für Mobile) ===== */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 20px;
        backdrop-filter: blur(5px);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        margin: 15px 0;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 10px 20px;
        border-radius: 5px;
        width: 80%;
    }

    .nav-list a {
        color: #fff;
        font-size: 1.2rem;
    }

    .nav-list a:hover {
        color: var(--accent-color, #007acc);
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ===== INDEX-SEITE (Header mit Hero-Bild) ===== */
body.index-header .site-header {
    background-color: transparent;
    box-shadow: none;
    color: #fff;
    padding: 20px 0; /* Mehr Padding für bessere Optik */
}

body.index-header .logo a {
    font-size: 1.8rem; /* Größere Schrift für Index-Seite */
    font-weight: 600;
    color: #fff;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

body.index-header .burger-line {
    background-color: #fff;
    height: 2px; /* Konsistente Linienstärke */
}

/* Transparenter Hintergrund für Menüpunkte auf der Index-Seite */
body.index-header .nav-list li {
/*    background-color: rgba(0, 0, 0, 0.5);*/
}

body.index-header .nav-list a {
    color: #fff;
}

/* ===== SUBPAGES (z. B. kontakt.html, impressum.html) ===== */
body:not(.index-header) .site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body:not(.index-header) .logo a {
    display: none;
}

body:not(.index-header) .burger-line {
    background-color: #333;
    height: 2px;
}

/* Logo auf Subpages */
body:not(.index-header) .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

body:not(.index-header) .logo a {
    display: flex;
    align-items: center;
    padding: 0;
    height: 100%;
}


/* ===== SHRINK-EFFEKT BEIM SCROLLEN (DEZENT) ===== */
.site-header.scrolled {
    padding: 8px 0;          /* Sehr kompakt */
    background-color: rgba(255, 255, 255, 0.98); /* Fast undurchsichtig */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05); /* Sehr leichter Schatten */
    min-height: 45px;        /* Minimale Höhe */
}

.site-header.scrolled .logo a {
    font-size: 1.2rem;       /* Deutlich kleiner */
    letter-spacing: 0.5px;  /* Leichter Buchstabenabstand */
}

.site-header.scrolled .nav-list {
    gap: 20px;              /* Weniger Abstand zwischen Links */
}

.site-header.scrolled .nav-list a {
    font-size: 0.9rem;      /* Kleiner */
}

/* Index-Seite: Transparenter Hintergrund beim Scrollen */
body.index-header .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* Leicht transparent */
    color: #333;            /* Dunkle Schrift für bessere Lesbarkeit */
}

body.index-header .site-header.scrolled .logo a,
body.index-header .site-header.scrolled .nav-list a {
    color: #333;            /* Dunkle Schrift auf hellem Hintergrund */
}

body.index-header .site-header.scrolled .burger-line {
    background-color: #333;
}