/* ==============================
   Filmverliebt: Cookie-Einwilligung
   Gehört zu js/cookie-consent.js
   ============================== */

.fv-consent{
    --fv-gold: #c9a063;
    --fv-gold-light: #e2c393;
    --fv-surface: #161514;
    --fv-text: rgba(255,255,255, .74);

    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99990; /* unter dem Page-Loader (100000) */
    box-sizing: border-box;
    width: 440px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px 28px 22px;
    border: 1px solid rgba(255,255,255, .08);
    border-radius: 4px;
    background: var(--fv-surface);
    box-shadow: 0 24px 70px rgba(0,0,0, .5);
    color: var(--fv-text);
    font-family: 'Open Sans', arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    text-align: left;

    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.fv-consent.is-visible{
    opacity: 1;
    transform: none;
}
.fv-consent[hidden],
.fv-consent [hidden]{
    display: none !important;
}
.fv-consent *,
.fv-consent *::before,
.fv-consent *::after{
    box-sizing: border-box;
}

.fv-consent__eyebrow{
    margin: 0 0 8px;
    font-family: Montserrat, arial, sans-serif;
    font-size: 10px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--fv-gold);
}
.fv-consent__title{
    margin: 0 0 10px;
    font-family: 'Vollkorn', Cambria, Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}
.fv-consent__text{
    margin: 0 0 20px;
}

/* Kategorien */
.fv-consent__details{
    margin: 0 0 20px;
    border-top: 1px solid rgba(255,255,255, .1);
}
.fv-consent__option{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255, .1);
    font-weight: 400;
    cursor: default;
}
label.fv-consent__option{
    cursor: pointer;
}
.fv-consent__option strong{
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: #fff;
}
.fv-consent__option span{
    display: block;
    font-size: 12px;
    line-height: 1.5;
}
.fv-consent__always{
    flex: none;
    font-family: Montserrat, arial, sans-serif;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--fv-gold);
}

/* Schalter */
.fv-consent__switch{
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    margin: 0 !important;
    border: 0;
    border-radius: 11px;
    background: rgba(255,255,255, .2);
    cursor: pointer;
    transition: background-color .2s ease;
}
.fv-consent__switch::after{
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.fv-consent__switch:checked{
    background: var(--fv-gold);
}
.fv-consent__switch:checked::after{
    transform: translateX(18px);
}

/* Buttons: Akzeptieren und Ablehnen bewusst gleichwertig */
.fv-consent__actions{
    display: flex;
    gap: 10px;
}
.fv-consent__btn{
    flex: 1 1 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255, .4);
    border-radius: 2px;
    background: transparent;
    font-family: Montserrat, arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.fv-consent__btn:hover{
    border-color: var(--fv-gold);
    background: var(--fv-gold);
    color: #161514;
}
.fv-consent__btn:active{
    transform: scale(.98);
}

.fv-consent__links{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-top: 16px;
    font-size: 12px;
}
.fv-consent__links a,
.fv-consent__link{
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--fv-text);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255, .25);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.fv-consent__links a:hover,
.fv-consent__link:hover{
    color: #fff;
    text-decoration-color: var(--fv-gold-light);
}

.fv-consent button:focus-visible,
.fv-consent a:focus-visible,
.fv-consent input:focus-visible{
    outline: 2px solid var(--fv-gold-light);
    outline-offset: 3px;
}

@media only screen and (max-width: 767px){
    .fv-consent{
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 32px);
        padding: 22px 20px 18px;
    }
    .fv-consent__title{
        font-size: 21px;
    }
}
@media only screen and (max-width: 380px){
    .fv-consent__actions{
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce){
    .fv-consent,
    .fv-consent__switch,
    .fv-consent__switch::after{
        transition: none;
    }
    .fv-consent{
        transform: none;
    }
}
