/* DSGVO Cookie Consent Styles */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50 !important;
    color: white !important;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

/* Sicherstellen dass alle Texte im Cookie-Banner weiß sind */
.cookie-banner * {
    color: white !important;
}

.cookie-banner h3,
.cookie-banner p,
.cookie-banner-text h3,
.cookie-banner-text p {
    color: white !important;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    white-space: nowrap;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: white !important;
    border: 2px solid white !important;
    background: transparent !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

/* Button-spezifische Stile für bessere Erkennbarkeit */
.cookie-banner-actions .btn:hover {
    background: white !important;
    color: #2c3e50 !important;
    border-color: white !important;
}

/* Primärer Accept-Button - Korrigierte Klassen (btn-primary, nicht btn-success) */
.cookie-banner .cookie-banner-actions .btn.btn-primary,
.cookie-modal .cookie-modal-footer .btn.btn-primary {
    background-color: #22c55e !important;
    background: #22c55e !important;
    border: 2px solid #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
}

.cookie-banner .cookie-banner-actions .btn.btn-primary:hover,
.cookie-modal .cookie-modal-footer .btn.btn-primary:hover,
.cookie-banner .cookie-banner-actions .btn.btn-primary:focus,
.cookie-modal .cookie-modal-footer .btn.btn-primary:focus {
    background-color: #16a34a !important;
    background: #16a34a !important;
    border: 2px solid #16a34a !important;
    border-color: #16a34a !important;
    color: white !important;
}

/* Sekundäre Buttons - Banner */
.cookie-banner .cookie-banner-actions .btn.btn-outline-light {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.cookie-banner .cookie-banner-actions .btn.btn-outline-light:hover {
    background: white !important;
    color: #2c3e50 !important;
    border-color: white !important;
}

/* Modal Sekundäre Buttons */
.cookie-modal .cookie-modal-footer .btn.btn-outline-secondary {
    background-color: #6c757d !important;
    background: #6c757d !important;
    border: 2px solid #6c757d !important;
    color: white !important;
}

.cookie-modal .cookie-modal-footer .btn.btn-outline-secondary:hover {
    background-color: #5a6268 !important;
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    color: white !important;
}

.cookie-modal .cookie-modal-footer .btn.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #22c55e !important;
    color: #22c55e !important;
}

.cookie-modal .cookie-modal-footer .btn.btn-outline-primary:hover {
    background: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
}

/* Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    max-height: 80vh;
    width: 90vw;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.2s ease-out;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.cookie-modal-close:hover {
    background-color: #f0f0f0;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-categories {
    margin-top: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.cookie-category-checkbox {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.cookie-category-checkbox:disabled {
    cursor: not-allowed;
}

.cookie-category-title {
    flex: 1;
    font-size: 1.1rem;
    color: #2c3e50;
}

.cookie-always-active {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: normal;
    background: #e8f5e8;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-left: 2rem;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

/* Modal Button Styling - bereits oben integriert */

/* Sekundäre Modal Buttons mit hoher Spezifität */
.cookie-modal .cookie-modal-footer .btn.btn-outline-secondary,
.cookie-modal .cookie-modal-footer .btn.btn-secondary {
    background-color: #6c757d !important;
    background: #6c757d !important;
    border: 2px solid #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.cookie-modal .cookie-modal-footer .btn.btn-outline-secondary:hover,
.cookie-modal .cookie-modal-footer .btn.btn-secondary:hover,
.cookie-modal .cookie-modal-footer .btn.btn-outline-secondary:focus,
.cookie-modal .cookie-modal-footer .btn.btn-secondary:focus {
    background-color: #5a6268 !important;
    background: #5a6268 !important;
    border: 2px solid #5a6268 !important;
    border-color: #5a6268 !important;
    color: white !important;
}

/* Floating Settings Button - Removed (using footer link instead) */

/* DNT Notice */
.dnt-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 6px;
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.dnt-notice-content {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.dnt-notice p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.dnt-notice button {
    background: none;
    border: none;
    color: #155724;
    cursor: pointer;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-category-description {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Cookie settings button styles removed */
    
    .dnt-notice {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* High Contrast & Accessibility */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 3px solid #fff;
    }
    
    .cookie-modal-content {
        border: 2px solid #000;
    }
    
    .cookie-category {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal,
    .cookie-modal-content,
    .dnt-notice {
        animation: none;
    }
    
    /* Cookie settings button hover styles removed */
}

/* Focus Styles */
.cookie-banner-actions .btn:focus,
.cookie-modal-footer .btn:focus,
.cookie-category-checkbox:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.cookie-category-label:focus-within {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}