/* Weihnachtsmarkt-Lager – Theme „Homer“
   Werte aus dem Homer Admin UI Kit (Claude Design), übernommen aus dessen
   Tokenblöcken: Farbprimitive, Typo, Abstände, Radien, Schatten, Dunkelmodus.
   Homer nennt seine Variablen --ins-*. Hier stehen sie zuerst im Original,
   darunter die Namen, die die Oberfläche von Weihnachtsmarkt-Lager benutzt. Ein anderes
   Theme braucht damit weiterhin nur diese eine Datei. */
/* Schrift Public Sans (SIL Open Font License 1.1, Lizenz in fonts/OFL-PublicSans.txt),
   als variable Schrift lokal ausgeliefert: keine Anfrage an Google (DSGVO).
   Quelle: npm-Paket @fontsource-variable/public-sans 5.3.0. Zwei Teilmengen;
   der Browser lädt latin-ext nur, wenn eine Seite solche Zeichen enthält. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/public-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/public-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Homer-Primitive */
  --ins-white: #fff;
  --ins-gray-100: #f6f7fb;
  --ins-gray-200: #eef2f7;
  --ins-gray-300: #e7e9eb;
  --ins-gray-500: #a1a9b1;
  --ins-gray-600: #8a969c;
  --ins-gray-800: #34495e;
  --ins-gray-900: #313a46;
  --ins-primary: #62cb31;
  --ins-primary-text-emphasis: #53ad2a;
  --ins-primary-bg-subtle: #e7f7e0;
  --ins-primary-border-subtle: #c0eaad;
  --ins-secondary: #9b59b6;
  --ins-secondary-bg-subtle: #f0e6f4;
  --ins-success: #3498db;
  --ins-success-bg-subtle: #e1f0fa;
  --ins-info: #23c6c8;
  --ins-warning: #ffb606;
  --ins-warning-bg-subtle: #fff4da;
  --ins-danger: #e74c3c;
  --ins-danger-bg-subtle: #fbe4e2;
  --ins-danger-text-emphasis: #c44133;
  --ins-body-bg: #f1f3f6;
  --ins-body-color: #6a6c6f;
  --ins-secondary-color: #9a9ea5;
  --ins-border-color: #e7e9eb;
  --ins-link-color: #62cb31;
  --ins-link-hover-color: #53ad2a;

  /* Oberflächen und Schrift von Weihnachtsmarkt-Lager */
  --paper: var(--ins-body-bg);
  --paper-2: var(--ins-gray-100);
  --paper-3: var(--ins-gray-200);
  --surface: var(--ins-white);
  --ink: #23303c;            /* Überschriften und hervorgehobener Text */
  --ink-2: var(--ins-body-color);
  --ink-3: var(--ins-secondary-color);
  --line: var(--ins-border-color);
  --line-strong: var(--ins-gray-500);

  /* Rollen: Akzent = Homer-Grün, Zweitfarbe = Violett, Warnung = Gelb,
     Abweichung = Rot. Die weichen Töne sind Homers *-bg-subtle. */
  --terra: var(--ins-primary);
  --terra-soft: var(--ins-primary-bg-subtle);
  --terra-ink: var(--ins-primary-text-emphasis);
  --olive: var(--ins-secondary);
  --olive-soft: var(--ins-secondary-bg-subtle);
  --gold: #d99b05;
  --gold-soft: var(--ins-warning-bg-subtle);
  --wine: var(--ins-danger);
  --wine-soft: var(--ins-danger-bg-subtle);

  /* Ampelrollen ausdruecklich benannt. Vorher hingen sie an --terra und
     --olive; seit die auf Homers Gruen und Violett zeigen, stand eine
     Warnzahl gruen und eine Gut-Marke violett da. */
  --ok: var(--ins-primary);
  --ok-ink: var(--ins-primary-text-emphasis);
  --ok-soft: var(--ins-primary-bg-subtle);
  --warn: #d99b05;
  --warn-ink: #d99b05;
  --warn-soft: var(--ins-warning-bg-subtle);
  --gefahr: var(--ins-danger);
  --gefahr-ink: var(--ins-danger-text-emphasis);
  --gefahr-soft: var(--ins-danger-bg-subtle);
  --neutral: var(--ins-secondary);
  --neutral-ink: #844c9b;
  --neutral-soft: var(--ins-secondary-bg-subtle);

  --shadow: 0px 1px 4px 0px rgba(130, 143, 163, .15);
  --radius: 0.2rem;
  --radius-lg: 0.4rem;

  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-size-base: 13px;
  --line-height-base: 1.5;

  /* Masse der Seitenleiste und Kopfzeile, aus scss/config/_root.scss */
  --sidenav-breite: 210px;
  --topbar-hoehe: 60px;
  --sidenav-abstand: 8px;
  --sidenav-bg: var(--ins-white);
  --sidenav-text: #63666a;
  --sidenav-hover-text: #23303c;
  --sidenav-hover-bg: #f7f9fa;
  --sidenav-aktiv-bg: #f7f9fa;
  --topbar-bg: var(--ins-white);

  /* Symbole als Maske: sie nehmen die Textfarbe an und brauchen keine
     nachgeladene Symbolschrift. Strichstaerke wie bei Tabler, 2 px auf 24. */
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E");
  --i-ordner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 2h8a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  --i-kalender: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E");
  --i-posteingang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --i-zahnrad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-1.8-.3 1.6 1.6 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 9 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0 .3-1.8 1.6 1.6 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 4.6 9a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 1.8.3H9a1.6 1.6 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 1 1.5 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0-.3 1.8V9a1.6 1.6 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1z'/%3E%3C/svg%3E");
  --i-stecker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9zM12 12l8-4.5M12 12v9M12 12 4 7.5'/%3E%3C/svg%3E");
  --i-markt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M3 10l2-6h14l2 6zM9 21v-6h6v6'/%3E%3C/svg%3E");
  --i-etikett: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
  --i-stapel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5zM3 13l9 5 9-5'/%3E%3C/svg%3E");
  --i-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a969c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

/* Homers Dunkelmodus. Der Nutzer entscheidet über das Betriebssystem;
   data-theme setzt es ausdrücklich und gewinnt in beide Richtungen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sidenav-bg: #1e1f27;
    --sidenav-text: #8391a2;
    --sidenav-hover-text: #ced6df;
    --sidenav-hover-bg: #272832;
    --sidenav-aktiv-bg: #272832;
    --topbar-bg: #1e1f27;
    --ins-body-bg: #17181e;
    --ins-body-color: #aab8c5;
    --ins-secondary-color: #8391a2;
    --ins-border-color: #293036;
    --ins-gray-100: #272832;
    --ins-gray-200: #252630;
    --ins-gray-500: #4b4d5c;
    --ins-white: #1e1f27;
    --ins-link-color: #a1e083;
    --ins-link-hover-color: #afe596;
    --ins-primary-bg-subtle: rgba(98, 203, 49, .2);
    --ins-secondary-bg-subtle: rgba(155, 89, 182, .2);
    --ins-warning-bg-subtle: rgba(255, 182, 6, .2);
    --ins-danger-bg-subtle: rgba(231, 76, 60, .2);
    --ins-primary-text-emphasis: #a1e083;
    --ink: #aab8c5;
    --ok-ink: #a1e083;
    --warn-ink: #ffcf5c;
    --gefahr-ink: #f5a79e;
    --neutral-ink: #d3a8e4;
    --shadow: 0px 0px 30px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
    --sidenav-bg: #1e1f27;
    --sidenav-text: #8391a2;
    --sidenav-hover-text: #ced6df;
    --sidenav-hover-bg: #272832;
    --sidenav-aktiv-bg: #272832;
    --topbar-bg: #1e1f27;
  --ins-body-bg: #17181e;
  --ins-body-color: #aab8c5;
  --ins-secondary-color: #8391a2;
  --ins-border-color: #293036;
  --ins-gray-100: #272832;
  --ins-gray-200: #252630;
  --ins-gray-500: #4b4d5c;
  --ins-white: #1e1f27;
  --ins-link-color: #a1e083;
  --ins-link-hover-color: #afe596;
  --ins-primary-bg-subtle: rgba(98, 203, 49, .2);
  --ins-secondary-bg-subtle: rgba(155, 89, 182, .2);
  --ins-warning-bg-subtle: rgba(255, 182, 6, .2);
  --ins-danger-bg-subtle: rgba(231, 76, 60, .2);
  --ins-primary-text-emphasis: #a1e083;
  --ink: #aab8c5;
  --ok-ink: #a1e083;
  --warn-ink: #ffcf5c;
  --gefahr-ink: #f5a79e;
  --neutral-ink: #d3a8e4;
  --shadow: 0px 0px 30px rgba(0, 0, 0, .3);
}
