/* =====================================================================
   Design-Vorlagen für Admin, Konto & Login (pro Benutzer wählbar).
   Gilt NICHT für den Shop selbst (.store hat sein eigenes Design).
   ===================================================================== */
:root { --field: #fff; --field-line: #c9c8c3; --chip: #ecebe8; --side: #1a1a19; --side-2: #2b2b29; --side-on: #34342f;
  --side-text: #d8d7d2; --side-line: #2f2f2c; --dark-btn: #1f1f1e; }

/* ---------- Vorlagen ---------- */
html[data-ui="dunkel"] body:not(:has(.store)) {
  --bg: #121212; --surface: #1b1b1b; --surface-2: #202020; --line: #2c2c2c; --text: #e9e7e2; --text-2: #c2bfb8; --muted: #8e8b85;
  --accent: #5b9cf0; --accent-ink: #fff; --good: #74d69a; --good-bg: #15301f; --warn: #f2c46b; --warn-bg: #33290f;
  --bad: #ff8f85; --bad-bg: #3a1714; --info-bg: #142638;
  --field: #161616; --field-line: #363636; --chip: #262626; --side: #0c0c0c; --side-2: #1c1c1c; --side-on: #262626;
  --side-text: #cfccc6; --side-line: #222; --dark-btn: #e9e7e2; color-scheme: dark; }
html[data-ui="nacht"] body:not(:has(.store)) {
  --bg: #0e1420; --surface: #151d2c; --surface-2: #1a2334; --line: #263247; --text: #e4eaf5; --text-2: #b6c1d6; --muted: #8492ab;
  --accent: #6aa8ff; --accent-ink: #08111f; --good: #6fe0a6; --good-bg: #12302a; --warn: #ffd27a; --warn-bg: #3a3117;
  --bad: #ff8fa0; --bad-bg: #3a1720; --info-bg: #17284a;
  --field: #111827; --field-line: #2c3a52; --chip: #1f2a3d; --side: #0a0f18; --side-2: #172133; --side-on: #1e2b42;
  --side-text: #c5cfe2; --side-line: #1c2638; --dark-btn: #e4eaf5; color-scheme: dark; }
html[data-ui="gold"] body:not(:has(.store)) {
  --bg: #0d0906; --surface: #17110b; --surface-2: #1d150e; --line: #33251a; --text: #f6ead6; --text-2: #e0cfb2; --muted: #a8916f;
  --accent: #e3a94f; --accent-ink: #1c1006; --good: #b9dd8a; --good-bg: #1e2a12; --warn: #f5c873; --warn-bg: #33250f;
  --bad: #ff9e85; --bad-bg: #3a1a12; --info-bg: #2a1f10;
  --field: #120c08; --field-line: #3a2a1b; --chip: #241a11; --side: #080503; --side-2: #1c130c; --side-on: #2a1d12;
  --side-text: #e3d2b6; --side-line: #22180f; --dark-btn: #e3a94f; color-scheme: dark; }
html[data-ui="sepia"] body:not(:has(.store)) {
  --bg: #efe6d4; --surface: #f8f1e3; --surface-2: #f3ead8; --line: #dccfb5; --text: #3b3024; --text-2: #5e5040; --muted: #8b7b65;
  --accent: #9a5b1e; --accent-ink: #fff; --good: #3f6b2a; --good-bg: #e2ead0; --warn: #8a5a00; --warn-bg: #f3e2bd;
  --bad: #a23a2a; --bad-bg: #f2d9cf; --info-bg: #e6e1d0;
  --field: #fbf6ec; --field-line: #cdbf9f; --chip: #e6dcc7; --side: #3b3024; --side-2: #4a3d2e; --side-on: #574836;
  --side-text: #eadfcb; --side-line: #4a3d2e; --dark-btn: #3b3024; }

/* ---------- Bausteine, die vorher feste Farben hatten ---------- */
body:not(:has(.store)) { background: var(--bg); color: var(--text); }
body:not(:has(.store)) input, body:not(:has(.store)) select, body:not(:has(.store)) textarea {
  background: var(--field); border-color: var(--field-line); color: var(--text); }
body:not(:has(.store)) .btn { background: var(--surface); border-color: var(--field-line); color: var(--text); }
body:not(:has(.store)) .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body:not(:has(.store)) .btn.dark { background: var(--dark-btn); border-color: var(--dark-btn); color: var(--bg); }
body:not(:has(.store)) .btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
body:not(:has(.store)) th { background: var(--chip); color: var(--text-2); }
body:not(:has(.store)) .card { background: var(--surface); border-color: var(--line); }
body:not(:has(.store)) .badge { background: var(--chip); color: var(--text-2); }
body:not(:has(.store)) .badge.good { background: var(--good-bg); color: var(--good); }
body:not(:has(.store)) .badge.warn { background: var(--warn-bg); color: var(--warn); }
body:not(:has(.store)) .badge.bad { background: var(--bad-bg); color: var(--bad); }
body:not(:has(.store)) .badge.info { background: var(--info-bg); color: var(--accent); }
body:not(:has(.store)) .thumb, body:not(:has(.store)) .meter { background: var(--chip); }
body:not(:has(.store)) .seg, body:not(:has(.store)) .seg a { border-color: var(--field-line); }
body:not(:has(.store)) .seg a.on { background: var(--dark-btn); color: var(--bg); }
body:not(:has(.store)) .viz-root { --surface-1: var(--surface); --grid: var(--line); --text-secondary: var(--text-2); --series-1: var(--accent); }
body:not(:has(.store)) .side { background: var(--side); color: var(--side-text); }
body:not(:has(.store)) .side a.nav { color: var(--side-text); }
body:not(:has(.store)) .side a.nav:hover { background: var(--side-2); }
body:not(:has(.store)) .side a.nav.on { background: var(--side-on); color: #fff; }
body:not(:has(.store)) .side select { background: var(--side-2); border-color: var(--side-line); color: var(--side-text); }
body:not(:has(.store)) .side .sep { border-color: var(--side-line); }
body:not(:has(.store)) .side .count { background: var(--accent); color: var(--accent-ink); }
body:not(:has(.store)) tr.click:hover td { background: var(--surface-2); }
body:not(:has(.store)) .flash.ok { border-color: color-mix(in srgb, var(--good) 35%, transparent); }
body:not(:has(.store)) .flash.error { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* Design-Auswahl in der Seitenleiste */
.ui-pick { display: flex; gap: 6px; padding: 4px 10px 10px; flex-wrap: wrap; }
.ui-pick button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ui-pick button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--side); }
.ui-pick button:hover { transform: scale(1.12); }
.ui-pick .t-auto { background: linear-gradient(135deg, #f4f4f2 50%, #1b1b1b 50%); }
.ui-pick .t-hell { background: #f4f4f2; } .ui-pick .t-dunkel { background: #1b1b1b; border-color: #444; }
.ui-pick .t-nacht { background: #151d2c; } .ui-pick .t-gold { background: linear-gradient(135deg, #17110b 55%, #e3a94f 55%); }
.ui-pick .t-sepia { background: #efe6d4; }
.ui-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: 0 10px; }
