@charset "UTF-8";

/* ==================== COOKIE BANNER ==================== */

#cookie-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cookie-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-banner-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    z-index: 1;
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1a1a2e;
}

.cookie-banner-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.cookie-banner-close:hover {
    color: #333;
}

.cookie-banner-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Optionen */
.cookie-banner-options {
    margin-bottom: 24px;
}

.cookie-option {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.cookie-option:hover {
    border-color: #e0e0e0;
}

.cookie-option.always-active {
    opacity: 0.8;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    margin-bottom: 4px;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.6;
}

.cookie-option strong {
    font-size: 0.95rem;
    color: #1a1a2e;
}

.cookie-option small {
    display: block;
    margin-left: 30px;
    color: #777;
    font-size: 0.82rem;
}

/* Buttons */
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cookie-btn:active {
    transform: translateY(0);
}

.cookie-btn-primary {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.cookie-btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
}

.cookie-btn-success {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.cookie-btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.cookie-btn-secondary {
    background: #fff;
    color: #555;
    border-color: #d1d5db;
}

.cookie-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}


/* ============================================================
   SCHWEBENDER EINSTELLUNGS-BUTTON
   Desktop: Icon nur, bei Hover klappt Text auf
   ============================================================ */

#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
    width: 44px;
    height: 44px;
    overflow: hidden;
    white-space: nowrap;
}

#cookie-settings-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.35s ease;
}

#cookie-settings-btn .cookie-settings-text {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

#cookie-settings-btn:hover {
    opacity: 1;
    width: auto;
    padding: 12px 18px;
    border-radius: 50px;
    gap: 10px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

#cookie-settings-btn:hover .cookie-settings-text {
    max-width: 200px;
    opacity: 1;
    transform: translateX(0);
}

#cookie-settings-btn:hover svg {
    transform: rotate(90deg);
}
