/* ==========================================================================
   Quantiz® Atrium – Design Tokens
   --------------------------------------------------------------------------
   Taken from the Quantiz® Design System (docs/design/application/project/_ds/
   …/colors_and_type.css). Fonts are served locally (no third-party requests).
   "Moderne Eleganz, minimalistisch, hohe Übersichtlichkeit, vornehme Zurückhaltung."
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face { font-family: "Museo Sans"; font-weight: 100; font-style: normal; font-display: swap; src: url("../fonts/MuseoSans-100.woff2") format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/MuseoSans-300.woff2") format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/MuseoSans-500.woff2") format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/MuseoSans-700.woff2") format("woff2"); }
@font-face { font-family: "Museo Sans"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/MuseoSans-900.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Comfortaa-Light.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Comfortaa-Regular.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Comfortaa-Medium.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Comfortaa-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Comfortaa"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Comfortaa-Bold.woff2") format("woff2"); }

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --q-black: #000000;
  --q-white: #FFFFFF;
  --q-dark: #4B4B4B;          /* primary text */
  --q-medium: #BBBBBB;        /* secondary text, 2px form borders */
  --q-bright: #E7E7E7;        /* dividers */
  --q-highlight-1: #C6D31C;   /* Quantiz lime – primary brand / primary CTA */
  --q-highlight-2: #10314E;   /* deep navy – links, dialog heads, selection */
  --q-highlight-3: #15A5B5;   /* petrol – headlines, focus, processing */
  --q-highlight-4: #F1F2F2;   /* off-white wash */
  --q-highlight-5: #8A1CB1;   /* purple – reserved */

  --fg-1: var(--q-dark);
  --fg-2: var(--q-medium);
  --link: var(--q-highlight-2);
  --link-hover: var(--q-highlight-3);
  --brand: var(--q-highlight-1);
  --brand-dark: var(--q-highlight-2);
  --accent: var(--q-highlight-3);
  --surface: var(--q-white);
  --surface-soft: var(--q-highlight-4);
  --divider: var(--q-bright);
  --focus-ring: var(--q-highlight-3);

  --success: #6FA31C;
  --warning: #E2A93B;
  --danger: #C04848;
  --danger-soft: rgba(192, 72, 72, .15);
  --brand-soft: rgba(198, 211, 28, .35);
  --navy-soft: rgba(16, 49, 78, .12);
  --overlay: rgba(16, 49, 78, .45);

  --font-sans: "Museo Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Comfortaa", "Museo Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --w-thin: 100; --w-light: 300; --w-regular: 500; --w-bold: 700; --w-black: 900;

  --fs-11: 0.6875rem; --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-15: 0.9375rem;
  --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-21: 1.3125rem; --fs-22: 1.375rem;
  --fs-24: 1.5rem; --fs-28: 1.75rem; --fs-32: 2rem; --fs-34: 2.125rem;

  --lh-tight: 1.2; --lh-snug: 1.35; --lh-normal: 1.5; --lh-loose: 1.7;
  --tracking-wide: 0.05em; --tracking-xwide: 0.10em;

  /* check mark for selection controls – geometrically centred in its 24×24 box (used as mask) */
  --mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l5 5L19 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 40px;
  --radius-pill: 999px; --radius-circle: 50%;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --shadow-card: 0 0 12px 0 rgba(0, 0, 0, .20);
  --shadow-card-soft: 0 0 12px 0 rgba(0, 0, 0, .12);
  --shadow-card-faint: 0 0 12px 0 rgba(0, 0, 0, .08);
  --shadow-elev: 0 0 6px 6px rgba(0, 0, 0, .20);
  --shadow-focus: 0 0 0 3px rgba(21, 165, 181, .35);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms; --dur-base: 300ms; --dur-slow: 600ms;

  --glass: rgba(255, 255, 255, .25);
  --glass-strong: rgba(255, 255, 255, .75);
  --glass-soft: rgba(255, 255, 255, .18);

  --app-gap: 12px;            /* distance of the floating container card */
}

/* ── Element defaults ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--w-light);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--q-highlight-1);
  background-image: url("../assets/brand/bg-liquid.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a { color: var(--link); font-weight: var(--w-bold); text-decoration: none; transition: color var(--dur-fast) var(--ease-std); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 { margin: 0; }
h2 { font-family: var(--font-display); font-weight: var(--w-bold); color: var(--q-highlight-3); line-height: var(--lh-tight); }
p { margin: 0 0 1em; text-wrap: pretty; }

input, select, button, textarea { font-family: var(--font-sans); color: var(--fg-1); font-size: inherit; }
button { cursor: pointer; }
::placeholder { color: var(--q-medium); opacity: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--q-bright); border-radius: var(--radius-pill); }
::-webkit-scrollbar-track { background: transparent; }

/* Visible focus indicator for keyboard users (guideline 3.7.3) */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

[hidden] { display: none !important; }

/* Registered mark of "Quantiz®": superscript and smaller than the text around it. Design system: .5em – kept for large
   type (titles); small running text gets up to .7em (at most 9px), otherwise the mark of 11–13px text is illegible (T424) */
.registered { font-size: max(.5em, min(.7em, 9px)); vertical-align: super; line-height: 0; }
.visually_hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes q-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes q-spin { to { transform: rotate(360deg); } }
@keyframes q-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
/* T236: the same for the person's own choice "Bewegung reduzieren" (data-motion="reduce" on <html>, core/motion.js) –
   components with more than animations/transitions repeat their rule with :root[data-motion="reduce"] */
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
:root[data-motion="reduce"] { scroll-behavior: auto !important; }
