/* ─────────────────────────────────────────────────────────────
   ORANGE Makler-Portal — Design Tokens
   Basis: /03_Projekte/Webseiten/_Designsystem/05_templates/design-tokens.md
   ───────────────────────────────────────────────────────────── */

:root {
  /* ─── BRAND ──────────────────────────────────── */
  --orange-500: #F49F25;
  --orange-600: #D8861A;
  --orange-50:  #FFF5E6;
  --orange-ink: #3A2308;

  /* ─── NEUTRAL ────────────────────────────────── */
  --ink-950: #1A1A1A;
  --ink-900: #2B2B2D;
  --ink-700: #707173;
  --ink-500: #9A9A9C;
  --ink-300: #D4D4D6;
  --ink-200: #E8E8E8;
  --ink-100: #F1F1F1;
  --ink-50:  #FAFAFA;
  --paper:   #FFFFFF;

  /* ─── SEMANTIC ───────────────────────────────── */
  --success: #16A34A;
  --warning: #F59E0B;
  --error:   #DC2626;
  --info:    #0EA5E9;

  /* ─── ROLES (nutze diese, nicht die Hex-Tokens direkt) ── */
  --bg:           var(--ink-50);
  --surface:      var(--paper);
  --surface-alt:  var(--ink-100);
  --text:         var(--ink-700);
  --text-strong:  var(--ink-900);
  --text-muted:   var(--ink-500);
  --border:       var(--ink-200);
  --accent:       var(--orange-500);
  --accent-hover: var(--orange-600);
  --accent-tint:  var(--orange-50);

  /* ─── TYPOGRAPHY ─────────────────────────────── */
  --font-body: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid Scale — 1.25 ratio */
  --text-xs:   clamp(0.75rem,  0.70rem + 0.2vw, 0.875rem);
  --text-sm:   clamp(0.85rem,  0.80rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem,     0.95rem + 0.3vw, 1.1rem);
  --text-lg:   clamp(1.15rem,  1.05rem + 0.5vw, 1.35rem);
  --text-xl:   clamp(1.35rem,  1.20rem + 0.7vw, 1.7rem);
  --text-2xl:  clamp(1.7rem,   1.40rem + 1.2vw, 2.4rem);
  --text-3xl:  clamp(2.2rem,   1.80rem + 2.0vw, 3.4rem);

  --leading-tight:  1.2;
  --leading-normal: 1.55;
  --leading-loose:  1.75;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;

  /* ─── SPACING (4px-Basis) ────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --section-pad-y: clamp(48px, 6vw, 96px);

  /* ─── LAYOUT ─────────────────────────────────── */
  --content-narrow: 640px;
  --content-base:   1100px;
  --content-wide:   1320px;

  --gutter-sm: 16px;
  --gutter-md: 24px;
  --gutter-lg: 40px;

  /* ─── RADIUS ─────────────────────────────────── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ─── SHADOW ─────────────────────────────────── */
  --shadow-xs:    0 1px 2px hsla(0 0% 0% / 0.05);
  --shadow-sm:    0 2px 6px hsla(0 0% 0% / 0.06);
  --shadow-md:    0 6px 24px hsla(30 80% 40% / 0.10);
  --shadow-lg:    0 16px 48px hsla(30 80% 40% / 0.14);
  --shadow-accent: 0 6px 24px hsla(34 91% 55% / 0.20);

  /* ─── MOTION ─────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;

  /* ─── Z-INDEX ────────────────────────────────── */
  --z-base:     0;
  --z-dropdown: 10;
  --z-sticky:   20;
  --z-overlay:  30;
  --z-modal:    40;
  --z-toast:    50;
}

/* ─── REDUCED MOTION ─────────────────────────────── */
@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;
  }
}

/* ─── BASE RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }

input, button, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
