/* VTSM – Grundstil. Farben aus docs/mockups/quellen/base.css. Kein Inline-CSS (CSP style-src 'self'). */
:root {
    --bg: #12101a;
    --bg-side: #0c0a12;
    --surface: #1b1826;
    --border: #2a2638;
    --text: #e8e6f0;
    --text-muted: #8a849f;
    --accent-from: #8b5cf6;
    --accent-to: #d946ef;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, "Segoe UI", "Liberation Sans", Arial, sans-serif;
    line-height: 1.45;
}

/* Platzhalterseite bis zur ersten echten Oberfläche */
.placeholder {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
}

.placeholder__logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.placeholder__title { margin: 0 0 4px; font-size: 1.5rem; }
.placeholder__version { color: var(--text-muted); }

/* ------------------------------------------------------------------ Grundelemente */
:root {
    --surface-2: #221e30;
    --accent: #a855f7;
    --accent-soft: #2a1f45;
    --accent-text: #c4a8ff;
    --danger-bg: #461a24;
    --danger: #ff7a90;
    --warn-bg: #3d2e0e;
    --warn: #f5c451;
    --radius: 10px;
}

a { color: var(--accent-text); }
h1 { font-size: 1.35rem; margin: 0 0 12px; color: #fff; }
.muted { color: var(--text-muted); }
code, .secret { font-family: ui-monospace, "Cascadia Mono", "Liberation Mono", monospace; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.logo {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.btn {
    display: inline-block;
    border: 1px solid #3a3450;
    border-radius: 8px;
    padding: 9px 16px;
    font: inherit;
    color: #d8d4e8;
    background: var(--surface-2);
    cursor: pointer;
    text-decoration: none;
}
.btn--primary { background: linear-gradient(135deg, #7c3aed, #c026d3); border: none; color: #fff; width: 100%; text-align: center; }
.btn--ghost { background: transparent; }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #cfcae0; }
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #3a3450;
    border-radius: 8px;
    background: #14111d;
    color: var(--text);
    font: inherit;
}
.input--code { letter-spacing: 0.2em; font-family: ui-monospace, "Cascadia Mono", monospace; }
.field__error { display: block; margin-top: 4px; color: var(--danger); }

.alert { background: var(--danger-bg); color: var(--danger); padding: 10px 12px; border-radius: 8px; }
.notice { background: var(--accent-soft); color: #d8c8ff; padding: 10px 12px; border-radius: 8px; border-left: 3px solid var(--accent); }

/* ------------------------------------------------------------------ Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__card--wide { max-width: 480px; }
.auth__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 18px; color: #fff; font-size: 0.95rem; }
.auth__alt { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.auth__alt summary { cursor: pointer; color: var(--accent-text); margin-bottom: 10px; }
.auth__back { margin: 16px 0 0; font-size: 0.9rem; }
.steps { padding-left: 20px; color: #cfcae0; }
.steps li { margin-bottom: 6px; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { max-width: 100%; height: auto; border-radius: 8px; }
.secret { display: block; padding: 10px; background: #14111d; border-radius: 8px; word-break: break-all; letter-spacing: 0.08em; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.codes code { display: block; text-align: center; padding: 8px; background: #14111d; border-radius: 6px; letter-spacing: 0.08em; }

/* ------------------------------------------------------------------ Angemeldet */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-side);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.topbar__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.topbar__user { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }
.topbar__user form { margin: 0; }
.topbar .btn { padding: 5px 12px; }
.page { padding: 24px 16px; max-width: 1200px; margin: 0 auto; }
