/**
 * Design Tokens — Mazar Weinrot / Weiß
 * Mobile-first · fluid · semantic naming
 */
:root {
  /* ── Brand Weinrot (abgestimmt auf Mazar --red-color-dark) ── */
  --plein-foreground: var(--text-on-light, #1d1d1f);
  --plein-primary: var(--red-color-dark, #8a0000);
  --plein-primary-border: #a31212;
  --plein-primary-light: #b11226;
  --plein-primary-dark: #6b0000;
  --plein-bronze-dark: #2a1414;
  --plein-bronze: #3d2020;
  --plein-bronze-light: #523030;
  --plein-tracking-display: 0.035em;
  --plein-tracking-nav: 0.035em;

  --gradient-plein-primary: var(--plein-primary-dark, #6b0000);

  --gradient-mint-soft: #f5f5f7;

  /* Feineres Grain für crisp Look */
  --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: 0.5;
  --noise-opacity-soft: 0.2;

  /* ── Neutrale UI-Töne (Weinrot nur für Highlights / CTAs) ── */
  --salbei-50: #fafafa;
  --salbei-100: #f5f5f7;
  --salbei-200: #ececef;
  --salbei-300: #d4d4d8;
  --salbei-400: #aeaeb2;
  --salbei-500: #8e8e93;

  --brand-green: #5c0000;

  --salbei-600: var(--plein-primary);
  --salbei-700: var(--grey-color, #636363);
  --salbei-800: var(--text-on-light, #1d1d1f);
  --salbei-900: var(--text-on-light, #1d1d1f);
  --salbei-950: #1d1d1f;

  --salbei-muted: var(--grey-color, #636363);

  --neutral-50: #fafafa;
  --neutral-100: #f0f0f0;

  /* ── Semantic ── */
  --color-bg: var(--white-color, #ffffff);
  --color-bg-subtle: var(--salbei-50);
  --color-bg-mint: var(--salbei-100);
  --color-surface: var(--white-color, #ffffff);
  --color-surface-raised: var(--white-color, #ffffff);
  --color-surface-sunken: var(--salbei-100);
  --color-footer: var(--background1-color, #000000);

  --color-text: var(--plein-foreground);
  --color-text-muted: color-mix(in srgb, var(--plein-foreground) 62%, #ffffff);
  --color-text-subtle: var(--salbei-muted);
  --color-text-inverse: var(--white-color, #ffffff);
  --color-on-green: var(--color-text-inverse);
  --color-on-green-muted: color-mix(in srgb, var(--color-text-inverse) 92%, transparent);

  --color-accent: var(--plein-primary-light);
  --color-accent-strong: var(--plein-primary);
  --color-accent-strong-hover: var(--plein-primary-dark);
  --color-accent-strong-active: var(--brand-green);
  --color-accent-subtle: var(--plein-primary-border);
  --color-accent-muted: var(--salbei-100);

  --color-border: var(--border-color, rgba(204, 204, 204, 0.4));
  --color-border-strong: rgba(29, 29, 31, 0.14);
  --color-border-accent: rgba(29, 29, 31, 0.22);

  --color-focus: var(--text-on-light, #1d1d1f);
  --color-focus-ring: color-mix(in srgb, var(--text-on-light, #1d1d1f) 18%, transparent);

  --color-link: var(--text-on-light, #1d1d1f);
  --color-link-hover: var(--red-color-dark, #8a0000);
  --color-link-visited: var(--text-on-light, #1d1d1f);

  --color-success: var(--plein-primary);
  --color-warning: #a67c3a;
  --color-error: #b54a4a;

  --rating-1: #c4453a;
  --rating-2: #d4782e;
  --rating-3: #c9a227;
  --rating-4: #7aab3a;
  --rating-5: #2f8f4e;

  /* ── Typography ── */
  --font-sans: var(--montserrat-font, "Montserrat"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-logo: var(--montserrat-font, "Montserrat"), "Times New Roman", Georgia, serif;
  --font-serif: var(--font-sans);

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.125rem);
  --text-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.5rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);

  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --measure: 65ch;

  /* ── Spacing ── */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-2-5: 0.625rem;
  --space-3: 0.75rem;
  --space-3-5: 0.875rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  --gutter: clamp(var(--space-4), 4vw, var(--space-10));

  /* ── Layout ── */
  --container-lg: 52rem;
  --container-2xl: 82.5rem;
  --container-max: var(--container-lg);

  --header-height: 4.75rem;

  /* ── Radius (Mazar: 6 / 10 / 16 px) ── */
  --radius-none: 0;
  --radius-sm: var(--border-radius-sm, 6px);
  --radius-md: var(--border-radius, 10px);
  --radius-lg: var(--border-radius-lg, 16px);
  --radius-xl: var(--hero-radius, 1.25rem);
  --radius-2xl: 1.5rem;
  --radius-shell: var(--border-radius-lg, 16px);
  --radius-full: 9999px;

  --shadow-focus: 0 0 0 2px var(--color-focus-ring);

  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --duration-enter: 520ms;
  --motion-rise: 0.75rem;
  --motion-rise-sm: 0.4rem;

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 500;
  --z-skip: 600;

  --border-width: 1px;
  --border-width-2: 2px;
}

@media (min-width: 48rem) {
  :root {
    --header-height: 5.5rem;
    --container-max: var(--container-2xl);
  }
}