/* NULSTILLING & FONTS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2d3748;
    background-color: #f8fafc;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth; /* Gør at siden ruller blødt når man klikker i menuen! */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. TOPBAR */
.topbar {
    background-color: #1a365d;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-tekst {
    font-size: 22px;
    font-weight: 800;
}

.logo-tekst span {
    color: #38a169;
}

.menu a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.menu a:hover {
    color: #38a169;
}

.menu .top-tlf {
    background-color: #38a169;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
}

.menu .top-tlf:hover {
    background-color: #2f855a;
}

/* 2. HERO BANNER */
.hero {
    position: relative;
    background: url('Hero Banner JS Teknik & Montage.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 54, 93, 0.85); /* Mørkeblå gennemsigtigt lag */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

/* KNAPPER */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #38a169;
    color: white;
}

.btn-primary:hover {
    background-color: #2f855a;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: white;
    color: #1a365d;
}

/* 3. BILLED & TEKST SEKTIONER */
.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #edf2f7;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-image {
    flex: 1;
    min-width: 300px;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.badge {
    background-color: #e6fffa;
    color: #234e52;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.feature-text h2 {
    font-size: 32px;
    color: #1a365d;
    margin: 15px 0;
}

.feature-text p {
    margin-bottom: 20px;
    color: #4a5568;
}

.feature-text ul {
    list-style: none;
}

.feature-text li {
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-link {
    color: #38a169;
    font-weight: bold;
    text-decoration: none;
}

/* 4. YDELSER */
.services-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.section-title {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #718096;
    margin-bottom: 40px;
}

.ydelser-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.ydelse-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px 20px;
    border-radius: 10px;
    flex: 1 1 220px;
    max-width: 260px;
    text-align: left;
    transition: transform 0.2s;
    border-top: 4px solid #1a365d;
}

.ydelse-card:hover {
    transform: translateY(-5px);
}

.ydelse-card .icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.ydelse-card h3 {
    color: #1a365d;
    margin-bottom: 10px;
}

/* 5. HVORFOR VÆLGE OS */
.why-us-section {
    padding: 80px 0;
    background-color: #1a365d;
    color: white;
    text-align: center;
}

.why-us-section .section-title {
    color: white;
    margin-bottom: 40px;
}

.why-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.why-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    flex: 1 1 250px;
    text-align: left;
}

.why-box h3 {
    margin-bottom: 10px;
    color: #38a169;
}

/* 6. KONTAKTFORMULAR */
.contact-section {
    padding: 80px 0;
    background-color: #edf2f7;
}

.contact-box {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-box h2 {
    color: #1a365d;
    margin-bottom: 10px;
    text-align: center;
}

.contact-box p {
    color: #718096;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
}

.full-width {
    width: 100%;
}

/* 7. BUND / FOOTER */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 10px;
}

.footer a {
    color: #38a169;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 14px;
}



/* =========================================
   MOBIL OPTIMERING (Skærme under 768px bredde)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Gør overskrifterne lidt mindre, så de ikke fylder hele skærmen */
    .hero h1 {
        font-size: 2rem; 
    }
    
    .hero {
        padding-top: 60px;
        text-align: center; /* Centrerer teksten pænt på mobilen */
    }

    /* 2. Stabl knapperne ovenpå hinanden, så man ikke rammer forkert med tommelfingeren */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-left: 0;
    }

    .hero-buttons .btn {
    width: 100%;
    margin-left: 0;
    font-size: 15px;
    }

    /* 3. Hvis du har kolonner (f.eks. under ydelser eller kontakt), skal de ligge under hinanden */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-tlf {
        display: inline-block; /* Gør at den opfører sig som en knap */
        margin: 10px auto;     /* Giver luft omkring den og centrerer den */
        padding: 8px 16px;     /* Gør knappen god at trykke på med en tommelfinger */
        font-size: 0.95rem;    /* Tilpasser skriftstørrelsen til en mobilskærm */
        text-align: center;
        width: fit-content;    /* Sørger for den kun er så bred som teksten */
    }

    .topbar {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    }

    .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    }

    .menu .top-tlf {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0 0 0;
    }
}