body {
    padding: 10px;
    background-color: #272727;
    font-family: 'Arial', sans-serif;
}

.hero, .parallax {
    width: 100%;
    height: 6000px;
    margin: 0;
    padding: 0;
}

.hero {
    background-image: url('https://janpleitner.de/wp-content/uploads/2022/11/DSC02441-scaled.jpg');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}

.hero h1 {
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

.parallax {
    background-image: url('https://janpleitner.de/wp-content/uploads/2022/11/DSC02448-scaled.jpg');
    height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px #000;
}

#ball {
    width: 250px;
    height: 250px;
    background-color: #4567;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#ball .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#ball .close-btn {
    position: absolute;
    top: 5px;
    right: 127px;
    background-color: #4567;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#ball h1 {
    font-size: 16px;
    margin-bottom: 10px;
}

#ball p {
    font-size: 14px;
    margin: 0;
}

#ball a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #4323;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

#ball a:hover {
    background-color: #005bb5;
}

table {
    width: 80%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 12px;
    color: #fff;
    padding: 0px;
}

th, td {
    padding: 0px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #272727;
    font-weight: normal;
    cursor: pointer;
}

th.sortable:hover {
    background-color: #e0e0e0;
}

.pdf-container {
    width: 200px;
    height: 300px;
    margin: auto;
    padding: 10px;
    border: 1px solid;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('https://janpleitner.de/wp-content/uploads/2024/06/JP05317.jpg');
    background-size: cover;
    background-position: center;
}

.pdf-embed {
    width: 0px;
    height: 0px;
    background-color: #2727;
    margin-bottom: 0px;
    display: block;
    text-indent: -9999px;
}

.pdf-button {
    display: inline-block;
    padding: 20px 23px;
    border-radius: 30px;
    background-color: #4567;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
}

.pdf-button:hover {
    background-color: #6723;
}

body {
    background-color: #272727;
    font-family: 'Arial', sans-serif;
}

.artwork-container {
    max-width: 800px;
    margin: 40px auto;
    color: #fff;
    background-color: #272727;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    text-align: center;
    border: 1px solid #444;
    position: relative;
}

.artwork-title {
    font-size: 28px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.artwork-image {
    max-width: 100%;
    max-height: 80vh; /* Maximal 80% der Höhe des Viewports */
    width: auto;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    object-fit: contain; /* Bild wird skaliert, um im Container zu passen, ohne das Seitenverhältnis zu verändern */
}

.artwork-description {
    font-size: 16px;
    color: #ccc;
    margin: 20px 0;
    text-align: center;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background: linear-gradient(45deg, #FF6B6B, #FFD93D);
    color: #272727;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background: linear-gradient(45deg, #FFD93D, #FF6B6B);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.nav-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background: linear-gradient(45deg, #6BCB77, #4D96FF);
    color: #272727;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.nav-button:hover {
    background: linear-gradient(45deg, #4D96FF, #6BCB77);
    box-shadow: 0 4px 8px rgba(75, 155, 119, 0.3);
    transform: translateY(-2px);
}

.navigation {
    text-align: center;
    margin-bottom: 20px;
}

.edition-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background: linear-gradient(45deg, #FF7F50, #FF1493);
    color: #272727;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.edition-button:hover {
    background: linear-gradient(45deg, #FF1493, #FF7F50);
    box-shadow: 0 4px 8px rgba(255, 20, 147, 0.3);
    transform: translateY(-2px);
}

.instagram-button {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #F56040, #F77737, #FCAF45);
}

.instagram-button:hover {
    background: linear-gradient(45deg, #FD1D1D, #F77737, #FCAF45, #833AB4, #9013FE);
    box-shadow: 0 4px 8px rgba(255, 85, 85, 0.3);
    transform: translateY(-2px);
}

.social-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background: linear-gradient(45deg, #4A90E2, #9013FE);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    cursor: pointer; /* Ensure cursor is set to pointer */
}

.spotify-button {
    background: linear-gradient(45deg, #1DB954, #1ED760);
}

.spotify-button:hover {
    background: linear-gradient(45deg, #1ED760, #1DB954);
    box-shadow: 0 4px 8px rgba(29, 185, 84, 0.3);
    transform: translateY(-2px);
}

.error {
    color: red;
    display: none;
    text-align: center;
}

.links {
    margin-top: 20px;
    text-align: center;
}

.social-button i {
    margin-right: 8px;
}

@media (max-width: 600px) {
    .artwork-container {
        margin: 10px;
        padding: 15px;
    }
    .artwork-title {
        font-size: 24px;
    }
    .artwork-image {
        max-width: 100%;
        max-height: 80vh; /* Ensure image scales within viewport height */
        width: auto;
        height: auto;
        object-fit: contain; /* Preserve aspect ratio and fit within container */
    }
    .artwork-description {
        font-size: 14px;
    }
    .cta-button, .nav-button, .edition-button, .social-button {
        padding: 8px 16px;
        margin8px 4px;
    }
    .nav-button {
        font-size: 14px;
    }
    .social-button {
        font-size: 14px;
    }
    .gallery img {
        width: 80px;
        height: 80px;
    }
}

.exhibition-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #272727;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    color: #333;
}

.exhibition-text {
    font-size: 16px;
    color: #ccc;
    background-color: #272727;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

.toggle-link {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.toggle-link:hover {
    background-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .exhibition-container {
        margin: 20px;
        padding: 15px;
    }
    .artwork-title {
        font-size: 24px;
    }
    .exhibition-text {
        font-size: 14px;
    }
    .toggle-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.form-section {
    margin-top: 20px;
    text-align: center;
}

.form-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.form-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ccc;
}

.form-section input, .form-section textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff !important; /* Ensure input text color is white */
    box-sizing: border-box;
    font-size: 14px;
}

.form-section input::placeholder, .form-section textarea::placeholder {
    color: #888; /* Lighten placeholder color for better distinction */
}

.form-section input:focus, .form-section textarea:focus {
    border-color: #FFD93D;
    box-shadow: 0 0 5px rgba(255, 217, 61, 0.5);
    outline: none;
}

.error {
    color: red;
    display: none;
    text-align: center;
}

.exhibition-container a {
    color: #0066cc; /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.exhibition-container a:hover {
    color: #004099; /* Hover link color */
    text-decoration: underline; /* Underline on hover */
}

.artwork-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 80vh; /* Maximal 80% der Höhe des Viewports */
    position: relative;
}

.artwork-image {
    max-width: 100%;
    max-height: 80vh; /* Ensure image scales within viewport height */
    width: auto;
    height: auto;
    object-fit: contain; /* Preserve aspect ratio and fit within container */
}

.artwork-title {
    font-size: 14px; /* Set the title font size to be the same as the description */
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative; /* Make the gallery position relative */
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: contain; /* Preserve aspect ratio and fit within container */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative; /* Position relative for status indicators */
}

.gallery img:hover {
    transform: scale(1.1);
}

#toggle-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px auto;
    background: linear-gradient(45deg, #6BCB77, #4D96FF);
    color: #272727;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

#toggle-button:hover {
    background: linear-gradient(45deg, #4D96FF, #6BCB77);
    box-shadow: 0 4px 8px rgba(75, 155, 119, 0.3);
    transform: translateY(-2px);
}

/* Status Indicator */
.status-indicator {
    display: inline-block;
    padding: 5px 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-indicator.verfügbar {
    background: linear-gradient(45deg, #1DB954, #1ED760); /* Green gradient for available status */
}

.status-indicator.reserviert {
    background: linear-gradient(45deg, #FFD93D, #FF6B6B); /* Yellow/Orange gradient for reserved status */
}

.status-indicator.verkauft {
    background: linear-gradient(45deg, #FD1D1D, #F56040); /* Red gradient for sold status */
}