/* ==========================================================================
   SALVIS Solutions — Design System (Design Tokens + Base)
   Single Source of Truth für Farben, Typografie, Abstände, Radien, Schatten.
   Marke beibehalten: Navy #00003B + dezente Akzente.
   Schriften: selbst gehostet (DSGVO) — Figtree (Display) + Mulish (Text),
   Variable-Fonts, keine externen Google-/Adobe-Font-Calls.
   ========================================================================== */

/* --- Selbst gehostete Schriften (woff2, Variable) --- */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Markenfarben (von der Live-Seite übernommen) --- */
  --c-navy-900: #00003B;   /* Primär / Marke */
  --c-navy-800: #0a0a52;
  --c-navy-700: #16165f;
  --c-blue-500: #27A1E5;   /* Akzent Blau (Highlights, auf dunklem Grund) */
  --c-blue-600: #136fa3;   /* Links/Eyebrow auf Hell – WCAG-AA (5,48:1) */
  --c-green-500: #4FB845;  /* Erfolg / Marken-Grün */
  --c-green-600: #3da033;
  --c-magenta-500: #FC005A;/* Signal – nur dekorativ/Flächen */
  --c-signal-ink: #cc004a; /* Magenta für Text (Fehler/Pflichtfeld) – AA (5,73:1) */

  /* --- Neutralskala --- */
  --c-white: #ffffff;
  --c-grey-50: #f7f8fa;
  --c-grey-100: #f0f0f0;
  --c-grey-200: #e6e8ec;
  --c-grey-300: #d5d8dc;
  --c-grey-500: #69727d;
  --c-grey-700: #3f444b;
  --c-grey-900: #1a1c22;

  /* --- Semantische Rollen --- */
  --c-primary: var(--c-navy-900);
  --c-accent: var(--c-blue-500);
  --c-cta: #E0004F;            /* CTA-Magenta – weiße Schrift WCAG-AA (4,90:1) */
  --c-cta-hover: #c2003f;
  --c-signal: var(--c-magenta-500);
  --c-bg: var(--c-white);
  --c-bg-alt: var(--c-grey-50);
  --c-bg-dark: var(--c-navy-900);
  --c-surface: #ffffff;          /* Karten/Flächen – im Dark-Mode überschrieben */
  --c-heading: var(--c-navy-900);/* Überschriften – im Dark-Mode überschrieben */
  --c-text: var(--c-grey-900);
  --c-text-muted: var(--c-grey-500);
  --c-text-on-dark: rgba(255, 255, 255, 0.92);
  --c-border: var(--c-grey-200);

  /* --- Typografie (Adobe Fonts; Fallback geometrisch-humanistisch) --- */
  --font-display: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-text: "Mulish", system-ui, sans-serif;

  /* Fluid Type Scale (clamp: mobil → desktop) */
  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --fs-sm: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-xl: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --fs-2xl: clamp(1.85rem, 1.5rem + 1.6vw, 2.7rem);
  --fs-3xl: clamp(2.3rem, 1.8rem + 2.6vw, 3.8rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-base: 1.65;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- Spacing (8pt-Skala) --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-8: 3rem;    --sp-10: 4rem;
  --sp-12: 5rem;    --sp-16: 7rem;   --sp-20: 9rem;

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* --- Radien / Schatten / Übergänge --- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 59, 0.07);
  --shadow: 0 10px 30px -12px rgba(0, 0, 59, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 59, 0.28);
  --ring: 0 0 0 2px #ffffff, 0 0 0 5px #136fa3;
  --transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* --- Marken-Flächen: bewusst FLACH (keine Farbverläufe – wirkt professioneller, weniger „KI") --- */
  --gradient-brand: var(--c-navy-900);   /* dunkle Sektionen, Avatar */
  --gradient-accent: var(--c-blue-600);  /* Icon-Kreise, Schritt-Nummern */
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* Fallback für Safari < 15.4 (kennt overflow:clip nicht) */
  overflow-x: clip;   /* verhindert horizontales Scrollen durch Reveal-Animationen (translateX) */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-heading);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  overflow-wrap: break-word;   /* lange Komposita umbrechen statt abschneiden */
  hyphens: auto;               /* saubere Silbentrennung (lang="de") */
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }
p.lead { font-size: var(--fs-lg); color: var(--c-grey-700); }

a { color: var(--c-blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-navy-900); }

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

:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* Utility-Hilfen */
.u-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.u-narrow { max-width: var(--container-narrow); margin-inline: auto; }
.u-text-center { text-align: center; }
.u-muted { color: var(--c-text-muted); }
.u-eyebrow {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue-600);
  margin-bottom: var(--sp-3);
}
.u-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.u-bg-alt { background: var(--c-bg-alt); }
.u-bg-dark { background: var(--gradient-brand); color: var(--c-text-on-dark); }
.u-bg-dark h1, .u-bg-dark h2, .u-bg-dark h3 { color: #fff; }

/* ==========================================================================
   Scroll-Reveal + Header (gehört zu animations.js)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.22,0.61,0.36,1),
              transform 620ms cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="zoom"]  { transform: scale(0.96); }
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-header] { transition: box-shadow var(--transition), padding var(--transition), background var(--transition); }
[data-header].is-scrolled { box-shadow: var(--shadow); backdrop-filter: saturate(1.2) blur(6px); }

/* Reduced Motion: alle Bewegungen aus */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
