/* PePoX — Design-System "Handschlag"
   Was der Kunde riskiert, steht klein und schwarz.
   Was er bekommt, steht gross und blau.
   Farbe ist Bedeutung, keine Dekoration. */

/* Beide Schriften sind selbst gehostet (SIL Open Font License).
   Die Seite laedt nichts von fremden Servern. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/schrift/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/schrift/manrope-latin.woff2') format('woff2');
}

/* Die Schrift des Code-Editors: fuer die Ziffern der 110 und das
   wechselnde Wort. Ebenfalls SIL Open Font License, selbst gehostet. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/schrift/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  /* --- Farbe --- */
  --color-primary:       #1A35C8;  /* Fuellhalter-Blau: markiert nur die Zusage */
  --color-primary-light: #4058E4;
  --color-primary-dark:  #1229A2;
  --color-primary-50:    #E1E5F4;
  --color-secondary:       #5A615A;  /* Randnotiz */
  --color-secondary-light: #7C837C;
  --color-secondary-dark:  #3C423C;
  --color-secondary-50:    #E5E9E4;
  --color-accent:     #7B8DF5;  /* hellste Stufe des Blaus, nur im Licht */
  --color-bg:         #F0F2EF;  /* kuehles Papier */
  --color-bg-alt:     #E5E9E4;
  --color-surface:    #FFFFFF;
  --color-text:       #000000;
  --color-text-muted: #5A615A;
  --color-border:     #C5CAC3;

  /* --- Schrift --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   clamp(1.625rem, 1.1rem + 2.2vw, 2.375rem);
  --text-2xl:  clamp(2rem, 1.2rem + 3.6vw, 3.25rem);
  --text-3xl:  clamp(2.25rem, 1.2rem + 4.6vw, 3.75rem);
  --text-4xl:  clamp(4rem, 2rem + 9vw, 7.5rem);   /* die Ziffern der 110 */

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:  1.04;
  --leading-snug:   1.3;
  --leading-normal: 1.55;

  /* --- Raum: Abstand trennt, nicht Linien --- */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-none:  none;
  --shadow-focus: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);

  --container-max:  68rem;
  --container-text: 62ch;
}
