/*
 * anyids Formatvorlage.
 *
 * ALS DATEI UND NICHT ALS <style>-BLOCK (30.08.2026). Sie stand bis dahin in
 * `layout.blade.php`; mit der Content-Security-Policy ginge das nicht mehr --
 * `style-src 'self'` verbietet Inline-Styles, und die Alternativen sind ein
 * Nonce je Anfrage (Plumbing, das sich mit Octane-Workern schlecht vertraegt)
 * oder ein `'unsafe-inline'`, das genau das Loch offen liesse, um dessentwillen
 * die Regel dasteht.
 *
 * KEIN BUILD-SCHRITT. anyid hat keinen, und das ist eine Eigenschaft und kein
 * Mangel: Diese Datei wird gelesen wie sie geschrieben ist.
 */

:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f4f4f5; color: #18181b;
}
main { width: 100%; max-width: 26rem; padding: 2rem; }
/* Die Verwaltung zeigt eine Liste und keine Anmeldekarte -- deshalb
   weiter und oben statt mittig. `body` bleibt flex, nur die Achse
   kippt, sonst haengt eine lange Liste ueber den Rand hinaus. */
body.weit { align-items: flex-start; }
body.weit main { max-width: 62rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #e4e4e7; }
th { font-size: .78rem; color: #71717a; font-weight: 600; }
td a { color: inherit; font-weight: 600; }
.marke { display: inline-block; font-size: .72rem; font-weight: 600;
         padding: .1rem .4rem; border-radius: .25rem; margin-right: .25rem;
         background: #e4e4e7; color: #3f3f46; }
.marke.warn { background: #fef2f2; color: #991b1b; }
.marke.gut { background: #f0fdf4; color: #166534; }
.reihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
         margin-bottom: 1rem; }
.reihe form { display: inline; }
.reihe input, .reihe select { margin-bottom: 0; }
/* In einer Reihe traegt das Label die Beschriftung UEBER dem Feld --
   sonst stehen Wort und Feld nebeneinander und die Reihe bricht. */
.reihe label { margin-bottom: 0; }
.reihe > label { display: flex; flex-direction: column; gap: .25rem; }
.reihe button, .knopf { width: auto; padding: .4rem .7rem; font-size: .82rem; }
.einmal { background:#fffbeb; border:1px solid #fcd34d; color:#78350f;
          padding:.75rem; border-radius:.4rem; margin-bottom:1.25rem;
          font-size:.875rem; }
.einmal code { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
h1 { font-size: 1.35rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
.sub { color: #71717a; margin: 0 0 1.75rem; font-size: .9rem; }
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
/* `select` und `number` standen hier bis zum 30.08.2026 NICHT drin.
   Sie kamen mit den Rollen- und Kontingentfeldern dazu und sahen
   daneben aus wie Fremdkoerper -- unterschiedlich hoch, andere
   Schrift, kein Fokusrahmen. */
input[type=email], input[type=password], input[type=text],
input[type=number], select {
    width: 100%; padding: .6rem .7rem; margin-bottom: 1rem;
    border: 1px solid #d4d4d8; border-radius: .4rem;
    background: #fff; color: inherit; font: inherit;
}
input:focus, select:focus { outline: 2px solid #6366f1; outline-offset: 1px; border-color: transparent; }
button {
    width: 100%; padding: .65rem; border: 0; border-radius: .4rem;
    background: #18181b; color: #fafafa; font: inherit; font-weight: 600;
    cursor: pointer;
}
button:hover { background: #3f3f46; }
.errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
          padding: .6rem .75rem; border-radius: .4rem; margin-bottom: 1.25rem;
          font-size: .875rem; }
.errors ul { margin: 0; padding-left: 1.1rem; }
.remember { display: flex; align-items: center; gap: .45rem;
            font-size: .875rem; margin-bottom: 1.25rem; }
.apps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.apps li { margin-bottom: .5rem; }
.apps a { display: block; padding: .7rem .8rem; border: 1px solid #d4d4d8;
          border-radius: .4rem; background: #fff; text-decoration: none;
          color: inherit; font-weight: 600; }
.apps a:hover { border-color: #18181b; }
.hinweis { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534;
           padding:.6rem .75rem; border-radius:.4rem; margin-bottom:1.25rem;
           font-size:.875rem; }
.qr { background:#fff; padding:.75rem; border-radius:.5rem; width:max-content;
      margin:0 auto 1rem; border:1px solid #d4d4d8; }
.qr svg { display:block; }
.codes { list-style:none; padding:0; margin:.75rem 0 0;
         display:grid; grid-template-columns:1fr 1fr; gap:.3rem; }
.codes code { font-size:.8rem; }
/* Ein Zugang als eigene Karte. Stand bis zum 30.08.2026 als
   `style="..."` im Blade und war dort dreimal wiederholt. */
.karte { border: 1px solid #e4e4e7; border-radius: .4rem;
         padding: .75rem 1rem; margin-bottom: .6rem; }
.karte h3 { margin: 0; font-size: .95rem; }
/* Zwischenueberschrift innerhalb einer Seite. */
h2 { font-size: 1rem; margin: 1.75rem 0 .35rem; }
/* Eine Notiz DIREKT unter einem Feld -- enger als `.sub`. */
.fussnote { color: #71717a; font-size: .78rem; margin: -.6rem 0 1rem; }
/* Gefaehrliche Knoepfe sehen anders aus als harmlose. Der Dialog
   fragt zwar nach, aber die Farbe kommt vor dem Dialog. */
button.gefahr { background: #991b1b; }
button.gefahr:hover { background: #7f1d1d; }
.foot { margin-top: 1.5rem; font-size: .8rem; color: #71717a; }
.foot a { color: #71717a; }
.foot form { display: inline; }
.foot button { width: auto; background: none; color: #71717a;
               padding: 0; text-decoration: underline; font-weight: 400; }
@media (prefers-color-scheme: dark) {
    body { background: #09090b; color: #fafafa; }
    input[type=email], input[type=password], input[type=text],
    input[type=number], select, .apps a { background: #18181b; border-color: #3f3f46; }
    button { background: #fafafa; color: #18181b; }
    button:hover { background: #d4d4d8; }
    .errors { background: #2a1215; border-color: #7f1d1d; color: #fca5a5; }
    .sub, .foot { color: #a1a1aa; }
    .foot a { color: #a1a1aa; }
    .hinweis { background:#052e16; border-color:#166534; color:#86efac; }
    th, td { border-color: #27272a; }
    .marke { background:#27272a; color:#d4d4d8; }
    .marke.warn { background:#2a1215; color:#fca5a5; }
    .marke.gut { background:#052e16; color:#86efac; }
    .einmal { background:#292524; border-color:#a16207; color:#fde68a; }
    .foot button { color: #a1a1aa; }
    .karte { border-color: #27272a; }
    .fussnote { color: #a1a1aa; }
    button.gefahr { background: #b91c1c; color: #fef2f2; }
    button.gefahr:hover { background: #991b1b; }
}

/*
 * ─── Handgriffe fuer den Abstand ──────────────────────────────────────────
 *
 * ENTSTANDEN AM 30.08.2026 AUS 15 `style="..."`-ATTRIBUTEN in den Blades.
 * Sie mussten weg, weil `style-src 'self'` auch Style-ATTRIBUTE verbietet,
 * nicht nur <style>-Bloecke -- eine Seite mit CSP und Inline-Abstaenden steht
 * ohne Layout da.
 *
 * Bewusst wenige und stumpf benannt: Das hier ist keine Utility-Bibliothek,
 * sondern die Handvoll Abstaende, die in einem halben Dutzend Vorlagen
 * wirklich vorkommt. Wer eine sechzehnte braucht, sollte zuerst pruefen, ob
 * nicht die Vorlage selbst die falsche Form hat.
 */

/* Ein Absatz DIREKT ueber dem, worauf er sich bezieht -- statt der weiten
   Luft, die `.sub` sonst laesst. */
.eng { margin-bottom: .75rem; }

/* Etwas Luft nach oben, wo ein neuer Gedanke anfaengt. */
.luft { margin-top: 1rem; }
.luft-viel { margin-top: 1.5rem; }

/* Kein Abstand, Punkt. Fuer einen `.sub`, der in einer Tabellenzelle steht. */
.dicht { margin: 0; }

/* Nimmt den uebrigen Platz in einer `.reihe` -- das Suchfeld. */
.dehnt { flex: 1; }

/* Mittig ausgerichtete Reihe; die Vorgabe laesst die Elemente oben stehen. */
.reihe.mittig { align-items: center; }

/* Der Name der Anwendung vor den Knoepfen: gleiche Breite in jeder Karte,
   sonst tanzen die Knoepfe von Zeile zu Zeile. */
.spalte-app { min-width: 6rem; }

/* Eine Aufzaehlung unter einem `.sub`-Absatz. Ruecken statt Einzug, und ohne
   den weiten Abstand, den `.sub` sonst darueber laesst. */
.sub.liste { padding-left: 1.1rem; margin-top: -1rem; }
