/* Grundlegende Stile */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #005f73;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1.8rem;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Galerie */
.gallery {
    text-align: center;
    margin-bottom: 2rem;
}

.main-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 5px;
}

/* Exposé */
.expose {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.expose-text {
    flex: 2;
    min-width: 300px;
}

.key-data {
    flex: 1;
    min-width: 250px;
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 5px;
}

.key-data h3 {
    margin-top: 0;
    border-bottom: 2px solid #005f73;
    padding-bottom: 0.5rem;
}

.key-data ul {
    list-style: none;
    padding: 0;
}

.key-data li {
    margin-bottom: 0.5rem;
}

/* Modal für Bildergalerie */
.modal {
    display: none; /* Versteckt standardmäßig */
    position: fixed; /* Bleibt an Ort und Stelle */
    z-index: 1000; /* Über allem anderen */
    padding-top: 50px; /* Abstand von oben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scrollen ermöglichen, falls Bild zu groß */
    background-color: rgba(0,0,0,0.9); /* Schwarzer Hintergrund mit Transparenz */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Bildunterschrift im Modal */
.modal-caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 30px; /* Feste Höhe, um Sprünge zu vermeiden */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Navigationspfeile */
.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button {
    left: 0;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #ddd;
    color: #333;
}
