@charset "utf-8";
/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Header-Stile */
header {
    background-color:	#000435;
    color: white;
    text-align: center;
    padding: 20px 0;
	max-width: none; /* Hebt jede Begrenzung der Breite auf */
    width: 100%; /* Der Header passt sich dem Bildschirm an */
}

header img {
    display: block;
    margin: 0 auto;
    width: 100%; /* Passt sich der Containerbreite an */
    max-width: 500px; /* Maximale Breite des Logos */
    height: auto; /* Höhe proportional */
}

@media (max-width: 768px) {
    header img {
        transform: scale(1.5); /* Vergrößert das Logo um das 1.5-Fache */
        transform-origin: center; /* Vergrößert das Logo von der Mitte aus */
    }
}

header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Dynamische Schriftgröße */
}

header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Links umbrechen bei kleinem Platz */
    gap: 10px; /* Abstände zwischen Links */
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column; /* Links untereinander */
        align-items: center;
    }
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
}

header nav a:hover {
    text-decoration: underline;
}

/* Hauptbereich-Stile */
main {
    padding: 2rem 1rem;
    text-align: center;
}

.content, .contentl {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.6;
}
.image-boxes {
    display: flex;
    flex-wrap: wrap; /* Inhalte umbrechen */
    gap: 20px;
    justify-content: space-between; /* Boxen gleichmäßig verteilen */
    margin: 20px auto;
    padding: 0 10px;
}

.image-boxes .box {
    flex: 1 1 calc(33.333% - 20px); /* Drei Boxen nebeneinander */
    max-width: calc(33.333% - 20px); /* Maximale Breite */
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out; /* Leichter Hover-Effekt */
}

.image-boxes .box:hover {
    transform: scale(1.02); /* Vergrößerung bei Hover */
}

@media (max-width: 768px) {
    .image-boxes .box {
        flex: 1 1 100%; /* Eine Box pro Zeile */
        max-width: 100%;
    }
}


.image-boxes .box img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-boxes .box h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #00509e;
    margin-top: 10px;
}

.image-boxes .box p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #333;
    margin-top: 5px;
}

/* Deaktivieren von Klickaktionen */
.image-boxes .box.no-click {
    pointer-events: none; /* Klicks deaktivieren */
}

.references-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.reference-box {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 768px) {
    .references-container {
        flex-direction: column; /* Boxen untereinander */
        gap: 10px; /* Kleinere Abstände */
    }

    .reference-box {
        flex: 1 1 100%; /* Volle Breite */
        max-width: 100%;
    }
}

.reference-box img {
    width: 100%; /* Bild passt sich der Box an */
    height: auto; /* Höhe bleibt proportional */
    display: block;
}

.reference-box p {
    padding: 10px;
    font-size: 1rem;
    color: #333;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .reference-box {
        flex: 1 1 100%; /* Jede Box nimmt die volle Breite ein */
        max-width: 100%;
    }
}

/* Lightbox-Overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex; /* Wird nur aktiv, wenn die Klasse "active" hinzugefügt wird */
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    text-decoration: none;
    background-color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    text-align: center;
    line-height: 30px;
    color: black;
    cursor: pointer;
}

/* Responsives Design */
@media (max-width: 768px) {
    .references-container {
        flex-direction: column;
        align-items: stretch; /* Dehnt die Boxen gleichmäßig */
    }

    .reference-box {
        flex: 1 1 100%; /* Nimmt die gesamte Breite */
        margin: 0 0 20px; /* Fügt Abstände zwischen den Boxen hinzu */
    }
}

/* Kontaktformular-Stile */
.contact-form-section {
    background-color: #f4f4f9;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

.contact-form-section h2 {
    font-size: 2rem;
    color: #000435;
    margin-bottom: 10px;
}

.contact-form-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000435;
    box-shadow: 0 0 5px rgba(0, 67, 53, 0.2);
}

.btn-submit {
    font-size: 1rem;
    color: white;
    background-color: #000435;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #00509e;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 20px 10px;
    }

    .contact-form-section h2 {
        font-size: 1.5rem;
    }

    .contact-form-section p {
        font-size: 0.9rem;
    }
}



/* Footer-Stile */
footer {
    background-color: #191970;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

footer nav a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        padding: 1rem; /* Weniger Padding */
    }

    header img {
        max-width: 200px; /* Reduziere Logo-Größe */
    }

    footer p {
        font-size: 0.8rem; /* Kleinere Schrift im Footer */
    }
}
