/* wealab · gemeinsame Grundlage für Login und Übersicht
   Palette aus kzi-skript.sty */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-display: swap; src: url(fonts/source-sans-3-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }

/* Farben exakt wie kzi-skript.sty (\definecolor) und die Web-Skripte (werkzeug/skript/assets/style.css):
   akzent/kziblau 3D5A80 · akzentbg E4ECF5 · akzent2/kzibernstein 9C6B2E · akzent2bg F7F0E2 · graubg F3F4F6
   linie C9CDD4 · haeuschenfarbe BFC9D6 · gitterband AAB7C7 · warn/kzirot B0544A · sprung 8C95A1
   kzigruen 4E7A5A · kziviolett 6B5B8C. Dunkel: dieselben Töne aufgehellt wie in den Skripten. */
:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --bg-2: #f3f4f6;
  --papier: #ffffff;
  --glas: rgba(255, 255, 255, .78);
  --text: #1d2229;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --linie: #c9cdd4;
  --linie-2: #e3e6ea;

  --akzent: #3d5a80;
  --akzent-stark: #2c4466;
  --akzentbg: #e4ecf5;
  --akzent2: #9c6b2e;
  --akzent2bg: #f7f0e2;
  --graubg: #f3f4f6;
  --haeuschen: #bfc9d6;
  --gitterband: #aab7c7;
  --warn: #b0544a;
  --sprung: #8c95a1;

  --blau: #3d5a80;
  --rot: #b0544a;
  --gruen: #4e7a5a;
  --bernstein: #9c6b2e;
  --violett: #6b5b8c;
  --grau: #8c95a1;
  --okbg: #e3eee6;
  --falschbg: #f6e4e1;
  --art-bg: #f4f6f9;

  --schatten: 0 1px 2px rgba(20, 30, 45, .05);
  --schatten-gross: 0 1px 2px rgba(20, 30, 45, .05), 0 8px 24px rgba(20, 30, 45, .08);
  --sans: "Source Sans 3", -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --r: 10px;
  /* Radien: Etikett und Fläche 4, klein 6, Bedienelement 8, Karte 10, Fenster 12 */
  --r-etikett: 4px;
  --r-klein: 6px;
  --r-knopf: 8px;
  --r-karte: 10px;
  --r-fenster: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14181e;
    --bg-2: #20252d;
    --papier: #1a1f27;
    --glas: rgba(26, 31, 39, .78);
    --text: #e4e7ec;
    --text-2: #b4bcc8;
    --text-3: #8d97a5;
    --linie: #3a4250;
    --linie-2: #2a313c;
    --akzent: #8fb0d8;
    --akzent-stark: #b3cbe8;
    --akzentbg: #1d2938;
    --akzent2: #d6a764;
    --akzent2bg: #2a2419;
    --graubg: #20252d;
    --haeuschen: #33404f;
    --gitterband: #3c4b5c;
    --warn: #e08d82;
    --sprung: #9aa3af;
    --blau: #8fb0d8;
    --rot: #e08d82;
    --gruen: #8cc09b;
    --bernstein: #d6a764;
    --violett: #b3a3d6;
    --grau: #9aa3af;
    --okbg: #1f3026;
    --falschbg: #3a2522;
    --art-bg: #171c24;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --schatten-gross: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14181e;
  --bg-2: #20252d;
  --papier: #1a1f27;
  --glas: rgba(26, 31, 39, .78);
  --text: #e4e7ec;
  --text-2: #b4bcc8;
  --text-3: #8d97a5;
  --linie: #3a4250;
  --linie-2: #2a313c;
  --akzent: #8fb0d8;
  --akzent-stark: #b3cbe8;
  --akzentbg: #1d2938;
  --akzent2: #d6a764;
  --akzent2bg: #2a2419;
  --graubg: #20252d;
  --haeuschen: #33404f;
  --gitterband: #3c4b5c;
  --warn: #e08d82;
  --sprung: #9aa3af;
  --blau: #8fb0d8;
  --rot: #e08d82;
  --gruen: #8cc09b;
  --bernstein: #d6a764;
  --violett: #b3a3d6;
  --grau: #9aa3af;
  --okbg: #1f3026;
  --falschbg: #3a2522;
  --art-bg: #171c24;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --schatten-gross: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--sans); overflow-x: hidden; }
a { color: var(--akzent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: var(--r-klein); }

/* Wortmarke: Punkt-Spirale + «wealab» */
.marke { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); }
.marke img { width: 2rem; height: 2rem; border-radius: var(--r-knopf); display: block; }
.marke b { font: 700 1.45rem/1 var(--sans); letter-spacing: -.03em; color: var(--text); }
.marke span { font: 500 .78rem/1.15 var(--sans); color: var(--text-3); letter-spacing: .02em; }

.knopf-rund {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-knopf);
  border: 1px solid var(--linie); background: var(--papier); color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.knopf-rund:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf-rund svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.marke [data-e="untertitel"] { display: block; }
.fach-blau { --fach: var(--blau); }
.fach-bernstein { --fach: var(--bernstein); }
.fach-gruen { --fach: var(--gruen); }
.fach-rot { --fach: var(--rot); }
.fach-violett { --fach: var(--violett); }
