/* HAFA Treppen Design-System — gebündelt (fonts+colors+typography+spacing+base) */
/* ==========================================================================
   HAFA Treppen — Webfonts
   - Meta Headline (MetaHeadOT-Bold, Erik Spiekermann / FontFont): the brand
     display & logo face. We hold the Bold weight only — headlines are bold.
   - Body face is HelveticaNeue LT 67 Medium (Condensed) in the print system.
     We do not hold that file; "Arimo" (a Helvetica-metric-compatible grotesque,
     loaded from Google Fonts below) is the substitute. SUBSTITUTION — flagged.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

@font-face {
  font-family: 'Meta Headline';
  src: url('../assets/fonts/MetaHeadline-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   HAFA Treppen — Color tokens
   Sampled directly from the print "Produktinformation" PDF vector layer.
   Primary HAFA red #e30613 · quality/eco green #76b82a · warm-neutral grays.
   ========================================================================== */

:root {
  /* ---- Brand red (primary accent, logo, CTAs) ------------------------- */
  --red-50:  #fdecec;
  --red-100: #f9c9cb;
  --red-500: #e30613;   /* HAFA RED — the brand color */
  --red-600: #cc0511;   /* hover */
  --red-700: #a8040e;   /* press / deep */

  /* ---- Quality green (usage-class, eco/PEFC, slip-resistance badges) --- */
  --green-50:  #eef6e3;
  --green-100: #d6ebbf;
  --green-500: #76b82a;  /* HAFA GREEN — secondary signal color */
  --green-600: #5fa01f;
  --green-700: #009940;  /* deep eco green */

  /* ---- Neutrals (warm-leaning grays from the print piece) ------------- */
  --white:    #ffffff;
  --gray-50:  #f6f6f6;   /* lightest surface fill */
  --gray-100: #ececec;
  --gray-200: #e2e2e1;   /* hairline borders */
  --gray-300: #cfcfce;
  --gray-400: #9d9d9c;   /* strong border / disabled text */
  --gray-500: #878787;   /* subtle text */
  --gray-600: #6e6e6d;
  --gray-700: #575756;   /* secondary text */
  --gray-800: #3c3c3b;   /* body text */
  --gray-900: #1c1c1c;   /* headlines / ink */
  --black:    #000000;

  /* ---- Semantic aliases ----------------------------------------------- */
  --color-brand:        var(--red-500);
  --color-brand-hover:  var(--red-600);
  --color-brand-press:  var(--red-700);
  --color-brand-tint:   var(--red-50);

  --color-accent:       var(--green-500);   /* quality / eco / "Made in Germany" */
  --color-accent-deep:  var(--green-700);
  --color-accent-tint:  var(--green-50);

  --text-strong:  var(--gray-900);   /* H1–H3, key figures */
  --text-body:    var(--gray-800);   /* paragraphs */
  --text-muted:   var(--gray-700);   /* captions, secondary */
  --text-subtle:  var(--gray-500);   /* meta, placeholders */
  --text-on-brand: var(--white);
  --text-inverse:  var(--white);

  --surface:       var(--white);     /* default page / card */
  --surface-alt:   var(--gray-50);   /* zebra sections, fills */
  --surface-ink:   var(--gray-900);  /* dark footer / banners */

  --border:        var(--gray-200);  /* default hairline */
  --border-strong: var(--gray-400);  /* inputs, dividers with weight */

  --focus-ring:    var(--red-500);

  /* Status (derived from brand families; HAFA uses red for warnings,
     green for success/quality) */
  --color-success: var(--green-600);
  --color-danger:  var(--red-500);
}
/* ==========================================================================
   HAFA Treppen — Typography tokens
   Display: Meta Headline (bold, all-caps for the brand voice).
   Body:    Arimo (Helvetica-metric substitute for HelveticaNeue LT 67 Medium).
   The print piece sets headlines tight & bold, body in a clean grotesque,
   with the recurring slogan "Mit Sicherheit das richtige System!" as a kicker.
   ========================================================================== */

:root {
  /* ---- Families ------------------------------------------------------- */
  --font-display: 'Meta Headline', 'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* ---- Weights -------------------------------------------------------- */
  --fw-regular:  400; /* @kind font */
  --fw-medium:   500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:     700; /* @kind font */

  /* ---- Type scale (px / rem @16) — print-derived, generous headers ---- */
  --fs-display:  3.5rem;   /* 56px — hero headline */
  --fs-h1:       2.75rem;  /* 44px */
  --fs-h2:       2rem;     /* 32px */
  --fs-h3:       1.5rem;   /* 24px */
  --fs-h4:       1.25rem;  /* 20px */
  --fs-lead:     1.25rem;  /* 20px intro paragraph */
  --fs-body:     1rem;     /* 16px */
  --fs-sm:       0.875rem; /* 14px */
  --fs-xs:       0.75rem;  /* 12px — meta, badge labels */

  /* ---- Line heights --------------------------------------------------- */
  --lh-tight:   1.05; /* @kind font */   /* display headlines */
  --lh-heading: 1.15; /* @kind font */
  --lh-snug:    1.35; /* @kind font */
  --lh-body:    1.6; /* @kind font */

  /* ---- Letter spacing ------------------------------------------------- */
  --ls-display: -0.01em; /* @kind font */  /* Meta Headline sits tight */
  --ls-kicker:  0.08em; /* @kind font */   /* uppercase eyebrow / slogan */
  --ls-label:   0.04em; /* @kind font */   /* button & badge caps */
  --ls-body:    0; /* @kind font */
}
/* ==========================================================================
   HAFA Treppen — Spacing, radius, elevation, motion
   The print system is rectilinear and tidy: small radii, restrained shadows,
   confident hairline rules. Translate that to web with a 4px spacing base.
   ========================================================================== */

:root {
  /* ---- Spacing scale (4px base) --------------------------------------- */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4  */
  --space-2:  0.5rem;   /* 8  */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  3rem;     /* 48 */
  --space-8:  4rem;     /* 64 */
  --space-9:  6rem;     /* 96 */
  --space-10: 8rem;     /* 128 */

  /* ---- Layout --------------------------------------------------------- */
  --container-max: 1200px; /* @kind spacing */
  --container-pad: var(--space-5);
  --section-y:     var(--space-9);

  /* ---- Radii (print is square-ish; keep corners crisp) ---------------- */
  --radius-0:    0;
  --radius-sm:   3px;
  --radius-md:   6px;     /* default cards, inputs, buttons */
  --radius-lg:   10px;    /* feature cards / media */
  --radius-pill: 999px;   /* tags, usage-class chips */

  /* ---- Borders -------------------------------------------------------- */
  --border-width: 1px; /* @kind spacing */
  --border-width-strong: 2px; /* @kind spacing */

  /* ---- Elevation (soft, neutral — never colored glow) ----------------- */
  --shadow-xs: 0 1px 2px rgba(28, 28, 28, 0.06);
  --shadow-sm: 0 1px 3px rgba(28, 28, 28, 0.08), 0 1px 2px rgba(28, 28, 28, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 28, 28, 0.08), 0 2px 4px rgba(28, 28, 28, 0.05);
  --shadow-lg: 0 12px 28px rgba(28, 28, 28, 0.12), 0 4px 8px rgba(28, 28, 28, 0.06);

  /* ---- Motion (functional, quick; no bounce) -------------------------- */
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 320ms; /* @kind other */
}
/* ==========================================================================
   HAFA Treppen — Base element styles
   Sensible defaults wired to the tokens so any consuming page inherits the
   brand voice without extra work.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-hover); text-decoration: underline; }

/* The recurring HAFA slogan / eyebrow */
.hafa-kicker {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-brand);
}

::selection { background: var(--red-100); color: var(--gray-900); }

:focus-visible {
  outline: var(--border-width-strong) solid var(--focus-ring);
  outline-offset: 2px;
}
