/* ===== Grids / Containers ===== */
.teddy_refbox_container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.refbox_container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ansatte_container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

/* ===== Cards ===== */
.refbox_element,
.teddy_refbox_element {
    width: 100%;
    display: flex;
    position: relative;
    background: #eee;
}

.teddy_refbox_element {
    margin-top: 30px;
    height: 600px;
}

.refbox_element_wide,
.teddy_refbox_element_wide {
    width: 100%;
    height: 500px;
    display: block;
    position: relative;
}

/* ===== Media ===== */
.refbox_img,
.teddy_refbox_img {
    flex: 0 0 33%;
    aspect-ratio: 1 / 1;
    height: 250px;
    background: center / cover no-repeat;
}

.refbox_img_wide,
.teddy_refbox_img_wide {
    width: 100%;
    height: 280px;
    background: center / cover no-repeat;
    padding: 10px 0 0 10px;
}

/* ===== Labels / Category ===== */
.refbox_cat,
.teddy_refbox_cat {
    max-width: 75%;
    padding: 5px;
    background: #fff;
    color: #222;
    text-align: center;
    text-transform: uppercase;
    font: 600 16px Montserrat, sans-serif;
    border: 1px solid #ddd;
}

/* ===== Text blocks ===== */
.refbox_text_container,
.teddy_refbox_text_container {
    width: 100%;
    min-height: 250px;
    padding: 15px 30px;
    font-weight: 400;
    transition: all .5s ease;
}

.refbox_text_container {
    padding: 0 20px;
}

.refbox_title,
.teddy_refbox_title {
    margin: 15px 0 25px;
    line-height: 1.75;
    text-transform: uppercase;
    font: 500 20px Montserrat, sans-serif;
}

.refbox_excerpt,
.teddy_refbox_excerpt {
    margin-top: -20px;
    line-height: 1.75;
    font: 400 15px Montserrat, sans-serif;
}

/* ===== Overlay links (card as a link) ===== */
.refbox_url,
.teddy_refbox_url,
.refbox_url_wide,
.teddy_refbox_url_wide,
.refbox_url_referanse,
.teddy_refbox_url_referanse {
    position: absolute;
    inset: 0;
    border: 0;
    z-index: 1;
    background: transparent;
    transition: background-color .3s ease;
    cursor: pointer;
}

.refbox_url:hover,
.teddy_refbox_url:hover,
.refbox_url_wide:hover,
.teddy_refbox_url_wide:hover {
    background-color: rgba(0, 0, 0, .08);
}

.refbox_url_referanse,
.teddy_refbox_url_referanse {
    inset: auto 0 0 0;
    height: 250px;
}

.refbox_url_referanse:hover,
.teddy_refbox_url_referanse:hover {
    background-color: rgba(0, 0, 0, .25);
}

/* ===== Empty state ===== */
.refbox_emptyres,
.teddy_refbox_emptyres {
    font: 600 22px Montserrat, sans-serif;
    text-align: center;
}

/* ===== Header ===== */
.ref_header {
    display: block;
    text-align: center;
    font: 400 30px Montserrat, sans-serif;
}

.ref_header h2 {
    color: #00126b;
}

/* ===== Links row ===== */
.reflinks {
    display: inline-block;
    width: 25%;
    padding: 5px 20px;
    text-transform: uppercase;
    font: 600 14px Montserrat, sans-serif;
    color: #222;
    transition: all .5s ease;
}

.reflinks:hover {
    color: #fff;
    background: #222;
}

.reflink_text {
    display: block;
    padding: 0 0 10px;
}

/* ===== Employees (Ansatte) ===== */
#Elektro4Ansatte {
    font-family: Montserrat, sans-serif;
}

.ansatte_element {
    width: 45%;
    min-height: 256px;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin: 12px;
    padding: 30px;
    background: #f9f9f9;
    color: #000;
    font-family: Montserrat, sans-serif;
}

.ansatt_image_container {
    flex: 0 0 33%;
    aspect-ratio: 1 / 1;
    min-height: 180px;
    background: center / cover no-repeat;
}

.ansatt_text_container {
    width: 66%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .25rem;
}

.ansatt_name,
.ansatt_stilling,
.ansatt_mobil,
.ansatt_telefon,
.ansatt_email {
    width: 100%;
}

.ansatt_name {
    font-weight: 700;
}

.ansatt_stilling,
.ansatt_mobil,
.ansatt_telefon,
.ansatt_email {
    font-weight: 400;
}

.ansatte_element a {
    color: #00126b;
}

/* ===== Small utilities ===== */
.seperator {
    width: 25%;
    height: 1px;
    border: 1px solid #00126b;
    border-radius: 10px;
    background: #00126b;
    margin: 5px 0;
}

.tagbox {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-family: Montserrat, sans-serif;
}

.tag {
    font-weight: 400;
}

/* ===== Banners ===== */
.banner,
.upgrade_banner {
    width: 100%;
    height: 125px;
    font: 12px Montserrat, sans-serif;
    z-index: 111111;
    margin-bottom: -5px;
}

.banner {
    height: 100px;
}

.bannertext,
.upgrade_bannertext {
    text-align: center;
}

.bannertext p,
.upgrade_bannertext p {
    color: #fff;
    padding-top: 15px;
}

.bannertext a {
    color: #fff;
}

.bannertext a:hover {
    color: #aaa;
}

.close {
    position: absolute;
    margin: 25px;
    font-size: 25px;
    color: #fff;
}

.accordion-item {
    border: 2px solid #fff;
}

.accordion-button {
    background: #f1f1f1;
    color: #000;
    font-weight: 400;
}

.accordion-button:not(.collapsed),
.accordion-button:hover {
    background: #00126b;
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}