body {
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #234d20;
    margin: 0;
    padding: 0;
}

/* --- Vereinheitlichte Box-Styles für Admin, Login und Passwort --- */
.box, .container, .login-box, .pw-box {
    max-width: 480px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #c7e6c7;
    border: 1px solid #c7e6c7;
    padding: 36px 28px 28px 28px;
    text-align: center;
}
.box h2, .container h1, .login-box h2, .pw-box h2 {
    color: #2e6b2e;
    margin-bottom: 18px;
    font-size: 1.5em;
    text-align: center;
}
.box label, .login-box label, .pw-box label, label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #234d20;
    text-align: left;
}
.box input[type="password"], .pw-box input[type="password"], .login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #c7e6c7;
    border-radius: 8px;
    background: #f9fff9;
    font-size: 1em;
    box-sizing: border-box;
    transition: border 0.2s;
}
.box input[type="password"]:focus, .pw-box input[type="password"]:focus, .login-box input[type="password"]:focus {
    border-color: #2e6b2e;
    outline: none;
}

/* --- Vereinheitlichte Button-Styles für alle Submit-Buttons --- */
button[type="submit"], .logout-btn, .pw-reset-form button, .action-btn, .pw-change-btn {
    background: #2e6b2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 0;
    width: 100%;
    font-size: 1.25em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #c7e6c7;
    transition: background 0.2s;
    margin-top: 24px;
    margin-bottom: 0;
    display: block;
}
button[type="submit"]:hover, .logout-btn:hover, .pw-reset-form button:hover, .action-btn:hover, .pw-change-btn:hover {
    background: #1a4d1a;
}

/* --- Vereinheitlichte Fehler- und Erfolgsmeldungen --- */
.error, .box .error, .login-box .error, .pw-box .error {
    color: #b00;
    background: #fff3f3;
    border-left: 4px solid #b00;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0 18px 0;
    font-weight: 500;
    text-align: left;
}
.success, .box .success, .login-box .success, .pw-box .success {
    color: #2e6b2e;
    background: #f1f8f1;
    border-left: 4px solid #2e6b2e;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0 18px 0;
    font-weight: 500;
    text-align: left;
}

h1, h2 {
    text-align: center;
    color: #2e6b2e;
    margin-bottom: 10px;
    font-size: 2em;
}

h1.danger {
    color: #b00;
}

/* --- Verbesserte Styles für das Anmeldeformular --- */

/* Info-Box optisch hervorheben */
.info {
    background: #f1f8f1;
    border-left: 4px solid #2e6b2e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 1.08em;
}

/* Datenschutz-Checkbox und Text */
.privacy-row {
    margin: 18px 0 10px 0;
}
.privacy-row label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 400;
    line-height: 1.4;
}
.privacy-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-top: 2px;
    accent-color: #2e6b2e;
}
.privacy-row span {
    user-select: text;
    font-size: 1.05em;
    color: #234d20;
}
.privacy-row a {
    color: #2e6b2e;
    text-decoration: underline;
}

/* Eingabefelder */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #c7e6c7;
    border-radius: 8px;
    background: #f9fff9;
    font-size: 1em;
    box-sizing: border-box;
    transition: border 0.2s;
}
input:focus, select:focus {
    border-color: #2e6b2e;
    outline: none;
}

/* Admin-Aktionen nebeneinander */
.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 1.5em;
}
.action-form {
    margin: 0;
    flex: 1;
}

.warning {
    background: #fff3f3;
    border-left: 4px solid #b00;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #b00;
    font-size: 1.08em;
}

/* Danger-Link (z.B. für Löschen) */
.clear-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: #b00;
    color: #fff;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px #e6b2b2;
    transition: background 0.2s;
    margin-top: 1.5em;
}
.clear-link:hover {
    background: #900;
}
.clear-link.disabled {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Popup für Passwortänderung und Admin-Meldungen */
.pw-popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f8f1;
    color: #2e6b2e;
    border-left: 4px solid #2e6b2e;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1.15em;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 24px #c7e6c7;
    animation: fadeout 0.5s 4.5s forwards;
}
@keyframes fadeout {
    to { opacity: 0; visibility: hidden; }
}

@media (max-width: 600px) {
    .box, .container, .login-box, .pw-box {
        padding: 18px 6vw 18px 6vw;
    }
    h1 {
        font-size: 1.3em;
    }
    .privacy-row label, .privacy-row span {
        font-size: 0.98em;
    }
    .privacy-row input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    button[type="submit"], .logout-btn, .pw-reset-form button, .action-btn, .pw-change-btn {
        font-size: 1.05em;
        padding: 12px 0;
    }
}
