/* ============================================
   COOKIE CONSENT BANNER
   DSGVO-konform, Theme-Design (Navy & Gold)
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d4a6c 100%);
    color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 15px 0;
    color: #d4af37;
    font-size: 22px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #e8e8e8;
    font-size: 15px;
}

.cookie-consent-small {
    font-size: 13px !important;
    color: #b0b0b0 !important;
    margin-top: 15px !important;
}

.cookie-consent-text a {
    color: #d4af37;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #f4d03f;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #d4af37;
    color: #1a3a5c;
}

.cookie-btn-accept:hover {
    background: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cookie-btn-settings,
.cookie-btn-back {
    background: transparent;
    color: #ffffff;
    border: 2px solid #d4af37;
}

.cookie-btn-settings:hover,
.cookie-btn-back:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #f4d03f;
}

/* Cookie-Einstellungen Details */
.cookie-consent-settings {
    flex-direction: column;
    align-items: stretch;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #d4af37;
}

.cookie-category-disabled {
    border-left-color: #666;
    opacity: 0.7;
}

.cookie-category-header {
    margin-bottom: 12px;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    font-size: 16px;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-required {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.cookie-inactive {
    background: #666;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.cookie-category-desc {
    font-size: 14px;
    color: #d0d0d0;
    margin: 10px 0;
    line-height: 1.5;
}

.cookie-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.cookie-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #b0b0b0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-list li:last-child {
    border-bottom: none;
}

.cookie-list code {
    background: rgba(212, 175, 55, 0.2);
    color: #f4d03f;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 15px;
    }
    
    .cookie-consent-text h3 {
        font-size: 18px;
    }
    
    .cookie-consent-text p {
        font-size: 14px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-category {
        padding: 15px;
    }
}

/* Dark Mode Support */
html.dark-mode .cookie-consent-banner {
    background: linear-gradient(135deg, #0f1f2f 0%, #1a2a3c 100%);
}

html.dark-mode .cookie-category {
    background: rgba(255, 255, 255, 0.08);
}

/* Print-Modus: Banner ausblenden */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}
