/* ===== START PÅ KOMPLET style.css FIL ===== */

/* --- GRUNDLÆGGENDE LAYOUT & HEADER (Fra index.html) --- */
:root {
    --primary-color: #005fbf;
    --secondary-color: #005cb8;
    --light-gray-color: #f7f9fc;
    --text-color: #333;
    --heading-color: #1d3557;
    --white-color: #fff;
}

*,:after,:before {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    background-color:var(--white-color);
    color:var(--text-color);
    line-height:1.6;
}

.container {
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.site-header {
    position:sticky;
    top:0;
    z-index:1000;
    background-color:var(--white-color);
}

.top-bar {
    background-color:#f7f9fc;
    padding:.5rem 0;
    font-size:.9rem;
    color:#333;
    border-bottom:1px solid #e0e0e0;
}

.top-bar .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.top-bar-phone-link {
    color:var(--primary-color);
    font-weight:700;
    text-decoration:none;
    transition:color .3s;
}

.main-header {
    background-color:var(--white-color);
    padding:1rem 0;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.main-header .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo {
    font-size:1.8rem;
    font-weight:700;
    color:var(--primary-color);
    text-decoration:none;
    z-index:1001;
}

nav ul {
    list-style:none;
    display:flex;
    align-items:center;
    gap:1rem;
    flex-wrap:nowrap;
}

nav a {
    text-decoration:none;
    color:var(--heading-color);
    font-weight:500;
    transition:color .3s ease;
}

.mobile-nav-toggle {
    display:none;
    background:0 0;
    border:none;
    cursor:pointer;
    padding:.5rem;
    z-index:1001;
}

.hamburger-bar {
    display:block;
    width:25px;
    height:3px;
    margin:5px auto;
    background-color:var(--heading-color);
    transition:all .3s ease-in-out;
}

.button {
    background-color:var(--primary-color);
    color:var(--white-color);
    padding:.7rem 1.5rem;
    border-radius:5px;
    text-decoration:none;
    transition:background-color .3s ease;
    border:none;
    cursor:pointer;
    font-size:1rem;
}

.button-large {
    font-size:1.2rem;
    padding:1rem 2rem;
}

.hero {
    position:relative; 
    color:var(--white-color); 
    padding:6rem 0; 
    text-align:center;
}

.hero h1 {
    font-size:3.5rem;
    margin-bottom:1rem;
}

.hero p {
    font-size:1.3rem;
    margin:0 auto 2rem;
}

.hero-subtext-button-spacer {
    margin-bottom:3rem!important;
}

.hero .button {
    background-color:var(--white-color);
    color:var(--primary-color);
    border:2px solid var(--white-color);
    font-weight:700;
}

.hero-background {
    aspect-ratio: 1025 / 508;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 92, 184, 0.8);
    z-index: -1;
}

/* --- GENERELLE STYLES (Fra din eksisterende CSS) --- */
section:nth-child(2n) { 
    background-color: var(--light-gray-color); 
}

h2 { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: var(--heading-color); 
}

section, .subpage-content { 
    padding: 4rem 0; 
}

.area-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #333;
}

.area-button {
    width: fit-content;
    margin: 2rem auto 0;
    display: block;
}

/* --- KORT (SERVICES & OMRÅDER) --- */
.service-cards, .area-grid { 
    display: grid; 
    gap: 1.5rem; 
    grid-template-columns: repeat(2, 1fr); 
}

.card, .area-card { 
    background: var(--white-color); 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,.06); 
    padding: 2rem; 
    transition: transform .3s, box-shadow .3s; 
    text-decoration: none; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #e0e0e0;
}

.card:hover, .area-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,.1); 
}

.card h3, .area-card h3 { 
    color: var(--primary-color); 
    margin-bottom: .75rem; 
    font-size: 1.3rem; 
}

.card p, .area-card p { 
    color: var(--text-color); 
    font-size: 1rem; 
    line-height: 1.5; 
    word-wrap: break-word; 
    flex-grow: 1;
}

.card-indicator { 
    color: var(--primary-color); 
    font-weight: 700; 
    margin-top: auto; 
    padding-top: 1rem; 
    transition: color .3s; 
}

.area-card:hover .card-indicator { 
    color: var(--secondary-color); 
}

/* --- OM OS SEKTION --- */
.about-us .container { 
    max-width: 800px; 
    text-align: center; 
}

/* --- ANMELDELSER --- */
.testimonials .container { 
    padding-bottom: 50px; 
}

.testimonial-carousel-wrapper { 
    position: relative; 
    padding: 0 40px; 
}

.testimonial-carousel-viewport { 
    overflow: hidden; 
}

.testimonial-carousel-track { 
    display: flex; 
    gap: 20px; 
    padding-bottom: 1rem; 
}

.testimonial-carousel-track .card { 
    flex: 0 0 100%; 
    min-width: 0; 
    text-align: left; 
}

.carousel-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: rgba(255,255,255,.9); 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    font-size: 24px; 
    cursor: pointer; 
    transition: background-color .3s, box-shadow .3s; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1; 
}

.carousel-btn:hover { 
    background-color: var(--white-color); 
    box-shadow: 0 2px 10px rgba(0,0,0,.1); 
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

blockquote { 
    font-style: italic; 
    margin-bottom: 1rem; 
    position: relative; 
    padding-left: 1.5rem; 
    flex-grow: 1; 
}

blockquote::before { 
    content: '“'; 
    position: absolute; 
    left: 0; 
    top: -.5rem; 
    font-size: 3rem; 
    color: var(--primary-color); 
    opacity: .5; 
}

cite { 
    font-weight: 700; 
    color: var(--heading-color); 
}

.verified-badge-container { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    color: #1e7e34; 
    font-weight: 600; 
    margin-top: 5px; 
    font-size: .95rem; 
}

/* --- FOOTER --- */
.site-footer { 
    background-color: var(--heading-color); 
    color: var(--white-color); 
    text-align: center; 
    padding: 4rem 0; 
}

.footer-content { 
    max-width: 600px; 
    margin: 0 auto; 
}

.footer-content h3 { 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
}

.footer-content p { 
    margin-bottom: 1.5rem; 
    opacity: .9; 
}

.contact-details { 
    margin-bottom: 2rem; 
    font-size: 1.1rem; 
}

.contact-details p { 
    margin-bottom: .5rem; 
}

.contact-details a { 
    color: var(--white-color); 
    text-decoration: underline; 
    transition: opacity .3s; 
}

.contact-details a:hover { 
    opacity: .8; 
}

#contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

#contact-form .form-group { 
    display: flex; 
    gap: 1rem; 
}

#contact-form input, #contact-form textarea { 
    width: 100%; 
    padding: .8rem; 
    border-radius: 5px; 
    border: 1px solid #6b86a9; 
    background-color: #2c4a6e; 
    color: var(--white-color); 
    font-size: 1rem; 
    font-family: inherit; 
}

#contact-form input::placeholder, #contact-form textarea::placeholder { 
    color: #a0b3ce; 
}

#contact-form input:focus, #contact-form textarea:focus { 
    outline: 0; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 2px rgba(0,115,230,.5); 
}

#contact-form textarea { 
    min-height: 120px; 
    resize: vertical; 
}

#contact-form .button { 
    align-self: center; 
    width: auto; 
    padding: .8rem 2.5rem; 
}

.copyright { 
    margin-top: 3rem; 
    border-top: 1px solid #4a6fa5; 
    padding-top: 2rem; 
    font-size: .9rem; 
    opacity: .8; 
}

/* --- UNDERSIDER --- */
.subpage-hero {
    background: var(--light-gray-color);
    padding: 4rem 0;
    text-align: center;
}
.subpage-hero h1 {
    font-size: 3rem;
    color: var(--heading-color);
    margin-bottom: .5rem;
}
.subpage-hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}
.subpage-content .container {
    max-width: 800px;
}
.subpage-content h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.subpage-content h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.subpage-content p, .subpage-content ul {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.subpage-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.cta-box {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--light-gray-color);
    border-radius: 8px;
}
.cta-box h2 {
    text-align: center;
}
.cta-box p {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* --- SCROLL-MARGIN & MEDIA QUERIES --- */
section[id], footer[id] { 
    scroll-margin-top: 120px; 
}

@media (min-width: 769px) {
    .testimonial-carousel-track .card { 
        flex-basis: calc(50% - 10px); 
    }
}

@media (max-width: 768px) {
   /* NY REGEL TILFØJET HER */
    .service-cards, .area-grid {
        grid-template-columns: 1fr; /* Skifter til én kolonne */
    }
    .main-header nav ul li a.button {
        display:none;
    }
    .mobile-nav-toggle {
        display:block;
    }
    .main-header nav {
        position:absolute;
        top:calc(100% + 1rem);
        left:0;
        width:100%;
        background-color:var(--white-color);
        box-shadow:0 4px 10px rgba(0,0,0,.1);
        transform:scaleY(0);
        transform-origin:top;
        transition:transform .2s ease-in-out;
    }
    .main-header nav.nav-open {
        transform: scaleY(1);
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: .5rem 0;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
    .main-header nav.nav-open ul li a.button {
        display: block;
        width: 90%;
        margin: .5rem auto;
    }
    .mobile-nav-toggle.is-active .hamburger-bar:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hero h1 {
        font-size:2.5rem;
    }
    .hero p {
        font-size:1.1rem;
    }
    .top-bar .container {
        flex-direction:column;
        text-align:center;
    }
    .top-bar .container .top-bar-info,.top-bar .container .top-bar-phone-link {
        display:block;
        margin:.1rem 0;
    }
    .logo {
        font-size:1.3rem;
    }
    .main-header {
        padding-top:.5rem;
        padding-bottom:.5rem;
    }
    .top-bar {
        padding-top:.4rem;
        padding-bottom:.4rem;
        font-size:.8rem;
    }
    h2 { 
        font-size: 2rem; 
    }
    #contact-form .form-group { 
        flex-direction: column; 
    }
    .subpage-hero h1 {
        font-size: 2.2rem;
    }
    .subpage-content h2 {
        font-size: 1.8rem;
    }
    .testimonial-carousel-wrapper {
        padding: 0;
    }
    .carousel-btn { 
        top: auto; 
        bottom: -50px; 
        transform: translateY(0); 
    }
    .prev-btn { 
        left: 30%; 
    }
    .next-btn { 
        right: 30%; 
    }
    section[id], footer[id] { 
        scroll-margin-top: 85px; 
    }
}

/* ===== NY FAT FOOTER & KONTAKT SEKTION ===== */

/* 1. Ny Kontakt Sektion (Hvor formularen nu bor) */
.contact-section {
    padding: 4rem 0;
    background-color: var(--light-gray-color); /* Lys baggrund så den skiller sig ud fra footer */
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* Genbrug eksisterende styles til formular-indhold */
.contact-section .footer-content {
    color: var(--text-color); /* Skifter tekst til mørk, da baggrunden er lys */
}
.contact-section h3 {
    color: var(--heading-color);
}
.contact-section p {
    color: var(--text-color);
    opacity: 1;
}
.contact-section .contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* 2. Den Nye Fat Footer (Mørkeblå) */
.site-footer {
    background-color: var(--heading-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
    text-align: left; /* Vigtigt: Venstrestillet tekst for læsbarhed */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #7cffcb; /* En frisk accent-farve der matcher din success-besked */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px; /* Lille animation ved hover */
    text-decoration: none;
}

.footer-contact-info p {
    margin-bottom: 1rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
}

/* 3. Copyright Linjen */
.copyright {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.8;
}

/* Mobil Tilpasning */
@media (max-width: 768px) {
    .site-footer {
        text-align: center;
    }
    .footer-contact-info p {
        justify-content: center;
    }
}
/* ===== BRØDKRUMMER (Breadcrumbs) ===== */
.breadcrumbs {
    background-color: #f0f4f8;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #e1e4e8;
}
.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #999; /* Skilletegn */
}
.breadcrumbs .current {
    color: #333;
    font-weight: 600;
}
/* ===== NY FAT FOOTER & KONTAKT SEKTION ===== */
.contact-section {
    padding: 4rem 0;
    background-color: #f7f9fc;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}
.contact-section h3 { color: var(--heading-color); }
.contact-section p { color: var(--text-color); }
.contact-section .contact-details a { color: var(--primary-color); text-decoration: none; font-weight: 700; }

.site-footer {
    background-color: var(--heading-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
    text-align: left;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}
.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #7cffcb;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}
.footer-links a:hover { color: var(--white-color); padding-left: 5px; }
.footer-contact-info p { margin-bottom: 1rem; color: #cbd5e1; }
.footer-contact-info a { color: var(--white-color); text-decoration: none; font-weight: 600; }
.copyright { margin-top: 0; border-top: none; padding-top: 0; text-align: center; font-size: 0.9rem; color: #94a3b8; }

/* ===== BRØDKRUMMER (Breadcrumbs) ===== */
.breadcrumbs {
    background-color: #f0f4f8;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #e1e4e8;
}
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.breadcrumbs a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #999; }
.breadcrumbs .current { color: #333; font-weight: 600; }

@media (max-width: 768px) {
    .site-footer { text-align: center; }
}
/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    margin: 0;
    max-width: 700px;
    font-size: 0.95rem;
    color: var(--text-color);
}

#cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: opacity 0.3s;
}

.cookie-accept {
    background-color: #1e7e34; /* Grøn */
    color: white;
}

.cookie-decline {
    background-color: #dc3545; /* Rød */
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* ===============================
   KARRUSEL (TESTIMONIALS) STYLING
   =============================== */

/* Selve rammen omkring karrusellen */
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px; /* Plads til pilene i siderne */
    overflow: hidden; /* Skjuler kort der er udenfor rammen */
}

/* Vinduet vi kigger igennem */
.testimonial-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* Sporet som kortene kører på */
.testimonial-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Den glidende bevægelse */
    gap: 20px; /* Afstand mellem kort */
    align-items: stretch; /* Gør alle kort lige høje */
}

/* Hvert enkelt anmeldelses-kort */
.testimonial-carousel-track .card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    flex: 0 0 100%; /* Mobil: 1 kort ad gangen (100% bredde) */
    min-width: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Desktop: Vis 2 kort ad gangen */
@media (min-width: 769px) {
    .testimonial-carousel-track .card {
        flex: 0 0 calc(50% - 10px); /* 50% minus det halve af gappet */
    }
}

/* Citat-tekst */
.testimonial-carousel-track blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

/* Kunde-navn */
.testimonial-carousel-track cite {
    font-weight: bold;
    display: block;
    color: var(--primary-color);
    font-style: normal;
}

/* KNAPPERNE (Pilene) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrer lodret */
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Runde knapper */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Placering af venstre og højre pil */
.prev-btn { left: 0; }
.next-btn { right: 0; }


/* ===== ENDELIGT FIX TIL FOOTER KONTRAST ===== */

/* 1. Gør al tekst i footeren kridhvid og fjerner gennemsigtighed */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer div,
.site-footer h3,
.site-footer h4,
.site-footer li,
.copyright {
    color: #ffffff !important; /* Tvinger farven til ren hvid */
    opacity: 1 !important;     /* Fjerner al "tåge/gennemsigtighed" */
}

/* 2. Sørger for links også er hvide (men må gerne skifte lidt ved hover) */
.site-footer a {
    color: #ffffff !important;
    text-decoration: underline; /* Understregning hjælper også på tilgængelighed */
}

/* 3. Beholder fixet til Google Anmeldelserne (hvis de stadig driller) */
.card div[style*="color: #777"], 
.card div[style*="color:#777"],
.card .review-date, 
.card .review-text {
    color: #333 !important;
}