/* ============================================================
   Melsen Tech - CTA-links som knapper
   Kong Gulerod, august 2026

   Baggrund: .cta-btn er allerede defineret som en groen pilleknap
   i main.css - samme knap som "kontakt os" i headeren. Men hver
   enkelt modulsektion nulstiller den bagefter med
   padding:0 + background:transparent, saa den ender som flad tekst.
   Nedenstaaende ruller den nulstilling tilbage.

   VIGTIGT: dette stylesheet skal indlaeses EFTER main.css i layoutet.
   ============================================================ */


/* --- VARIANT A: fyldt knap (matcher "kontakt os" i headeren) --- */

body .text-col-section .item .cta-btn,
body .text-w-video-section .cta-btn,
body .img-w-text-section .text-box .cta-btn,
body .before-after-section .cta-btn,
body .image-w-textoverlay-section .cta-btn,
body .mansonry-grid-section .cta-btn,
body .large-img-w-text .cta-btn {
    display: inline-block;
    background-color: #3c757a !important;
    color: #fff !important;
    padding: 15px 25px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

body .text-col-section .item .cta-btn:hover,
body .text-w-video-section .cta-btn:hover,
body .img-w-text-section .text-box .cta-btn:hover,
body .before-after-section .cta-btn:hover,
body .image-w-textoverlay-section .cta-btn:hover,
body .mansonry-grid-section .cta-btn:hover,
body .large-img-w-text .cta-btn:hover {
    background-color: #2b5458 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

/* Modulet "Tekst m. billede" i hvid variant staar paa moerk baggrund
   - der vendes knappen om, saa kontrasten holder. */
body .img-w-text-section.w-color .cta-btn {
    background-color: #fff !important;
    color: #3c757a !important;
}

body .img-w-text-section.w-color .cta-btn:hover {
    background-color: #eaf1f1 !important;
}

/* Tastaturfokus - i dag er der ingen synlig fokusmarkering paa CTA'erne */
.cta-btn:focus-visible {
    outline: 3px solid #3c757a;
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   ROER IKKE:
   .menu-section .side-box .cta-btn        (menuen i headeren)
   .img-w-text-section .img-box .cta-btn   (hvid knap, absolut placeret)
   .large-video-section .cta-btn           ("Afspil" paa /om/)
   Disse er allerede knapper eller har bevidst saerbehandling.
   ------------------------------------------------------------ */


/* ============================================================
   VARIANT B: outline-knap (reserve - ikke aktiv)
   Byt med variant A ovenfor hvis de fyldte knapper bliver for meget.

   body .text-col-section .item .cta-btn,
   body .text-w-video-section .cta-btn,
   body .img-w-text-section .text-box .cta-btn,
   body .before-after-section .cta-btn,
   body .image-w-textoverlay-section .cta-btn,
   body .mansonry-grid-section .cta-btn,
   body .large-img-w-text .cta-btn {
       display: inline-block;
       background-color: transparent !important;
       color: #3c757a !important;
       padding: 13px 23px !important;
       border: 2px solid #3c757a;
       border-radius: 30px !important;
       text-decoration: none !important;
   }
   ...hover: background-color: #3c757a !important; color: #fff !important;
   ============================================================ */



/* ============================================================
   FORSIDEN - linkene under overskriften
   Kong Gulerod, august 2026

   De seks links var fed hvid tekst uden ramme, understregning
   eller baggrund. Eneste affordance var hover, som farvede dem
   groenne - daarligere kontrast paa den moerke video, og
   ikke-eksisterende paa mobil.

   Herunder: menuliste med streger (variant A)
   + hover med groen markoer i venstre kant (variant A3).
   ============================================================ */

.homepage-large-video-section .col-md-8 > br {
    display: none;
}

.homepage-large-video-section .col-md-8 > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 15px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: background-color .25s ease, padding-left .25s ease, color .25s ease;
}

.homepage-large-video-section .col-md-8 > a:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, .35);
}

.homepage-large-video-section .col-md-8 > a svg {
    margin-left: 0;
    transition: transform .25s ease;
}

/* Hover: groen markoer glider ind fra venstre, raekken loeftes let,
   teksten rykker ind og pilen glider til hoejre.
   Bemaerk: teksten holdes HVID - main.css farver den ellers groen,
   hvilket saenker kontrasten mod videoen. */
.homepage-large-video-section .col-md-8 > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #3c757a;
    transition: width .25s ease;
}

.homepage-large-video-section .col-md-8 > a:hover::before {
    width: 5px;
}

.homepage-large-video-section .col-md-8 > a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .10);
    padding-left: 28px;
}

.homepage-large-video-section .col-md-8 > a:hover svg {
    transform: translateX(8px);
}

.homepage-large-video-section .col-md-8 > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Mobil: hover findes ikke - stregerne og pilene baerer affordancen alene */
@media (max-width: 600px) {
    .homepage-large-video-section .col-md-8 > a {
        padding: 14px 8px;
    }
    .homepage-large-video-section .col-md-8 > a:hover {
        padding-left: 8px;
    }
}


/* ============================================================
   KONTAKTPERSON-MODUL (ncContactPersonModule)
   Kong Gulerod, august 2026

   Person med kontaktoplysninger til venstre, simpel formular
   til hoejre. Send-knappen genbruger .cta-btn, saa den foelger
   sitets oevrige knapper automatisk.
   ============================================================ */

.contact-person-section {
    padding: 80px 0;
}

.contact-person-section .section-title h2 {
    margin-bottom: 10px;
}

.contact-person-section .section-title p {
    max-width: 60ch;
    margin-bottom: 40px;
}

/* --- personen --- */

.contact-person-section .person-box img {
    width: 100%;
    display: block;
    margin-bottom: 22px;
}

.contact-person-section .person-box h3 {
    margin-bottom: 2px;
}

.contact-person-section .person-box .title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #6d797c;
    margin-bottom: 18px;
}

.contact-person-section .person-box a {
    display: block;
    padding: 7px 0;
    font-weight: 700;
    font-size: 15px;
    color: #3c757a;
    border-bottom: 1px solid #d5dcdc;
}

.contact-person-section .person-box a:first-of-type {
    border-top: 1px solid #d5dcdc;
}

.contact-person-section .person-box a:hover {
    color: #2b5458;
    text-decoration: none;
}

/* --- formularen --- */

.contact-person-section .form-box {
    background: #f2f5f5;
    padding: 38px;
}

.contact-person-section .form-box h3 {
    margin-bottom: 6px;
}

.contact-person-section .form-box .sub {
    margin-bottom: 26px;
    color: #6d797c;
}

.contact-person-section .field {
    margin-bottom: 18px;
}

.contact-person-section .field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-person-section .field .opt {
    font-weight: 400;
    color: #6d797c;
}

.contact-person-section .field input[type="text"],
.contact-person-section .field input[type="email"],
.contact-person-section .field input[type="tel"],
.contact-person-section .field select,
.contact-person-section .field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #d5dcdc;
    border-radius: 3px;
    color: #1d2426;
}

.contact-person-section .field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-person-section .field input:focus,
.contact-person-section .field select:focus,
.contact-person-section .field textarea:focus {
    outline: none;
    border-color: #3c757a;
    box-shadow: 0 0 0 3px rgba(60, 117, 122, .15);
}

.contact-person-section .form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* honeypot - skal vaere usynlig for mennesker, men findes for bots */
.contact-person-section .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-person-section .consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13px;
    line-height: 1.5;
    color: #6d797c;
    font-weight: 400;
    margin: 22px 0 24px;
}

.contact-person-section .consent input {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #3c757a;
}

.contact-person-section button.cta-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    background-color: #3c757a;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.contact-person-section button.cta-btn:hover {
    background-color: #2b5458;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.contact-person-section .reply-time {
    font-size: 13px;
    color: #6d797c;
    margin: 16px 0 0;
}

@media (max-width: 767px) {
    .contact-person-section {
        padding: 50px 0;
    }
    .contact-person-section .form-box {
        padding: 26px;
        margin-top: 34px;
    }
    .contact-person-section .form-two {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* kvittering og fejlbesked i kontaktformularen */

.contact-person-section .form-receipt {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.contact-person-section .form-error {
    margin: 0 0 22px;
    padding: 13px 16px;
    background: #fbeaea;
    border-left: 3px solid #b3413f;
    font-size: 14px;
    color: #7d2d2c;
}
