/* =========================================================
   BenchFlow – Design System (Tokens + Basis-Komponenten)
   Verantwortlich: Design Lead. Sektionen erweitern, überschreiben nicht.
   ========================================================= */
:root {
  /* Farben – INNIRION */
  --navy: #003E6A;
  --navy-700: #00304F;
  --blue: #209BD8;
  --blue-ink: #0F6FA3;
  --blue-tint: #E6F4FB;
  --ink: #12283A;
  --ink-2: #4E6070;
  --line: #DCE4EB;
  --surface: #FFFFFF;
  --surface-2: #F3F6F9;
  /* Bühne (dunkel) */
  --night: #031C30;
  --night-2: #062843;
  --night-line: rgba(255,255,255,.10);
  --on-night: #EAF2F8;
  --on-night-2: #9FB4C6;
  /* Signal */
  --laser: #2CFF6B;
  --laser-ink: #0B7A35;
  --laser-glow: 0 0 0 4px rgba(44,255,107,.18), 0 0 18px 4px rgba(44,255,107,.55), 0 0 48px 12px rgba(44,255,107,.25);
  --alert: #E8590C;
  --alert-tint: #FDEDE4;

  /* Typo */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-eyebrow: .8125rem;

  /* Raum + Form */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 10vw, 152px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(3,28,48,.06), 0 4px 16px rgba(3,28,48,.06);
  --shadow-2: 0 2px 6px rgba(3,28,48,.08), 0 24px 60px -12px rgba(3,28,48,.22);

  /* Bewegung */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 400ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.08; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night h1, .section--night h2, .section--night h3 { color: #fff; }

/* Sektionskopf: Eyebrow + H2 + Lead */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 18px;
}
.section--night .eyebrow { color: var(--blue); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); margin-top: 20px; }
.section--night .lead { color: var(--on-night-2); }
.muted { color: var(--ink-2); }

/* ---------- Buttons (min. 44px Ziel) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); box-shadow: 0 8px 24px -8px rgba(0,62,106,.5); }
.btn--secondary { background: transparent; color: var(--navy); border-color: rgba(0,62,106,.25); }
.btn--secondary:hover { border-color: var(--navy); background: rgba(0,62,106,.04); }
.section--night .btn--primary { background: #fff; color: var(--navy); }
.section--night .btn--primary:hover { background: var(--blue-tint); }
.section--night .btn--secondary { color: #fff; border-color: rgba(255,255,255,.3); }
.section--night .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Text-Link mit Pfeil */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-ink); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Karten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-1);
}
.section--tint .card { border-color: transparent; }
.section--night .card { background: var(--night-2); border-color: var(--night-line); box-shadow: none; }
.card p { color: var(--ink-2); margin-top: 10px; }
.section--night .card p { color: var(--on-night-2); }

/* Icon-Kachel (für Inline-SVG, stroke-Icons 24px, stroke-width 1.75) */
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--navy); flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.section--night .icon-tile { background: rgba(32,155,216,.14); color: var(--blue); }

/* Chip / Tag */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font-size: .875rem; font-weight: 500;
}

/* ---------- SIGNATUR: Lichtpunkt ----------
   Nur verwenden für: aktuellen/nächsten Schritt, Bestätigung, Laser.
   <span class="laser-dot" aria-hidden="true"></span>  */
.laser-dot {
  --size: 14px;
  display: inline-block; width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #F2FFF5 0 18%, var(--laser) 42%, rgba(44,255,107,.85) 60%, rgba(44,255,107,0) 72%);
  box-shadow: var(--laser-glow);
  animation: laser-pulse 2.4s var(--ease) infinite;
}
.laser-dot--sm { --size: 8px; }
.laser-dot--lg { --size: 22px; }
@keyframes laser-pulse {
  0%, 100% { box-shadow: var(--laser-glow); }
  50% { box-shadow: 0 0 0 7px rgba(44,255,107,.10), 0 0 26px 7px rgba(44,255,107,.6), 0 0 64px 18px rgba(44,255,107,.22); }
}
/* Signal-Text auf hellem Grund */
.signal { color: var(--laser-ink); font-weight: 600; }

/* Mono-Utility (Schrittkennung, PDF-Befehl) */
.mono { font-family: var(--mono); font-size: .875em; letter-spacing: .01em; }
.kbd-cmd { font-family: var(--mono); font-size: .8125rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--navy); border: 1px solid var(--line); }

/* ---------- Grid-Helfer ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Medien ---------- */
.media { border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scroll-Reveal (js/core.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2E3E4C; --line: #9AAAB8; }
}
