/**
 * Cookie Consent Styles
 * biegeform.de
 */

/* ═══════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════ */
#cookie-consent-banner {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.cookie-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-banner-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.cookie-banner-header {
    padding: 32px 32px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #00204A;
}

.cookie-banner-body {
    padding: 24px 32px;
}

.cookie-banner-body p {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.cookie-banner-body p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════
   COOKIE KATEGORIEN
═══════════════════════════════════════ */
.cookie-categories {
    padding: 0 32px 24px;
}

.cookie-category {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: #F0F2F5;
    border-radius: 8px;
    transition: background 0.2s;
}

.cookie-category:hover {
    background: #e8eaed;
}

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

.cookie-category-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #00204A;
    margin-bottom: 4px;
}

.cookie-category-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   TOGGLE SWITCH
═══════════════════════════════════════ */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .slider {
    background-color: #CC0000;
}

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

.cookie-switch.disabled .slider {
    background-color: #00204A;
}

/* ═══════════════════════════════════════
   BANNER FOOTER & BUTTONS
═══════════════════════════════════════ */
.cookie-banner-footer {
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
}

.cookie-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept-all {
    background: #CC0000;
    color: white;
}

.cookie-btn-accept-all:hover {
    background: #a00000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.cookie-btn-accept-selected {
    background: #00204A;
    color: white;
}

.cookie-btn-accept-selected:hover {
    background: #001a3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 32, 74, 0.3);
}

.cookie-btn-reject {
    background: #f0f0f0;
    color: #666;
}

.cookie-btn-reject:hover {
    background: #e0e0e0;
    color: #333;
}

.cookie-banner-links {
    padding: 16px 32px 24px;
    text-align: center;
    font-size: 13px;
}

.cookie-banner-links a {
    color: #666;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.cookie-banner-links a:hover {
    color: #CC0000;
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   FLOATING COOKIE BUTTON
═══════════════════════════════════════ */
#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #00204A;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookie-settings-btn:hover {
    background: #CC0000;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 24px rgba(204, 0, 0, 0.4);
}

#cookie-settings-btn:active {
    transform: scale(0.95);
}

#cookie-settings-btn:focus {
    outline: 2px solid #CC0000;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════
   BLOCKIERTE INHALTE (YouTube, Vimeo)
═══════════════════════════════════════ */
.blocked-content-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
}

.blocked-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e3e8 100%);
}

.blocked-content-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.blocked-content-overlay h4 {
    font-size: 20px;
    font-weight: 700;
    color: #00204A;
    margin: 0 0 12px;
}

.blocked-content-overlay p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    max-width: 400px;
    line-height: 1.6;
}

.blocked-content-btn {
    background: #CC0000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.blocked-content-btn:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
    .cookie-banner-content {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .cookie-banner-header,
    .cookie-banner-body,
    .cookie-categories,
    .cookie-banner-footer,
    .cookie-banner-links {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .cookie-btn {
        width: 100%;
        min-width: 100%;
    }

    #cookie-settings-btn {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .blocked-content-overlay {
        padding: 20px;
    }

    .blocked-content-icon {
        font-size: 36px;
    }

    .blocked-content-overlay h4 {
        font-size: 16px;
    }

    .blocked-content-overlay p {
        font-size: 13px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .cookie-banner-content {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .cookie-banner-header h3,
    .cookie-category-info strong {
        color: #ffffff;
    }

    .cookie-banner-body p,
    .cookie-category-info p {
        color: #b0b0b0;
    }

    .cookie-category {
        background: #2a2a2a;
    }

    .cookie-category:hover {
        background: #333333;
    }

    .cookie-btn-reject {
        background: #333333;
        color: #e0e0e0;
    }

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