/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0078D7;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.sticky-header .header-container {
    text-align: center;
    padding: 10px 20px;
}

.sticky-header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.sticky-header h1 a {
    color: white;
    text-decoration: none;
}

.sticky-header h1 a:hover {
    text-decoration: underline;
}

.sticky-header p {
    font-size: 1rem;
    margin: 5px 0 0;
}

/* Menü */
.menu {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    background-color: #005a9e;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #003f6e;
}

/* Banner */
.banner {
    position: relative;
    height: 150hv;
    overflow: hidden;
    background-color: #ddd;
}

.banner-images {
    display: flex;
    animation: slide 15s infinite;
    width: 100%; /* Alle Banner in einer Reihe */
}

.banner-slide {
    min-width: 100%;
    height: 150hv;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 150hv;
    object-fit: cover;
    display: block; /* Verhindert unsichtbare Bilder */
}

.banner-text {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.2rem;
}

@keyframes slide {
    0%, 33.33% {
        transform: translateX(0);
    }
    33.34%, 66.66% {
        transform: translateX(-100%);
    }
    66.67%, 100% {
        transform: translateX(-200%);
    }
}

/* Hauptinhalt */
main {
    margin: 20px auto;
    padding: 0 10%;
    max-width: 1200px;
}

/* Überschriften */
h1, h2, h3, h4 {
    color: #005a9e;
}

/* Über mich */
.about-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Lebenslauf */
.cv-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.cv-container h3 {
    width: 100%;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #005a9e;
}

.cv-card {
    flex: 1 1 calc(50% - 20px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cv-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #005a9e;
}

.cv-card p {
    margin: 5px 0;
    color: #555;
}

/* Kontaktformular */
form {
    max-width: calc(100% - 20px); /* Gleiche Breite wie cv-card */
    margin: 40px auto; /* Größerer Abstand */
    padding: 30px; /* Mehr Innenabstand */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Größerer Schatten */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form .form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    width: 90 %;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

form input:focus, form textarea:focus {
    border-color: #0078D7;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
}

form button {
    background-color: #0078D7;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #005a9e;
    transform: scale(1.05);
}

.captcha {
   	display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background-color: #005a9e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}

footer a {
    color: #FFD700; /* Auffällige Linkfarbe */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.justified-text {
    text-align: justify;
}
.cv-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.cv-card ul {
    list-style-type: none;
    padding: 0;
}

.cv-card li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.cv-card li img {
    width: 80px; /* Passe die Größe der Zertifikatsbilder an */
    height: 80px;
    margin-right: 15px;
    border-radius: 8px;
}

.cv-card li p {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
    }

    .cv-card {
        width: 100%;
    }

    .cv-card li {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-card li img {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }
}

/* Das Modal (Versteckt es standardmäßig) */
.modal {
    display: none; /* Versteckt das Modal */
    position: fixed; /* Bleibt auf dem Bildschirm, wenn der Benutzer scrollt */
    z-index: 1; /* Stellt sicher, dass es über dem Inhalt angezeigt wird */
    left: 0;
    top: 0;
    width: 100%; /* Vollbildmodus */
    height: 100%; /* Vollbildmodus */
    overflow: auto; /* Ermöglicht Scrollen bei Bedarf */
    background-color: rgba(0, 0, 0, 0.4); /* Halbdurchsichtiger Hintergrund */
}

/* Der Modal-Inhalt */
.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Breite des Modals */
    max-width: 600px; /* Maximale Breite */
}

/* Der "X"-Button zum Schließen */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Hintergrund */
.modal {
    display: none; /* Modal ist standardmäßig unsichtbar */
    position: fixed;
    z-index: 1; /* Sitzt über anderen Inhalten */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0); /* Hintergrundfarbe */
    background-color: rgba(0, 0, 0, 0.4); /* Halbtransparenter Hintergrund */
}

/* Modal Inhalt */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Zentriert das Modal */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

/* Schließen Button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.captcha {
    margin-top: 15px;
}

.captcha label {
    font-weight: bold;
}

button[type="submit"] {
    margin-top: 20px;
    background-color: #0078D7;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #005a9e;
}

