/*  Copyright (C) Bitstem GmbH
 *  All rights reserved.
 *
 *  This source code is proprietary and confidential.
 *  Unauthorized copying, distribution, or disclosure of this file,
 *  in whole or in part, is strictly prohibited unless explicitly
 *  permitted in writing by Bitstem GmbH.
 *
 *  Author: Klaus Kuehnhammer <klaus@bitstem.com>
 */

:root {
  /* Farben */
  --color-body: #ffffff;
  --color-panel: #fef3f4;
  --color-background: #fef3f4;
  --color-surface: #ffffff;
  --color-text: #1a171b;
  --color-text-muted: #6b6770;
  --color-border: #1a171b;
  --color-border-subtle: rgba(26, 23, 27, 0.35);
  --color-divider-dotted: rgba(26, 23, 27, 0.4);

  /* Schriften – lokal (css/webfonts/) */
  --font-body: "DM Mono", ui-monospace, "Menlo", "Consolas", monospace;
  --font-display: "Prata", "Didot", "Bodoni 72", Georgia, serif;

  /* Typografie – fluid */
  --text-xs: clamp(0.68rem, 0.8vw, 0.75rem);
  --text-sm: clamp(0.78rem, 1vw, 0.875rem);
  --text-base: clamp(0.92rem, 1.1vw, 1rem);
  --text-md: clamp(0.92rem, 1.1vw, 1rem);
  --text-lg: clamp(1.125rem, 1.8vw, 1.375rem);
  --text-xl: clamp(1.375rem, 2.4vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 3.5vw, 2.5rem);

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-tight: 1.3;
  --line-height-normal: 1.55;
  --line-height-relaxed: 1.8;
  --letter-spacing-tight: 0;
  --letter-spacing-wide: 0.03em;
  --letter-spacing-wider: 0.12em;

  /* Abstände – fluid */
  --space-1: clamp(0.25rem, 0.5vw, 0.3rem);
  --space-2: clamp(0.5rem, 0.8vw, 0.6rem);
  --space-3: clamp(0.75rem, 1vw, 0.85rem);
  --space-4: clamp(1rem, 1.5vw, 1.25rem);
  --space-5: clamp(1.25rem, 2vw, 1.5rem);
  --space-6: clamp(1.5rem, 2.5vw, 2rem);
  --space-8: clamp(2rem, 3.5vw, 2.75rem);
  --space-10: clamp(2.5rem, 4.5vw, 3.5rem);
  --space-12: clamp(3rem, 5.5vw, 4.25rem);
  --space-16: clamp(4rem, 7vw, 5.5rem);
  --space-20: clamp(5rem, 9vw, 7rem);

  /* Layout */
  --page-max: 520px;
  --page-pad-x: clamp(1rem, 4vw, 1.75rem);
  --card-pad: clamp(1.25rem, 3.5vw, 2.25rem);

  /* Radien */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 9999px;

  /* Schatten */
  --shadow-card: 0 1px 2px rgba(26, 23, 27, 0.04);

  /* Übergänge */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout-Tokens für Breakpoints */
  --country-grid-cols: 6;
  --product-grid-cols: 2;

  /* Z-Index */
  --z-base: 0;
  --z-sticky: 100;
  --z-overlay: 300;
}

@media (min-width: 768px) {
  :root {
    --page-max: 640px;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-max: 720px;
  }
}
