/* Hauptbereich */
.main {
    display: flex;
    flex-direction: column; /* Content oben, dann Wrapper */
    align-items: center;
    justify-content: center; /* Vertikal zentriert */
}

/* Inhalt */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 8px; /* Kleiner Abstand zum Wrapper */
    margin-top: 2%;
}

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

.content p {
    max-width: 62%;
    line-height: 1.6;
    color: #444;
}

/* Container für Rahmen und Parallelogramm */
.wrapper {
    display: flex;
    justify-content: flex-end; /* Parallelogramm nach rechts */
    align-items: center;
    width: 100%;
    max-width: 100%;
    position: relative; /* wichtig für .rahmen absolute Position */
    margin-top: 5%;
    padding-right: 14%;
}

/* Rahmen */
.rahmen {
    position: absolute;
    top: 60%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 40vw; /* responsive Breite */
    background-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Parallelogramm rechts, Inhalt mittig */
.parallelogram {
    width: 45%;
    margin-top: 5%;
    max-width: 500px;
    height: 100%;
    padding: 60px 50px;
    background-color: orange;
    transform: skewY(-10deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Login-Formular */
.login-form {
    transform: skewY(+10deg);
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
}

.login-form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 1em;
}

.login-form button {
    padding: 12px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.login-form button:hover {
    background-color: #444;
}

/* Registrieren-Link */
.register-link {
    text-decoration: underline;
    color: black;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 20px;
}

.register-text {
    margin-top: 15px;
}

.register-link:hover {
    color: white;
}






/* Responsive Design */

@media (max-width: 1024px) {
    .wrapper {
        padding-right: 8%;
        max-width: 90%;
    }

    .rahmen {
        width: 50vw;
        max-width: 400px;
        top: 55%;
        left: 25%;
    }

    .parallelogram {
        width: 50%;
        max-width: 400px;
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        padding-right: 0;
        padding-left: 0;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 3rem;
        position: static; /* Damit rahmen nicht mehr absolut */
        height: auto;
    }

    .rahmen {
        position: static;
        width: 90%;
        max-width: 350px;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        margin-bottom: 1rem;
    }

    .parallelogram {
        width: 90%;
        max-width: none;
        padding: 40px 30px;
        transform: skewY(-5deg);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }

    .parallelogram > * {
        transform: skewY(5deg);
    }

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

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

    .login-form button {
        width: 90%;
    }

    .login-form input,
    .login-form button {
        padding: 8px;
    }

    .login-form label {
        font-size: 1em;
    }
}

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

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

    .parallelogram {
        padding: 30px 20px;
        transform: skewY(-3deg);
    }

    .parallelogram > * {
        transform: skewY(3deg);
    }
}