/* ============================================================
   oeffentlich.css – gemeinsamer Stil für ALLE öffentlichen Seiten
   (index, login, register, passwort_vergessen, passwort_neu)
   Einmal hier ändern -> überall gleich.
   ============================================================ */

* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background: url('hintergrund.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Das milchige Fenster – für beide Klassennamen gleich */
.welcome-container, .form-container {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
}
.welcome-container { text-align: center; }
.form-container   { text-align: left; }

h1 { color: #222; font-size: 28px; margin: 0 0 5px 0; }
.subtitle { color: #555; font-size: 15px; margin-bottom: 25px; }

/* Buttons + Absende-Knöpfe – EINHEITLICH (gleiche Rundung, gleiche Schrift) */
.btn, input[type="submit"] {
    display: block;
    width: 100%;
    background-color: #007bb6;
    color: white;
    padding: 12px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 15px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}
.btn:hover, input[type="submit"]:hover {
    background-color: #005f8d;
    transform: translateY(-1px);
}

/* Eingabefelder */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
label { font-weight: bold; display: block; }
.ukr-hint { color: #007bb6; font-size: 12px; display: block; margin-top: 2px; font-style: italic; }
.submit-container { text-align: center; margin-top: 25px; }

/* Fußzeilen-Links */
.footer-links { font-size: 13px; color: #555; }
.footer-links a { color: #007bb6; text-decoration: none; font-weight: bold; }
.footer-links .forgot-link { color: #777; font-size: 12px; font-weight: normal; text-decoration: none; }
.footer-links .forgot-link:hover { color: #007bb6; text-decoration: underline; }

/* Grüne Abgemeldet-Meldung */
.logout-alert {
    color: #155724;
    background-color: #d4edda;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Dezenter Hinweis-Balken ganz unten */
.privacy-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #ccc;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    box-sizing: border-box;
    z-index: 2;
    letter-spacing: 0.3px;
}
.privacy-bottom-bar a { color: #fff; text-decoration: underline; }
.privacy-bottom-bar a:hover { color: #007bb6; }

/* ---- Zweispaltiges Formular-Raster (nur wo .grid-form gesetzt ist) ---- */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.grid-form .full-width { grid-column: 1 / -1; }   /* über beide Spalten */
.grid-form label { margin-top: 10px; }

/* Register-Fenster darf breiter sein als die schmalen Login-Fenster */
.form-container.breit { max-width: 760px; }

@media (max-width: 620px) {
    .grid-form { grid-template-columns: 1fr; }     /* am Handy: alles untereinander */
}

/* Beschriftungen über Eingabefeldern immer linksbündig – auch in zentrierten Fenstern */
label, .ukr-hint { text-align: left; }

/* Grauer Zweitknopf (z.B. "Zurück zum Login") */
.btn-grau { background-color: #6c757d; }
.btn-grau:hover { background-color: #565e64; }