/* ──────────────────────────────────────────────
   Generel body og layout
─────────────────────────────────────────────── */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;   /* hide horizontal scroll */
    width: 100%;          /* ensure full width */
}

.body-boks {
    margin: 0 auto; 
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

.section-title {
    color: #ffffff;
    font-size: 3.2rem;            /* desktop-størrelse */
    font-weight: 800;
    margin: 0;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7);
    letter-spacing: 1px;
    line-height: 1.15;
    max-width: 90%;

}

.btn-secondary {
    color: white;
}

/* Desktop – endnu større overskrift */
@media (min-width: 992px) {
    .section-title {
        font-size: 3.8rem;
        margin-bottom: 40px;
    }
}

/* Tablet & mindre – lidt mindre for bedre balance */
@media (max-width: 991px) {
    .section-title {
        margin-top: 75px;
        font-size: 2.6rem;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* ──────────────────────────────────────────────
   Services-sektion (forside – kort med baggrund)
─────────────────────────────────────────────── */
.services-section {
    padding: 60px 20px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background: linear-gradient(rgba(0, 0, 0, 0.036), rgba(0, 0, 0, 0.025)), 
                url('filer/start-sektion/baggrund.png') center / cover no-repeat;
    min-height: 800px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    justify-items: center;
}

.service-card {
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(240, 245, 255, 0.35) 50%,
        rgba(225, 235, 255, 0.22) 100%
    );
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
    color: #111111;                    /* slightly darker for contrast */
    width: 100%;
    max-width: 320px;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.035);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(240, 245, 255, 0.48) 50%,
        rgba(225, 235, 255, 0.35) 100%
    );
    backdrop-filter: blur(16px) saturate(1.25);
}

.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.service-card h3 {
    margin: 20px 15px 10px;
    font-size: 1.4rem;
    color: #003087;
}

.service-card p {
    margin: 0 16px 24px;
    color: #444;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    background: #003087;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 28px;
    transition: background 0.2s;
}

.btn:hover {
    background: #002060;
}

/* Responsive grid for services */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: -12px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    .services-section {
        min-height: 600px;
        padding: 50px 15px;
        gap: 40px;
    }
}

/* ──────────────────────────────────────────────
   Hero-header (profil-sektion)
─────────────────────────────────────────────── */
.hero-header {
    background: #041938;
    color: white;
    padding: 90px 20px 80px;
    text-align: center;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1 1 55%;
    min-width: 340px;
    text-align: left;
}

.hero-image {
    flex: 0 0 50%;
    max-width: 380px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image img {
    margin-top: -150px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.20);
    transform-origin: top center;
}

.main-title {
    font-size: 2.9rem;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.1;
}

.decorative-line {
    height: 4px;
    width: 170px;
    background: linear-gradient(to right, transparent, #468df9, transparent);
    margin: 18px 0;
    border-radius: 2px;
}

.slogan {
    font-size: 1.45rem;
    font-weight: 400;
    margin: 14px 0 28px;
    color: white;
}

.phone-wrapper {
    margin: 28px 0 36px;
}

.phone-number-2 {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    background: rgba(70, 141, 249, 0.08);
    transition: all 0.3s ease;
    width: 30%;
}

.phone-number-2:hover {
    background: rgba(70, 141, 249, 0.22);
    color: white;
}

/* ──────────────────────────────────────────────
   Vi kører til / hvor-menu / kort / by-lister
─────────────────────────────────────────────── */
.hvor-menu {
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.hvor-knap {
    width: 50%;
    color: white; 
    padding: 10px 20px; 
    font-size: 16px; 
    border-radius: 5px; 
    cursor: pointer; 
    border: none;
    height: 100%;
    margin-bottom: 10px;
}

#hele-fyn-knap,
#sydfyn-knap {
    background-color: #468df9;
}

#hele-fyn-knap.active,
#sydfyn-knap.active {
    background-color: #014ab7;
}

#hele-fyn,
#kun-sydfyn {
    display: none;
}

#hele-fyn.active,
#kun-sydfyn.active {
    display: block;
}

#hvor-vi-arbejder {
    cursor: url('cursor/dans-bil-cursor-v2.png'), auto;
    margin-bottom: 30px;
    margin-top: 50px;
}

#kort {
    max-width: 690px;
    width: 100%;
    display: flex;
    margin: auto;
    object-fit: cover;
}

.vi-korer-til-v3,
.vi-korer-til-v2,
.vi-korer-til {
    background-color: rgba(128, 128, 128, 0.152);
    border-radius: 15px;
    margin: auto;
    padding: 20px;
    text-align: center;
    justify-content: center;
}

.vi-korer-til-v2,
.vi-korer-til {
    flex-direction: column;
    width: 90%;
    margin-top: 5%;
}

.vi-korer-til-v3 {
    flex-direction: row;
    width: 90%;
}

#vi-korer-til-h2 {
    font-size: 20px;
}

#kasse-bil {
    height: 45px;
    width: 45px;
    margin-right: 10px;
}

#ikon-h2-frame {
    flex-direction: row;
    display: flex;
    margin-left: 50px;
}

#byer-ul {
    display: flex;
    list-style: none;
    width: 90%;
    flex-wrap: wrap;
    line-height: 25px;
    justify-content: center;
}

#byer-ul a {
    text-decoration: none;
    color: inherit;
}

#byer-li {
    margin: 0 6px 8px;
}

.hele-fyn-start {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 300px;
    cursor: pointer;
}

#arrow-down {
    height: 20px;
    width: 20px;
    margin-left: 3px;
    cursor: pointer;
}

#liste,
#liste-mekaniker {
    display: none;
    margin: auto;
    flex-direction: column;
    flex-wrap: wrap;
}

#fyn-li {
    list-style: none;
    margin-bottom: 5px;
    margin-right: 10px;
}

.fliserens-liste {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

/* ──────────────────────────────────────────────
   Intro video
─────────────────────────────────────────────── */
.video-section {
    margin-top: 30px;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 50px;
}

.intro-video {
    width: 99%;
    height: 95%;
    border-radius: 15px;
    display: flex;
    margin: auto;
    margin-bottom: 40px;
}

#intro-h1 {
    color: #041938;
}

.video-container {
    position: relative;
    width: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button svg {
    width: 100%;
    height: auto;
    fill: #0B2D5F;
}

/* ──────────────────────────────────────────────
   Om Dan Hulgaard
─────────────────────────────────────────────── */
#om-dan-hulgaard {
    background-color: rgba(128, 128, 128, 0.152);
    margin-bottom: 100px;
    border-radius: 15px;
}

.om-dan-frame {
    display: flex;
    flex-direction: column;
}

.dan-box1 {
    margin: auto;
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

#om-dan-h1 {
    margin-top: 120px;
    padding-top: 40px;
}



.phone-number-dan-hulgaard {
    font-size: 18px;
    color: white;
    background-color: #0B2D5F;
    border-radius: 5px;
    padding: 5px;
    width: 100px;
    text-align: center;
}

.phone-number-dan-hulgaard a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

/* ──────────────────────────────────────────────
   Andre sektioner (Mangler du hjælp? / Hvad vi fikser)
─────────────────────────────────────────────── */
#mangler-du-hjælp {
    border-radius: 15px;
    background-color: rgba(128, 128, 128, 0.152);
    padding: 20px;
    margin-bottom: 20px;
}

.hjælp-knap {
    width: 50%;
    background-color: #3b84f2;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    height: 100%;
}

#hvad-vi-fikser {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

#hvad-vi-fikser h2 {
    margin-bottom: 30px;
}

.fikser-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 10px;
}

.vi-fikser-bla-dette-a {
    background-color: #3b84f2;
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    width: 90%;
    display: flex;
    text-align: center;
    justify-content: center;
    text-decoration: none;
}

/* ──────────────────────────────────────────────
   FOOTER – fixed version (no overflow when expanded)
─────────────────────────────────────────────── */
footer {
    background-color: #041938;
    color: #ffffff;
    padding: 60px 20px 100px;          /* increased bottom padding */
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden; /* optional safety */
    margin-top: 100px;
    height: auto;
}

.footer-container {
    display: block; /* ensure normal flow */
    max-width: 1400px;
    margin: 0 auto;;
    height: auto;
}

.footer-main-row {

    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-column {
    flex: 1 1 220px;
    min-width: 220px;
    box-sizing: border-box;
    height: auto;
}

.footer-city-column .city-list {
    margin: 0;
    padding: 0;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #d0e0ff;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Scrollable city list */
.footer-city-column .city-list {
    max-height: 300px;   /* visible height before scrolling */
    overflow-y: auto;    /* vertical scroll */
    padding-right: 5px;  /* space for scrollbar */
}

/* WebKit browsers (Chrome, Safari, Edge) */
.footer-city-column .city-list::-webkit-scrollbar {
    width: 6px;              /* width of the scrollbar */
}

.footer-city-column .city-list::-webkit-scrollbar-track {
    background: transparent;  /* scrollbar track background */
}

.footer-city-column .city-list::-webkit-scrollbar-thumb {
    background-color: rgba(70, 141, 249, 0.6); /* scrollbar thumb */
    border-radius: 3px;      /* round edges */
}

/* Firefox */
.footer-city-column .city-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(70,141,249,0.6) transparent;
}

/* Expand / collapse for by-lister */
.city-list .extra {
    display: none;
}

.city-list.expanded .extra {
    display: list-item;
}

.expand-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: none;
    border: 1px solid #468df9;
    color: #468df9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 180px;
    text-align: center;
}

.expand-btn:hover,
.expand-btn:focus {
    background: rgba(70,141,249,0.15);
}

.expand-btn.expanded {
    background: #468df9;
    color: white;
}

/* CVR – more space when lists are long */
#cvr {
    text-align: center;
    margin: 80px auto 40px;           /* increased top margin + bottom space */
    font-size: 0.9rem;
    color: #aaccff;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* ──────────────────────────────────────────────
   RESPONSIV – MOBIL & TABLET
─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet + mobil: footer som én kolonne */
@media (max-width: 1200px) {
    .footer-main-row {
        flex-direction: column;
        gap: 50px;
    }

    .footer-column {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
        text-align: center;
    }

    .footer-simple-column,
    .footer-city-column {
        text-align: center;
        margin: 0 auto;
    }

    .footer-links {
        display: block;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .footer-links li {
        display: block;
        margin: 0 auto 8px auto;
        text-align: center;
        width: fit-content;
    }

    .footer-links a {
        display: inline-block;
        white-space: nowrap;
    }

    footer {
        padding: 50px 15px 120px;     /* even more bottom padding on smaller screens */
    }

    #cvr {
        margin: 60px auto 50px;
        padding-top: 20px;
    }
}

/* ──────────────────────────────────────────────
   HERO HEADER – BILLEDE UNDER TEKST PÅ TABLET & MOBIL
─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .decorative-line {
        margin: 18px auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .hero-text {
        text-align: center;
        width: 100%;
        max-width: 90%;
    }

    .hero-image {
        flex: none;
        max-width: 360px;
        width: 100%;
    }

    .hero-image img {
        transform: scale(1.20) !important;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
      margin-left: 20px;
    }

    .phone-number-2 {
        width: auto !important;
        margin: 20px auto;
        padding: 12px 24px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.35rem;
    }

    .hero-header {
        padding: 60px 15px 50px;
    }
}

/* Små mobil-skærme – finjustering */
@media (max-width: 480px) {
    .hero-image {
        max-width: 300px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .slogan {
        font-size: 1.25rem;
    }

    .footer-column h3 {
        font-size: 1.25rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-city-column .expand-btn {
        min-width: 200px;
        max-width: 85%;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .footer-column {
        padding: 0 10px;
    }

    .footer-links li {
        margin: 0 auto 7px auto;
    }
}