/* Generel Styling - OPDATERET TIL MØRKT TEMA */
:root {
    --primary-color: #fca311; /* Orange accentfarve */
    --secondary-color: #14213d; /* Mørkeblå til knapper etc. */
    --dark-bg: #222;           /* Hovedbaggrundsfarve */
    --card-bg: #333;           /* Baggrundsfarve for kort/bokse */
    --border-color: #444;       /* Kantfarve for kort/bokse */
    --text-dark: #111;           /* Tekstfarve PÅ orange elementer */
    --text-light: #f4f4f4;        /* Hovedtekstfarve */
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg); /* Sætter mørk baggrund for hele siden */
    color: var(--text-light);          /* Sætter lys tekst for hele siden */
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light); /* Sikrer alle overskrifter er lyse */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color); /* Gør hovedoverskrifter orange */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color); /* Gør links orange som standard */
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}
.btn-primary:hover { background-color: #e8940e; border-color: #e8940e; }

/* Knap stil ændret til "outline" for at passe til mørkt tema */
.btn-light {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}
.btn-light:hover { background-color: var(--text-light); color: var(--text-dark); }

.btn-dark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}
.btn-dark:hover { background-color: #243a69; border-color: #243a69;}

/* Hero Sektion (passer allerede godt) */
.hero {
    /* Vi beholder den mørke "film" over billedet, men udskifter billed-URL'en */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('billedmappe/baggrundforside.png') no-repeat center center/cover;
    height: 100vh;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
}

.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 1rem; }
.logo span { font-size: 1.5rem; font-weight: 700; }

.nav-links { list-style: none; display: flex; }
.nav-links li { margin: 0 1rem; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; }

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 { font-size: 3.5rem; }
.hero-content p { font-size: 1.2rem; max-width: 600px; }
.hero-buttons { margin-top: 1rem; }
.hero-buttons .btn { margin: 0 0.5rem; }


/* Services Sektion - OPDATERET TIL MØRKT TEMA */
.services {
    padding: 4rem 2rem;
    background-color: var(--dark-bg); /* Sikrer mørk baggrund */
}
.section-subtitle { text-align: center; max-width: 600px; margin: -1rem auto 2rem auto; color: var(--text-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: var(--card-bg); /* Ændret fra hvid til mørk */
    border: 1px solid var(--border-color); /* Ændret fra lys til mørk kant */
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--primary-color); /* Orange kant ved hover */
}
.service-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px auto;
}

.service-card h3 { 
    margin-top: 1rem; 
    color: var(--text-light); /* Sikrer lys overskrift */
}

/* Why Us Sektion (passer allerede godt) */
.why-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
    background: var(--dark-bg);
    color: var(--text-light);
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Testimonials Sektion (passer allerede godt) */
.testimonials {
    padding: 4rem 2rem;
    background: var(--dark-bg);
    color: var(--text-light);
}
.testimonials-intro { text-align: center; margin-bottom: 2rem; }
.testimonials-intro span { color: var(--primary-color); font-weight: 700; }
.testimonials-intro h2 { color: var(--text-light); } /* Sættes specifikt til lys, da global h2 er orange */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}
.client-info { margin-top: 1rem; font-weight: 700; }

/* Kontakt & Footer Sektion (kilden til vores tema) */
.contact-footer {
    color: var(--text-light);
}

.contact-section {
    padding: 4rem;
    background-color: var(--primary-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    color: var(--text-dark);
}

.contact-section h3, .contact-section h4 {
    color: var(--text-dark); /* Sikrer mørk tekst på den orange baggrund */
}

.contact-form-container {
    background-color: rgba(0,0,0,0.1);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
}
.contact-form button { width: 100%; }

.footer-bottom {
    background: #111; /* Lidt mørkere end resten for at skille sig ud */
    text-align: center;
    padding: 1.5rem;
}

/* Portfolio Sektion */
.portfolio {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4 / 3; /* <-- TILFØJ DENNE LINJE */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sikrer billedet fylder uden at blive forvrænget */
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom-effekt på billedet */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); /* Mørk gradient nedefra */
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Placerer teksten i bunden */
    padding: 1.5rem;
    opacity: 0; /* Skjult som standard */
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Vises ved hover */
}

.portfolio-overlay h3 {
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.portfolio-overlay p {
    margin-bottom: 0;
    color: #ccc;
}

/* Responsive Design */
@media(max-width: 768px) {
    h2 { font-size: 2rem; }
    .navbar { flex-direction: column; }
    .nav-links { margin: 1rem 0; }
    .hero h1 { font-size: 2.5rem; }
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .why-us { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; }
}