/**
 * T-F13E1D — das Erscheinungsbild der serverseitigen Seiten VOR der Anwendung: Anmeldung,
 * „Kein Zugang", „Abmelden bestätigen" ({@see Service/SchlichteSeite.php}, Service/AnmeldeSeite.php).
 *
 * Diese Seiten koennen das Stylesheet der Anwendung nicht einbinden: Es kommt aus dem Vite-Build und
 * traegt einen Hash im Dateinamen (tool/assets/index-*.css), eine feste Adresse dorthin waere nach
 * dem naechsten Release tot. Deshalb ein eigenes Bundle-Asset mit festem Namen — derselbe Weg wie
 * das Logo daneben (/bundles/crowdinintegration/bora-logo.svg).
 *
 * Die Werte sind NICHT erfunden, sondern am gerenderten Werkzeug abgenommen (03.10.2026, Schritt
 * „Optionen" und Kopfzeile): Farben aus frontend/src/styles/bora.css, Knopf wie .bora-btn,
 * Karte wie .bora-card, Eingabefeld wie das TextField des Design-Systems (48 px, 2 px Rahmen,
 * 8 px Radius, 20 px Text), Kopfzeile und Logo wie Frame.tsx. Wer dort etwas aendert, zieht es hier
 * nach — die Seiten sollen aussehen wie die Anwendung dahinter.
 */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Roboto-Bold.woff2') format('woff2');
}

:root {
  --c-100: #D1D1D1;
  --c-200: #A4A4A4;
  --c-300: #7B7B7B;
  --c-400: #5A5A5A;
  --c-450: #4F4D4D;
  --c-500: #414141;
  --c-575: #2E2E2E;
  --c-600: #242424;
  --c-700: #141311;
  --wg-200: #FDFDFD;
  --wg-350: #F4F3F1;
  --wg-400: #EDEAE7;
  --wg-500: #D6D0C9;
  --wg-600: #B0A89E;
  --err-200: #F5E6E5;
  --err-800: #C32830;
  --sh-300: 0 4px 8px rgba(0,0,0,.04), 0 8px 14px rgba(0,0,0,.06);
}

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

body.tt-s {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wg-350);
  color: var(--c-500);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

/* Kopfzeile wie in der Anwendung (Frame.tsx): 57 px, dunkel, Logo 22 px hoch, 20 px vom Rand. */
.tt-s-kopf {
  flex: 0 0 auto;
  min-height: 57px;
  background: var(--c-700);
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.tt-s-logo { height: 22px; width: auto; display: block; filter: invert(1) brightness(2); }

.tt-s-inhalt {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 20px 40px;
}

/* Karte wie .bora-card. */
.tt-s-karte {
  width: 100%;
  max-width: 28rem;
  background: var(--wg-200);
  border-radius: 8px;
  box-shadow: var(--sh-300);
  padding: 32px;
}
.tt-s-karte--breit { max-width: 36rem; }

/* Ueberschrift wie .bora-h-section, Fliesstext wie .bora-body. */
.tt-s-titel { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; letter-spacing: 0.02em; color: var(--c-600); }
/* `p` ohne Klasse: Den Inhalt von „Kein Zugang" & Co. schreiben die Controller als blankes HTML. */
.tt-s-text, .tt-s-karte p:not([class]) {font-size: 14px; line-height: 1.5; color: var(--c-500); margin: 0 0 12px; }
.tt-s-text--leise { color: var(--c-400); margin-bottom: 24px; }
.tt-s-karte code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; background: var(--wg-400); padding: 1px 6px; border-radius: 4px; color: var(--c-600);
}

/* Eingabefeld wie das TextField des Design-Systems; Label wie im Formular „Optionen" (.tt-opt-form). */
.tt-s-feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tt-s-label {
  font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-400);
}
.tt-s-input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--c-200);
  border-radius: 8px;
  background: transparent;
  color: var(--c-600);
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0.03em;
  padding: 9px 24px;
  outline: none;
  transition: border-color 150ms;
}
.tt-s-input:hover { border-color: var(--c-300); }
.tt-s-input:focus { border-color: var(--c-575); }
.tt-s-input:focus-visible { box-shadow: 0 0 0 2px var(--wg-400); }

/* Knopf wie .bora-btn (--filled / --outlined). */
.tt-s-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--c-600);
  color: var(--wg-200);
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), color 200ms;
}
.tt-s-knopf:hover { background: var(--c-500); }
.tt-s-knopf--rahmen { background: transparent; border-color: var(--c-600); color: var(--c-600); }
.tt-s-knopf--rahmen:hover { background: var(--wg-400); }
.tt-s-knopf--breit { width: 100%; }
.tt-s-knopf:focus-visible { outline: 4px solid var(--wg-600); outline-offset: 2px; }

.tt-s-oder {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-size: 12px; color: var(--c-400);
}
.tt-s-oder::before, .tt-s-oder::after { content: ""; flex: 1; border-top: 1px solid var(--wg-500); }

/* Fehlermeldung wie .bora-banner--err. */
.tt-s-fehler {
  background: var(--err-200);
  border-left: 5px solid var(--err-800);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-600);
}

.tt-s-tat { margin: 24px 0 0; }
