body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background-color: #003366;
    color: white;
    padding: 10px;
}

header div {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

header img {
    height: 80px;
    margin-right: 15px;
}

/* Logo link styling */
header a {
    display: inline-block;
    text-decoration: none;
}

header a:hover img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

nav {
    position: absolute;
    right: 20px;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}
main {
    padding: 20px;
}

/* Hero section med baggrundsbillede */
.hero {
    background-image: url('media/baggrund.jpg'); /* Erstat med dit billednavn */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
}

/* Overlay for bedre tekstlæsbarhed */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.7); /* Blå overlay med transparens */
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero link styling */
.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 51, 102, 0.3);
}

.hero-link:hover .hero {
    background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75)), url('media/baggrund.jpg');
    background-size: cover;
    background-position: center;
}

.hero-link .hero h1,
.hero-link .hero p {
    transition: all 0.3s ease;
}

.hero-link:hover .hero h1 {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero-link:hover .hero p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
footer {
    background-color: #f2f2f2;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}

/* Services section - responsiv og centreret */
.services {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.services h2 {
    text-align: center;
    color: #003366;
    font-size: 2em;
    margin-bottom: 30px;
}

.services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services li {
    background: #f8f9fa;
    margin: 10px 0;
    padding: 12px 20px;
    border-left: 4px solid #003366;
    border-radius: 5px;
    font-size: 1em;
    line-height: 1.3;
}

.services li:hover {
    background: #e9ecef;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.services > p {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #003366;
    color: white;
    border-radius: 10px;
    font-size: 1.1em;
}

.services .book-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #003366;
    color: white;
    border-radius: 10px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.services .book-link:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Container for centreret indhold */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container h2 {
    color: #003366;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.container h3 {
    color: #003366;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.container p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.container ul {
    margin: 30px 0;
    padding-left: 20px;
}

.container li {
    margin: 8px 0;
    padding: 0;
    font-size: 1em;
    line-height: 1.5;
    list-style: disc;
}

/* Kontaktformular styling */
.container form,
.contact-content form {
    margin-top: 30px;
}

.container label,
.contact-content label {
    display: block;
    color: #003366;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.container input[type="text"],
.container input[type="email"],
.container textarea,
.contact-content input[type="text"],
.contact-content input[type="email"],
.contact-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    font-family: Arial, sans-serif;
    margin-bottom: 25px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.container input[type="text"]:focus,
.container input[type="email"]:focus,
.container textarea:focus,
.contact-content input[type="text"]:focus,
.contact-content input[type="email"]:focus,
.contact-content textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.3);
    background-color: white;
}

.container textarea,
.contact-content textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.container input[type="submit"],
.contact-content input[type="submit"] {
    background-color: #003366;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0 auto;
    min-width: 200px;
}

.container input[type="submit"]:hover,
.contact-content input[type="submit"]:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Services container med billeder på siderne */
.services-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 30px;
}

.services-image-left,
.services-image-right {
    max-width: 250px;
    max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    flex-shrink: 0;
    align-self: center;
}

/* About container med billeder på siderne */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 30px;
}

.about-image-left,
.about-image-right {
    max-width: 250px;
    max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    flex-shrink: 0;
    align-self: center;
}

/* Contact container med billeder på siderne */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.contact-image-left,
.contact-image-right {
    max-width: 220px;
    max-height: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    flex-shrink: 0;
    align-self: flex-start;
}

.contact-content {
    flex: 1;
    min-width: 600px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content h2 {
    color: #003366;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.contact-content h3 {
    color: #003366;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.contact-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Thankyou container med billede til højre */
.thankyou-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.thankyou-content {
    flex: 1;
    max-width: 600px;
}

.thankyou-content h2 {
    color: #003366;
    font-size: 2em;
    margin-bottom: 20px;
}

.thankyou-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.thankyou-content a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.thankyou-content a:hover {
    text-decoration: underline;
}

.thankyou-image {
    max-width: 300px;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsiv design for thankyou billede */
@media (max-width: 768px) {
    .thankyou-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .thankyou-image {
        max-width: 250px;
        max-height: 200px;
        display: block;
        margin: 0 auto;
        align-self: center;
    }
    
    .thankyou-content h2 {
        font-size: 1.6em;
    }
    
    .thankyou-content p {
        font-size: 1em;
    }
}

/* Responsivt design for mobil */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .services-image-left,
    .services-image-right {
        max-width: 200px;
        max-height: 150px;
    }
    
    .services {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .services h2 {
        font-size: 1.6em;
    }
    
    .services li {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    
    .container {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .container h2 {
        font-size: 1.6em;
    }
    
    .container h3 {
        font-size: 1.2em;
    }
    
    .container p {
        font-size: 1em;
    }
    
    .container li {
        font-size: 0.95em;
        padding: 0;
    }
    
    .container input[type="text"],
    .container input[type="email"],
    .container textarea {
        font-size: 16px; /* Forhindrer zoom på iOS */
    }
    
    .container input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
}

/* Responsiv design for hero images */
@media (max-width: 1024px) {
    .hero-image-left,
    .hero-image-right {
        max-width: 150px;
        max-height: 200px;
    }
    
    .hero-image-left {
        margin-right: 20px;
    }
    
    .hero-image-right {
        margin-left: 20px;
    }
}

/* Responsivt design for tablet */
@media (max-width: 1024px) {
    .services-image-left,
    .services-image-right {
        max-width: 200px;
        max-height: 280px;
    }
    
    .services-container {
        gap: 20px;
    }
}

/* Responsivt design for kontakt billeder */
@media (max-width: 1200px) {
    .contact-container {
        max-width: 1200px;
        gap: 30px;
    }
    
    .contact-image-left,
    .contact-image-right {
        max-width: 180px;
        max-height: 260px;
    }
    
    .contact-content {
        min-width: 500px;
    }
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .contact-image-left,
    .contact-image-right {
        max-width: 250px;
        max-height: 180px;
        order: 1;
        display: block;
        margin: 0 auto;
        align-self: center;
    }
    
    .contact-content {
        min-width: auto;
        width: 100%;
        max-width: 600px;
        order: 2;
    }
    
    .contact-image-right {
        order: 3;
        margin: 20px auto 0 auto;
    }
}

/* Responsivt design for about billeder */
@media (max-width: 1024px) {
    .about-image-left,
    .about-image-right {
        max-width: 200px;
        max-height: 280px;
    }
    
    .about-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .about-image-left,
    .about-image-right {
        max-width: 200px;
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    /* Header responsivt med hamburger menu */
    header div {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 15px;
        position: relative;
    }
    
    header img {
        height: 60px;
        margin-right: 0;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 15px;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 51, 102, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        margin: 20px 0;
        font-size: 1.5em;
        text-align: center;
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }
    
    /* Hero section responsivt */
    .hero {
        flex-direction: column;
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .hero-image-left,
    .hero-image-right {
        max-width: 120px;
        max-height: 150px;
        margin: 10px 0;
    }
    
    .hero-content {
        order: 2;
        margin: 20px 0;
    }
    
    .hero-image-left {
        order: 1;
        margin-right: 0;
    }
    
    .hero-image-right {
        order: 3;
        margin-left: 0;
    }
    
    /* Kontakt container responsivt */
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .contact-image-left,
    .contact-image-right {
        max-width: 200px;
        max-height: 150px;
        order: 1;
        display: block;
        margin: 0 auto;
        align-self: center;
    }
    
    .contact-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        order: 2;
    }
    
    .contact-image-right {
        order: 3;
        margin: 20px auto 0 auto;
    }
    
    .contact-content h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .contact-content h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .contact-content p {
        font-size: 0.95em;
        text-align: left;
        margin-bottom: 15px;
    }
    
    .contact-content input[type="text"],
    .contact-content input[type="email"],
    .contact-content textarea {
        font-size: 16px; /* Forhindrer zoom på iOS */
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact-content textarea {
        min-height: 120px;
    }
    
    .contact-content input[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 1.1em;
        margin-top: 10px;
    }
    
    /* Services container responsivt */
    .services-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .services-image-left,
    .services-image-right {
        max-width: 200px;
        max-height: 150px;
        display: block;
        margin: 0 auto;
        align-self: center;
    }
    
    .services {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .services h2 {
        font-size: 1.6em;
    }
    
    .services li {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    
    /* About container responsivt */
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .about-image-left,
    .about-image-right {
        max-width: 200px;
        max-height: 150px;
        display: block;
        margin: 0 auto;
        align-self: center;
    }
    
    /* Container general responsivt */
    .container {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .container h2 {
        font-size: 1.6em;
    }
    
    .container h3 {
        font-size: 1.2em;
    }
    
    .container p {
        font-size: 1em;
    }
    
    .container li {
        font-size: 0.95em;
        padding: 0;
    }
    
    .container input[type="text"],
    .container input[type="email"],
    .container textarea {
        font-size: 16px; /* Forhindrer zoom på iOS */
    }
    
    .container input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
    
    /* Footer responsivt */
    footer {
        padding: 15px 10px;
        font-size: 0.8em;
    }
    
    footer p {
        margin: 5px 0;
    }
}

/* Ekstra responsivt design for meget små skærme */
@media (max-width: 480px) {
    header div {
        padding: 0 10px;
        justify-content: center;
        position: relative;
    }
    
    header img {
        height: 50px;
    }
    
    .hamburger-menu {
        width: 25px;
        height: 25px;
        padding: 5px;
        position: absolute;
        right: 10px;
    }
    
    .nav-menu a {
        font-size: 1.3em;
        margin: 15px 0;
        padding: 12px;
    }
    
    .contact-container {
        padding: 10px 5px;
        gap: 10px;
    }
    
    .contact-content {
        padding: 0 5px;
    }
    
    .contact-content h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .contact-content h3 {
        font-size: 1em;
    }
    
    .contact-content p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    
    .contact-image-left,
    .contact-image-right {
        max-width: 150px;
        max-height: 120px;
        display: block;
        margin: 0 auto 15px auto;
        align-self: center;
    }
    
    .contact-content input[type="text"],
    .contact-content input[type="email"],
    .contact-content textarea {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .contact-content textarea {
        min-height: 100px;
    }
    
    .contact-content input[type="submit"] {
        padding: 12px;
        font-size: 1em;
    }
    
    footer {
        font-size: 0.75em;
        padding: 10px 5px;
    }
}

/* Touch-friendly formularelementer for mobil */
@media (max-width: 768px) {
    .contact-content label {
        font-size: 1em;
        margin-bottom: 5px;
        margin-top: 15px;
        display: block;
    }
    
    .contact-content label:first-of-type {
        margin-top: 0;
    }
    
    .contact-content input[type="text"],
    .contact-content input[type="email"],
    .contact-content textarea {
        min-height: 44px; /* Apple's recommended minimum touch target */
        -webkit-appearance: none; /* Fjerner iOS styling */
        appearance: none; /* Standard property */
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .contact-content input[type="submit"] {
        min-height: 48px; /* Større touch target */
        margin-top: 20px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Hamburger menu styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 30px;
    height: 30px;
    justify-content: space-between;
    z-index: 1001;
    position: absolute;
    right: 20px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation menu styling */
.nav-menu {
    display: flex;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    text-decoration: underline;
}


