body {
    background-color: #EBF0F3;
    font-family: Montserrat, sans-serif;
}

.container1 {
    display: flex;
    min-height: 100vh;
}

.container2 {
    display: flex;
    flex: 1 0 auto; /* das Formular behält immer seinen Platz */
    align-items: center;
    padding: 40px clamp(40px, 8vw, 120px);
}

.einruecken {
    padding-left: 50px;
}

.willkommen {
    padding-bottom: 10px;
    color: #667A66;
}

.login-form {
    width: 300px; /* Optional: Setze die Breite des Formulars nach Bedarf */
}

.input-wrapper {
    padding-bottom: 10px;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: #ffffff;
    font-size: 16px;
    color: #353535;
    text-align: left;
    cursor: pointer;
}

.input-wrapper input::placeholder {
    text-align: left;
    color: #ced2d5;
}

/* Fehlermeldung bei falschem Benutzername/Passwort */
.login-fehler {
    background-color: #ffffff;
    border-left: 4px solid #a94442;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #a94442;
    margin-bottom: 14px;
}

.login-fehler p {
    margin: 0;
}

/* Impressum/Datenschutz unter dem Formular (die Anmeldeseite hat keinen
   Footer, beide Seiten sind auch bei gesperrter Seite erreichbar) */
.login-rechtliches {
    margin-top: 24px;
    font-size: 13px;
    color: #667A66;
}

.login-rechtliches a {
    color: #667A66;
}

.login-rechtliches a:hover {
    color: #353535;
}

/* Login-Bild: rechte Spalte über die volle Fensterhöhe. Wunschbreite 79vh
   entspricht genau dem Seitenverhältnis des Bildes (799 x 1011), dann wird
   nichts abgeschnitten. Nur wenn das Formular sonst keinen Platz hätte,
   wird das Bild schmaler und seitlich beschnitten. */
.image-login {
    flex: 0 1 79vh;
    min-width: 0;
}

.image-login img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Tablet (bis 1023px) ===== */
@media (max-width: 1023px) {
    .einruecken {
        padding-left: 0;
    }
}

/* ===== Tablet hochkant: Bild ausblenden, Formular mittig ===== */
@media (max-width: 1023px) and (orientation: portrait) {
    .container2 {
        justify-content: center;
    }

    .image-login {
        display: none;
    }
}

/* ===== Handy (bis 599px): nur das Formular, ohne Bild ===== */
@media (max-width: 599px) {
    .container2 {
        justify-content: center;
        padding: 60px 16px;
    }

    .einruecken {
        width: 100%;
        max-width: 340px;
    }

    .login-form {
        width: 100%;
    }

    .image-login {
        display: none;
    }
}
