/* ===== Cookie Consent Banner – DSGVO-Konform ===== */
#wolf-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 40px);
    max-width: 520px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

#wolf-cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.wolf-cookie-card {
    background: #1f2636;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow:
        0 20px 60px rgba(31, 38, 54, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.wolf-cookie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2477bf 0%, #333f59 50%, #2477bf 100%);
    border-radius: 16px 16px 0 0;
}

.wolf-cookie-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.wolf-cookie-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wolf-cookie-icon span {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.wolf-cookie-text {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.wolf-cookie-text a {
    color: #6ba3d6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wolf-cookie-text a:hover {
    color: #8dbde8;
    text-decoration: underline;
}

/* ── Buttons ── */
.wolf-cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.wolf-cookie-btn {
    flex: 1;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
}

/* DSGVO: Both main buttons equally prominent */
.wolf-cookie-btn-accept {
    background: #2477bf;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(36, 119, 191, 0.3);
}

.wolf-cookie-btn-accept:hover {
    background: #2b88d4;
    box-shadow: 0 6px 20px rgba(36, 119, 191, 0.4);
    transform: translateY(-1px);
}

.wolf-cookie-btn-reject {
    background: #333f59;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(51, 63, 89, 0.3);
}

.wolf-cookie-btn-reject:hover {
    background: #3d4e6e;
    box-shadow: 0 6px 20px rgba(51, 63, 89, 0.4);
    transform: translateY(-1px);
}

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

/* Settings link */
.wolf-cookie-settings-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    padding: 4px 0;
    font-family: inherit;
}

.wolf-cookie-settings-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Settings Panel ── */
.wolf-cookie-settings {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wolf-cookie-settings.open {
    display: block;
}

.wolf-cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.wolf-cookie-category+.wolf-cookie-category {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wolf-cookie-cat-info {
    flex: 1;
    padding-right: 16px;
}

.wolf-cookie-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.wolf-cookie-cat-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* Toggle Switch */
.wolf-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.wolf-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.wolf-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: background 0.25s ease;
}

.wolf-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wolf-toggle input:checked+.wolf-toggle-slider {
    background: #2477bf;
}

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

.wolf-toggle input:disabled+.wolf-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Save preferences button */
.wolf-cookie-btn-save {
    width: 100%;
    margin-top: 14px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #2477bf;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(36, 119, 191, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.wolf-cookie-btn-save:hover {
    background: #2b88d4;
    box-shadow: 0 6px 20px rgba(36, 119, 191, 0.4);
    transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    #wolf-cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .wolf-cookie-card {
        padding: 22px 20px 20px;
        border-radius: 14px;
    }

    .wolf-cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .wolf-cookie-btn {
        padding: 12px 20px;
    }
}