/* Grundlegende Reset-Stile für Konsistenz */
*, *::before, *::after {
    box-sizing: border-box; /* Sicherstellen, dass Padding und Border zur Breite/Höhe gehören */
    margin: 0;
    padding: 0;
}

/* Globale Variablen */
:root {
  --white: #ffffff;
  --dark: #1a1a1a;
  --light: #f0f0f0;
  --orange: #f8a800;
  --taqlay-dark-blue: #141a2e; /* Beispiel: Dein gewünschtes Dunkelblau. Bitte anpassen! */
}

/* --- Allgemeine Navbar-Stile --- */
.taqlay-navbar {
    background-color: var(--taqlay-dark-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    position: relative;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
}

.taqlay-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-combo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-x {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(248, 168, 0, 0.7);
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-burger:hover {
    color: var(--orange);
}

.taqlay-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.taqlay-nav-links li {
    position: relative;
}

.taqlay-nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

/* Unterstrich-Effekt für Hauptlinks */
.taqlay-nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.taqlay-nav-links li a:hover {
    color: var(--orange);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.taqlay-nav-links li a:hover::after {
    width: 100%;
}

/* Pfeil-Styling bei Hauptlinks */
.taqlay-nav-links .dropbtn i {
    margin-left: 10px;
    font-size: 0.7em;
    transform: rotate(0deg);
    transition: transform 0.3s ease, color 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

/* Pfeil-Drehung und Farbe beim Hover des Hauptlinks (Desktop) */
/* Die .active Klasse wird nur für Mobile von JS gesetzt, auf Desktop übernimmt CSS den Hover */
.dropdown:hover .dropbtn i,
.dropdown.active .dropbtn i { /* .active hier für mobile Pfeil-Rotation */
    transform: rotate(180deg);
    color: var(--orange);
}


/* --- Desktop Dropdown-Inhalt Stile --- */
.dropdown-content {
    /* Standardmäßig versteckt, wird auf Desktop per CSS-Hover gezeigt */
    display: none; 
    position: absolute;
    background-color: var(--taqlay-dark-blue);
    min-width: 200px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    z-index: 1001;
    border-radius: 8px;
    padding: 0;
    top: 100%;
    margin-top: -3px; /* Überlappung zum Schließen des Spalts */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

/* WICHTIG: Desktop Hover-Effekt (reines CSS) */
@media (min-width: 769px) { /* Nur auf Desktop-Größen aktiv */
    .dropdown:hover .dropdown-content {
        display: block; 
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}


/* Styling für ALLE direkten Textlinks im Dropdown (Desktop) */
.dropdown-content > .dropdown-link { 
    color: #ddd;
    padding: 12px 25px !important; /* Vertikal 12px, Horizontal 25px für Grundabstand */
    text-decoration: none;
    display: block;
    text-align: left !important; 
    font-weight: normal;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Hover-Effekt (Einrückung) NUR für Textlinks (Desktop) */
.dropdown-content > .dropdown-link:hover {
    background-color: #3a3a3a;
    color: var(--orange);
    padding-left: 30px !important; 
}

/* --- Social Icons im Dropdown (Desktop) --- */
.social-icons-dropdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 5px;
    gap: 20px;
    box-sizing: border-box;
}

.social-icons-dropdown a {
    color: #bbb;
    font-size: 1.8rem;
    transition: color 0.3s ease;
    padding: 0 !important;
    text-decoration: none;
    background-color: transparent;
    display: inline-block;
    transform: none !important;
}

.social-icons-dropdown a::after {
    display: none !important;
}

.social-icons-dropdown a:hover {
    color: var(--orange);
    background-color: transparent;
    transform: none !important;
}


/* --- Responsive Anpassungen (Mobile Styles) --- */
@media (max-width: 768px) {
    .nav-burger {
        display: block;
    }

    .taqlay-nav-links {
        flex-direction: column;
        width: 100%;
        background-color: var(--taqlay-dark-blue);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none; 
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Zeigt das mobile Navigationsmenü, wenn der Burger-Toggle aktiv ist */
    .nav-toggle:checked ~ .taqlay-nav-links {
        display: flex;
    }

    .taqlay-nav-links li {
        width: 100%;
    }

    .taqlay-nav-links li a {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .taqlay-nav-links li:last-child a {
        border-bottom: none;
    }

    .taqlay-nav-links li a::after {
        display: none;
    }

    /* Mobile Dropdown-Inhalt */
    .dropdown-content {
        position: static; /* Statisch im mobilen Menüfluss */
        box-shadow: none;
        background-color: var(--taqlay-dark-blue);
        width: 100%; /* Stelle sicher, dass es 100% Breite hat */
        min-width: unset; 
        border-radius: 0;
        padding: 0; 
        margin-top: 0;
        opacity: 1; 
        visibility: visible; 
        transform: none;
        border: none;
        max-height: 0; /* Standardmäßig versteckt, wird von JS auf scrollHeight gesetzt */
        overflow: hidden; /* Sicherstellen, dass Überlauf verborgen ist */
        transition: max-height 0.3s ease-out; 
        display: block; /* WICHTIG: Muss auf 'block' sein, damit max-height funktioniert */
    }

    /* Zeigt das Dropdown an, wenn die JS-Klasse 'active' gesetzt ist */
    .dropdown.active .dropdown-content {
        transition: max-height 0.5s ease-in; 
    }

    /* Spezifische Regel für normale Textlinks im Dropdown auf Mobil */
    .dropdown-content > .dropdown-link { 
        padding: 10px 30px !important; /* Vertikal 10px, Horizontal 30px Padding auf Mobil */
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        text-align: left !important; 
        white-space: normal; 
        box-sizing: border-box; 
        min-width: 100px; 
        width: auto; 
    }
    .dropdown-content > .dropdown-link:last-child {
        border-bottom: none;
    }
    .dropdown-content > .dropdown-link:hover {
        padding-left: 30px !important; 
        background-color: #3a3a3a;
        color: var(--orange);
    }

    .social-icons-dropdown {
        padding: 10px 30px !important; 
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 5px;
        box-sizing: border-box;
    }

    .social-icons-dropdown a {
        font-size: 1.6rem;
        transform: none !important;
        transition: color 0.3s ease;
    }
    .social-icons-dropdown a:hover {
        background-color: transparent;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 35px;
    }
    .logo-x {
        font-size: 1.3rem;
    }
    .taqlay-container {
        padding: 0 1rem;
    }
    .taqlay-nav-links li a {
        font-size: 1rem;
    }
    .dropdown-content > .dropdown-link { 
        font-size: 0.9rem;
    }
    .social-icons-dropdown a {
        font-size: 1.4rem;
    }
}