/* Grundlayout für den Header */
header {
    background-color: #1a1a1a;
    padding: 3px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header .logo img {
    max-height: 100px;
    height: auto;
    width: auto;
    padding-left: 20px;
}

/* Hamburger Menü-Button */
.hamburger-menu {
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 1002;
    margin-right: 20px;
    position: relative;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation wenn aktiv */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Close-Button für mobile Ansicht */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 36px;
    cursor: pointer;
    z-index: 1003;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-menu:hover {
    color: #66a2e0;
    transform: rotate(90deg);
}

/* Menü für Desktop-Geräte */
.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding-right: 20px;
}

.menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.menu ul li {
    margin-left: 25px;
}

.menu ul li:first-child {
    margin-left: 0;
}

.menu ul li a {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
}

.menu ul li a:hover {
    color: #66a2e0;
    background-color: rgba(102, 162, 224, 0.1);
}

.menu ul li a.active {
    color: #66a2e0;
    background-color: rgba(102, 162, 224, 0.15);
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    /* Header anpassen für Mobile */
    header {
        padding: 10px 0;
    }
    
    header .logo img {
        max-height: 60px;
        padding-left: 15px;
    }
    
    /* Hamburger-Menü sichtbar machen */
    .hamburger-menu {
        display: flex;
    }
    
    /* Mobile Menü-Overlay */
    .menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #1a1a1a;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    /* Menü aktiv - slide in */
    .menu.active {
        display: flex;
        right: 0;
    }
    
    /* Close-Button anzeigen wenn Menü aktiv */
    .menu.active .close-menu {
        display: flex;
    }
    
    /* Mobile Menü-Liste */
    .menu ul {
        flex-direction: column;
        width: 100%;
        padding-top: 80px;
    }
    
    .menu ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu ul li a {
        font-size: 1.2rem;
        padding: 20px 30px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    .menu ul li a:hover {
        background-color: rgba(102, 162, 224, 0.2);
        padding-left: 40px;
    }
    
    .menu ul li a.active {
        background-color: rgba(102, 162, 224, 0.25);
        border-left: 4px solid #66a2e0;
    }
}

/* Overlay für Body wenn Menü offen */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

body.menu-open::after {
    opacity: 1;
    visibility: visible;
}

/* Verhindere Scrollen wenn Menü offen */
body.menu-open {
    overflow: hidden;
}

/* Tablet Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu ul li {
        margin-left: 15px;
    }
    
    .menu ul li a {
        font-size: 1rem;
        padding: 5px 8px;
    }
}

/* Accessibility - Focus Styles */
.hamburger-menu:focus,
.close-menu:focus,
.menu a:focus {
    outline: 2px solid #66a2e0;
    outline-offset: 2px;
}

/* Smooth Scrolling für iOS */
@supports (-webkit-touch-callout: none) {
    .menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Animation für Menü-Items beim Öffnen */
@media (max-width: 768px) {
    .menu.active ul li {
        opacity: 0;
        animation: slideIn 0.3s ease forwards;
    }
    
    .menu.active ul li:nth-child(1) { animation-delay: 0.1s; }
    .menu.active ul li:nth-child(2) { animation-delay: 0.15s; }
    .menu.active ul li:nth-child(3) { animation-delay: 0.2s; }
    .menu.active ul li:nth-child(4) { animation-delay: 0.25s; }
    .menu.active ul li:nth-child(5) { animation-delay: 0.3s; }
    .menu.active ul li:nth-child(6) { animation-delay: 0.35s; }
    .menu.active ul li:nth-child(7) { animation-delay: 0.4s; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Checkbox Fix - Fügen Sie das zu Ihrem CSS hinzu */

/* Sicherstellen dass Checkboxen sichtbar sind */
.checkbox-label input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: top !important;
    flex-shrink: 0 !important;
}

/* Für bessere Sichtbarkeit auf dunklem Hintergrund */
.consent-group input[type="checkbox"] {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #ff006e !important;
    border-radius: 4px !important;
}

.consent-group input[type="checkbox"]:checked {
    background: #ff006e !important;
    border-color: #ff006e !important;
}

/* Label Text neben der Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    color: #fff !important;
}

.checkbox-label span {
    flex: 1 !important;
    line-height: 1.4 !important;
}