/* 1mein.de – Farbschicht über dem bisherigen Layout.
   Reihenfolge: design/tokens.css → theme.css → Seiten-Stile (styles.css bzw. <style> der Seite) → theme.js.
   Die bisherigen Variablennamen bleiben, ihre Werte kommen aus der gewählten Farbwelt von „Samt & Messing“
   (messinghell | messing | tag | nacht). Layout, Kästen und Dialoge bleiben unverändert. */

:root, [data-theme] {
  /* öffentliche Seiten (landing.html, features.html, … register.php, reset.php) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-2);
  --bg-card: var(--surface);
  --bg-hover: var(--surface-2);
  --accent-primary: var(--primary);
  --accent-hover: color-mix(in srgb, var(--primary) 82%, var(--text));
  --accent-cyan: var(--accent);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: color-mix(in srgb, var(--muted) 85%, var(--bg));
  --border-color: var(--border);
  --success: var(--good);
  --warning: var(--warn);
  --on-primary: var(--primary-ink);

  /* App (styles.css) */
  --panel: var(--surface);
  --panelBorder: var(--border);
  --muted2: color-mix(in srgb, var(--muted) 85%, var(--bg));
  --primary2: var(--accent);
  --error: var(--bad);
  --overlay-panel: var(--sheet);
}

body { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Farbwelt-Umschalter (Baustein ThemePicker). Streifenfarben fest je Welt. */
.themeSwitch { display: flex; align-items: center; }
.lp-themes { display: flex; gap: 6px; }
.lp-theme { display: flex; width: 26px; height: 26px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); cursor: pointer; background: none; flex: none; }
.lp-theme i { flex: 1; height: 100%; display: block; }
.lp-theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.lp-theme-messinghell i:nth-child(1) { background: #f6f1e9; } .lp-theme-messinghell i:nth-child(2) { background: #8e2433; } .lp-theme-messinghell i:nth-child(3) { background: #c08a2a; }
.lp-theme-messing i:nth-child(1) { background: #141110; } .lp-theme-messing i:nth-child(2) { background: #a8323f; } .lp-theme-messing i:nth-child(3) { background: #d9a648; }
.lp-theme-tag i:nth-child(1) { background: #f6f3fc; } .lp-theme-tag i:nth-child(2) { background: #6d3fe0; } .lp-theme-tag i:nth-child(3) { background: #d99a1e; }
.lp-theme-nacht i:nth-child(1) { background: #14101f; } .lp-theme-nacht i:nth-child(2) { background: #7647e8; } .lp-theme-nacht i:nth-child(3) { background: #f5c542; }
html:not(.js) .themeSwitch, html:not(.js) .userMenuTheme { display: none; }

/* Farbpunkte in der Kopfzeile (öffentliche Seiten, Impressum, Datenschutz) – wie kigestalten.de */
.thema-wahl { display: flex; align-items: center; }
.thema-wahl > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .thema-wahl { display: none; }

/* Farbpunkte in einer Fußzeile (falls eine Seite sie dort zeigt) */
.footerTheme { justify-content: center; gap: 10px; padding: 0 0 1.25rem; color: var(--text-secondary); font-size: .85rem; font-weight: 700; }
