/* Grundlæggende styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fbfd;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
header {
    background: #ffffff;
    padding: 2px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Container for både billede og tekst-logo */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Afstand mellem billede og tekst */
}

/* Det lille billede helt i hjørnet */
.firkant-logo-img {
    width: 60px;  /* Juster denne hvis det skal være endnu mindre */
    height: auto;
    object-fit: contain;
    border-radius: 0px;
    margin-bottom: 0; /* Fjerner margin fra din gamle kode */
}

/* Teksten ved siden af billedet */
.logo-text {
    font-size: 1.5rem; /* Styrer størrelsen på TL SERVICE teksten */
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
}

/* Sørg for at navigationen ikke strækker sig for meget */
nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between; /* Skubber logo til venstre og menu til højre */
    align-items: center;
    padding: 10px 20px; /* Mindre padding gør headeren lavere */
}

/* Nulstil de gamle logo-klasser så de ikke driller */
.logo {
    display: none; /* Vi bruger logo-wrapper nu */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-red {
    color: rgb(155, 31, 21); /* En flot rød farve */
}

.logo-black {
    color: #000000;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: rgb(155, 31, 21);
}

/* Navigation links grund-styling */
nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

/* Den animerede linje */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0; /* Starter fra venstre */
    background-color: rgb(155, 31, 21);
    transition: width 0.3s ease-in-out;
}

/* 1. Den aktive side har fuld bredde */
nav ul li a.active::after {
    width: 100%;
}

/* 2. Når man holder over et link, vokser linjen altid fra venstre */
nav ul li a:hover::after {
    width: 100% !important;
    left: 0;
}

/* 3. Når musen er over menuen (ul), fjernes linjen fra det aktive link */
/* Vi tilføjer 'right: 0' og 'left: auto', så den trækker sig sammen mod højre */
nav ul:hover li a.active::after {
    width: 0;
    left: auto;
    right: 0;
}

/* 4. Hvis man holder over det aktive link igen, skal den skyde ud fra venstre */
nav ul li a.active:hover::after {
    width: 100% !important;
    left: 0;
    right: auto;
}

/* Gør teksten rød når aktiv */
nav ul li a.active {
    color: rgb(155, 31, 21) !important;
}
/* Hero Sektion */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.7)), 
                url(billeder/Hero-sektion.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: rgb(255, 204, 0);
    color: #0056b3;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Services */
.services {
    max-width: 1100px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.privat-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.ervherv-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.solcelle-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.maler-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.tømrer-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.fuge-img {
    width: 300px;      /* Juster størrelsen her */
    height: 150px;
    object-fit: cover; /* Sikrer at billedet ikke bliver strukket */
    border-radius: 10%; /* Gør billedet rundt (valgfrit) */
    margin-bottom: 10px;
}

.card {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    color: rgb(155, 31, 21);
    margin-bottom: 15px;
}

/* Kontakt Info */
.contact-info {
    text-align: center;
    padding: 20px 20px;
    background: #eef4f9;
}


.contact-container p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.contact-container a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}


.btn-red {
    display: inline-block;
    background: rgb(255, 204, 0);
    color: rgb(51, 51, 51);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
    margin-top: 15px; 
}

.btn-red:hover {
    transform: scale(1.05);
}

/* Styling til den nye anmeldelsesknap */
.btn-review {
    display: inline-block;
    background: #ffffff;
    color: #4285F4; /* Google blå */
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid #4285F4;
    transition: all 0.3s ease;
}

.btn-review:hover {
    background: #4285F4;
    color: white;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px;
}

/* Styling til Om Os siden */
.about-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.about-container h1 {
    color: rgb(155, 31, 21);
    margin-bottom: 20px;
}

.about-container h2 {
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
}

.about-container h3 {
    margin-top: 30px;
    color: rgb(155, 31, 21);
}

.about-container ul {
    list-style-position: inside;
    margin: 20px 0;
}

.about-container li {
    margin-bottom: 10px;
}

/* Styling til kortet på Om Os siden */
.Kort {
    max-width: 900px; /* Samme bredde som din about-section */
    margin: 40px auto; /* Centrerer sektionen og giver luft top/bund */
    padding: 20px;
    display: flex;
    justify-content: center; /* Centrerer indholdet (iframe) horisontalt */
}

.Kort iframe {
    background: #fff; /* Hvid baggrund indeni kassen */
    padding: 10px;    /* Luft mellem kort og kant */
    border-radius: 15px; /* Afrundede hjørner som dine service-kort */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Den milde skygge */
    border: none;     /* Fjerner standard iframe kant */
    width: 100%;      /* Gør at den fylder kassen ud */
    max-width: 700px; /* Sætter en grænse for hvor bredt kortet skal være */
}

/* Styling til Kontaktformularen */
.contact-page {
    padding: 60px 20px;
    background-color: #f9fbfd;
    display: flex;
    justify-content: center;
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.form-container h1 {
    color: rgb(155, 31, 21);
    margin-bottom: 10px;
    text-align: center;
}

.form-container p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: rgb(155, 31, 21);
}

.btn-submit {
    width: 100%;
    background: rgb(155, 31, 21);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background: #7a1811;
    transform: translateY(-2px);
}


/* Galleri Styling */
.gallery-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery-title {
    margin-bottom: 30px;
    color: rgb(155, 31, 21);
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-wrapper {
    overflow: hidden; /* Skjuler billeder udenfor rammen */
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.gallery-item {
    min-width: calc(33.333% - 14px); /* Viser 3 billeder ad gangen */
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Knapper */
.prev-btn, .next-btn {
    background: rgb(155, 31, 21);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: #333;
}

/* Responsivitet - vis færre billeder på mindre skærme */
@media (max-width: 900px) {
    .gallery-item { min-width: calc(50% - 10px); } /* 2 billeder */
}
@media (max-width: 600px) {
    .gallery-item { min-width: 100%; } /* 1 billede */
}

/* Mobil-optimering (skærme under 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stabler logo og menu vertikalt */
        padding: 5px 10px;
    }

    .logo-wrapper {
        margin-bottom: 5px; /* Giver luft ned til menuen */
    }

    nav ul {
        flex-wrap: wrap; /* Gør at menupunkterne kan hoppe ned på næste linje */
        justify-content: center;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        margin: 5px 10px; /* Mindre afstand mellem knapperne på mobil */
    }

    nav ul li a {
        font-size: 0.9rem; /* Lidt mindre tekst så der er plads */
    }
}

/* Language Switcher in Footer */
.lang-switcher {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lang-switcher a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lang-switcher a:hover, .lang-switcher a.active-lang {
    color: #ffcc00;
    font-weight: bold;
}