body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c8e6c9;
}

/* Navigation */
nav {
    background-color: #ffd000;
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    flex: 0 0 auto;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover {
    background-color: #ddd;
    color: black;
}

/* Hauptinhalt */
main {
    padding: 20px;
    text-align: center;
}

h1 {
    text-align: center;
}

#datetime {
    font-size: 24px;
    font-weight: bold;
}

/* Medienabfragen */
@media (max-width: 767px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}
.image-container img {
    max-width: 200px;
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal {
    margin: 10% auto;
    max-width: 80%;
}

.modal-image {
    width: 100%;
}

.close-button {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* Stil für Visitenkarten-Container */
.visitenkarten-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Stil für einzelne Visitenkarten */
.visitenkarte {
    border: 1px solid #000;
    padding: 10px;
    width: calc(33.33% - 20px);
    box-sizing: border-box;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitenkarte h3 {
    margin-top: 0;
}

/* Hover-Effekt für Visitenkarten */
.visitenkarte:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}

/* Stil für das Formular */
form {
    text-align: left;
    max-width: 400px; /* Maximale Breite des Formulars */
    margin: 0 auto; /* Zentrieren des Formulars */
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%; /* Volle Breite innerhalb des Formulars */
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover {
    border: 2px solid #000;
}
input.error {
    background-color: #fdd;
    border-color: #d00;
}

.error-message {
    color: #d00;
    font-size: 0.875em;
    display: none;
    margin-left: 10px;
}

