/* Cookie Banner - DSGVO-konform */
#cookieBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cookieBanner.show {
    display: flex;
    opacity: 1;
}

.cookie-container {
    background: #ffffff;
    color: #333;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-header img {
    height: 40px;
    width: auto;
}

/* Content */
.cookie-content {
    padding: 25px;
}

.cookie-content > p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Cookie Toggles */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.cookie-toggle:hover {
    background: #f0f1f3;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle span {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Toggle Slider */
.cookie-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Aktiv (checked) */
input:checked + .cookie-slider {
    background-color: #4CAF50;
}

input:checked + .cookie-slider::before {
    transform: translateX(24px);
}

/* Disabled (Notwendige Cookies) */
input:disabled + .cookie-slider {
    background-color: #d9534f;
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled + .cookie-slider.disabled {
    background-color: #6c757d;
}

/* Buttons - ALLE GLEICH PROMINENT (DSGVO!) */
.cookie-buttons {
    display: flex;
    gap: 10px;
    padding: 0 25px 25px 25px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Footer */
.cookie-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cookie-footer a {
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-footer a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Cookie Settings Button (unten rechts) */
.cookiesettingbutton {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 9998;
    background-color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookiesettingbutton:hover {
    background-color: #5a6268;
    transform: scale(1.1);
}

.cookiesettingbutton img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.cookiesettingbutton span {
    position: absolute;
    opacity: 0;
    color: white;
    right: 60px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    background-color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookiesettingbutton:hover span {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-container {
        width: 95%;
        margin: 10px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }

    .cookiesettingbutton span {
        display: none;
    }
}