/* Missing Object – Basis-Styles für Portal und Anmeldeseite.
   Schwarz auf Papier wie die Intro-Seite, Kumbh Sans nur für die Marke. */
@font-face {
  font-family: 'Kumbh Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/fonts/kumbh-sans-700.woff2') format('woff2');
}

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

:root {
  --ink: #000;
  --paper: #fafafa;
  --muted: #5c5c5c;
  --line: #d9d9d9;
  --error: #b3261e;
  --radius: 10px;
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}

.wordmark {
  font-family: 'Kumbh Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Anmeldeseite ─────────────────────────────── */
body.auth { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-logo { width: 56px; height: auto; margin-bottom: 20px; }
.auth-card .wordmark { font-size: 24px; margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 28px; }

.notice {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  color: var(--error);
  text-align: left;
}
.notice--info { border-color: var(--line); color: var(--ink); }

.form { width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }

.btn {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.btn:hover { background: #222; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #f0f0f0; }

/* ── Portal ───────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.brand img { width: 22px; height: auto; }
.brand .wordmark { font-size: 16px; }
.user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-name { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .btn { min-height: 44px; font-size: 14px; padding: 0 14px; }

.page { max-width: 960px; margin: 0 auto; padding: 32px 16px 64px; }
.page h1 { font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.lead { color: var(--muted); margin-bottom: 32px; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty img { width: 40px; height: auto; opacity: .85; margin-bottom: 16px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

@media (max-width: 420px) {
  .user-name { display: none; }
}
