/* Hauptbereich */
.main {
    display: flex;
    flex: 1;
    height: 100%;
}

/* Inhalt */
.content {
    width: 100%;
    height: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #222;
}

.content p {
    line-height: 1.6;
    color: #444;
}

img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-container {
    width: 100%;
    height: auto;
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Orange BG */
.parallelogram {
    width: 65vw;
    height: 55vh;
    background-color: var(--mainorange);
    z-index: 1;
    position: relative;
    top: -32vh;
    left: 37vw;
    transform: translate(-50%, -50%) skew(-20deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Artwork Wrapper */
.single-content-left,
.single-content-right {
    width: 80%;
    height: 65vh;
    margin: 3vh 0;
    background-color: transparent;
    z-index: 0;
}

.rahmen-left {
    width: 60vh;
    height: 65vh;
    background-color: transparent;
    z-index: 2;
    position: relative;
    left: 10vh;
}

.rahmen-right {
    width: 60vh;
    height: 65vh;
    background-color: transparent;
    z-index: 2;
    position: relative;
    left: 43vw;
}

/* Textblock innerhalb orangem Bereich */
.text-block-left,
.text-block-right {
    width: 45vw; /* vorher: 30vw */
    max-width: 600px;
    height: 50vh;
    z-index: 2;
    position: relative;
    top: -112vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    color: #222;
    text-align: left;
    background: transparent;
    box-sizing: border-box;
}

.text-block-left {
    left: 34vw;
}
.text-block-right {
    left: 10vw;
}

.title {
    font-size: 1.8em;
    font-weight: bold;
    margin-left: 0;
    margin-bottom: 0.5em;
}

.author,
.date {
    font-size: 1em;
    margin-bottom: 0.3em;
}

/* Infotext */
.info {
    font-size: 1em;
    line-height: 1.6;
    overflow-y: auto;
    color: #333;
    margin-top: 1em;
    width: 100%;
    max-height: 28vh;
    padding-right: 8px;
    box-sizing: border-box;
}

/* Scrollbar */
.info::-webkit-scrollbar {
    width: 6px;
}
.info::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Clickable Artwork */
.clickable-artwork {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .parallelogram {
        width: 80vw;
        height: 30vh;
    }

    .rahmen-left, .rahmen-right {
        width: 45vw;
        max-width: 300px;
    }

    .text-block-left, .text-block-right {
        width: 50vw;
        max-width: none;
        padding: 1rem;
    }

    .info {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    .single-content-left, .single-content-right {
        flex-direction: column;
        max-width: 90vw;
        height: auto;
    }

    .rahmen-left, .rahmen-right {
        width: 80vw;
        height: auto;
    }

    .text-block-left, .text-block-right {
        width: 50vw;
        top: 0;
        left: 0;
        text-align: center;
        align-items: center;
        padding: 1rem;
    }

    .info {
        max-height: none;
        overflow: visible;
        text-align: left;
    }

    .parallelogram {
        width: 90vw;
        height: 25vh;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.5em;
    }

    .content p {
        max-width: 95vw;
        font-size: 1em;
        line-height: 1.4;
    }

    .parallelogram {
        height: 20vh;
    }

    .info {
        font-size: 0.85em;
    }
}
