/* =========================================================================
   MS WRAPTECH — Design System (Base)
   Theme: warmes Anthrazit, Akzent Bernstein/Gold + Signal-Gelb (gelockt).
   Typo: Big Shoulders (Display) · Outfit (Body) · Geist Mono (Labels).
   ========================================================================= */

/* ---------- Fonts (self-hosted, keine externen Calls) ---------- */
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #14110e;
  --bg-2:      #1a1612;
  --surface:   #221d18;
  --surface-2: #2b2520;
  --text:      #f5f1ea;
  --muted:     #a89f90;
  --muted-2:   #7d7468;
  --line:      rgba(245, 241, 234, 0.10);
  --line-2:    rgba(245, 241, 234, 0.18);

  --accent:        #e8a227;   /* Bernstein/Gold */
  --accent-deep:   #b97c12;
  --yellow:        #f4d01e;   /* Signal-Gelb (Marke), gelockt als einzige Akzentfamilie */
  --yellow-bright: #ffe24d;
  --on-yellow:     #14110e;

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --fs-lead:    clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  --fs-h3:      clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  --fs-h2:      clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  --fs-h1:      clamp(2.8rem, 1.6rem + 6vw, 7rem);
  --fs-display: clamp(3.4rem, 1.6rem + 9vw, 10rem);

  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Anker-Ziele unter dem fixen Header freistellen */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--yellow); color: var(--on-yellow); }

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

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, 1480px); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.bg-2 { background: var(--bg-2); }
.bg-surface { background: var(--surface); }

.stack { display: grid; gap: 1.25rem; }
.stack-sm { display: grid; gap: 0.6rem; }
.cols { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0; }

.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; line-height: 1.5; }
.body-muted { color: var(--muted); max-width: 62ch; }
strong { font-weight: 700; color: var(--text); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 1px;
  background: var(--yellow);
  display: inline-block;
}

.accent { color: var(--yellow); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--yellow);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--bg-btn);
  color: var(--on-yellow);
  font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid transparent;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:hover { background: var(--yellow-bright); transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(244, 208, 30, 0.6); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(245, 241, 234, 0.06); border-color: var(--text); box-shadow: none; }

.btn--dark { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--dark:hover { background: var(--surface-2); box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.8rem; color: var(--yellow); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  /* Solider BG statt backdrop-filter -> kein teures Repaint pro Scroll-Frame */
  background: rgba(18, 15, 12, 0.95);
  border-bottom-color: var(--line);
}
.site-header .wrap--wide { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
}
.nav a {
  font-size: 0.95rem; font-weight: 400; color: var(--muted);
  position: relative; padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }

/* Mobile nav */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-2);
  border-radius: 10px;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3rem) 2rem;
  display: grid; align-content: start; gap: 0.25rem;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--yellow); }
.mobile-nav .btn { margin-top: 1.5rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 34px; margin-bottom: 1.2rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem; font-weight: 400; }
.footer ul { display: grid; gap: 0.6rem; }
.footer a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--text); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.footer-social a:hover { color: var(--on-yellow); background: var(--yellow); border-color: var(--yellow); }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--yellow); color: var(--on-yellow); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; }
