/* ============================================
   COOKIE BANNER STYLES
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: #fff;
    padding: 1.25rem 1.5rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: #d1d5db;
    line-height: 1.5;
}

.cookie-text a {
    color: #93c5fd;
    text-decoration: underline;
}

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

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.cookie-btn.accept {
    background: #1e5a8a;
    color: #fff;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.reject {
    background: #374151;
    color: #fff;
}

.cookie-btn.reject:hover {
    background: #4b5563;
}

.cookie-btn.settings {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.cookie-btn.settings:hover {
    background: #374151;
    color: #fff;
}

/* Desktop: Buttons nebeneinander */
@media (min-width: 640px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-text {
        flex: 1;
        text-align: left;
        justify-content: flex-start;
    }

    .cookie-buttons {
        flex-direction: row;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .cookie-btn {
        width: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   COOKIE MODAL
   ============================================ */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

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

.cookie-modal-content {
    background: #fff;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
    font-family: 'Playfair Display', Georgia, serif;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: 0.2s;
}

.cookie-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-slider {
    background: #1e5a8a;
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(22px);
}

.cookie-toggle.disabled .cookie-slider {
    background: #9ca3af;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.cookie-modal-footer .cookie-btn {
    width: auto;
    display: inline-block;
}
