body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

header {
    padding: 0px 0;
}

.logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1.6 / 1;
    display: block;
    margin: 0 auto;
}

.event-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main {
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

section {
    margin-bottom: 40px;
}

footer {
    padding: 20px 0;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

.album-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.album-gallery-item {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.album-gallery-item:hover {
    transform: scale(1.05);
}

.album-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: row; /* Änderung für Navigation */
    justify-content: center;
    align-items: center;
}

.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

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

.close:hover {
    color: #bbb;
}

.nav-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Profil-Seite (profile.php) */
.profile-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.profile-image {
    width: 240px;
    height: 360px; /* Portrait-Format */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    image-rendering: -webkit-optimize-contrast; /* Chrome/Safari: Schärfere Kanten */
    image-rendering: -moz-crisp-edges; /* Firefox: Schärfer */
    image-rendering: crisp-edges; /* Standard: Vermeidet Übersmoothing */
}

@media (max-width: 600px) {
    .profile-container {
        justify-content: center; /* Bild horizontal zentrieren */
    }
    .profile-image {
        margin: 0 auto; /* Zusätzliche Sicherheit für Zentrierung */
    }
}

.profile-details {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.profile-details h2 {
    margin-top: 0;
    color: #333;
}

.business-entry {
    margin-bottom: 20px;
}

.business-entry h3 {
    margin: 10px 0 5px;
    color: #555;
}

.business-entry p {
    margin: 5px 0;
}

.business-entry a {
    color: #007bff;
    text-decoration: none;
}

.business-entry a:hover {
    text-decoration: underline;
}

.profiles-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.profiles-gallery-item {
    width: 200px;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.profiles-gallery-item:hover {
    transform: scale(1.05);
}

.profiles-gallery-image {
    width: 200px;
    height: 270px;
    object-fit: cover;
}

.profile-name {
    margin: 3px 0; /* Standard-Abstand oben und unten */
    font-size: 15px;
    margin-bottom: 5px; /* Abstand zwischen Name und Businesses */
}

.businesses {
    margin: 0;
}

.profiles-gallery-item small {
    font-size: 12px;
    color: #666;
    display: block;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.event-image:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

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