/* Aquarylic Designsystem „Farbkarte“ v1 (2026-08-13)
   Quelle der Wahrheit — Apps kopieren diese Datei und passen NUR die
   Font-Pfade an. Regeln: docs/DESIGN_RICHTUNGEN.md.
   Farbe kommt aus dem Sortiment (echte Chips) — die UI selbst bleibt Papier. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+20AC, U+2026;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plexmono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* Papier & Tinte */
  --paper: #ffffff;
  --board: #f7f6f3;
  --ink: #141412;
  --ink-60: #5c5b57;
  --ink-40: #8b8a85;
  --line: #e4e2dd;
  --line-strong: #c9c7c0;

  /* Akzent Wasser-Blau (funktional: Links, Fokus, aktiv) */
  --water: #1173a9;
  --water-deep: #0c5d8a;
  --water-tint: #e8f2f8;

  /* Semantik (nur Status, nie Deko) */
  --ok: #1e7b34;
  --ok-tint: #e8f4ea;
  --warn: #9a6a00;
  --warn-tint: #f8f0dd;
  --err: #b3261e;
  --err-tint: #fbeae9;

  /* Typografie */
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Display: expanded + schwer — die Plakat-Stimme der Marke */
  --display-stretch: 118%;
  --display-weight: 800;

  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-card: 0 1px 2px rgba(20, 20, 18, 0.06), 0 4px 16px rgba(20, 20, 18, 0.05);

  --dur-fast: 150ms;
  --dur-med: 240ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01' on;
}

/* Display-Typografie: immer über Klasse, nie global auf h1-h6 */
.display {
  font-family: var(--font-ui);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: none;
  margin: 0;
}
.display-xl { font-size: clamp(2.6rem, 7.5vw, 6rem); }
.display-l  { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.display-m  { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* Etiketten-Eyebrow: schmal gesperrt, versal — wie Gebinde-Beschriftung */
.label-tech {
  font-family: var(--font-ui);
  font-stretch: 84%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* Fakten (SKU, EAN, Preise, VE, Mengen): Mono mit Tabellenziffern */
.fact, .fact-strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.86em;
}
.fact { font-weight: 400; }
.fact-strong { font-weight: 600; }

/* Farbchip — DAS Identitätselement. Farbe kommt aus echten Produktdaten. */
.chip {
  display: inline-block;
  width: 20px; height: 20px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(20, 20, 18, 0.12);
  background-size: cover;
  background-position: center;
  flex: none;
}
.chip-l { width: 28px; height: 28px; }

/* Interaktion */
a { color: var(--water); text-underline-offset: 2px; }
a:hover { color: var(--water-deep); }
:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.95rem/1 var(--font-ui);
  padding: 12px 20px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a2a27; }
.btn-primary:disabled { background: var(--ink-40); cursor: not-allowed; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--water); padding: 8px 10px; }

.badge {
  display: inline-flex; align-items: center;
  font: 600 0.72rem/1 var(--font-ui);
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius-s);
  background: var(--board);
  color: var(--ink-60);
}
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-err { background: var(--err-tint); color: var(--err); }
.badge-water { background: var(--water-tint); color: var(--water-deep); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

/* Tabellen: die digitale Preisliste */
.sheet { width: 100%; border-collapse: collapse; }
.sheet th {
  text-align: left;
  font: 600 0.72rem/1.2 var(--font-ui);
  font-stretch: 84%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}
.sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sheet tbody tr:hover { background: var(--board); }
.sheet .num { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
