/* =============================================================
   dreidesign — Design Tokens
   Corporate Identity v2.0 (Mai 2026)
   Source: dreidesign_CI_Referenz_03.docx + chatgpt_setup.docx
   ============================================================= */

/* Montserrat is the closest Google Fonts substitute for the
   geometric grotesks listed in the CI (Montserrat / Futura /
   Neue Haas Grotesk). The CI explicitly names Montserrat as
   acceptable, so no substitution flag is needed.
   ----------------------------------------------------------- */
/* Schrift wird lokal geladen: assets/montserrat.css (in index.html eingebunden). Keine Verbindung zu Google. */

:root {
  /* ---------- COLOR — RAW PALETTE ---------- */
  /* The dreidesign CI is intentionally monochrome.
     The 3D-renderings provide all of the color in any composition. */
  --dd-black:        #000000;  /* Primary. Nav, buttons, headlines, footer, logo, CTAs */
  --dd-white:        #FFFFFF;  /* Main background. Content + document surfaces */
  --dd-grey-50:      #F5F5F5;  /* Section dividers, content panels */
  --dd-grey-900:     #1A1A1A;  /* Footer, dark chapter breaks */
  --dd-grey-800:     #333333;  /* Body copy on light backgrounds */
  --dd-grey-500:     #999999;  /* Taglines, captions, meta */
  --dd-warmwhite:    #F5F0E8;  /* Warm-white alternative — used in premium contexts (e.g. Wohnungsfinder) */

  /* Additional supporting greys derived inside the palette range.
     Use sparingly — only when #999 and #333 don't bridge.       */
  --dd-grey-300:     #CCCCCC;
  --dd-grey-700:     #555555;

  /* ---------- COLOR — SEMANTIC ---------- */
  --bg:              var(--dd-white);
  --bg-alt:          var(--dd-grey-50);
  --bg-warm:         var(--dd-warmwhite);
  --bg-inverse:      var(--dd-black);
  --bg-footer:       var(--dd-grey-900);

  --fg:              var(--dd-grey-800);   /* default body text */
  --fg-strong:       var(--dd-black);      /* headlines, emphasis */
  --fg-muted:        var(--dd-grey-500);   /* captions, taglines, meta */
  --fg-inverse:      var(--dd-white);      /* text on dark surfaces */
  --fg-inverse-muted:var(--dd-grey-500);

  --border:          var(--dd-grey-300);
  --border-strong:   var(--dd-black);
  --rule:            var(--dd-grey-800);

  /* ---------- TYPE — FAMILIES ---------- */
  --font-sans: "Montserrat", "Futura", "Neue Haas Grotesk", "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- TYPE — WEIGHTS ---------- */
  /* The CI mandates max two weights per document.
     The mixed-weight headline = Black/Bold + Regular pair. */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;  /* sparingly — for sub-labels */
  --weight-bold:     700;
  --weight-black:    900;  /* mixed-weight headlines */

  /* ---------- TYPE — SIZES (px @ 16px root) ---------- */
  --fs-h1:           40px;  /* 28–40pt, ALL CAPS, mixed-weight */
  --fs-h1-min:       28px;
  --fs-h2:           22px;  /* 18–22pt */
  --fs-h3:           16px;  /* 13–16pt, bold */
  --fs-body:         15px;  /* 10–12pt print → ~14–16px screen */
  --fs-body-sm:      13px;
  --fs-label:        11px;  /* UPPERCASE meta */
  --fs-caption:      12px;

  /* ---------- TYPE — LINE-HEIGHTS ---------- */
  --lh-tight:        1.05;  /* headlines */
  --lh-snug:         1.2;
  --lh-normal:       1.45;  /* CI: min 1.4 */
  --lh-loose:        1.6;

  /* ---------- TYPE — LETTER SPACING ---------- */
  /* Headlines + labels use generous tracking.
     Body copy stays neutral. */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;   /* H2 / inline caps */
  --tracking-wider:  0.18em;   /* H1 ALL CAPS headlines */
  --tracking-widest: 0.28em;   /* small labels, taglines */

  /* ---------- SPACING (8pt baseline) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- BORDERS / RADII ---------- */
  /* dreidesign uses rectangular forms — radii are minimal. */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-pill: 999px;   /* tags only */

  /* ---------- SHADOWS ---------- */
  /* Very restrained. Cards rely on hairline borders, not elevation. */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hero: 0 24px 64px rgba(0,0,0,0.12);

  /* ---------- MOTION ---------- */
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-in:    cubic-bezier(.7,0,.84,0);
  --ease-std:   cubic-bezier(.4,0,.2,1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   420ms;

  /* ---------- LAYOUT ---------- */
  --container-max:  1280px;
  --gutter:         24px;
}

/* =============================================================
   SEMANTIC TYPE STYLES
   Apply directly via class — or copy the rules into your own.
   ============================================================= */
html { font-family: var(--font-sans); color: var(--fg); background: var(--bg); }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.h1, h1.dd {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-strong);
  margin: 0;
}
/* Mixed-weight headline — the dreidesign signature.
   Wrap the leading word(s) in <strong class="mw"> to get
   the Bold + Regular pairing on a single line.            */
.h1 .mw, h1.dd .mw,
.h2 .mw, h2.dd .mw {
  font-weight: var(--weight-black);
}

.h2, h2.dd {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-strong);
  margin: 0;
}

.h3, h3.dd {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--fg-strong);
  margin: 0;
}

.p, p.dd {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg);
  text-wrap: pretty;
  margin: 0;
}

.label, .eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.caption {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-caption);
  line-height: var(--lh-snug);
  color: var(--fg-muted);
}

.tagline {
  /* As used under the wordmark: "VISUALIZING IDEAS" */
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* The mixed-weight inline helper — usable anywhere */
strong.mw, .mw { font-weight: var(--weight-black); }

/* Selection color reflects monochrome CI */
::selection { background: var(--dd-black); color: var(--dd-white); }
