/* ======================================
   HEADER STYLES
====================================== */

/* Topbar */
.topbar {
    background-color: var(--fuechse-grau);
    height: 60px;
    display: flex;
    align-items: center; 
    padding: 0; /* Gleicher Außenabstand wie navbar */
    justify-content: space-between;
}

.topbar ul {
    list-style: none;
    display: flex;
    gap: 38px; /* von 30px auf 38px erhöht */
}

.topbar ul li a {
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 17px;
    font-family: 'Redzone BlackReg', sans-serif !important;
    transition: color 0.3s ease;
    text-transform: uppercase; /* Fügt Großbuchstaben hinzu */
}

.topbar ul li a:hover {
    color: var(--fuechse-rot);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 31px;
    align-items: center;
    padding-right: 13px;
}

.social-icons a {
    color: var(--text-weiss);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--fuechse-rot);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--fuechse-grau-dunkel);
    height: 95px;
    padding: 0;
    position: relative;
    max-width: 100%;
}

.nav-left {
    position: static; /* Ermöglicht dem Dropdown die volle Breite der navbar */
    width: calc(50% - 100px); /* Abstand zum Logo reduziert */
    justify-content: flex-start; /* Linksbündige Ausrichtung */
    text-align: left; /* Zusätzliche linksbündige Ausrichtung */
    margin-right: auto; /* Drückt das Element nach links */
}

.nav-left.desktop-nav {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-right: auto !important;
}

.nav-left.desktop-nav ul {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.nav-left ul {
    list-style: none;
    display: flex;
    gap: 30px; /* Reduzierter Standardabstand zwischen den Hauptmenüpunkten */
    justify-content: flex-start; /* Linksbündige Ausrichtung der Menüpunkte */
}

/* Responsive Abstände zwischen Hauptmenüpunkten */
@media screen and (min-width: 1600px) {
    .nav-left.desktop-nav ul {
        gap: 35px !important; /* Reduzierter Abstand für sehr breite Bildschirme */
    }
}

@media screen and (max-width: 1444px) and (min-width: 1201px) {
    .nav-left.desktop-nav ul {
        gap: 25px !important; /* Reduzierter Abstand für mittlere Bildschirme */
    }
}

@media screen and (max-width: 1200px) and (min-width: 1025px) {
    .nav-left.desktop-nav ul {
        gap: 20px !important; /* Reduzierter Abstand für kleinere Bildschirme */
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-left.desktop-nav ul {
        gap: 15px !important; /* Sehr kleiner Abstand für Tablets */
    }
}

.nav-left ul li a {
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 24px;
    font-family: 'Redzone MediumReg', sans-serif !important;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
    text-transform: uppercase; /* Fügt Großbuchstaben hinzu */
}

.nav-left ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--fuechse-rot);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-left ul li a:hover {
    color: var(--fuechse-rot);
    transform: translateY(-2px);
}

.nav-left ul li a:hover::after {
    width: 100%;
}

/* Für aktive Menüpunkte den Unterstrich immer anzeigen */
.nav-left ul li.current-menu-item > a::after,
.nav-left ul li.current_page_item > a::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    width: calc(50% - 100px); /* Abstand zum Logo reduziert */
    justify-content: flex-end;
    margin-left: auto; /* Drückt das Element nach rechts */
}

/* Logo - zusammengeführte Styles */
.logo, .custom-logo {
    height: 150px;
    position: absolute;
    top: -77px;  /* Von -105px auf -77px geändert für bessere vertikale Zentrierung */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s ease; /* Fügt einen smooth transition hinzu */
}

.custom-logo-link {
    position: absolute;
    top: -77px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Logo Responsive Anpassungen für bessere Navigation */
@media screen and (max-width: 1200px) {
    .logo, .custom-logo {
        height: 140px;
        top: -72px;
    }
    
    .custom-logo-link {
        top: -72px;
    }
}

@media screen and (max-width: 1100px) {
    .logo, .custom-logo {
        height: 130px;
        top: -67px;
    }
    
    .custom-logo-link {
        top: -67px;
    }
}

@media screen and (max-width: 1000px) {
    .logo, .custom-logo {
        height: 120px;
        top: -62px;
    }
    
    .custom-logo-link {
        top: -62px;
    }
}

@media screen and (max-width: 900px) {
    .logo, .custom-logo {
        height: 110px;
        top: -57px;
    }
    
    .custom-logo-link {
        top: -57px;
    }
}

@media screen and (max-width: 850px) {
    .logo, .custom-logo {
        height: 105px;
        top: -52px;
    }
    
    .custom-logo-link {
        top: -52px;
    }
}

@media screen and (max-width: 800px) {
    .logo, .custom-logo {
        height: 100px;
        top: -50px;
    }
    
    .custom-logo-link {
        top: -50px;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        height: 100px;
        top: -65px;
    }
    
    .navbar {
        height: 70px;
    }

    .topbar {
        height: auto;
        min-height: 30px;
    }

    /* Mobile Navigation */
    .topbar ul,
    .social-icons,
    .social-icons-topbar {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        height: 70px;
        top: -35px;
    }
    
    .navbar {
        height: 55px;
        top: 0;
    }
}

/* Navigation Buttons */
.fanshop, .ticket-shop, .sprade-tv {
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 4px;
    margin-right: 10px;
    font-family: 'Redzone BlackReg', sans-serif !important;
    font-size: 17px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    overflow: visible; /* Änderung von hidden zu visible */
    text-overflow: initial; /* Entfernen von ellipsis */
    flex-shrink: 0; /* Verhindert das Schrumpfen der Buttons */
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fanshop {
    background-color: var(--bg-transparent-dunkel);
    color: var(--text-weiss);
    border: 2px solid var(--fuechse-grau-hell);
}

.fanshop:hover {
    background-color: var(--fuechse-grau-hell);
}

.ticket-shop {
    background-color: var(--bg-transparent-rot);
    color: var(--text-weiss);
    border: 2px solid var(--fuechse-rot);
}

.ticket-shop:hover {
    background-color: var(--fuechse-rot);
}

.sprade-tv {
    background-color: var(--bg-transparent-blau);
    color: var(--text-weiss);
    border: 2px solid var(--sprade-blau);
}

.sprade-tv:hover {
    background-color: var(--sprade-blau);
}

.fa-search {
    color: var(--text-weiss);
    font-size: 18px;
    cursor: pointer;
}

/* Dropdown Menu - Verbesserte Styles */
.dropdown {
    position: relative;
}

/* Überarbeitete Dropdown Styles */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 155px; /* Summe aus topbar (60px) + navbar (95px) */
    background-color: var(--fuechse-grau-dunkel);
    padding: 20px 0;
    width: 100%;
    border-top: 1px solid var(--border-transparent);
    z-index: 999999; /* Höher als WordPress Admin Bar (99999) */
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
    pointer-events: none; /* Verhindert Hover-Effekte auf dem Dropdown selbst */
}

/* WordPress Admin Bar Kompatibilität */
.admin-bar .dropdown-content {
    top: 187px; /* 155px + 32px Admin Bar */
}

/* Verbindungsbereich zwischen Menü und Dropdown - vergrößert für bessere Hover-Stabilität */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* Vergrößert für stabileren Hover */
    left: 0;
    right: 0;
    height: 20px; /* Vergrößert für stabileren Hover */
    background-color: transparent;
    pointer-events: auto; /* Wichtig: Ermöglicht Hover über den Zwischenbereich */
}

/* Hover Effekt für Desktop */
@media screen and (min-width: 769px) {
    .dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Aktiviert Interaktionen wenn sichtbar */
    }

    /* Längere Transition-Verzögerung für stabileren Hover */
    .dropdown-content {
        transition: opacity 0.15s ease 0.1s, visibility 0.15s ease 0.1s;
    }
    
    /* Beim Verlassen des Dropdowns längere Verzögerung */
    .dropdown:not(:hover) .dropdown-content {
        transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
    }
}

.dropdown-content > div {
    width: 85%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex; /* Für bessere Anordnung der Untermenüelemente */
    justify-content: flex-start;
}

.dropdown-content ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    list-style: none;
    flex-wrap: wrap; /* Erlaubt Umbruch bei vielen Menüpunkten */
}

.dropdown-content li {
    display: inline-block;
    margin-bottom: 5px; /* Abstand zwischen den Menüpunkten bei Umbruch */
}

.dropdown-content a {
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 19px !important; 
    font-family: 'Redzone MediumReg', sans-serif !important;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    text-transform: uppercase; /* Fügt Großbuchstaben hinzu */
    padding: 5px 0; /* Verbesserte Klickbarkeit */
    display: block; /* Bessere Touch-Target-Größe */
}

.dropdown-content a:hover {
    color: var(--fuechse-rot);
}

/* Desktop Hover Effekt */
@media screen and (min-width: 769px) {
    .dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        display: flex;
    }
}

/* Mobile Dropdown Styles */
@media screen and (max-width: 768px) {
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        padding: 10px 20px;
        background-color: #2a2a2a;
        border: none;
        display: none; /* Standardmäßig ausgeblendet auf Mobile */
        flex-direction: column;
    }
    
    .dropdown.active .dropdown-content {
        display: block; /* Wird durch JavaScript gesteuert */
    }
    
    .dropdown-content > div {
        width: 100%;
        padding: 0;
    }
    
    .dropdown-content ul {
        flex-direction: column;
        gap: 10px;
        padding-left: 10px !important;
    }
    
    .dropdown-content li {
        margin-bottom: 0;
    }
    
    .dropdown-content a {
        font-size: 16px !important;
        padding: 8px 0;
    }
    
    /* Dropdown Pfeil für Mobile */
    .dropdown > a::after {
        content: '\f107'; /* FontAwesome Pfeil-Icon */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* ======================================
   RESPONSIVE HEADER ANPASSUNGEN
====================================== */

/* Medium screens adjustments */
@media screen and (max-width: 1400px) {
    .nav-left ul {
        gap: 25px; /* Reduzierter Abstand */
    }

    .nav-left ul li a {
        font-size: 22px;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 12px 20px;
        font-size: 16px;
        height: 50px;
        min-width: 140px;
        margin-right: 8px;
    }
    
    /* Container-Anpassungen für bessere Platznutzung */
    .nav-left {
        width: calc(55% - 80px); /* Mehr Platz für Navigation */
    }
    
    .nav-right {
        width: calc(45% - 80px); /* Weniger Platz für Buttons */
    }
}

@media screen and (max-width: 1200px) {
    .nav-left, .nav-right {
        width: calc(50% - 80px);
    }

    .nav-right {
        gap: 8px;
        height: 100%;
        align-items: center;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 15px 20px;
        font-size: 15px;
        height: 50px;
        min-width: 120px;
        margin-right: 5px;
    }    .nav-left ul {
        gap: 15px; /* Reduzierter Abstand zwischen Menüpunkten */
    }

    .nav-left ul li a {
        font-size: 16px;
    }

    .dropdown-content a {
        font-size: 15px !important;
    }
    
    /* Container-Anpassungen für kleinere Bildschirme */
    .nav-left {
        width: calc(60% - 70px); /* Mehr Platz für Navigation */
    }
    
    .nav-right {
        width: calc(40% - 70px); /* Weniger Platz für Buttons */
    }
}

@media screen and (max-width: 1100px) {
    .nav-left ul {
        gap: 12px; /* Noch stärker reduzierter Abstand */
    }

    .nav-left ul li a {
        font-size: 18px;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 12px 16px;
        font-size: 14px;
        height: 46px;
        min-width: 110px;
        margin-right: 4px;
    }
    
    /* Container-Anpassungen */
    .nav-left {
        width: calc(65% - 60px); /* Noch mehr Platz für Navigation */
    }
    
    .nav-right {
        width: calc(35% - 60px); /* Kompaktere Buttons */
    }
}

@media screen and (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
        height: 95px;
    }

    .nav-left, .nav-right {
        width: calc(50% - 70px);
    }

    .nav-right {
        gap: 3px;
        height: 100%;
        align-items: center;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 10px 14px;
        font-size: 13px;
        height: 44px;
        min-width: 100px;
        margin-right: 3px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        flex-shrink: 0;
        overflow: visible;
        width: auto;
    }    .nav-left ul {
        gap: 10px; /* Reduzierter Abstand */
    }

    .nav-left ul li a {
        font-size: 16px;
    }
    
    /* Container-Anpassungen für Tablets */
    .nav-left {
        width: calc(65% - 50px); /* Mehr Platz für Navigation */
    }
    
    .nav-right {
        width: calc(35% - 50px); /* Kompaktere Buttons */
    }
}

@media screen and (max-width: 1000px) {
    .nav-left, .nav-right {
        width: calc(50% - 60px);
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 17px 10px;
        font-size: 13px;
        min-width: 110px;
    }

    .nav-left ul li a {
        font-size: 15px;
    }    .nav-left ul {
        gap: 8px; /* Noch kleinerer Abstand */
    }

    .dropdown-content a {
        font-size: 14px !important;
    }
    
    /* Container-Anpassungen */
    .nav-left {
        width: calc(68% - 45px); /* Maximaler Platz für Navigation */
    }
    
    .nav-right {
        width: calc(32% - 45px); /* Minimaler Platz für Buttons */
    }
}

@media screen and (max-width: 950px) {
    .nav-left, .nav-right {
        width: calc(50% - 50px);
    }

    .nav-right {
        gap: 2px;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 8px 10px;
        font-size: 12px;
        height: 38px;
        min-width: 90px;
        margin-right: 2px;
    }    .nav-left ul {
        gap: 6px; /* Sehr kleiner Abstand */
    }

    .nav-left ul li a {
        font-size: 14px;
    }
    
    /* Container-Anpassungen */
    .nav-left {
        width: calc(70% - 40px); /* Mehr Platz für Navigation */
    }
    
    .nav-right {
        width: calc(30% - 40px); /* Sehr kompakte Buttons */
    }
}

@media screen and (max-width: 900px) {
    .nav-left, .nav-right {
        width: calc(50% - 45px);
    }

    .nav-right {
        gap: 2px;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 6px 8px;
        font-size: 11px;
        height: 35px;
        min-width: 80px;
        margin-right: 1px;
    }    .nav-left ul {
        gap: 5px; /* Minimaler Abstand */
    }

    .nav-left ul li a {
        font-size: 13px;
    }
    
    /* Container-Anpassungen */
    .nav-left {
        width: calc(72% - 35px); /* Maximaler Platz für Navigation */
    }
    
    .nav-right {
        width: calc(28% - 35px); /* Sehr kompakte Buttons */
    }
}

@media screen and (max-width: 850px) {
    .nav-left, .nav-right {
        width: calc(50% - 40px);
    }

    .nav-right {
        gap: 1px;
    }

    .fanshop, .ticket-shop, .sprade-tv {
        padding: 5px 6px;
        font-size: 10px;
        height: 32px;
        min-width: 70px;
        margin-right: 1px;
    }    .nav-left ul {
        gap: 3px; /* Minimaler Abstand */
    }

    .nav-left ul li a {
        font-size: 12px;
    }
    
    /* Container-Anpassungen - letzter Desktop/Tablet Breakpoint */
    .nav-left {
        width: calc(75% - 30px); /* Maximaler Platz für Navigation */
    }
    
    .nav-right {
        width: calc(25% - 30px); /* Minimaler Platz für Buttons */
    }
}

@media screen and (max-width: 1024px) {
    /* Ab 1024px mobile Navigation aktivieren */
    .menu-toggle {
        display: flex !important;
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        margin-left: 15px; /* Kleiner Innenabstand */
    }

    .mobile-ticket {
        display: flex !important;
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 15px;
        font-size: 14px;
        height: 40px;
        min-width: auto;
        align-items: center;
        background-color: var(--bg-transparent-rot);
        color: var(--text-weiss);
        border: 2px solid var(--fuechse-rot);
        border-radius: 4px;
        text-decoration: none;
        font-family: 'Redzone BlackReg', sans-serif !important;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
        transition: all 0.3s ease;
        z-index: 10;
    }

    /* Desktop Navigation komplett ausblenden */
    .nav-left.desktop-nav,
    .nav-right {
        display: none !important;
    }/* Container Anpassungen für mobile Ansicht */
    .navbar .content-container {
        position: relative;
        /* etwas mehr Platz rechts für den Ticket-Button */
        padding-left: 60px; /* Platz für Hamburger links */
    padding-right: 30px; /* noch etwas näher an den rechten Rand */
    }

    /* Logo zentriert zwischen Hamburger und Ticket-Button */
    .logo, .custom-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .custom-logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ======================================
   HAMBURGER MENU BUTTON (GRUNDDEFINITION)
====================================== */

/* Basis-Definition für den Hamburger-Button */
.menu-toggle {
    display: none; /* Standardmäßig versteckt auf Desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-weiss);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Hamburger Animation - X-Form */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======================================
   MOBILE HEADER ADJUSTMENTS
====================================== */

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .topbar {
        padding: 0 20px;
        height: 30px;
    }

    .topbar .content-container {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .topbar ul {
        display: none;
    }

    .social-icons-topbar {
        display: none;
    }

    /* Neue mobile Navigation in der Topbar */
    .topbar-mobile-buttons {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }

    .topbar .fanshop,
    .topbar .ticket-shop,
    .topbar .sprade-tv {
        padding: 8px 15px;
        font-size: 14px;
        height: 40px;
        min-width: auto;
    }

    .navbar {
        height: 70px;
    }

    /* Mobile Anpassung für das Logo */
    .nav-logo {
        height: 100px;
        top: -65px; /* Angepasst für mobile Ansicht */
    }

    .nav-logo {
        margin: 0;
    }
}

/* Icons */
.fa-search {
    color: var(--text-weiss);
    font-size: 18px;
    cursor: pointer;
}

/* Mobile Ticket Button - Default versteckt */
.mobile-ticket {
    display: none;
}

/* Mobile Ticket Button - Nur auf mobilen Geräten anzeigen */
@media screen and (max-width: 1024px) {
    .mobile-ticket:hover {
        background-color: var(--fuechse-rot) !important;
        border-color: var(--fuechse-rot) !important;
        color: var(--text-weiss) !important;
        text-decoration: none !important;
    }
}

/* Tablet und Desktop - Button verstecken */
@media screen and (min-width: 1025px) {
    .mobile-ticket {
        display: none !important;
    }
}

/* Button Hover Styles anpassen */
.fanshop:hover,
.ticket-shop:hover,
.sprade-tv:hover {
    color: var(--text-weiss) !important; /* Erzwingt weiße Textfarbe beim Hover */
    text-decoration: none !important; /* Entfernt Unterstreichung bei Header-Buttons */
}

/* Header-Buttons - Keine Unterstreichung generell */
.fanshop,
.ticket-shop,
.sprade-tv,
.mobile-ticket {
    text-decoration: none !important;
}

/* Spezifische Button-Hover Hintergründe */
.fanshop:hover {
    background-color: var(--fuechse-grau-hell);
    color: var(--text-weiss);
}

.ticket-shop:hover {
    background-color: var(--fuechse-rot);
    color: var(--text-weiss);
}

.sprade-tv:hover {
    background-color: var(--sprade-blau);
    color: var(--text-weiss);
}

/* Mobile Ticket Button Hover - Spezifische Regel */
@media screen and (max-width: 1024px) {
    .mobile-ticket:hover {
        background-color: var(--fuechse-rot) !important;
        border-color: var(--fuechse-rot) !important;
        color: var(--text-weiss) !important;
        text-decoration: none !important;
    }
}
