/* ==============================
   Sticky CTA på indsats-undersider
   ============================== */
.cta-sticky{
    position: relative;
    margin-top: 10px;
    padding: 24px 22px;
    background: #eaf2f5;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(2, 64, 89, .08);
    z-index: 2;
}
.cta-sticky-img{
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
}
.cta-sticky-title{
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 500;
    color: #024059;
}
.cta-sticky-text{
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5a61;
}
a.btn-mod.cta-sticky-btn,
a.btn-mod.cta-mobile-btn{
    background: #024059;
    color: #fff;
    border: none;
}
.cta-sticky-btn{
    display: block;
    width: 100%;
    text-align: center;
}
a.btn-mod.cta-sticky-btn:hover,
a.btn-mod.cta-sticky-btn:focus,
a.btn-mod.cta-mobile-btn:hover,
a.btn-mod.cta-mobile-btn:focus{
    background: #035a7d;
    color: #fff;
}

/* Kompakt CTA: flydende kort på desktop (efter sidebar-boksen), bjælke nederst på mobil */
.cta-mobile-bar{
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    padding: 10px 10px 10px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cta-mobile-bar.is-visible{
    opacity: 1;
    visibility: visible;
    transform: none;
}
.cta-mobile-icon{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf2f5;
    color: #024059;
}
.cta-mobile-text{
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.3;
    color: #024059;
}
.cta-mobile-btn{
    flex: 0 0 auto;
    white-space: nowrap;
}
body.cookie-banner-open .cta-mobile-bar{
    display: none;
}
@media (max-width: 767px){
    .cta-sticky{
        display: none;
    }
    .cta-mobile-bar,
    .cta-mobile-bar:not(.is-visible){
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        gap: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .cta-mobile-text{
        font-size: 13px;
    }
    .cta-mobile-btn{
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    body:has(.cta-mobile-bar){
        padding-bottom: 80px;
    }
    body:has(.cta-mobile-bar) .link-to-top{
        bottom: 90px;
    }
}

/* ==============================
   Cookie-banner
   ============================== */
.cookie-banner{
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.cookie-banner[hidden]{
    display: none;
}
.cookie-banner-text{
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
}
.cookie-banner-text strong{
    display: block;
    margin-bottom: 4px;
    color: #024059;
    font-size: 16px;
}
.cookie-banner-text p{
    margin: 0;
}
.cookie-banner-actions{
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}
.cookie-banner .btn-mod#cookie-accept{
    background: #024059;
    color: #fff;
    border: none;
}
.cookie-banner .btn-mod#cookie-accept:hover{
    background: #035a7d;
}
@media (max-width: 767px){
    .cookie-banner{
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }
    .cookie-banner-actions .btn{
        flex: 1 1 0;
    }
}

.footer-copy .js-cookie-settings{
    margin-left: 10px;
}
