/* Fixadresse's own touches in the Verwaltung, in one place: the credit „Verwaltung von Fixadresse“, „Nikolas fragen“,
   the „Beispiel“ label and role line, the mark, the example space's frame, the login and the invitation page.
   The door brand of 28 Nov 2026 (ventures/web-service/brand/: tokens.json, README.md): fir green #0e4a2c,
   one signal orange #ff6a2b only for the one main action and the door handle, always with ink text, paper,
   near-black ink, Figtree for text and Archivo 800 for headlines. The fonts and icons sit in brand/ beside this file.
   The shop's own neutral look (app.css: --brand, --ink and the rest) never reads these tokens, and customer sites
   keep their own identity. Loaded first by index.html, beispiel.html and the login pages. */
@font-face { font-family: "Figtree"; src: url("brand/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("brand/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* The mark (icons.mjs markSvg, mark.svg): door, the f cut out of it, the handle. The handle is never recoloured. */
  --fx-brand-door: #0e4a2c;
  --fx-brand-cut: #f5f3ee;
  --fx-brand-handle: #ff6a2b;
  /* Text and controls of the touches: „Nikolas fragen“, the example frame's buttons, the login's links. */
  --fx-brand-ink: #0e4a2c;
  --fx-brand-paper: #f5f3ee;
  /* The one main action of a Fixadresse page (the login's „Code senden“ and „Anmelden“): orange with ink text. */
  --fx-brand-action: #ff6a2b;
  --fx-brand-action-down: #f2581a;
  --fx-brand-on-action: #111111;
  /* Orange as a small signal (the „Website hat sich geändert“ dot), the brand's accent text colour. */
  --fx-brand-accent: #b83d0a;
  /* The „Beispiel“ label and the role line: a warm tint, so they never read as the shop's own green. */
  --fx-brand-label: #fdece3;
  --fx-brand-label-ink: #9a3208;
  --fx-brand-label-strong: #7a2806;
  /* The example space around the phone, and the credit line. */
  --fx-brand-frame: #eceae4;
  --fx-brand-credit: #454c48;
  --fx-brand-font: "Figtree", system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --fx-brand-display: "Archivo", "Figtree", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --fx-brand-weight: 600;
  /* Surfaces of the pages that are Fixadresse's own (login, invitation), light. */
  --fx-brand-bg: #f5f3ee;
  --fx-brand-card: #ffffff;
  --fx-brand-text: #111412;
  --fx-brand-text-2: #454c48;
  --fx-brand-line: #d8d5cc;
  --fx-brand-line-2: #b4b1a7;
  --fx-brand-green: #0e4a2c;
}

/* ---------- The login and the invitation page ----------
   They are Fixadresse's door to the Verwaltung, so they take the brand fully: the neutral tokens of app.css and
   login.css are pointed at the brand inside them, in light and, following the system, in dark. The new login over
   the open app (.login-overlay) stays light like the app under it. */
.login-page, .login-overlay {
  --bg: var(--fx-brand-bg); --card: var(--fx-brand-card); --ink: var(--fx-brand-text); --ink-2: var(--fx-brand-text-2); --ink-3: var(--fx-brand-text-2);
  --line: var(--fx-brand-line); --fill: rgba(17, 20, 18, .06); --brand: var(--fx-brand-green); --brand-2: #185c3a; --brand-soft: #e4ede7; --cream: var(--fx-brand-paper);
  --shadow: 0 1px 0 var(--fx-brand-line), 0 12px 32px rgba(17, 20, 18, .06);
  font-family: var(--fx-brand-font);
}
.login-page { background: var(--fx-brand-bg); color: var(--fx-brand-text); }
/* The f is cut out of the door, so it shows the card behind it. */
.login-card { --fx-brand-cut: var(--fx-brand-card); }
.login-page .login-card, .login-overlay .login-card { border-radius: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--fx-brand-line); }
.login-page .login h1, .login.login-overlay h1 { font-family: var(--fx-brand-display); font-weight: 800; letter-spacing: -.035em; word-spacing: .08em; }
.login .login-brand { color: var(--fx-brand-ink); font-family: var(--fx-brand-font); font-weight: 700; }
.login .login-brand .mark svg { width: auto; height: 1.9rem; aspect-ratio: 54 / 84; }
.login-page .input, .login-overlay .input { background: var(--fx-brand-card); box-shadow: inset 0 0 0 1px var(--fx-brand-line-2); }
.login-page .input:focus, .login-overlay .input:focus { background: var(--fx-brand-card); box-shadow: inset 0 0 0 2px var(--fx-brand-green); }
.login-page .button, .login-overlay .button { border-radius: 999px; min-height: 3rem; font-family: var(--fx-brand-font); }
.login-page .button.primary, .login-overlay .button.primary { background: var(--fx-brand-action); color: var(--fx-brand-on-action); font-weight: 700; }
.login-page .button.primary:active, .login-overlay .button.primary:active { background: var(--fx-brand-action-down); }
.login-page .button.primary:disabled, .login-overlay .button.primary:disabled { background: var(--fx-brand-line); color: var(--fx-brand-text-2); }
.login-page .button.secondary, .login-overlay .button.secondary { background: transparent; color: var(--fx-brand-ink); box-shadow: inset 0 0 0 1px var(--fx-brand-line-2); }
.login-page .text-button, .login-overlay .text-button { color: var(--fx-brand-ink); }
.login-page :focus-visible { outline-color: color-mix(in srgb, var(--fx-brand-green) 60%, white); }

@media (prefers-color-scheme: dark) {
  html:has(body > .login-page:not([hidden])) { background: #0c110f; color-scheme: dark; }
  html:has(body > .login-page:not([hidden])) body { background: #0c110f; }
  .login-page {
    --fx-brand-door: #f3eee4; --fx-brand-cut: #0c110f; --fx-brand-ink: #8fd0a6; --fx-brand-green: #8fd0a6;
    --fx-brand-action: #ff7a3d; --fx-brand-action-down: #ff6a2b; --fx-brand-accent: #ff9663;
    --fx-brand-bg: #0c110f; --fx-brand-card: #1b2420; --fx-brand-text: #f3eee4; --fx-brand-text-2: #a9b1ac;
    --fx-brand-line: #2a3530; --fx-brand-line-2: #3d4a44; --fx-brand-credit: #a9b1ac;
    --fill: rgba(243, 238, 228, .07); --brand-soft: #1f3a2c; --shadow: 0 1px 0 #2a3530, 0 16px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
  .login-page .input { background: #151d1a; color: var(--fx-brand-text); }
  .login-page .input:focus { background: #151d1a; }
  .login-page .input::placeholder { color: #7f8984; }
  .login-page .login-error { background: #3a1a17; color: #ffb4a8; }
  .login-page .row { background: var(--fx-brand-card); }
  .login-page button.row:active { background: #222d28; }
  .login-page .chevron { color: #5d6964; }
}
