/* ==========================================================================
   Schreinerei Kemptner — Design Tokens & Base Styles
   Source of truth: Figma file "SK" (mNVqmakx1GcIQuYt6qfYxv)
   Extracted from nodes: Header (377:1253), navigation-menu-overlay (377:13857)

   Every other stylesheet in this project builds on the custom properties
   defined here. Do not redefine --sk-* variables elsewhere — extend this
   file instead so the palette stays in one place.
   ========================================================================== */

:root {
  /* ---- Farbpalette ----------------------------------------------------
     Namen und Werte 1:1 aus dem Styleguide (Figma „SK“, Seite „Styleguide“,
     Tafel „Farbpalette“ 377:143). Überall nur diese Variablen verwenden. */

  /* Grün-Abstufungen */
  --sk-nebel: #c9d4ca;       /* Flächen: Hero, Seitenköpfe, Prozess, Menü-Overlay */
  --sk-salbei: #9baf9d;      /* dekorativ: Claim im Menü, Konturschrift im Laufband */
  --sk-moos: #495952;        /* Sekundärtext, inaktive Links, Footer-Leiste */
  --sk-waldgruen: #22362c;   /* dunkle Flächen, Abdunklung der Projekt-Titelbilder */

  /* Akzentfarbe */
  --sk-neongelb: #e0f511;    /* Punkte, Icons, aktive Links, Unterstreichungen */

  /* Schwarz & Weiß */
  --sk-schwarz: #080b0a;     /* Text, Hamburger */
  --sk-weiss: #ffffff;       /* Seitenhintergrund, Text auf Fotos */

  /* Ergänzungen aus den Figma-Screens – nicht Teil des Styleguides */
  --sk-dunkelgrau: #383838;  /* Kontaktwerte im Footer */
  --sk-hellgrau: #d1d3d2;    /* Text der Copyright-Leiste */
  --sk-fehler: #b3261e;      /* Fehlermeldungen im Kontaktformular */

  /* ---- Typography --------------------------------------------------------
     The Figma file uses "Blauer Nue ExtraBold" for all display/headline
     text. That is a licensed font not shipped with this project, so it is
     declared first in the stack and falls back to a widely available
     grotesk. No web-font file was exported by Figma for this design. */
  --sk-font-display: "Blauer Nue", "Helvetica Neue", Arial, sans-serif;
  --sk-font-body: "Blauer Nue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sk-fw-regular: 400;
  --sk-fw-semibold: 600;
  --sk-fw-bold: 700;
  --sk-fw-extrabold: 800;
  --sk-fw-heavy: 900;

  /* ---- Fluid type scale ------------------------------------------------
     The Figma screens are the desktop variant at 1725px wide. Every max
     value below is the exact Figma size; the vw term is that size / 1725,
     so the type scales linearly down to the min value on phones. */
  --sk-fs-hero: clamp(4.5rem, 8.7vw, 9.375rem);         /* 150px  "Hej." */
  --sk-fs-h2: clamp(1.75rem, 2.435vw, 2.625rem);        /*  42px  section titles */
  --sk-fs-lead: clamp(1.375rem, 2.2vw, 2.375rem);       /*  38px  hero copy */
  --sk-fs-xl: clamp(1.25rem, 1.74vw, 1.875rem);         /*  30px  Vita copy, arrow links */
  --sk-fs-num: clamp(3rem, 4.64vw, 5rem);               /*  80px  process numbers */
  --sk-fs-title: clamp(1.125rem, 1.275vw, 1.375rem);    /*  22px  process step titles */
  --sk-fs-body: clamp(1rem, 1.04vw, 1.125rem);          /*  18px  body, captions, footer */
  --sk-fs-marquee: clamp(4rem, 7.54vw, 8.125rem);       /* 130px  text slider */

  /* ---- Layout ------------------------------------------------------------
     Figma content column is 1220px inside a 1725px frame (252.5px sides). */
  --sk-content-max: 1220px;
  --sk-gutter: clamp(1.25rem, 0.6rem + 3vw, 3.75rem);
  --sk-section-py: clamp(4rem, 6.96vw, 7.5rem);         /* 120px */
  --sk-stack-gap: clamp(2.5rem, 3.7vw, 4rem);           /*  64px */

  /* ---- Spacing scale (derived from paddings measured in the Figma nodes:
     4 / 12 / 16 / 24 / 32 / 48 / 60 / 80 px) -------------------------------- */
  --sk-space-1: 0.25rem;   /* 4px  */
  --sk-space-2: 0.5rem;    /* 8px  */
  --sk-space-3: 0.75rem;   /* 12px */
  --sk-space-4: 1rem;      /* 16px */
  --sk-space-5: 1.5rem;    /* 24px */
  --sk-space-6: 2rem;      /* 32px */
  --sk-space-7: 3rem;      /* 48px */
  --sk-space-8: 3.75rem;   /* 60px — Header horizontal padding */
  --sk-space-9: 5rem;      /* 80px — overlay padding */

  /* ---- Radii / misc ------------------------------------------------------ */
  --sk-radius-sm: 2px;
  --sk-radius-pill: 999px;

  /* ---- Z-index scale (shared so every page stacks consistently) --------- */
  --sk-z-topbar: 1040;
  --sk-z-overlay: 1050;

  /* ---- Motion ------------------------------------------------------------ */
  --sk-transition-fast: 180ms ease;
  --sk-transition-base: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Brand font ----------------------------------------------------------
   Blauer Nue, self-hosted from /fonts/ (WOFF2 converted from the licensed
   TTFs; every current browser supports WOFF2). Only the weights the design uses are
   declared: 400 body, 500 form labels, 600 headlines, 700 "100",
   800 menu overlay, 900 "+" and team names. */
@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blauer Nue";
  src: url("../fonts/BlauerNue-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---- Base typography ------------------------------------------------------ */
body {
  font-family: var(--sk-font-body);
  font-weight: var(--sk-fw-regular);
  color: var(--sk-schwarz);
  background-color: var(--sk-weiss);
  line-height: 1.55;
}

/* Figma uses Blauer Nue SemiBold for every headline on the content pages */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sk-font-display);
  font-weight: var(--sk-fw-semibold);
  line-height: 1.1;
  color: var(--sk-schwarz);
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  max-width: 65ch;
}

/* Utility used by both topbar and overlay to give every icon a fixed,
   never-"auto" square box, per project convention. */
.sk-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sk-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
}

/* [hidden] must win over component display rules (e.g. filtered cards) */
[hidden] {
  display: none !important;
}

/* Screen-reader-only helper for accessible labels that must not render visually */
.sk-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
