/* =============================================================
   Lastenkarle – tokens.css
   Die Design-Tokens, einmal. Frontend liest sie über :root, der
   Block-Editor über .editor-styles-wrapper; beide Wege laden diese
   Datei, damit die Werte nicht an zwei Stellen gepflegt werden.
   ============================================================= */
:root,
.editor-styles-wrapper {
  /* ── Markenfarben Lastenkarle ─────────────────────────── */
  /* Karlerot – primäre Markenfarbe, CTAs */
  --color-primary:        #e30613;
  --color-primary-dark:   #b0040e;
  --color-primary-light:  #fadce0;

  /* Karlesalbei – unterstützende Akzentfarbe */
  --color-sage:           #a0b2a6;
  --color-sage-dark:      #8a9c90;
  --color-sage-light:     #e6ebe8;

  /* Links – beide Werte bestehen WCAG AA 4.5:1 auf Weiß */
  --color-link:           var(--color-primary-dark);
  --color-link-dark:      var(--color-text);

  /* Neutrals */
  --color-page-bg:        #eef0f1;
  --color-bg:             #ffffff;
  --color-surface:        #f9f6f3; /* Hintergrund Warm */
  --color-border:         #cccccc; /* Trenner */
  --color-text:           #333333; /* Haupttext */
  --color-text-muted:     #666666; /* Subtext */
  --color-text-on-primary:#ffffff;

  /* Feedback */
  --color-warning:        #8a6000;
  --color-warning-bg:     #fff8e1;
  --color-warning-border: #f0c040;
  --color-error:          var(--color-primary-dark);
  --color-error-bg:       var(--color-primary-light);
  --color-success:        #1e5c1e;
  --color-success-bg:     #edf7ed;

  /* Typografie */
  --font-base:  'Open Sauce Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  ui-monospace, "Cascadia Code", monospace;
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --line-height-tight:  1.25;
  --line-height-base:   1.6;
  --line-height-loose:  1.8;

  /* Abstände */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --container-max: 1160px;
  --container-pad: var(--space-4);
  --sticky-header-offset: 5rem;

  /* Touch-Targets (min. 44×44px per WCAG 2.5.5) */
  --touch-min: 2.75rem;
  /* Buttons sind optisch flacher als das Touch-Ziel. Die fehlende Höhe holt
   * das ::before unten wieder rein, sodass die Klickfläche 44px bleibt. */
  --btn-height: 2.25rem;
  /* Preserve the rounded single-line hero buttons without enlarging multiline corners. */
  --btn-radius: 28px;

  /* Radien */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Schatten */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);

  /* Hero */
  --color-hero-bg: #1e0609; /* sehr dunkles Lastenkarlerot – Fallback ohne Foto */
  --hero-max: 1920px;
  --site-window-width: min(100vw, var(--hero-max));

  /* Animationen */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --easing:        ease-in-out;
}
