/* Header Basis Setup */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
    padding: 20px 0;
    background: transparent;
    color: #ffffff;
}

/* Container & Flexbox */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Section: Logo & Location */
.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-link {
    display: block;
    height: 40px; /* Anpassen je nach Logo-Größe */
}

.logo {
    height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-black { display: none; }

.header-location {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Navigation */
.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    position: relative;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

/* Die "Eingekreist" Animation (Pill-Style) */
.nav-list a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-orange-600);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-list a:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateX(5px);
}

/* --- SCROLLED STATE --- */
.main-header.scrolled {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    color: #1e1e1e;
}

.main-header.scrolled .logo-white { display: none; }
.main-header.scrolled .logo-black { display: block; }

/* Mobile Anpassung */
@media (max-width: 1024px) {
    .header-nav, .header-location { display: none; }
    .header-container { padding: 0 20px; }
}