/* Inktopus design tokens — the ONLY file with literal colours (FE-C1).
   Values: brand guide chapters 04/05 ("Schwarz & Grün") refined to the owner's design template
   (frontend/design/design-template.webp, 2026-11-07). Light in :root; dark via prefers-color-scheme
   unless data-theme="light", and explicitly under data-theme="dark" (FE-C4).
   Breakpoints cannot be custom properties; they are fixed at 576 / 768 / 992 / 1200 px (FE-D1). */

:root {
  color-scheme: light;

  /* Colour */
  --color-bg: #F3F5F7;
  --color-surface: #FFFFFF;
  --color-surface-muted: #EEF1F4;
  --color-text: #0D1014;
  --color-text-muted: #5C636D;
  --color-border: #DDE1E6;
  --color-border-strong: #C9CFD6;
  --color-primary: #007A75;
  --color-primary-hover: #00635F;
  --color-primary-contrast: #FFFFFF;
  --color-on-site: #FFFFFF;           /* text on a web application's own colours (U-0188): the API checks them against white, so white in both themes */
  --color-qr-tile: #FFFFFF;           /* QR codes stay dark-on-white in both themes (scanners need it) */
  --color-ad-mark: #9A5B00;           /* U-0296: a sponsored article's label „Anzeige“ — the same in both themes, never a portal's --p-* token: 3.87:1 on black, 5.43:1 on white (AA non-text) */
  --color-ad-mark-ink: #FFFFFF;       /* its text: 5.43:1 on --color-ad-mark (AA) */
  --color-contribution-mark: #336B9E; /* U-0293: a contribution's label „Beitrag von …“ — the same in both themes, never a --p-* token: 3.74:1 on black, 5.62:1 on white (AA non-text) */
  --color-contribution-mark-ink: #FFFFFF; /* its text: 5.62:1 on --color-contribution-mark (AA) */
  --color-qr-ink: #000000;
  --color-primary-soft: #E3F4F3;      /* tinted background of highlighted cards, icon tiles, chips */
  --color-primary-line: #7CC9C5;      /* border of highlighted cards, chips, icon tiles */
  --color-accent: #00A19B;
  --color-success: #1C7A42;
  --color-warning: #9A5800;
  --color-danger: #BE2A2F;
  --color-danger-hover: #9E2227;
  --color-info: #1F5FAD;
  --color-focus: #0D1014;
  --color-overlay: rgb(13 16 20 / 0.5);
  --color-glow: rgb(0 161 155 / 0.06);  /* soft radial glow in page backgrounds */
  --color-glow-strong: rgb(0 161 155 / 0.28);

  /* Logo (brand guide chapter 03): light version "auf hell" */
  --color-logo-ink: #0D1014;
  --color-logo-signet: #0D1014;
  --color-logo-o: #00A19B;
  --color-logo-subline: #3A3F46;

  /* Honeycomb (owner's design template: the page background) */
  --pattern-honeycomb: url("/static/img/honeycomb-light.svg");
  --pattern-honeycomb-size: 62.36px 108px;

  /* Space — 4 px scale */
  --space-1: 0.25rem;  /*  4px */
  --space-2: 0.5rem;   /*  8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 2.5rem;   /* 40px */
  --space-8: 3rem;     /* 48px */
  --space-9: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */

  /* Radius — three only */
  --radius-control: 0.5rem;   /* 8px: buttons, fields, icon tiles */
  --radius-badge: 999px;      /* pills, chips */
  --radius-card: 0.875rem;    /* 14px: cards, panels, dialogs */

  /* Type (chapter 05). Fonts self-hosted as woff2 with their OFL licence files.
     --font-accent: the italic accent word in headings (template); system serif until a self-hosted
     serif is approved. */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.75rem;  /* 44px */
  --text-5xl: 3.75rem;  /* 60px */
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-tight: -0.02em;

  /* Elevation — two levels only */
  --shadow-1: 0 1px 2px rgb(13 16 20 / 0.05), 0 1px 3px rgb(13 16 20 / 0.06);
  --shadow-2: 0 18px 48px rgb(13 16 20 / 0.14);

  /* Layout */
  --content-max: 45rem;   /* reading width */
  --app-max: 90rem;       /* app width */
  --site-max: 76rem;      /* public pages */
  --sidebar-width: 16rem;
  --header-height: 4rem;
  --control-height: 2.75rem;          /* 44px (FE-D4) */
  --control-height-compact: 2.25rem;  /* 36px */
  --focus-ring: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-focus);
  --duration-fast: 120ms;
  --duration-medium: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-medium: 0ms; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg: #0B0E11;
    --color-surface: #11161A;
    --color-surface-muted: #171D22;
    --color-text: #F2F4F6;
    --color-text-muted: #8E96A0;
    --color-border: #212930;
    --color-border-strong: #2E3740;
    --color-primary: #00A19B;
    --color-primary-hover: #17B9B2;
    --color-primary-contrast: #0D1014;
    --color-primary-soft: #0E2A2A;
    --color-primary-line: #0F6E6A;
    --color-accent: #1FB5AE;
    --color-success: #5FD08A;
    --color-warning: #F0B45A;
    --color-danger: #FF8A85;
    --color-danger-hover: #FFA9A5;
    --color-info: #7FB6FF;
    --color-focus: #F2F4F6;
    --color-overlay: rgb(0 0 0 / 0.6);
    --color-glow: rgb(0 161 155 / 0.13);
    --color-glow-strong: rgb(0 161 155 / 0.38);
    --color-logo-ink: #FFFFFF;
    --color-logo-signet: #EAECEF;
    --color-logo-o: #00A19B;
    --color-logo-subline: #FFFFFF;
    --pattern-honeycomb: url("/static/img/honeycomb-dark.svg");
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 24px 60px rgb(0 0 0 / 0.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0B0E11;
  --color-surface: #11161A;
  --color-surface-muted: #171D22;
  --color-text: #F2F4F6;
  --color-text-muted: #8E96A0;
  --color-border: #212930;
  --color-border-strong: #2E3740;
  --color-primary: #00A19B;
  --color-primary-hover: #17B9B2;
  --color-primary-contrast: #0D1014;
  --color-primary-soft: #0E2A2A;
  --color-primary-line: #0F6E6A;
  --color-accent: #1FB5AE;
  --color-success: #5FD08A;
  --color-warning: #F0B45A;
  --color-danger: #FF8A85;
  --color-danger-hover: #FFA9A5;
  --color-info: #7FB6FF;
  --color-focus: #F2F4F6;
  --color-overlay: rgb(0 0 0 / 0.6);
  --color-glow: rgb(0 161 155 / 0.13);
  --color-glow-strong: rgb(0 161 155 / 0.38);
  --color-logo-ink: #FFFFFF;
  --color-logo-signet: #EAECEF;
  --color-logo-o: #00A19B;
  --color-logo-subline: #FFFFFF;
  --pattern-honeycomb: url("/static/img/honeycomb-dark.svg");
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 24px 60px rgb(0 0 0 / 0.55);
}
