/* Selbst gehostete Schriften (fonts/, Geist Variable, OFL-Lizenz in fonts/LICENSE.txt) */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Secrets by sareba -- Erscheinungsbild nach sareba-Massstab.
 *
 * Referenz (nur gelesen, nichts dort geaendert): sareba/Homepage
 *   src/app/globals.css            Farb-Tokens des "sareba"-Themes (Vorgabe-Theme,
 *                                  oklch -> hier als Hex, Dark ist die Vorgabe;
 *                                  Light ist dort eine Nutzerwahl, kein
 *                                  prefers-color-scheme -> hier bewusst nur Dark)
 *   src/components/ui/button.tsx   Hoehen 32/28/36, Radius 10, Fokusring 3 px
 *   src/components/ui/input.tsx    Hoehe 32, 16 px Schrift unter 768 px
 *   src/components/ui/card.tsx     Radius 14, Innenabstand 16, Fusszeile muted/50
 *   src/components/ui/badge.tsx    Hoehe 20, 12 px, Pille
 *   src/app/[locale]/login/login-form.tsx, components/layout/header.tsx, footer.tsx
 *
 * Token-Namen wie in globals.css (--background, --card, --primary, --border,
 * --muted, --ring, --radius), damit ein Abgleich mit der Referenz ohne
 * Uebersetzung moeglich ist. Vanilla-CSS statt Tailwind/shadcn, daher sind
 * die Utility-Klassen der Referenz hier als Komponenten-Klassen nachgebaut. */

:root {
  color-scheme: dark;

  /* Farben -- globals.css .sareba (oklch -> sRGB-Hex) */
  --background: #0b1437;
  --foreground: #e5e8ef;
  --card: #1a2555;
  --card-2: #111c44;                 /* zweiter Anschlag des Karten-Verlaufs */
  --card-foreground: #e5e8ef;
  --popover: #1a2555;
  --primary: #7551ff;
  --primary-foreground: #fafafa;
  --primary-text: #9b7fff;           /* .sareba .text-primary (Links, Akzent-Text) */
  --secondary: #111c44;
  --secondary-foreground: #e5e8ef;
  --muted: #1f2b51;
  /* Referenz: oklch(0.579 0.051 265) = #6b7a99, nur 3,38:1 auf --card (unter AA).
   * Bewusst heller gesetzt: 4,97:1 auf --card, 6,1:1 auf --background. */
  --muted-foreground: #8b95bf;
  --accent: #212e60;
  --accent-foreground: #e5e8ef;
  --destructive: #ff6467;
  --success: #01b574;                /* sareba-Gruen (chart-2, Verlaufs-Ende) */
  --warning: #f5b942;
  --border: #2d3a6a;
  --input: #222f5b;
  --ring: #7551ff;

  /* Verlaeufe der Referenz (globals.css "Sareba Theme: Global Enhancements") */
  --gradient-primary: linear-gradient(135deg, #7551ff 0%, #01b574 100%);
  --gradient-card: linear-gradient(145deg, #1a2555 0%, #111c44 100%);
  --gradient-icon: linear-gradient(135deg, rgba(117, 81, 255, .15) 0%, rgba(1, 181, 116, .1) 100%);
  --gradient-footer: linear-gradient(180deg, #111c44 0%, #0b1437 100%);

  /* Radien -- --radius: 0.625rem; sm 0.6x, md 0.8x, lg 1x, xl 1.4x, 4xl 2.6x */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-pill: 999px;

  /* Schatten */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .3);
  --shadow-primary: 0 4px 16px rgba(117, 81, 255, .3);
  --shadow-primary-hover: 0 6px 24px rgba(117, 81, 255, .5);
  --shadow-popover: 0 10px 40px rgba(0, 0, 0, .45);
  --ring-shadow: 0 0 0 3px rgba(117, 81, 255, .5);          /* ring-3 ring-ring/50 */
  --ring-shadow-danger: 0 0 0 3px rgba(255, 100, 103, .4);  /* ring-destructive/40 */

  /* Schrift -- Geist / Geist Mono wie next/font in layout.tsx, selbst gehostet
   * aus fonts/ (CSP: default-src 'self'); @font-face steht am Dateianfang. */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1040px;
}

/* ---------------------------------------------------------------------------
 * Grundgeruest
 * ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font: 14px/1.5 var(--font-sans);
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring-shadow); border-radius: var(--radius-sm); }
::selection { background: rgba(117, 81, 255, .4); }

h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 0 0 .75rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
p { margin: .5rem 0; }
.muted { color: var(--muted-foreground); }
.small { font-size: .875em; }
.lead { max-width: 65ch; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
b, strong { font-weight: 600; }

code, .mono { font-family: var(--font-mono); font-size: .875em; }
code { background: rgba(117, 81, 255, .12); color: #c4b5fd; padding: .15em .45em; border-radius: 5px; border: 1px solid rgba(117, 81, 255, .15); word-break: break-all; }
pre { background: linear-gradient(145deg, #0b1437 0%, #0f1a42 100%); border: 1px solid var(--border); padding: 1rem 1.25rem; border-radius: var(--radius-lg); overflow: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.7; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); }
pre code { background: none; border: 0; padding: 0; color: #e2e8f0; white-space: pre; font-size: inherit; word-break: normal; }

/* Bildlaufleiste wie .sareba ::-webkit-scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ---------------------------------------------------------------------------
 * Kopfzeile -- header.tsx: sticky, h-16, border-b, bg-background/60 + blur,
 * Logo h-14, Links px-3 py-2 text-sm font-medium, Verlaufs-Unterstrich
 * ------------------------------------------------------------------------- */
/* Gemessen an sareba.com (2026-10-06): Kopf background/60 + blur(8px), Rand
   #2d3a6a, 64 px; Navigation ABSOLUT mittig; Links 14 px / 500, 8x12 px,
   Farbe muted, bei Hover/aktiv foreground OHNE Hintergrund, 2 px Verlaufs-
   Unterstrich (117,81,255 -> 1,181,116), der von 0 auf 100 % waechst. */
.top {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 20, 55, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* Kopfzeile als dreispaltiges Raster (2026-10-10, Betreiber): links Emblem,
   mittig die Hauptnavigation, rechts Mandant/Sprache/Konto. Vorher war die
   Mitte absolut auf 50 % gesetzt und lag bei ~1000 px unter der
   Mandantenanzeige ("Mandant: ..." ueber "Support"). Im Raster hat jede
   Seite ihre eigene Spalte; die Seitenspalten werden nie schmaler als ihr
   Inhalt (max-content, rechts ohne Umbruch) -- die Mitte rueckt hoechstens
   zur Seite, ueberlagert aber nicht. */
.top-in { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: 16px; height: 64px; padding: 0 24px; position: relative; }
/* Gemeinsame sareba-Kopfzeile (2026-10-05) + Produkt-Menue Variante C (2026-10-06) */
.produkte-panel { position: absolute; left: 0; top: calc(100% + 6px); width: 520px; max-width: 92vw; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 60; }
.produkte-panel[hidden] { display: none; }
.produkte-panel .raster { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.produkte-panel .karte { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--foreground); text-decoration: none; }
.produkte-panel a.karte:hover { background: var(--muted); text-decoration: none; }
.produkte-panel .karte.aktuell { background: rgba(124,92,255,.14); box-shadow: inset 0 0 0 1px rgba(124,92,255,.5); }
.produkte-panel .kachel { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: linear-gradient(135deg, var(--primary), #22c08a); color: #fff; }
.produkte-panel .karte.offen .kachel { background: var(--muted); color: var(--muted-foreground); }
.produkte-panel .text { min-width: 0; flex: 1; }
.produkte-panel .name { display: block; font-size: .9rem; font-weight: 500; }
.produkte-panel .karte.offen .name { color: var(--muted-foreground); }
.produkte-panel .beschreibung { display: block; font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.produkte-panel .zeichen { opacity: .6; font-size: .9rem; }
.produkte-panel .katalog { display: block; margin-top: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--border); text-align: center; font-size: .875rem; color: var(--primary); }
@media (max-width: 560px) { .produkte-panel .raster { grid-template-columns: 1fr; } }
.hauptnav { display: flex; align-items: center; gap: 4px; grid-column: 2; }
/* Unter 1024 px (wie sareba, header.tsx `hidden lg:flex`) fallen die Links
   Startseite/Support/Domains und das Dienste-Menue weg; der Produkt-
   Umschalter (#produkte, sareba <-> Secrets) bleibt -- er steht sonst
   nirgends (Betreiber 2026-10-10). Unter 640 px weiter ganz ohne Mitte. */
@media (max-width: 1023px) { .hauptnav > a, .hauptnav > #dienste { display: none; } }
.hauptnav a, .dienste-knopf { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--muted-foreground); text-decoration: none; background: transparent; border: 0; font-family: inherit; cursor: pointer; transition: color .15s; }
.hauptnav a::after, .dienste-knopf::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgb(117, 81, 255) 0%, rgb(1, 181, 116) 100%); transition: width .3s; }
.hauptnav a:hover, .hauptnav a.active, .dienste-knopf:hover, .dienste-knopf[aria-expanded="true"] { color: var(--foreground); background: transparent; text-decoration: none; }
.hauptnav a:hover::after, .hauptnav a.active::after, .dienste-knopf:hover::after, .dienste-knopf[aria-expanded="true"]::after { width: 100%; }
.dienste-knopf svg { width: 12px; height: 12px; opacity: .6; transition: transform .15s; }
.dienste-knopf:hover svg, .dienste-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.dienste { position: relative; }
.dienste-menu { position: absolute; left: 0; top: calc(100% + 4px); min-width: 200px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,.35); padding: 4px; z-index: 60; }
.dienste-menu[hidden] { display: none; }
.dienste-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; font-size: .875rem; color: var(--foreground); text-decoration: none; }
.dienste-menu a:hover { background: var(--muted); text-decoration: none; }
.dienste-menu a .ext { margin-left: auto; opacity: .5; font-size: .8rem; }
.subnav-in { display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 0 24px; border-top: 1px solid var(--border); }
.subnav-produkt { font-weight: 600; font-size: .95rem; }
.subnav { display: flex; align-items: center; gap: 2px; }
.subnav a { position: relative; white-space: nowrap; padding: 10px 12px; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; }
.subnav a:hover, .subnav a.active { color: var(--foreground); text-decoration: none; }
.subnav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--primary); }
.subnav [hidden] { display: none !important; }
#btn-konto-label:empty { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); font-weight: 600; font-size: 1.05rem; flex-shrink: 0; border-radius: var(--radius-md); grid-column: 1; justify-self: start; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: 56px; filter: invert(1); display: block; }
.brand-by { font-weight: 400; color: var(--muted-foreground); font-size: .85em; margin-left: 4px; }
/* Zwei Erscheinungsbilder (2026-10-15): marke.js setzt .marke-sareba an
   <html>, wenn die Verknuepfung mit sareba eingeschaltet ist. Ohne die
   Klasse gilt das eigene Erscheinungsbild (auch, wenn die API nicht antwortet). */
html:not(.marke-sareba) .nur-sareba { display: none !important; }
html.marke-sareba .nur-eigen { display: none !important; }
/* Eigene Marke: Programmsymbol (A3, tools/symbole) + Wortmarke statt sareba-Emblem; die Hauptnavigation
   entfaellt, die Secrets-Zeile darunter traegt die Navigation. */
.brand-eigen { gap: 10px; height: 40px; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-symbol { width: 30px; height: 30px; display: block; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; grid-column: 3; justify-self: end; }
.nav [hidden] { display: none !important; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius-md);
  color: var(--muted-foreground); font-size: .875rem; font-weight: 500;
  transition: color .15s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; width: 0;
  background: linear-gradient(90deg, #7551ff 0%, #01b574 100%); border-radius: 1px; transition: width .3s ease;
}
.nav a:hover, .nav a.active { color: var(--foreground); text-decoration: none; }
.nav a:hover::after, .nav a.active::after { width: calc(100% - 24px); }
.nav .btn-ghost { color: var(--muted-foreground); }
.nav .btn-ghost:hover { color: var(--foreground); }
.nav svg { width: 16px; height: 16px; }

.tenant { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted-foreground); margin-right: 8px; }
.tenant select { width: auto; height: 28px; min-height: 0; padding: 0 28px 0 8px; font-size: .8rem; border-radius: var(--radius-md); }
.tenant .single { color: var(--foreground); font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Inhalt -- container px-4 py-12, plus die zwei festen Leuchtflecken aus
 * .sareba main::before/::after
 * ------------------------------------------------------------------------- */
main { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 32px 24px 64px; flex: 1; z-index: 1; }
main::before, main::after { content: ""; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; }
main::before { top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(117, 81, 255, .04) 0%, transparent 70%); }
main::after { bottom: -200px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(1, 181, 116, .03) 0%, transparent 70%); }
main > * { position: relative; z-index: 1; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: .125rem; }
.page-head p { margin: 0; }

/* ---------------------------------------------------------------------------
 * Fusszeile -- footer.tsx: border-t, Spalten (h3 text-sm font-semibold,
 * Links text-sm muted -> foreground), Separator, Copyright-Zeile;
 * Hintergrund aus .sareba footer
 * ------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--border); background: var(--gradient-footer); }
.foot-in { max-width: var(--container); margin: 0 auto; padding: 40px 24px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-col h3 { font-size: .875rem; font-weight: 600; margin: 0 0 12px; color: var(--foreground); }
.foot-col p { margin: 0; font-size: .875rem; color: var(--muted-foreground); }
.foot-col nav { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { font-size: .875rem; color: var(--muted-foreground); transition: color .15s; }
.foot-col a:hover { color: var(--foreground); text-decoration: none; }
.foot-sep { border: 0; border-top: 1px solid var(--border); margin: 28px 0 20px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: .875rem; color: var(--muted-foreground); }
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: var(--foreground); text-decoration: none; }

/* ---------------------------------------------------------------------------
 * Karte -- card.tsx: rounded-xl (14 px), py-4/px-4, gap-4, text-sm,
 * ring-1 ring-foreground/10; Verlauf + Schatten + Hover-Rand aus .sareba
 * ------------------------------------------------------------------------- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(117, 81, 255, .3); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Anmelde-/Tresor-Karte -- login-form.tsx: max-w-md (448 px), zentriert,
 * Icon rounded-2xl bg-primary/10 p-3 mit 32-px-Symbol, Titel text-2xl */
.card.center { max-width: 448px; margin: 48px auto; padding: 24px; }
.card.center:hover { border-color: var(--border); }
.card-head { text-align: center; margin-bottom: 20px; }
.card-head h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.card-head p { margin: 0; font-size: .875rem; color: var(--muted-foreground); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-2xl); background: var(--gradient-icon); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; color: var(--primary-text); }
.card-icon svg { width: 32px; height: 32px; }
/* Programmsymbol ueber der Anmeldung (wie sarebamail, 72 px) */
.produktsymbol { display: block; width: 72px; height: 72px; margin: 0 auto 8px; }
/* CardFooter: border-t bg-muted/50 p-4, bis an den Kartenrand */
.card-foot {
  text-align: center; color: var(--muted-foreground); font-size: .875rem; line-height: 1.7;
  border-top: 1px solid var(--border); background: rgba(31, 43, 81, .5);
  margin: 20px -24px -24px; padding: 16px 24px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.card-foot a { color: var(--primary-text); font-weight: 500; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.dialog-actions { margin-top: 20px; }
.grow { flex: 1; min-width: 180px; }
.stack > * + * { margin-top: 10px; }
/* Abstaende statt style="..." in app.js (2026-10-23): die CSP (style-src 'self')
   blockt Inline-Styles, die Abstaende fehlten. !important wie der Vorrang, den
   die Inline-Styles vor label:first-child, .chk-inline oder .card > :first-child hatten. */
.mt-6 { margin-top: 6px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-10 { margin-bottom: 10px !important; }
.m-0 { margin: 0 !important; }
.my-6 { margin: 6px 0 !important; }
.w-80 { width: 80px !important; }

/* ---------------------------------------------------------------------------
 * Formulare -- label.tsx: text-sm font-medium leading-none; space-y-2 (8 px)
 * zwischen Label und Feld, space-y-4 (16 px) zwischen Feldern.
 * input.tsx: h-8, px-2.5, rounded-lg, border-input, text-base (16 px, kein
 * iOS-Zoom) und ab 768 px text-sm; Farben aus .sareba input.
 * ------------------------------------------------------------------------- */
label { display: block; font-size: .875rem; font-weight: 500; line-height: 1; margin: 16px 0 8px; }
label:first-child { margin-top: 0; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.label-row label { margin: 0; }
.label-row a { font-size: .75rem; color: var(--primary-text); }
input:not([type]), input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], select, textarea {
  display: block; width: 100%; min-width: 0; height: 32px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: rgba(26, 37, 85, .5); color: var(--foreground);
  font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 768px) { input:not([type]), input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], select, textarea { font-size: .875rem; } }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
textarea { font-family: var(--font-mono); font-size: .875rem; min-height: 120px; height: auto; padding: 8px 10px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b95bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select option { background: var(--card); color: var(--foreground); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ring-shadow); border-radius: var(--radius-lg); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: rgba(255, 100, 103, .5); }
input[aria-invalid=true]:focus-visible { box-shadow: var(--ring-shadow-danger); }
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; background: rgba(34, 47, 91, .8); }
input[readonly] { color: var(--muted-foreground); }
input[type=file] { display: block; width: 100%; font-size: .875rem; color: var(--muted-foreground); margin: 8px 0; }
input[type=file]::file-selector-button {
  height: 28px; margin-right: 10px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: rgba(34, 47, 91, .3); color: var(--foreground); font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer;
}
input[type=file]::file-selector-button:hover { border-color: var(--primary); background: rgba(117, 81, 255, .08); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; cursor: pointer; border-radius: 4px; }
.hint { color: var(--muted-foreground); font-size: .75rem; margin-top: 6px; line-height: 1.5; }
.chk-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; white-space: nowrap; line-height: 1.4; cursor: pointer; }
form .btn-block { margin-top: 20px; }

/* ---------------------------------------------------------------------------
 * Schaltflaechen -- button.tsx
 *   Basis:      h-8 (32) px-2.5 rounded-lg text-sm font-medium gap-1.5,
 *               focus-visible ring-3 ring/50, active translate-y-px, disabled 50 %
 *   .btn        = outline (border-input, bg-input/30, hover Rand primary -- .sareba)
 *   .btn-primary= default, im sareba-Theme Verlauf violett -> gruen + Schein
 *   .btn-ghost  = ghost (hover bg-muted/50)
 *   .btn-danger = destructive (bg-destructive/20, text-destructive)
 *   .btn-sm     = sm (h-7, rounded-md, text .8rem); .btn-lg = lg (h-9)
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  height: 32px; padding: 0 10px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: rgba(34, 47, 91, .3); color: var(--foreground);
  font: inherit; font-size: .875rem; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, filter .15s;
}
.btn:hover { border-color: var(--primary); background: rgba(117, 81, 255, .08); color: var(--foreground); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ring-shadow); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }

.btn-primary { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--gradient-primary); border-color: transparent; color: #fff; box-shadow: var(--shadow-primary-hover); filter: brightness(1.1); }
.btn-primary:focus-visible { box-shadow: var(--shadow-primary), var(--ring-shadow); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { border-color: transparent; background: rgba(31, 43, 81, .5); color: var(--foreground); }

.btn-danger { color: var(--destructive); border-color: transparent; background: rgba(255, 100, 103, .2); }
.btn-danger:hover { background: rgba(255, 100, 103, .3); border-color: transparent; color: var(--destructive); }
.btn-danger:focus-visible { border-color: rgba(255, 100, 103, .4); box-shadow: var(--ring-shadow-danger); }

.btn-block { width: 100%; }
.btn[hidden] { display: none !important; } /* .btn setzt display und schlaegt sonst das hidden-Attribut */
.btn-lg { height: 36px; padding: 0 12px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: .8rem; border-radius: var(--radius-md); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { padding: 0 8px; }

/* ---------------------------------------------------------------------------
 * Register -- tabs.tsx: Liste bg-muted rounded-lg p-[3px] h-9, Ausloeser
 * rounded-md px-2 py-1 text-sm font-medium, aktiv bg-background + Schatten
 * ------------------------------------------------------------------------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--muted); border-radius: var(--radius-lg); margin-bottom: 16px; max-width: 100%; }
.tabs button {
  height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: none; font: inherit; font-size: .875rem; font-weight: 500; color: var(--muted-foreground);
  cursor: pointer; transition: color .15s, background .15s;
}
.tabs button:hover { color: var(--foreground); }
.tabs button.active { background: var(--background); color: var(--foreground); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.tabs button:focus-visible { outline: none; box-shadow: var(--ring-shadow); }

/* ---------------------------------------------------------------------------
 * Tabellen -- table.tsx: th h-10 px-2 font-medium, td p-2 align-middle,
 * Zeilen border-b, letzte ohne; .sareba: th-Hintergrund, Zeilen-Hover violett
 * ------------------------------------------------------------------------- */
.tablewrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { height: 40px; color: var(--foreground); font-weight: 500; background: rgba(26, 37, 85, .5); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: rgba(117, 81, 255, .04); }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn + .btn { margin-left: 4px; }
.val { font-family: var(--font-mono); word-break: break-all; }
.val.masked { letter-spacing: 2px; color: var(--muted-foreground); }
/* Notizen je Eintrag (2026-11-06) */
.notiz { font-family: var(--font-sans, inherit); font-size: .8rem; color: var(--muted-foreground); white-space: pre-line; overflow-wrap: anywhere; margin-top: 2px; max-width: 42ch; }
.notiz-feld { min-height: 64px; }
/* Ablegen aus anderen Diensten (2026-11-06, ablegen.js) -- kleines Fenster */
.ablegen { max-width: 640px; margin-left: auto; margin-right: auto; }
.ablegen .stack input[type="text"], .ablegen .stack select { margin: 0 0 8px 24px; width: calc(100% - 24px); }
.ablegen-liste .val { white-space: normal; }
.ablegen-liste .val .btn { margin-left: 8px; letter-spacing: normal; }
.ablegen-konflikt { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0; }
.grouprow td { background: rgba(26, 37, 85, .5); font-weight: 600; font-size: .8rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
tbody tr.grouprow:hover td { background: rgba(26, 37, 85, .5); }

/* ---------------------------------------------------------------------------
 * Plaketten -- badge.tsx: h-5 px-2 text-xs font-medium Pille, Rand aus
 * .sareba [data-slot=badge]; Standard hier = secondary (neutral), Farben
 * fuer ok/warn/danger nach destructive-Muster (bg 20 %, Text in Farbe)
 * ------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--secondary); color: var(--secondary-foreground);
  font-size: .75rem; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.badge.primary { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.badge.ok { background: rgba(1, 181, 116, .18); color: #34d399; border-color: rgba(1, 181, 116, .35); }
.badge.warn { background: rgba(245, 185, 66, .16); color: var(--warning); border-color: rgba(245, 185, 66, .35); }
.badge.danger { background: rgba(255, 100, 103, .2); color: var(--destructive); border-color: rgba(255, 100, 103, .35); }
/* blue-500 wie "Verbessert" auf sareba.com/updates */
.badge.info { background: rgba(59, 130, 246, .15); color: #60a5fa; border-color: rgba(59, 130, 246, .3); }
.badge svg { width: 12px; height: 12px; flex: none; }

/* Stages (2026-10-12): Chips in der Projektliste, Kennzeichen am Projektnamen,
 * Reiter zu den anderen Stages auf der Projektseite. */
.stage-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
a.stage-chip { text-decoration: none; color: var(--primary-text); border-color: rgba(117, 81, 255, .35); background: rgba(117, 81, 255, .12); }
a.stage-chip:hover { background: rgba(117, 81, 255, .22); text-decoration: none; }
a.stage-chip.warn { color: var(--warning); border-color: rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .12); }
.stage-badge { font-size: .8rem; height: 22px; color: var(--primary-text); border-color: rgba(117, 81, 255, .35); background: rgba(117, 81, 255, .12); margin-left: 4px; }
.stage-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; }
.stage-tab { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: .8rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; }
a.stage-tab:hover { color: var(--foreground); border-color: rgba(117, 81, 255, .4); text-decoration: none; }
.stage-tab.aktiv { color: var(--primary-foreground); background: var(--primary); border-color: transparent; }

/* ---------------------------------------------------------------------------
 * Hinweise -- login-form.tsx Fehlerbox: rounded-lg bg-destructive/10 px-4
 * py-3 text-sm text-destructive; Warnung: border-amber-500/40 bg-amber/8
 * ------------------------------------------------------------------------- */
.alert { padding: 12px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: rgba(26, 37, 85, .6); font-size: .875rem; margin: 12px 0; line-height: 1.6; }
.alert.warn { border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .08); color: #fcd34d; }
.alert.danger { border-color: rgba(255, 100, 103, .3); background: rgba(255, 100, 103, .1); color: var(--destructive); }
.alert.ok { border-color: rgba(1, 181, 116, .4); background: rgba(1, 181, 116, .1); color: #6ee7b7; }
.alert .btn { margin-top: 8px; }

/* Listen (Projektliste) -- Zeilen wie Tabellenzeilen mit Hover */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px; margin: 0 -8px; border-bottom: 1px solid var(--border); border-radius: var(--radius-md); transition: background .15s; }
.list li:last-child { border-bottom: 0; }
.list li:hover { background: rgba(117, 81, 255, .04); }
.list a.title { font-weight: 600; color: var(--foreground); }
.list .badge { margin-left: 4px; }

/* Leerzustand -- Dashboard-Muster text-center py-8 text-muted-foreground */
.empty { text-align: center; padding: 32px 16px; color: var(--muted-foreground); margin: 0; }

/* Ladezustand -- Loader2 animate-spin (16 px) neben dem Text */
.loading { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.loading::before, .spinner {
  content: ""; display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid rgba(117, 81, 255, .25); border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { display: block; height: 14px; border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(31, 43, 81, .6) 25%, rgba(45, 58, 106, .6) 50%, rgba(31, 43, 81, .6) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .loading::before, .spinner, .skeleton { animation-duration: 3s; } .nav a::after, .btn, .card { transition: none; } }

/* Aufklapper (details) -- wie eine Karte in der Karte */
details { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; margin: 12px 0; background: rgba(11, 20, 55, .35); }
summary { cursor: pointer; font-weight: 500; font-size: .875rem; list-style: none; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details[open] > summary { margin-bottom: 10px; }
summary:focus-visible { outline: none; box-shadow: var(--ring-shadow); border-radius: var(--radius-sm); }
details.gen { margin-top: 12px; }

/* ---------------------------------------------------------------------------
 * Toast -- sonner (layout.tsx: position top-right, richColors, closeButton):
 * 356 px breit, 16 px Innenabstand, 13 px Schrift, Radius 8, oben rechts;
 * Fehler in den richColors-Farben
 * ------------------------------------------------------------------------- */
.toast {
  position: fixed; top: 76px; right: 24px; z-index: 100;
  width: 356px; max-width: calc(100vw - 32px);
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  box-shadow: var(--shadow-popover);
  font-size: 13px; line-height: 1.5;
  animation: toast-in .2s ease-out;
}
.toast[hidden] { display: none; }
.toast.error { background: #2a0f12; border-color: #4a1519; color: #ffb3b5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
 * Dialog -- dialog.tsx: Overlay bg-black/50, Inhalt max-w-lg (512 px),
 * rounded-xl, p-6, Titel text-lg font-semibold, Fusszeile rechtsbuendig
 * ------------------------------------------------------------------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; animation: fade-in .15s ease-out; }
/* Abmeldung bei Inaktivitaet: ueber einem offenen Bearbeiten-Dialog */
.idle-bg { z-index: 70; }
.idle-countdown { font-weight: 600; font-variant-numeric: tabular-nums; }
.modal { background: var(--gradient-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; max-width: 512px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-popover); animation: modal-in .15s ease-out; }
.modal h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 4px; }
.modal h2 + p { margin-top: 0; }
.modal > label:first-of-type { margin-top: 16px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } }

/* Schrittfolge (Leerzustand, Doku) -- Nummernkreis im Primaer-Verlauf */
.step { display: flex; gap: 12px; margin: 10px 0; align-items: flex-start; }
.step-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; box-shadow: var(--shadow-primary); }

/* ---------------------------------------------------------------------------
 * Dokumentation -- globals.css ".docs-content": h2 mit Verlaufs-Unterstrich,
 * h3 in #c4b5fd, Absaetze 1.8 Zeilenhoehe, Marker violett, Tabellen mit Rahmen
 * ------------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs-toc { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
.docs-toc .small { padding: 0 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; font-weight: 600; }
.docs-toc a { color: var(--muted-foreground); padding: 6px 10px; border-radius: var(--radius-md); font-size: .875rem; border-left: 2px solid transparent; transition: color .15s, background .15s; }
.docs-toc a:hover { color: var(--foreground); text-decoration: none; background: var(--accent); }
.docs-toc a.active { color: var(--foreground); background: rgba(117, 81, 255, .12); border-left-color: var(--primary); font-weight: 600; box-shadow: -2px 0 8px rgba(117, 81, 255, .2); }
.docs-body { min-width: 0; overflow-wrap: break-word; }
.docs-body > h1 { background: linear-gradient(135deg, var(--foreground) 0%, #9b7fff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.docs-body .card { padding: 20px 24px; scroll-margin-top: 80px; }
.docs-body h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .6em; padding-bottom: .5em; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #7551ff 0%, rgba(1, 181, 116, .3) 70%, transparent 100%) 1; }
.docs-body h3 { font-size: 1.1rem; font-weight: 700; color: #c4b5fd; margin: 1.5em 0 .5em; }
.docs-body h4 { font-size: 1rem; font-weight: 700; color: var(--primary-text); margin: 1.25em 0 .4em; }
.docs-body p, .docs-body li { line-height: 1.8; color: rgba(255, 255, 255, .85); }
.docs-body p { margin: 0 0 1em; }
.docs-body ul, .docs-body ol { padding-left: 1.5em; margin: 0 0 1em; }
.docs-body li { margin-bottom: .3em; }
.docs-body ul li::marker { color: var(--primary); }
.docs-body ol li::marker { color: var(--primary); font-weight: 600; }
.docs-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(117, 81, 255, .4); }
.docs-body a:hover { color: #b794ff; text-decoration-color: var(--primary); }
.docs-body a.btn { text-decoration: none; }
.docs-body pre { margin: 1.25em 0; }
.docs-body blockquote { border-left: 3px solid var(--primary); background: linear-gradient(135deg, rgba(26, 37, 85, .6) 0%, rgba(17, 28, 68, .4) 100%); padding: 1rem 1.25rem; margin: 1.25em 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.docs-body blockquote p { margin: 0; }
.docs-body table { margin: 1.25em 0; border: 1px solid var(--border); }
.docs-body th { background: linear-gradient(145deg, #1a2555 0%, #152050 100%); border: 1px solid var(--border); padding: .6rem .85rem; font-weight: 600; white-space: normal; height: auto; }
.docs-body td { border: 1px solid var(--border); padding: .5rem .85rem; }
/* Befehlsspalte: Befehle nie mitten im Wort umbrechen, Spalte breit genug */
.docs-body td:first-child { white-space: nowrap; }
.docs-body td:first-child code { word-break: normal; white-space: nowrap; }
.docs-body td + td { min-width: 18rem; }
@media (max-width: 640px) { .docs-body td:first-child { white-space: normal; } .docs-body td:first-child code { white-space: normal; word-break: normal; overflow-wrap: anywhere; } }
.docs-body tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.docs-body .step p { margin: 0; }
.docs-body hr { height: 1px; border: 0; background: linear-gradient(90deg, #2d3a6a 0%, rgba(117, 81, 255, .3) 50%, #2d3a6a 100%); margin: 2em 0; }

/* ---------------------------------------------------------------------------
 * Kleine Bildschirme -- 375 px: 16 px Rand, kein horizontales Scrollen,
 * Kopfzeile bricht in zwei Zeilen, Fusszeile einspaltig
 * ------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; gap: 16px; }
  .docs-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs-toc .small { width: 100%; }
  .docs-toc a { border-left: 0; border: 1px solid var(--border); font-size: .8rem; padding: 4px 10px; }
  .docs-toc a.active { box-shadow: none; border-color: var(--primary); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-grid .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top-in { display: flex; flex-wrap: wrap; padding: 8px 16px; gap: 4px 8px; min-height: 56px; height: auto; }
  .hauptnav { display: none; }
  .subnav-in { padding: 0 16px; overflow-x: auto; }
  .brand-logo { height: 40px; width: 40px; }
  .nav { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 0 2px; padding-bottom: 4px; }
  .nav a { padding: 8px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .nav a:hover::after, .nav a.active::after { width: calc(100% - 20px); }
  .tenant { width: 100%; margin: 0 0 4px; }
  .tenant select { flex: 1; }
  main { padding: 20px 16px 48px; }
  .card { padding: 16px; }
  .card.center { margin: 16px auto; padding: 20px 16px; }
  .card-foot { margin: 16px -16px -20px; padding: 14px 16px; }
  .foot-in { padding: 32px 16px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .toast { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
  .modal { padding: 20px 16px; }
  .page-head { flex-direction: column; }
  .page-head .row { width: 100%; }
  td.actions { white-space: normal; text-align: left; }
  td.actions .btn { margin: 2px 4px 2px 0; }
  td.actions .btn + .btn { margin-left: 0; }
  .hide-mobile { display: none; }
  .grow { min-width: 100%; }
  .docs-body .card { padding: 16px; }
  .docs-body h2 { font-size: 1.2rem; }
}

/* Geraete-Kopplung (#/pair): Code gut lesbar, wie er im Terminal steht */
.pair-code { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; }

/* ---------------------------------------------------------------------------
 * Admin-Bereich (#/admin, 2026-10-10) -- nur Klassen, keine Inline-Styles
 * (CSP style-src 'self'). Diagramme sind SVG mit Klassen fuer die Farben.
 * ------------------------------------------------------------------------- */
.admin-inhalt { overflow-wrap: break-word; }
.admin-inhalt h3:first-child { margin-top: 0; }
.admin-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 8px; }
.admin-gruppe h3 { margin: 0 0 8px; font-size: .875rem; color: var(--muted-foreground); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.admin-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.admin-kachel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; background: rgba(11, 20, 55, .35); }
.admin-kachel.warn { border-color: rgba(245, 185, 66, .45); }
.admin-kachel-wert { font-size: 1.35rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.admin-kachel-label { font-size: .75rem; color: var(--muted-foreground); margin-top: 2px; }
.admin-kv th { width: 1%; background: transparent; color: var(--muted-foreground); font-weight: 500; }
.admin-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.admin-chart { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px 6px; background: rgba(11, 20, 55, .35); }
.admin-chart figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.admin-chart svg { display: block; width: 100%; height: 130px; }
.chart-achse { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted-foreground); margin-top: 4px; font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--primary); opacity: .75; }
.chart-bar.heute { fill: var(--success); opacity: 1; }
.chart-bar:hover { opacity: 1; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.admin-filter { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-filter select { width: auto; }
.admin-konto { font-weight: 500; }
.admin-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.admin-benutzer td.actions { white-space: normal; min-width: 220px; }
.admin-link { white-space: pre-wrap; word-break: break-all; font-size: .8rem; }
.admin-form { max-width: 820px; }
.admin-chk { display: flex; white-space: normal; margin: 10px 0; align-items: flex-start; }
.admin-chk input { margin-top: 3px; flex: none; }
.admin-zeile2, .admin-zeile3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.admin-zeile2 > div > label:first-child, .admin-zeile3 > div > label:first-child { margin-top: 16px; }
.admin-zeile3 { grid-template-columns: 2fr 1fr 1.5fr; }
/* Register "sareba" (2026-10-15): Gegenueberstellung an/aus */
.admin-vergleich h4 { margin: 14px 0 4px; font-size: .875rem; }
.admin-liste { margin: 0; padding-left: 18px; color: var(--muted-foreground); }
.admin-liste li { margin: 2px 0; }
.admin-fest { padding: 6px 10px; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.mail-vorschau-rahmen { display: flex; justify-content: center; background: #060c24; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; overflow: hidden; }
.mail-vorschau { display: block; border: 0; background: #0b1437; height: 640px; border-radius: 6px; }
.mail-vorschau.desktop { width: 100%; max-width: 760px; }
.mail-vorschau.handy { width: 375px; max-width: 100%; height: 700px; border: 8px solid #1f2b51; border-radius: 24px; }
.admin-seo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.admin-seo-vorschau { position: sticky; top: 140px; }
.admin-sprachen { margin: 0 0 4px; }
.zu-lang { color: var(--warning); }
.serp { background: #fff; color: #202124; border-radius: var(--radius-lg); padding: 14px 16px; margin: 6px 0 16px; font-family: Arial, sans-serif; }
.serp-kopf { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.serp-icon { width: 26px; height: 26px; border-radius: 50%; background: #e8eaed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 21 8 12 13 3 8Z' fill='%237C4FCC'/%3E%3Cpath d='M3 12l9 5 9-5' fill='none' stroke='%231D9E75' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; flex: none; }
.serp-site { font-size: 14px; line-height: 1.3; }
.serp-url { font-size: 12px; color: #4d5156; line-height: 1.3; }
.serp-titel { color: #1a0dab; font-size: 20px; line-height: 1.3; margin: 2px 0; }
.serp-text { color: #4d5156; font-size: 14px; line-height: 1.58; }
.og-karte { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #1f2b51; margin: 6px 0; }
.og-karte img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--background); }
.og-text { padding: 10px 12px; }
.og-host { font-size: .7rem; color: var(--muted-foreground); letter-spacing: .04em; }
.og-titel { font-weight: 600; margin: 2px 0; }
.og-beschr { font-size: .8rem; color: var(--muted-foreground); }
.seo-pruefung { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.seo-pruefung li { margin: 6px 0; line-height: 1.5; }
@media (max-width: 1000px) {
  .admin-seo { grid-template-columns: 1fr; }
  .admin-seo-vorschau { position: static; }
}
@media (max-width: 640px) {
  .admin-zeile2, .admin-zeile3 { grid-template-columns: 1fr; }
  .admin-charts { grid-template-columns: 1fr; }
  .mail-vorschau-rahmen { padding: 8px; }
  .admin-benutzer td.actions { min-width: 0; }
}
/* Besucherstatistik (2026-10-26): Admin -> Statistik -> Website (admin.js, webBereich) */
.admin-web { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin-web h2 { margin: 0 0 4px; }
.admin-web .admin-gruppe { margin: 12px 0 16px; }
.web-charts { margin-bottom: 16px; }
.web-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.web-zeitraum { margin-bottom: 0; }
.web-listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.web-liste { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; background: rgba(11, 20, 55, .35); min-width: 0; }
.web-liste h4 { margin: 0 0 6px; font-size: .875rem; font-weight: 500; }
.web-liste table { table-layout: auto; }
.web-liste td { padding: 4px 4px; border-bottom: 0; font-size: .85rem; }
.web-name { overflow-wrap: anywhere; }
.web-balken-zelle { width: 28%; }
.web-balken { display: block; width: 100%; height: 6px; }
.web-balken rect { fill: var(--primary); opacity: .75; }
.web-zahl { width: 1%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.web-klasse { margin-left: 4px; font-size: .7rem; }
@media (max-width: 640px) {
  .web-listen { grid-template-columns: 1fr; }
}
.admin-inhalt .admin-konto, .admin-inhalt td.mono { overflow-wrap: break-word; }
.admin-benutzer td:first-child { min-width: 180px; }
.admin-form textarea[id^="seo-beschr"] { font-family: inherit; }
.admin-inhalt > .row, .admin-form > .row { margin: 12px 0; }
@media (max-width: 640px) {
  .admin-filter input[type=search] { flex: 1 1 100%; }
  .admin-benutzer thead { display: none; }
  .admin-benutzer, .admin-benutzer tbody, .admin-benutzer tr, .admin-benutzer td { display: block; width: 100%; }
  .admin-benutzer tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .admin-benutzer td { border: 0; padding: 3px 0; }
  .admin-benutzer td:first-child { min-width: 0; }
  .admin-benutzer td.actions { text-align: left; }
  .admin-aktionen { justify-content: flex-start; }
}
@media (max-width: 640px) { .admin-benutzer td.hide-mobile { display: none; } }

/* ---------------------------------------------------------------------------
 * Startseite (Beschreibung unter der Anmeldung) und #/download, 2026-10-10
 * ------------------------------------------------------------------------- */
.produkt-info { max-width: 880px; margin: 8px auto 0; text-align: left; }
.produkt-info > h2 { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.produkt-info > .lead { margin: 0 auto 24px; text-align: center; }
.info-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.info-kachel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; background: rgba(26, 37, 85, .45); }
.info-kachel h3 { margin: 0 0 6px; font-size: .95rem; }
.info-kachel p { margin: 0; font-size: .85rem; color: var(--muted-foreground); line-height: 1.55; }
.info-schritte { padding-left: 1.3rem; line-height: 1.7; }
.info-schritte li { margin: 4px 0; }
.info-aktionen { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.code-zeile { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.code-zeile pre { flex: 1; min-width: 0; margin: 0; white-space: pre-wrap; word-break: break-all; padding: .6rem .9rem; }
.code-zeile .btn { flex: none; margin-top: 6px; }
.dl-empfohlen { border-color: rgba(117, 81, 255, .45); }
.dl-empfohlen h2 { margin: 0; }
.dl-knoepfe { gap: 8px; flex-wrap: wrap; }
.dl-sha { word-break: break-all; max-width: 280px; }
@media (max-width: 640px) {
  .code-zeile { flex-direction: column; }
  .code-zeile .btn { margin-top: 0; align-self: flex-end; }
}

/* Doku: Unterkapitel im Inhaltsverzeichnis und Suche (2026-10-10) */
.docs-toc-gruppe { display: flex; flex-direction: column; gap: 1px; }
.docs-toc-gruppe > a { display: block; }
.docs-toc-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 10px; padding-left: 6px; border-left: 1px solid var(--border); }
.docs-toc-gruppe.offen .docs-toc-sub { display: flex; }
.docs-toc .docs-toc-sub a { font-size: .8rem; padding: 4px 10px; line-height: 1.35; }
.docs-suche { margin: 4px 0 20px; }
.docs-suche input[type=search] { height: 40px; font-size: 1rem; padding: 6px 14px; }
.docs-treffer { display: block; padding: 14px 18px; margin: 0 0 10px; color: var(--foreground); text-decoration: none; }
.docs-treffer:hover { text-decoration: none; border-color: rgba(117, 81, 255, .5); }
.docs-treffer-pfad { font-weight: 600; margin-bottom: 4px; }
.docs-treffer-text { font-size: .85rem; color: var(--muted-foreground); line-height: 1.55; }
.docs-treffer mark, .docs-treffer-pfad mark { background: rgba(245, 185, 66, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 760px) {
  .docs-toc-gruppe { flex-direction: row; }
  .docs-toc-sub, .docs-toc-gruppe.offen .docs-toc-sub { display: none; }
}

/* ---------------------------------------------------------------------------
 * Updates (#/updates, updates.js) -- wie sareba.com/updates: Version als
 * Ueberschrift mit Datum und Linie, darunter je Aenderung eine Karte mit
 * Kennzeichen, Datum, Titel und Text. Schmale Spalte fuer lange Texte.
 * ------------------------------------------------------------------------- */
.updates { max-width: 760px; margin: 0 auto; }   /* mittig wie sareba.com/updates (mx-auto) */
.updates .page-head > div { flex: 1; }            /* Untertitel so breit wie die Karten */
.updates .lead { max-width: none; }
.update-version { margin-top: 32px; }
.update-version h2 { font-size: 1.25rem; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.update-version h2 .small { font-weight: 400; margin-left: 6px; }
.update-eintrag { padding: 20px; }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.update-eintrag h3 { margin: 0 0 .5rem; }
.update-eintrag p { margin: 0; font-size: .875rem; line-height: 1.75; }
/* Befehle an Leerzeichen umbrechen, nicht mitten im Wort ("unl|ock") */
.update-eintrag code { word-break: normal; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------
 * Zwei-Faktor-Anmeldung (2026-10-16, app.js): Hinweisleiste, QR-Code,
 * Code-Eingabe, Wiederherstellungscodes
 * ------------------------------------------------------------------------- */
.zf-hinweis { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin: 16px auto 0; padding: 0 24px; }
.zf-hinweis .alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; }
.zf-hinweis .alert .btn { margin-top: 0; }
.zf-schritte { padding-left: 20px; margin: 0 0 8px; color: var(--muted-foreground); line-height: 1.7; }
.zf-qr { display: flex; justify-content: center; margin: 12px 0; }
.zf-qr svg { width: 208px; height: 208px; border-radius: var(--radius-md); display: block; }
.zf-gueltig { text-align: center; margin: -4px 0 8px; }
/* Passkeys (2026-10-17) */
.login-pk, #zf-pk, #zf-d-pk, #n-pk, #pk-neu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-pk, #zf-d-pk, #n-pk { margin-top: 10px; }
#zf-pk { margin-bottom: 14px; }
.pk-liste { list-style: none; margin: 0; padding: 0; }
.pk-liste li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pk-liste li:last-child { border-bottom: 0; }
.pk-liste .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pk-liste li { flex-wrap: wrap; } }
.center-text { text-align: center; margin: 10px 0 4px; }
#un-pk { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.pk-tresor-wahl { margin-top: 12px; }
.zf-manuell { margin: 8px 0 14px; }
.zf-manuell summary { cursor: pointer; color: var(--primary-text); }
.zf-manuell .row { margin-top: 8px; }
.zf-schluessel { letter-spacing: .04em; }
input.zf-code { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: .12em; text-align: center; }
.zf-wege { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 16px; }
.zf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; padding-left: 28px; margin: 12px 0; font-size: .95rem; }
.zf-gesichert { white-space: normal; align-items: flex-start; margin: 14px 0; }
.zf-gesichert input { margin-top: 3px; }
.zf-warn { color: var(--warning); }
.zf-karte { max-width: 480px; }
/* Pflicht-Einrichtung: Passkey oder App -- zwei gleichwertige Kacheln (2026-10-17) */
.zf-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.zf-wahl-knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; font: inherit; color: var(--foreground);
  background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s, background .15s; }
.zf-wahl-knopf:hover, .zf-wahl-knopf:focus-visible { border-color: var(--primary); background: var(--accent); outline: none; }
.zf-wahl-knopf svg { width: 22px; height: 22px; color: var(--primary-text); }
#zf-pk-ein { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 420px) { .zf-wahl { grid-template-columns: 1fr; } }
#zweifaktor { scroll-margin-top: 140px; } /* Kopfzeile klebt oben */
@media (max-width: 640px) { .zf-hinweis { padding: 0 16px; } }
@media (max-width: 420px) { .zf-codes { grid-template-columns: 1fr; } }

/* Rechtliches (2026-10-26): Impressum, Datenschutz, Nutzungsbedingungen
   (#/impressum ..., HTML vom Server, recht.go), Pflicht-Haken bei der
   Registrierung und Admin-Register "Rechtliches". */
.recht { max-width: 860px; margin: 24px auto; padding: 28px 32px; overflow-wrap: break-word; }
.recht:hover { border-color: var(--border); }
.recht h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 .6em; background: linear-gradient(135deg, var(--foreground) 0%, #9b7fff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.recht h2 { font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 .5em; padding-bottom: .4em; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #7551ff 0%, rgba(1, 181, 116, .3) 70%, transparent 100%) 1; }
.recht h3 { font-size: 1.05rem; font-weight: 700; color: #c4b5fd; margin: 1.3em 0 .4em; }
.recht p, .recht li { line-height: 1.75; color: rgba(255, 255, 255, .85); }
.recht p { margin: 0 0 1em; }
.recht ul { padding-left: 1.5em; margin: 0 0 1em; }
.recht li { margin-bottom: .3em; }
.recht ul li::marker { color: var(--primary); }
.recht strong { color: var(--foreground); }
.recht a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(117, 81, 255, .4); overflow-wrap: anywhere; }
.recht a:hover { color: #b794ff; text-decoration-color: var(--primary); }
.recht .recht-ecg a { display: inline-block; text-decoration: none; }
.recht .recht-ecg img { display: block; width: 169px; height: 23px; max-width: none; }
@media (max-width: 640px) { .recht { padding: 20px 16px; margin: 12px auto; } .recht h1 { font-size: 1.5rem; } }
.reg-bedingungen { white-space: normal; align-items: flex-start; margin: 16px 0 4px; }
.reg-bedingungen input { margin-top: 3px; flex: none; }
.reg-bedingungen a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.admin-recht { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-recht textarea { min-height: 520px; font-size: .8125rem; line-height: 1.5; }
.admin-recht-vorschau { max-height: 640px; overflow: auto; margin: 0; padding: 20px 24px; }
.admin-recht-wahl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; }
.admin-recht-wahl .tabs { margin: 0; }
@media (max-width: 1000px) { .admin-recht { grid-template-columns: 1fr; } .admin-recht textarea { min-height: 360px; } }
/* Echte Pfade (2026-10-26): vorgerenderter Inhalt oeffentlicher Seiten
   (secret-api/server/seiten.go), bis app.js die Ansicht zeigt. Bei einer
   Hash-Adresse (#/projects ...) blendet marke.js ihn aus (Klasse spa-hash),
   damit angemeldete Nutzer beim Neuladen keine Produktseite aufblitzen sehen. */
.spa-hash .vorab { display: none; }
.vorab { max-width: 960px; margin: 0 auto; }
.vorab-seite h1 { margin-top: 0; }
.vorab-seite h2 { margin-top: 28px; }
.vorab-seite pre { overflow-x: auto; }
.krumen { margin: 0 0 12px; }
.krumen a { color: inherit; }
.docs-liste li, .vorab-links li { margin: 6px 0; }
.docs-blaettern { margin-top: 24px; }
.vorab-links { margin: 24px 0; }
.vorab-links h2 { font-size: 1rem; }

/* Aufruf am Ende oeffentlicher Seiten (2026-10-26, seiten.go ausprobierenKasten) */
.ausprobieren { margin: 24px 0; }
.ausprobieren h2 { margin-top: 0; font-size: 1.15rem; }
.ausprobieren .row { flex-wrap: wrap; gap: 8px; }

/* ---- Menuefuehrung (2026-11-08, Vorbild Zeiterfassung "sareba x LOGA") ----
   Symbolleiste links ab 1024 px (64 px), ab 1280 px mit Namen (224 px);
   darunter Reiter oben, am Handy Leiste unten; Schnellmenue unten rechts.
   body.mit-rail setzt app.js renderShell (angemeldet mit Tresor). */
.shell { flex: 1; display: flex; width: 100%; min-width: 0; }
.shell > main { min-width: 0; }
.rail { display: none; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail > ul { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 2px; }
.rail-a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--radius-xl); color: var(--muted-foreground); font-size: .875rem; text-decoration: none; transition: background-color .15s, color .15s; }
.rail-a:hover { background: rgba(26, 37, 85, .6); color: var(--foreground); text-decoration: none; }
.rail-a.aktiv { background: var(--card); color: var(--foreground); font-weight: 500; }
.rail-a.aktiv::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -8px; width: 4px; border-radius: 4px; background: var(--gradient-primary); }
.rail-a .sym { width: 20px; height: 20px; flex-shrink: 0; }
.rail-text { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-kopf { display: none; padding: 8px 14px 2px 46px; font-size: .75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-kinder { margin: 2px 0 6px !important; }
.rail-kind { height: 36px; font-size: .8125rem; }
.rail-kind .sym { width: 16px; height: 16px; }
.rail-kind.aktiv { background: rgba(117, 81, 255, .14); }
.rail-kind.aktiv::before { display: none; }

@media (min-width: 1024px) {
  body.mit-rail .shell { max-width: calc(var(--container) + 112px); margin: 0 auto; padding-left: 24px; }
  body.mit-rail .rail { display: block; width: 64px; flex-shrink: 0; padding: 32px 0; }
  body.mit-rail .shell > main { flex: 1; max-width: none; }
  /* Die Symbolleiste ersetzt die Zeile oben und die Reiter im Inhalt */
  body.mit-rail .subnav-in .subnav { display: none; }
  html:not(.marke-sareba) body.mit-rail .subnav-in { display: none; }
  body.mit-rail .rail-ersetzt { display: none; }
  /* ohne Namen: Bereiche nur als Symbole, eingerueckt durch eine Linie */
  body.mit-rail .rail-kinder { border-left: 2px solid var(--border); margin-left: 22px !important; padding-left: 4px !important; }
  body.mit-rail .rail-kind { padding: 0 8px; }
}
@media (min-width: 1280px) {
  body.mit-rail .shell { max-width: calc(var(--container) + 272px); }
  body.mit-rail .rail { width: 224px; }
  body.mit-rail .rail-text, body.mit-rail .rail-kopf { display: block; }
  body.mit-rail .rail-kinder { border-left: 0; margin-left: 0 !important; padding-left: 0 !important; }
  body.mit-rail .rail-kind { padding-left: 46px; }
}

/* Handy: Leiste unten mit den wichtigsten Zielen, grosse Ziele */
.untennav { display: none; }
@media (max-width: 639px) {
  body.mit-rail .untennav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(11, 20, 55, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .untennav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 520px; justify-content: space-around; }
  .untennav li { flex: 1; }
  .unten-a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font-size: 11px; color: var(--muted-foreground); text-decoration: none; }
  .unten-a .sym { width: 20px; height: 20px; }
  .unten-a .rail-text { display: block; max-width: 100%; }
  .unten-a.aktiv { color: var(--primary-text); font-weight: 600; }
  .unten-a:hover { text-decoration: none; }
  body.mit-rail { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.mit-rail .subnav-in .subnav { display: none; }
  html:not(.marke-sareba) body.mit-rail .subnav-in { display: none; }
}

/* Schnellmenue: runder Knopf unten rechts (Zeiterfassung QuickMenu) */
.schnell { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.schnell[hidden] { display: none; }
.schnell-knopf { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .15s; }
.schnell-knopf:hover { transform: scale(1.05); }
.schnell-knopf:focus-visible { outline: none; box-shadow: var(--ring-shadow), 0 8px 24px rgba(0, 0, 0, .4); }
.schnell-knopf .sym { width: 22px; height: 22px; }
.schnell-menue { min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); padding: 6px; }
.schnell-menue[hidden] { display: none; }
.schnell-titel { padding: 6px 10px 4px; font-size: .75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.schnell-menue a, .schnell-menue button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-md); background: none; color: var(--foreground); font: inherit; font-size: .875rem; text-align: left; text-decoration: none; cursor: pointer; }
.schnell-menue a:hover, .schnell-menue button:hover, .schnell-menue a:focus-visible, .schnell-menue button:focus-visible { background: var(--secondary); outline: none; text-decoration: none; }
.schnell-menue .sym { width: 18px; height: 18px; color: var(--primary-text); flex-shrink: 0; }
@media (max-width: 639px) { .schnell { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; } }

/* Admin, Reiter Limits (2026-11-08) */
/* Vorgabe: festes Raster, Felder und Knopf auf einer Grundlinie (die globale
   label-Regel gaebe dem zweiten Feld 16 px Abstand nach oben) */
.lim-felder { display: grid; grid-template-columns: 180px 180px auto; gap: 16px; align-items: end; justify-content: start; }
.lim-feld { display: flex; flex-direction: column; gap: 8px; margin: 0 !important; font-size: .8125rem; color: var(--muted-foreground); }
.lim-feld .lim-zahl { width: 100%; }
.lim-felder + .hint { margin-top: 10px; }
@media (max-width: 560px) { .lim-felder { grid-template-columns: 1fr 1fr; } .lim-felder .btn { grid-column: 1 / -1; } }
/* Mandanten-Tabelle: feste Spaltenbreiten, alles mittig in der Zeile */
.lim-tabelle { table-layout: fixed; width: 100%; min-width: 680px; }
.lim-tabelle th, .lim-tabelle td { vertical-align: middle; }
.lim-tabelle .lim-c-zahl { width: 90px; }
.lim-tabelle .lim-c-belegt { width: 160px; }
.lim-tabelle .lim-c-feld { width: 140px; }
.lim-tabelle .lim-c-knopf { width: 120px; }
.lim-tabelle .lim-r { text-align: right; padding-right: 24px; }
.lim-tabelle .lim-zahl { width: 100%; }
.lim-tabelle td.actions { text-align: right; }
.lim-tabelle td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lim-suche { margin: 8px 0 12px; max-width: 360px; }

/* ---- Passwort-Tresor: Zugaenge und Zertifikate (2026-11-23, zugaenge.js) ---- */
.zg-tabelle td { vertical-align: middle; }
.zg-stern { width: 18px; color: #f5c542; text-align: center; padding-right: 0; }
.zg-titel { font-weight: 500; }
.zg-tag { font-size: .7rem; margin-left: 4px; }
.zg-wert { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); }
.zg-tabelle td.actions { white-space: nowrap; text-align: right; }
.zg-filter { display: inline-flex; gap: 4px; }
.zg-filter .btn.aktiv { background: var(--primary); border-color: var(--primary); color: #fff; }
.zg-pem { min-height: 110px; font-size: .75rem; line-height: 1.35; white-space: pre; }
.zg-geheim:not(:focus) { -webkit-text-security: disc; }
.zg-info { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); display: grid; gap: 4px; }
.zg-info:empty { display: none; }
.zg-info .mono { overflow-wrap: anywhere; }
.zg-feld { flex-wrap: nowrap; margin-bottom: 6px; }
.zg-feld .zg-f-name { width: 150px; flex-shrink: 0; }
.zg-feld select { width: 120px; flex-shrink: 0; }
@media (max-width: 640px) { .zg-feld { flex-wrap: wrap; } .zg-feld .zg-f-name, .zg-feld select { width: auto; flex: 1; } .zg-tabelle td.actions { white-space: normal; } }

/* ---- Secrets-Fenster fuer smo (2026-11-23, fenster.js): ohne Navigation ---- */
body.fenster-modus #rail, body.fenster-modus #untennav, body.fenster-modus #schnell, body.fenster-modus #subnav { display: none !important; }
body.fenster-modus.mit-rail main { margin-left: 0; }
.fenster-karte { max-width: 640px; margin: 24px auto; }
