/* Cookie Banner & Modal Styles - Zentral für alle Seiten */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.98) !important;
    color: white !important;
    padding: 30px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-color, #16a34a);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Force white text color for all text elements inside cookie banner */
.cookie-banner,
.cookie-banner *,
.cookie-banner p,
.cookie-banner h4,
.cookie-banner span,
.cookie-banner div,
#cookie-banner,
#cookie-banner *,
#cookie-banner p,
#cookie-banner h4 {
    color: white !important;
    --text-primary: white !important;
    --text-secondary: white !important;
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cookie-banner-content * {
    color: white !important;
}

.cookie-banner h4 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
    width: 100%;
}

.cookie-banner p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto 20px auto;
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-btn-essential {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-color, #16a34a);
    border: 1px solid var(--primary-color, #16a34a);
}

.cookie-btn-settings:hover {
    background: var(--primary-color, #16a34a);
    color: white;
}

.cookie-btn-accept {
    background: var(--primary-color, #16a34a);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    background: var(--background-primary, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    margin-bottom: 20px;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--text-primary, #0f172a);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: var(--background-secondary, #f8fafc);
    color: var(--text-primary, #0f172a);
}

.cookie-modal-body {
    padding: 0 24px 20px 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--background-secondary, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
}

.cookie-switch input {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #ccc;
    border-radius: 13px;
    transition: 0.3s;
    margin-right: 12px;
}

.cookie-switch input:checked {
    background: var(--primary-color, #16a34a);
}

.cookie-switch input:disabled {
    background: var(--primary-color, #16a34a);
    opacity: 0.7;
}

.cookie-switch input::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: white;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked::before {
    transform: translateX(24px);
}

.cookie-category p {
    margin: 0;
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-modal-footer {
    padding: 20px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
}

.cookie-btn-cancel {
    background: var(--background-secondary, #f8fafc);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
}

.cookie-btn-cancel:hover {
    background: var(--background-tertiary, #f1f5f9);
}

.cookie-btn-save {
    background: var(--primary-color, #16a34a);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--primary-dark, #15803d);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 16px;
    }

    .cookie-banner h4 {
        font-size: 1.1rem;
    }

    .cookie-banner p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cookie-btn {
        width: 100%;
        max-width: 300px;
        min-width: 200px;
    }

    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }
}
