/* Cookie Banner */
.vfb-cookie-banner[hidden],
.vfb-cookie-reopen[hidden] {
    display: none !important;
}

.vfb-cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.vfb-cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
}

.vfb-cookie-banner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.vfb-cookie-banner__panel {
    position: relative;
    width: min(980px, 100%);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    background: #fff;
    color: #17231d;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.vfb-cookie-banner__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    background: #008c45;
    color: #fff;
}

.vfb-cookie-banner__brand img {
    display: block;
    max-height: 52px;
    width: auto;
}

.vfb-cookie-banner__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.vfb-cookie-banner__content {
    padding: 28px;
}

.vfb-cookie-banner__eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #008c45;
}

.vfb-cookie-banner__content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.vfb-cookie-banner__content p {
    margin: 0 0 20px;
}

.vfb-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.vfb-cookie-button {
    border: 2px solid #008c45;
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.vfb-cookie-button:hover {
    transform: translateY(-1px);
}

.vfb-cookie-button--primary {
    background: #008c45;
    color: #fff;
}

.vfb-cookie-button--secondary {
    background: #fff;
    color: #008c45;
}

.vfb-cookie-banner__details {
    margin-top: 24px;
    border-top: 1px solid #dfe6e2;
}

.vfb-cookie-category {
    padding: 18px 0;
    border-bottom: 1px solid #e5e9e6;
}

.vfb-cookie-category__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.vfb-cookie-category h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.vfb-cookie-category p {
    margin: 0;
    color: #5d6861;
    font-size: .92rem;
}

.vfb-cookie-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4ef;
    color: #24663f;
    font-size: .75rem;
    font-weight: 700;
}

.vfb-cookie-service {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dce4df;
    border-radius: 12px;
    cursor: pointer;
}

.vfb-cookie-service__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vfb-cookie-service__text small {
    color: #5d6861;
    line-height: 1.45;
}

.vfb-cookie-service input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vfb-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #b9c2bc;
    transition: background .18s ease;
}

.vfb-cookie-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .18s ease;
}

.vfb-cookie-service input:checked + .vfb-cookie-switch {
    background: #008c45;
}

.vfb-cookie-service input:checked + .vfb-cookie-switch::after {
    transform: translateX(20px);
}

.vfb-cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    font-size: .88rem;
}

.vfb-cookie-banner__links a {
    color: #008c45;
    text-decoration: underline;
}

.vfb-cookie-reopen {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999998;
    width: 48px;
    height: 48px;
    border: 2px solid #008c45;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    cursor: pointer;
    font-size: 21px;
}

html.vfb-cookie-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .vfb-cookie-banner {
        padding: 10px;
    }

    .vfb-cookie-banner__panel {
        max-height: 94vh;
        border-radius: 14px;
    }

    .vfb-cookie-banner__content {
        padding: 20px;
    }

    .vfb-cookie-category__heading {
        flex-direction: column;
        gap: 8px;
    }

    .vfb-cookie-service {
        align-items: flex-start;
    }

    .vfb-cookie-switch {
        margin-top: 2px;
    }

    .vfb-cookie-banner__actions {
        flex-direction: column;
    }

    .vfb-cookie-button {
        width: 100%;
    }
}

/* FUSSBALL.DE widget consent placeholder */
.football-de-widget {
    position: relative;
}

.football-de-widget.is-consent-disabled {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
}

.football-de-widget.is-consent-disabled::before {
    content: "FUSSBALL.DE Widget deaktiviert";
    display: block;
    max-width: 80%;
    padding: 14px 18px;
    border: 1px solid #dce4df;
    border-radius: 10px;
    background: #fff;
    color: #405048;
    text-align: center;
    font-weight: 700;
}

.football-de-widget.is-consent-disabled > * {
    visibility: hidden;
}

.football-de-widget.is-consent-enabled {
    min-height: 0;
}
