/* Sættes af temaets JS (menuer, accordion, karrusel m.m.) */
.active {
    background-color: #555;
}

@media screen and (min-width: 1301px) {
    .borderexample {
        border: 1px;
        border-style: solid;
        border-color: #e3e6e9;
        padding: 20px;
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 1300px) {
    .borderexample {
        border-top: 1px;
        border-top-style: solid;
        border-top-color: #e3e6e9;
        padding: 20px;
        margin-bottom: 0px;
    }
}

.text-underline-hover {
    color: #4545F3;
    text-decoration: none;
}

.text-underline-hover:hover {
    color: #5DADE2;
    text-decoration: underline;
}

.incident-bruger {
    background-color: #D6EAF8;
}

.text-justify-wide {
    text-align: justify;
    text-justify: inter-word;
}

.dropdown-divider-menu {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.DKJ-page-progress-bar {
    height: 8px;
    width: 0%;
    background-color: #21D4FD;
    background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
}

.DKJ-page-progress-bar.DKJ-page-progress-gradient {
    background-color: #007990;
    background-image: linear-gradient(90deg, #808B96 0%, #D5D8DC 100%);
}

.BB-font-note-overskrift {
    font-size: 0.8rem !important;
    text-align: left !important;
}

.BB-font-note-tekst {
    font-size: 0.8rem !important;
    text-align: left !important;
}

/* ============ banebasen.dk ============ */
.borderless td, .borderless th {
    border: none;
}

.borderless tr td {
    border: none !important;
    padding: 0;
}

.button-banebasen-lightyellow {
    background: #D8D7A0;
}

.button-banebasen-lightyellow:hover,
.button-banebasen-lightyellow:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-lightyellow {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-lightblue {
    background: #8db1d7;
}

.button-banebasen-lightblue:hover,
.button-banebasen-lightblue:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-lightblue {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-blue {
    background: #4682BE;
}

.button-banebasen-blue:hover,
.button-banebasen-blue:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-blue {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-blue-lav {
    height: 25px;
    line-height: 25px;
    padding: 0 8px;
    font-size: 12px;
    display: inline-block;
    box-sizing: border-box;

    background-color: #4682BE !important;
    border: 1px solid #ccc;
    margin: 0;

    color: #ffffff;  /* vigtig for læsbarhed */
}

.button-banebasen-green {
    background: #64AF8C;
}

.button-banebasen-green:hover,
.button-banebasen-green:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-green {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-vine {
    background: #B496C3;
}

.button-banebasen-vine:hover,
.button-banebasen-vine:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-vine {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-reserve {
    background: #6991A0;
}

.button-banebasen-reserve:hover,
.button-banebasen-reserve:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-reserve {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-tilbage {
    background: #A5A5A5;
}

.button-banebasen-tilbage:hover,
.button-banebasen-tilbage:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-tilbage {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.button-banebasen-red {
    background: #FF4344;
}

.button-banebasen-red:hover,
.button-banebasen-red:focus {
    -webkit-box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    box-shadow: 0 6px 36px 0 rgba(21, 25, 29, 0.19);
    opacity: 0.9;
    color: white;
}

.button-banebasen-red {
    border: 0;
    -webkit-box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    box-shadow: 0 6px 30px 0 rgba(21, 25, 29, 0.13);
    color: white;
}

.center-element {
    margin: auto;
    width: 100%;
    padding: 10px;
}

.BB-sunshine {
    color: #FEC503 !important;
}

.BB-img-fotograf {
    max-height: 600px !important;
}

.BB-outer {
    display: flex;
    justify-content: center;
    height: 600px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #64AF8C;
}

input:focus + .slider {
    box-shadow: 0 0 1px #64AF8C;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.BB--form-input {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem; /* samme som form-select */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #212529 !important;
    background-color: #fff;
    background-clip: padding-box;

    border: 1px solid #ced4da;
    border-radius: 0.375rem;

    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;

    /* Højde som form-select */
    height: calc(2.25rem + 2px);
}

/* CONTAINER */
@media screen and (min-width: 1301px) {
    .container-BB {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0;
        width: 100%;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin-right: auto;
        margin-left: auto
    }
}

@media screen and (max-width: 1300px) {
    .container-BB {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        margin-right: auto;
        margin-left: auto
    }
}

@media (min-width: 1300px) {
    .container-BB {
        max-width: 1240px
    }
}

@media (min-width: 1400px) {
    .container-BB {
        max-width: 1320px
    }
}

img.BB-media-image {
    max-height: min(400px, 90vh);
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.button--secondary {
    width: 170px;
    justify-content: center;
    text-align: center;
}

/* ============ VISNINGSVÆLGER (stor / lille / liste) START ============ */
.BB-visning {
    display: inline-flex;
    gap: 3px;
    padding: 0;
    height: 50.5px; /* samme højde som NULSTIL-knappen (button-md) */
    background: #F2F5F8;
    border: 1px solid #D9E2EC;
    border-radius: 10px;
    margin: 0;
}

.BB-visning .BB-visning-knap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #6B7785;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.BB-visning .BB-visning-knap:hover {
    background: #EEF4FA;
    color: #2B5F93;
}

.BB-visning .BB-visning-knap:focus-visible {
    outline: 2px solid #4682BE;
    outline-offset: 1px;
}

.BB-visning .BB-visning-knap.BB-visning-aktiv {
    background: #4682BE;
    color: #fff;
    box-shadow: 0 1px 3px rgba(43, 95, 147, .35);
}

.BB-visning .BB-visning-knap svg {
    display: block;
}
/* ============ VISNINGSVÆLGER SLUT ============ */

/* ============ GITTERVISNING START ============ */
.BB-gitter {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    margin: 6px 0 24px;
}

.BB-gitter-stor {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.BB-gitter-lille {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
}

.BB-gitter .BB-gitter-kort {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #D9E2EC;
    border-radius: 12px;
    overflow: hidden;
    color: #1F2933;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(31, 41, 51, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.BB-gitter .BB-gitter-kort:hover,
.BB-gitter .BB-gitter-kort:focus-visible {
    transform: translateY(-2px);
    border-color: #4682BE;
    box-shadow: 0 8px 20px rgba(43, 95, 147, .14);
    color: #1F2933;
    outline: none;
}

.BB-gitter-billede {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #F2F5F8;
    overflow: hidden;
}

.BB-gitter-billede img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pladsholder når billedfilen mangler */
.BB-gitter-mangler {
    flex-direction: column;
    gap: 8px;
    color: #6B7785;
    font-size: 13px;
}

.BB-gitter-mangler img {
    width: 30%;
    height: auto;
    opacity: .25;
}

.BB-gitter-lille .BB-gitter-mangler span {
    display: none;
}

.BB-gitter-tekst {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    border-top: 1px solid #EEF2F6;
    min-width: 0;
}

.BB-gitter-titel {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1F2933;
}

.BB-gitter-linje {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 1.4;
    color: #6B7785;
}

.BB-gitter-etiket {
    display: inline-block;
    min-width: 38px;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2B5F93;
}

/* Små kort: tættere og mindre tekst */
.BB-gitter-lille .BB-gitter-kort {
    border-radius: 10px;
}

.BB-gitter-lille .BB-gitter-tekst {
    gap: 2px;
    padding: 8px 10px 10px;
}

.BB-gitter-lille .BB-gitter-titel {
    font-size: 13px;
    line-height: 1.3;
}

.BB-gitter-lille .BB-gitter-linje {
    font-size: 12px;
}

@media (max-width: 576px) {
    .BB-gitter-stor {
        grid-template-columns: 1fr;
    }

    .BB-gitter-lille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
/* ============ GITTERVISNING SLUT ============ */

/* ============ ADMIN-SIDER START ============ */
/* Fælles udseende for administrationssiderne (upload, load, brugere, filter m.m.) */
.BB-admin {
    text-align: left;
    padding-bottom: 1rem;
}

.BB-admin > h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #64AF8C;
}

.BB-admin h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.BB-admin .BB-intro {
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.BB-admin .table > thead th {
    background-color: #f3f5f7;
    white-space: nowrap;
}

.BB-admin .table td form {
    margin: 0;
}

.BB-admin .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.BB-admin .form-switch .form-check-input:checked {
    background-color: #64AF8C;
    border-color: #64AF8C;
}

/* Lille knap til brug i tabeller */
.BB-knap-lille {
    padding: 4px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* Deaktiverede knapper må ikke "hoppe" ved hover */
[class*='button-banebasen-']:disabled,
[class*='button-banebasen-'][disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    -webkit-transform: none;
    transform: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* ============ ADMIN-SIDER SLUT ============ */

/* ============ LOGIN-SIDE (samme blå tema som mails) ============ */
.BB-login {
    display: flex;
    justify-content: center;
    padding: 40px 16px 56px 16px;
    text-align: left;
}

.BB-login-kort {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border: 1px solid #D9E2EC;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(31, 41, 51, 0.10);
    overflow: hidden;
}

.BB-login-banner {
    background: #4682BE;
    background-image: linear-gradient(90deg, #2B5F93 0%, #4682BE 100%);
    color: #FFFFFF;
    padding: 26px 28px 24px 28px;
}

.BB-login-etiket {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #D6E6F5;
}

.BB-login-titel {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    margin: 6px 0 6px 0;
    color: #FFFFFF;
}

.BB-login-undertekst {
    font-size: 14px;
    line-height: 1.5;
    color: #E8F1FA;
}

.BB-login-indhold {
    padding: 26px 28px 24px 28px;
    color: #1F2933;
}

.BB-login .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 6px;
}

/* theme.css giver alle input bredde 100%, margin og grå tekst - det nulstilles her */
.BB-login .form-control {
    margin-bottom: 0;
    padding: 11px 14px;
    background: #FFFFFF;
    color: #1F2933;
    border: 1px solid #D9E2EC;
    border-radius: 8px;
    font-size: 15px;
}

.BB-login .input-group > .form-control {
    width: 1%;
    flex: 1 1 auto;
}

.BB-login .form-control:focus {
    border-color: #4682BE;
    box-shadow: 0 0 0 0.2rem rgba(70, 130, 190, 0.25);
}

.BB-login .input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.BB-login .BB-login-vis {
    padding: 0 14px;
    border: 1px solid #D9E2EC;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #EEF4FA;
    color: #2B5F93;
    font-size: 14px;
    font-weight: 600;
    min-width: 72px;
}

.BB-login .BB-login-vis:hover,
.BB-login .BB-login-vis:focus {
    background: #DCE8F5;
    color: #2B5F93;
}

.BB-login-link {
    font-size: 14px;
    font-weight: 600;
    color: #4682BE;
    text-decoration: none;
}

.BB-login-link:hover {
    color: #2B5F93;
    text-decoration: underline;
}

.BB-login-knap {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #4682BE;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.15s ease;
}

.BB-login-knap:hover,
.BB-login-knap:focus {
    background: #2B5F93;
    color: #FFFFFF;
}

.BB-login-knap:disabled {
    opacity: 0.7;
    cursor: wait;
}

.BB-login-knap-lys {
    background: #EEF4FA;
    color: #2B5F93;
    border: 1px solid #C9DBEE;
    font-size: 14px;
}

.BB-login-knap-lys:hover,
.BB-login-knap-lys:focus {
    background: #DCE8F5;
    color: #2B5F93;
}

/* Slet bruger (slet.bruger.php) */
.BB-login-knap-slet {
    background: #B42318;
}

.BB-login-knap-slet:hover,
.BB-login-knap-slet:focus {
    background: #912018;
}

.BB-login-knap-slet:disabled {
    background: #D9A29C;
    opacity: 1;
    cursor: not-allowed;
}

.BB-slet-advarsel {
    background: #FDF3F2;
    border: 1px solid #F4D3CF;
    border-left: 4px solid #B42318;
    border-right: 4px solid #B42318;
    border-radius: 8px;
    padding: 14px 16px 6px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1F2933;
}

.BB-slet-advarsel ul {
    padding-left: 18px;
    margin: 6px 0 8px 0;
}

.BB-slet-advarsel li {
    margin-bottom: 4px;
}

.BB-login .form-check-input:checked {
    background-color: #B42318;
    border-color: #B42318;
}

.BB-login .form-check-label {
    font-size: 14px;
    font-weight: 600;
}

/* Styrkemåler på password.skift.php */
.BB-pw-maaler {
    height: 6px;
    margin-top: 8px;
    background: #EEF4FA;
    border-radius: 3px;
    overflow: hidden;
}

.BB-pw-maaler > div {
    width: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.BB-login-glemt {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #D9E2EC;
}

.BB-login-h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1F2933;
    margin: 0 0 4px 0;
}

.BB-login-hjaelp {
    font-size: 14px;
    color: #6B7785;
    margin-bottom: 14px;
}

.BB-login-bund {
    background: #EEF4FA;
    border-top: 1px solid #D9E2EC;
    padding: 14px 28px;
    font-size: 12px;
    line-height: 1.6;
    color: #6B7785;
}

@media (max-width: 576px) {
    .BB-login {
        padding: 16px 0 32px 0;
    }

    .BB-login-kort {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .BB-login-banner,
    .BB-login-indhold {
        padding-left: 20px;
        padding-right: 20px;
    }

    .BB-login-bund {
        padding-left: 20px;
        padding-right: 20px;
    }

    .BB-login-titel {
        font-size: 22px;
    }
}

/* ============ LOGIN-SIDE SLUT ============ */

/* ============ banebasen.dk .end============ */

/* ============ HOVEDMENU START ============ */
/* Efterligner menuen på https://banebasen.dk/ (WordPress-tema Neve) */
.BB-hdr {
    position: relative;
    z-index: 993;
    background: #fff;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, .1);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.BB-hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 58px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1300px) {
    .BB-hdr-inner {
        max-width: 1240px;
        padding: 0 .75rem;
    }
}

@media (min-width: 1400px) {
    .BB-hdr-inner {
        max-width: 1320px;
    }
}

.BB-hdr-logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.BB-hdr-logo img {
    display: block;
    width: 350px;
    max-width: 100%;
    height: auto;
}

.BB-nav-ul,
.BB-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.BB-nav li {
    margin: 0; /* theme.css giver li en bundmargen */
}

.BB-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.BB-nav a {
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 1px 0 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 12.8px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: #18191d;
    transition: none;
}

.BB-nav .BB-caret {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 5px;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    color: #18191d;
    cursor: pointer;
    transition: transform .3s ease;
}

.BB-nav .BB-caret svg {
    width: 6.4px;
    height: 6.4px;
}

/* Aktiv side og mus-over: gul som på banebasen.dk */
.BB-nav li.BB-aktiv > .BB-nav-wrap > a,
.BB-nav li.BB-aktiv > .BB-nav-wrap > .BB-caret,
.BB-nav li:hover > .BB-nav-wrap > a,
.BB-nav li:hover > .BB-nav-wrap > .BB-caret,
.BB-nav li > .BB-nav-wrap > a:focus-visible {
    color: #fec503;
}

.BB-hdr-toggle,
.BB-nav-top,
.BB-nav-overlay {
    display: none;
}

/* ---------- Skrivebord ---------- */
@media (min-width: 1200px) {
    .BB-nav-ul {
        display: flex;
        align-items: center;
    }

    .BB-nav .BB-nav-punkt {
        position: relative;
        margin: 0 3.5px;
    }

    .BB-nav .BB-nav-punkt:last-child {
        margin-right: 0;
    }

    .BB-nav-ul > li > .BB-nav-wrap {
        padding: 0 4px;
    }

    /* Gul streg under punktet, der folder sig ud fra midten */
    .BB-nav-ul > li > .BB-nav-wrap::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        margin: 0 auto;
        background-color: #fec503;
        transition: all .3s ease;
        pointer-events: none;
    }

    .BB-nav-ul > li > .BB-nav-wrap:hover::after {
        width: 100%;
    }

    .BB-sub {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 100;
        background: #fff;
        box-shadow: rgba(149, 157, 165, .2) 0 8px 24px;
        visibility: hidden;
        opacity: 0;
    }

    .BB-nav-punkt:hover > .BB-sub,
    .BB-nav-punkt:focus-within > .BB-sub,
    .BB-nav-punkt.BB-under-aaben > .BB-sub {
        visibility: visible;
        opacity: 1;
    }

    .BB-sub li {
        min-width: 150px;
        width: 100%;
    }

    .BB-sub .BB-nav-wrap {
        padding: 10px 20px;
        white-space: nowrap;
    }

    .BB-nav .BB-sub-skille {
        height: 1px;
        margin: 2px 0;
        background: #eef0f3;
    }
}

/* Lidt mindre logo, når der er knap plads til alle menupunkter */
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .BB-hdr-logo img {
        width: 260px;
    }
}

/* ---------- Mobil og tablet: knap og panel fra venstre ---------- */
@media (max-width: 1199.98px) {
    .BB-hdr-logo img {
        width: 260px;
    }

    .BB-hdr-toggle,
    .BB-nav .BB-nav-luk {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-shrink: 0;
        width: 47px;
        height: 34px;
        margin: 0;
        padding: 10px 15px;
        border: 1px solid #18191d;
        border-radius: 3px;
        background: transparent;
        color: #18191d;
        cursor: pointer;
    }

    .BB-hdr-toggle span {
        display: block;
        width: 15px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }

    .BB-nav .BB-nav-luk svg {
        width: 15px;
        height: 15px;
    }

    .BB-nav-top {
        display: flex;
        justify-content: flex-end;
        padding: 8px 10px;
    }

    .BB-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: 360px;
        max-width: 90vw;
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }

    body.BB-menu-aaben .BB-nav {
        transform: none;
        visibility: visible;
    }

    body.BB-menu-aaben .BB-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(0, 0, 0, .5);
    }

    .BB-nav-ul {
        padding: 20px 0;
    }

    .BB-nav-ul > li > .BB-nav-wrap {
        padding: 15px 20px;
    }

    .BB-nav a {
        font-size: 15px;
        white-space: normal;
    }

    .BB-nav .BB-caret {
        margin: -15px 0 -15px auto;
        padding: 15px;
    }

    .BB-nav .BB-caret svg {
        width: 15px;
        height: 15px;
    }

    .BB-nav-punkt.BB-under-aaben > .BB-nav-wrap > .BB-caret {
        transform: rotateX(180deg);
    }

    .BB-sub {
        display: none;
        margin: -5px 0 10px 30px;
    }

    .BB-nav-punkt.BB-under-aaben > .BB-sub {
        display: block;
    }

    .BB-sub .BB-nav-wrap {
        padding: 9px 20px 9px 0;
    }

    .BB-sub a {
        font-size: 13.5px;
    }

    .BB-nav .BB-sub-skille {
        height: 1px;
        margin: 6px 20px 6px 0;
        background: #eef0f3;
    }
}

@media (max-width: 400px) {
    .BB-hdr-logo img {
        width: 200px;
    }
}
/* ============ HOVEDMENU SLUT ============ */
