* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background: url('images/header-image.jpg') no-repeat center center/cover;
    height: 500px;
    color: #000000;
    padding: 20px;
    position: relative;
}

.header-content {
    text-align: center;
    padding-top: 40px;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #e50505;
}

header p {
    font-size: 1.8rem;
}

.logo {
    position: absolute;
    top: 10px;
    right: 10px;
}

.logo img {
    width: 200px;
    height: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgba(229, 5, 5, 0.7);
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

section {
    padding: 80px;
    text-align: center;
}

#about, #contact {
    background-color: #fff;
    margin: 0px 0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #e50505;
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#services {
    text-align: center;
}

.service-container {
    display: flex;
    flex-direction: row; /* Bilder nebeneinander anordnen */
    justify-content: space-between; /* Abstand zwischen den Bildern */
    gap: 20px; /* Abstand zwischen den einzelnen Service-Items */
}

.service-item {
    display: flex;
    flex-direction: column; /* Inhalte innerhalb des Items untereinander anordnen */
    align-items: center;
    max-width: 450px;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-content h4 {
    margin-top: 5px;
    font-size: 1.5rem;
    color: #333;
}

.service-text {
    margin-top: 20px; /* Abstand zum oberen Inhalt */
    text-align: center;
}
.service-item img {
    width: 450px;
    height: auto;
    object-fit: scale-down;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto; /* Breite automatisch */
    max-width: 90%; /* Maximalbreite auf 90% des Bildschirms setzen */
    max-height: 90%; /* Maximale Höhe auf 90% des Bildschirms setzen */
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev-modal, .next-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 35px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
}

.prev-modal {
    left: 20px;
}

.next-modal {
    right: 20px;
}

.gallery {
    text-align: center;
    margin: 20px 0;
}
.image-viewer {
    position: relative;
    display: inline-block;
}

.image-viewer img {
    width: 100%;
    max-width: 800px;
    height: 650px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.image-viewer .prev, .image-viewer .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
    color: rgb(254, 2, 2);
    font-weight: bold;
    font-size: 40px;
    background: none;
    border: none;
    user-select: none;
}

.image-viewer .prev {
    left: -40px;
}

.image-viewer .next {
    right: -40px;
}

.map-container {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    padding: 10px 20px;
    border: none;
    background-color: #e50505;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #d00404;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.about-image {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-logo {
    width: 150px;
    height: auto;
}

.contact-text {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.vcard-image {
    width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .logo img {
        width: 80px;
        height: auto;
        right: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 4px 8px;
    }

    .service-container {
        flex-direction: column;
    }

    .service-item img {
        max-height: 200px;
    }

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-logo, .vcard-image {
        width: 50px;
    }

    .image-viewer img {
        max-width: 100%;
        height: auto;
    }

    form, .map-container, .container {
        width: 90%;
    }
}
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.thank-you-box {
    background-color: #fff;
    padding: 30px 50px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 80%;
}

.thank-you-box h2 {
    margin-bottom: 10px;
    color: #333;
}

.thank-you-box p {
    margin-bottom: 20px;
    color: #666;
}

.thank-you-box button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #e50505;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.thank-you-box button:hover {
    background-color: #d00404;
}
/* Hintergrundfarbe für "Über uns" */
#about {
    background-color: #ffffff; /* Weißer Hintergrund */
}

/* Hintergrundfarbe für "Leistungen" */
#services {
    background-color: #f4f4f4; /* Hellgrauer Hintergrund */
}

/* Hintergrundfarbe für "Referenzen" */
#portfolio {
    background-color: #ffffff; /* Weißer Hintergrund */
}

/* Hintergrundfarbe für "Kontakt" */
#contact {
    background-color: #f4f4f4; /* Hellgrauer Hintergrund */
}
/* Abgerundete Ecken für alle Abschnitte */
#about, #services, #portfolio, #contact {
    border-radius: 50px; /* Rundet die Ecken mit einem Radius von 50px */
    overflow: hidden; /* Verhindert, dass Inhalte über die abgerundeten Ecken hinausgehen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Schatten für einen schönen Effekt */
}
.required-field {
    color: #999; /* Hellgraue Schriftfarbe */
    font-size: 0.7rem; /* Etwas kleinere Schriftgröße */
}
.iti {
    width: 100%; /* Passt die Breite des Eingabefelds an */
}
    #topButton {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99;
        font-size: 16px;
        background-color: #e50505;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        display: none; /* Versteckt den Button zu Beginn */
    }
    
    .floating-nav {
        display: none; /* Startet als unsichtbar */
        position: fixed;
        bottom: 70px; /* Direkt über dem Button */
        right: 20px;
        background-color: rgba(229, 5, 5, 0.9); /* Hintergrundfarbe */
        padding: 10px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .floating-nav a {
        display: block;
        color: white;
        text-decoration: none;
        margin-bottom: 5px;
        font-size: 1rem;
    }
    
    .floating-nav a:hover {
        background-color: rgba(0, 0, 0, 0.7);
        padding: 5px;
        border-radius: 5px;
    }

h1, h2 {
    color: #e50505; /* Rot */
}
@media (max-width: 768px) {
    .image-viewer img {
        width: 100%; /* Bild auf volle Breite des Containers setzen */
        height: auto; /* Höhe automatisch anpassen */
        max-width: 600px; /* Optional: Begrenzung der maximalen Breite */
    }

    .service-item img {
        width: 100%; /* Genauso für die Service-Bilder */
        max-width: 600px;
        height: auto;
    }
}
@media (max-width: 768px) {
    #portfolio .container {
        width: 100%; /* Nutzt die volle Breite des Bildschirms */
        padding: 10px; /* Fügt etwas Innenabstand hinzu */
    }

    .gallery img,
    .image-viewer img {
        width: 100%; /* Nutzt die gesamte Breite */
        max-width: 100%; /* Keine maximale Begrenzung */
        height: auto; /* Behält das Seitenverhältnis bei */
        border-radius: 10px; /* Optional: Runde Ecken */
    }

    #portfolio p1, .gallery p {
        font-size: 1.2rem; /* Vergrößert die Schriftgröße */
        line-height: 1.6; /* Erhöht den Zeilenabstand */
    }

    .image-viewer {
        margin: 20px auto; /* Zentriert die Galerie */
    }
}
