/* Admin-/Support-Backend — bewusst schlank und rein utilitaristisch
   gestaltet, kein eigenes Markendesign (kein Kunden-Produkt, internes
   Werkzeug für das Kontare-Team). */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #F4F5F7;
    --card: #FFFFFF;
    --border: #D8DBE0;
    --text: #1A1D23;
    --text-muted: #6B7280;
    --akzent: #2952CC;
    --akzent-hover: #1F3EA0;
    --erfolg: #1F8A4C;
    --erfolg-bg: #E6F6EC;
    --fehler: #C0392B;
    --fehler-bg: #FBE9E7;
    --warnung: #A66A1F;
    --warnung-bg: #FBF0DF;
    --radius: 6px;
}

html { font-size: 14px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: #14161B;
    color: #E8E9EC;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-brand { font-weight: 700; font-size: 1.05rem; color: #fff; }
.topbar-brand span { color: #8FA6FF; }
.topbar-right { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: #B7BAC2; }
.topbar-right a { color: #E8E9EC; }

.page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.page h1 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.page h2 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }

.status-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-aktiv { background: var(--erfolg-bg); color: var(--erfolg); }
.status-gesperrt { background: var(--fehler-bg); color: var(--fehler); }
.status-in_einrichtung { background: var(--warnung-bg); color: var(--warnung); }

label { display: block; margin: 0.9rem 0 0.3rem; font-weight: 600; font-size: 0.85rem; }
label:first-child { margin-top: 0; }

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
}

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > * { flex: 1 1 200px; }

button, input[type="submit"] {
    background: var(--akzent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}
button:hover, input[type="submit"]:hover { background: var(--akzent-hover); }

button.btn-small { padding: 0.35rem 0.7rem; font-size: 0.8rem; margin-top: 0; }
button.btn-gefahr { background: var(--fehler); }
button.btn-gefahr:hover { background: #9E2E20; }
button.btn-sekundaer { background: var(--text-muted); }
button.btn-sekundaer:hover { background: #4B5160; }

.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; }
.flash-erfolg { background: var(--erfolg-bg); color: var(--erfolg); }
.flash-fehler { background: var(--fehler-bg); color: var(--fehler); }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #14161B; }
.login-card { background: #fff; border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 360px; }
.login-card h1 { font-size: 1.2rem; margin-bottom: 1.5rem; text-align: center; }

.hinweis { color: var(--text-muted); font-size: 0.85rem; }

.btn-link {
    display: inline-block;
    background: var(--akzent);
    color: #fff;
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-link:hover { background: var(--akzent-hover); text-decoration: none; }
