/*
 * websoft-Theme für das WPMgr-Dashboard.
 * Wird vom Host-nginx (wpmgr.websoft.one) nach dem App-Stylesheet in jede
 * HTML-Seite eingefügt und überschreibt nur CSS-Variablen + wenige Klassen.
 * Das WPMgr-Image bleibt unverändert, daher übersteht das Theme jedes Update.
 * CI-Quelle: Neukunden WebLaunch/_websoft/assets/websoft.css
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/brand/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --background:         #f8f9fb;
  --foreground:         #0e1116;
  --card:               #ffffff;
  --card-foreground:    #0e1116;
  --popover:            #ffffff;
  --popover-foreground: #0e1116;
  --muted:              #f1f3f6;
  --muted-foreground:   #6b7482;
  --accent:             #eef4c9;
  --accent-foreground:  #1f2308;
  --border:             #e3e7ed;
  --input:              #e3e7ed;
  --ring:               #9aab1f;
  --scrim:              rgb(14 17 22 / 0.55);

  --primary:            #c0d23d;
  --primary-foreground: #1f2308;
  --primary-hover:      #b2c430;
  --primary-pressed:    #a3b526;

  --chart-1: #9aab1f;
}

.dark {
  --background:         #0e1116;
  --foreground:         #f2f4f7;
  --card:               #161a20;
  --card-foreground:    #f2f4f7;
  --popover:            #1b2028;
  --popover-foreground: #f2f4f7;
  --muted:              #1b2028;
  --muted-foreground:   #8a93a1;
  --accent:             #232a33;
  --accent-foreground:  #f2f4f7;
  --border:             #2a313b;
  --input:              #232a33;
  --ring:               #c0d23d;
  --scrim:              rgb(0 0 0 / 0.65);

  --primary:            #c0d23d;
  --primary-foreground: #1f2308;
  --primary-hover:      #cddc5a;
  --primary-pressed:    #d8e477;

  --chart-1: #c0d23d;
}

/* websoft-Grün ist als Schriftfarbe auf Weiß nicht lesbar: im hellen Modus
   Text in Primärfarbe auf das dunkle websoft-Oliv umlenken. */
:root:not(.dark) .text-primary,
:root:not(.dark) a.text-primary,
:root:not(.dark) .hover\:text-primary:hover {
  color: #6b7a0f;
}

/* Schrift: websoft nutzt Inter. */
body,
.font-sans {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* websoft-Logo mit Untertitel (eingesetzt von websoft-theme.js) */
.ws-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}
.ws-tagline {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.ws-logo {
  display: inline-block;
  height: 28px;
  width: auto;
  vertical-align: middle;
}
.ws-logo-dark { display: none; }
.dark .ws-logo-light { display: none; }
.dark .ws-logo-dark { display: inline-block; }
.ws-symbol {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: middle;
}
