/* ========== COOKIE-BANNER STYLES ========== */
/* EXAKT ZENTRIERT - KEIN ÜBERSTEHEN */

#cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
}

/* BANNER - LINKSBÜNDIG AUSGERICHTET */
#cookie-banner-box {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
    z-index: 1000000;
    width: 90%;
    max-width: 450px;
    display: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    /* EXPLIZITE RÜCKSTELLUNG für größere Geräte */
    transform-origin: center center !important;
    transform: translateY(-50%) scale(1) !important;
    /* GRÜNER RAHMEN FÜR ALLE GERÄTE */
    border: 2px solid #34A853 !important;
}

/* SPEZIFISCHE ÜBERSCHRIFT - UNVERWECHSELBAR */
.cookie-banner-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
}

.cookie-banner-title.cookie-banner-specific-title[data-cookie-title="true"] {
    padding: 12px 15px !important;
    margin: 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 25px !important;
    color: #212529 !important;
    letter-spacing: 0.3px !important;
    background: linear-gradient(135deg, #eaf4ff 0%, #d6eaff 100%) !important;
    border: 1px solid #004494 !important;
    border-bottom: 2px solid #004494 !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000001 !important;
}

/* HAUPTCONTAINER */
.cookie-content-container {
    padding: 20px 25px;
    box-sizing: border-box;
}

/* OPTIONEN */
.cookie-options-compact {
    margin-bottom: 15px;
}

.cookie-option-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.cookie-option-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 20px;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.cookie-desc {
    margin: 5px 0 0 30px;
    font-size: 18px;
    color: #666;
    line-height: 1.4;
}

/* HORIZONTALE LINIE */
.cookie-divider {
    height: 1px;
    background: #dee2e6;
    margin: 20px 0;
    width: 100%;
}

/* BUTTONS UNTEREINANDER */
.cookie-buttons-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    background: #1a365d;
    color: white;
    text-align: center;
    min-height: 50px;
}

.cookie-links-compact {
    text-align: center;
}

.cookie-btn-delete {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 18px;
}

.cookie-legal-links {
    font-size: 18px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.cookie-legal-links a {
    color: #1a365d;
    text-decoration: none;
}

/* ========== MOBILE VERSION (< 500px) ========== */
@media only screen and (max-width: 500px) {
    #cookie-banner-box {
        width: 95%;
        /* BEIBEHALTEN DES GRÜNEN RAHMENS */
        border-color: #34A853 !important;
    }
    
    .cookie-content-container {
        padding: 15px 20px;
    }
    
    /* ÜBERSCHRIFT WIE BEI GRÖSSEREN GERÄTEN - NUR ETWAS KLEINER ABER NICHT ZU KLEIN */
    .cookie-banner-title.cookie-banner-specific-title[data-cookie-title="true"] {
        padding: 10px 12px !important; /* Etwas weniger Padding für Mobile */
        font-size: 22px !important; /* Etwas kleiner als 25px, aber nicht zu klein */
        /* Behalte alle anderen Eigenschaften wie bei größeren Geräten */
        font-weight: 600 !important;
        color: #212529 !important;
        letter-spacing: 0.3px !important;
        border: 1px solid #004494 !important;
        border-bottom: 2px solid #004494 !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.6) !important;
        min-height: 45px !important; /* Etwas weniger Höhe */
    }
    
    .cookie-option label {
        font-size: 16px; /* Größer als vorher (11px) */
    }
    
    .cookie-desc {
        font-size: 14px; /* Größer als vorher (10px) */
        margin-left: 25px;
    }
    
    .cookie-divider {
        margin: 15px 0;
    }
    
    .cookie-btn {
        font-size: 16px; /* Statt 24px - besser lesbar */
        padding: 10px 12px;
        min-height: 45px;
    }
    
    .cookie-btn-delete {
        font-size: 16px; /* Statt 24px */
        padding: 10px;
    }
    
    .cookie-legal-links,
    .cookie-legal-links a {
        font-size: 14px; /* Größer als vorher (10px) */
    }
    
    .cookie-buttons-compact {
        gap: 10px;
    }
}

/* ========== SEHR KLEINE GERÄTE (< 400px) - SCALE 0.80 ========== */
@media only screen and (max-width: 400px) {
    #cookie-banner-box {
        left: 0;
        width: 95%;
        /* NUR HIER skalieren für sehr kleine Geräte */
        transform: translateY(-50%) scale(0.80) !important;
        transform-origin: left center !important;
        /* BEIBEHALTEN DES GRÜNEN RAHMENS */
        border-color: #34A853 !important;
    }
    
    .cookie-content-container {
        padding: 12px 15px;
    }
    
    /* Für sehr kleine Geräte: Originalgröße behalten, da durch scale(0.80) alles kleiner wird */
    .cookie-banner-title.cookie-banner-specific-title[data-cookie-title="true"] {
        font-size: 22px !important; /* Gleiche Größe wie bei 500px */
        padding: 8px 10px !important;
        /* Alle anderen Eigenschaften gleich lassen */
        font-weight: 600 !important;
        color: #212529 !important;
        letter-spacing: 0.3px !important;
        border: 1px solid #004494 !important;
        border-bottom: 2px solid #004494 !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.6) !important;
        min-height: 40px !important;
    }
    
    .cookie-option label {
        font-size: 18px; /* Etwas größer für bessere Lesbarkeit nach Skalierung */
    }
    
    .cookie-desc {
        font-size: 16px; /* Etwas größer für bessere Lesbarkeit nach Skalierung */
    }
    
    .cookie-btn {
        font-size: 18px; /* Etwas größer für bessere Lesbarkeit nach Skalierung */
        padding: 8px 10px;
        min-height: 40px;
    }
    
    .cookie-btn-delete {
        font-size: 18px; /* Etwas größer für bessere Lesbarkeit nach Skalierung */
        padding: 8px;
    }
    
    .cookie-legal-links,
    .cookie-legal-links a {
        font-size: 16px; /* Etwas größer für bessere Lesbarkeit nach Skalierung */
    }
}

/* ========== FIX FÜR GRÖSSERE GERÄTE ========== */
@media only screen and (min-width: 401px) {
    #cookie-banner-box {
        transform-origin: center center !important;
        transform: translateY(-50%) scale(1) !important;
        left: 5% !important;
        width: 90% !important;
    }
}