/* Hauptbereich */
.main {
    display: flex;
    flex: 1;
    height: 100%;
    position: relative; /* für absolute Kinder */
}

/* Rahmen mit Bild */
.rahmen {
    position: absolute;
    top: 68%;
    left: 77%;
    transform: translate(-50%, -50%);
    width: 55vw; /* responsive Breite */
    max-width: 550px;
    aspect-ratio: 894 / 700; /* Verhältnis des Originals */
    background-color: transparent;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rahmen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Parallelogramm */
.parallelogram {
    width: 65%;
    height: 35%;
    background-color: orange;
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -50%) skew(-20deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Inhalt im Parallelogramm */
.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 5%;
    align-items: center;
    text-align: center;
    transform: skew(20deg);
    box-sizing: border-box;
}

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

.content p {
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Ausstellungs Link */
.ausstellungs-link {
    text-decoration: underline;
    color: blue;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ausstellungs-text {
    margin-top: 3%;
}

.ausstellungs-link:hover {
    color: #444;
}

/* Ausstellungs-Highlight-Element */
.ausstellungs-box {
    background-color: orange;
    padding: 2rem;
    margin-top: 13rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 600px;
    margin-left: 11rem;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
}

.ausstellungs-content {
    transform: skew(20deg);
}

.ausstellungs-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.ausstellungs-box p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.ausstellungs-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1d4ed8;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ausstellungs-button:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

/* Responsive Design */

/* Ab Tablet (1024px) */
@media (max-width: 1024px) {
    .rahmen {
        width: 45vw;
        max-width: 450px;
        top: 60%;
        left: 70%;
    }

    .parallelogram {
        width: 70%;
        padding: 1.5rem 2rem;
        min-height: 180px;
    }

    .content {
        max-width: 600px;
        margin: 0 auto;
    }

    .ausstellungs-box {
        margin-left: 5rem;
        padding: 1.5rem;
        margin-top: 8rem;
    }
}

/* Tablet bis kleine Desktops (768px) */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        height: auto; /* damit Höhe nicht stört */
        position: static;
    }

    .rahmen {
        position: static; /* kein absolut mehr */
        width: 90vw;
        max-width: 350px;
        transform: none;
        margin-bottom: 2rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .parallelogram {
        position: static;
        width: 90vw;
        max-width: none;
        min-height: auto;
        padding: 1rem 1.5rem;
        transform: skew(-10deg);
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        margin-bottom: 2rem;
    }

    .content {
        transform: skew(10deg);
        max-width: 90vw;
        margin-top: 1rem;
    }

    .content h1 {
        font-size: 1.6rem;
    }

    .content p {
        max-width: 90vw;
        font-size: 1rem;
    }

    .ausstellungs-box {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-top: 4rem;
        padding: 1rem 1.5rem;
        max-width: 90vw;
    }
}

/* Kleine Smartphones (480px) */
@media (max-width: 480px) {
    .content h1 {
        font-size: 1.3rem;
    }

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

    .parallelogram {
        padding: 1rem;
        transform: skew(-5deg);
    }

    .content {
        transform: skew(5deg);
    }
}
