/* ============================================================
   BASE.CSS — Tokens, reset, type, color (light + dark)
   Ruwwe Unternehmensberatung — Verhandlungs-Experte
============================================================ */

:root {
  /* ─── Brand color ─────────────────────────────── */
  --brand-50:  #EAF4EF;
  --brand-100: #C8E2D5;
  --brand-200: #92C5AC;
  --brand-300: #5DA683;
  --brand-400: #2F8A63;
  --brand-500: #0E6E4F;   /* primary */
  --brand-600: #0B5740;
  --brand-700: #084431;
  --brand-800: #053022;
  --brand-900: #021A12;

  /* ─── Neutrals (warm) ─────────────────────────── */
  --ink-900: #16191A;
  --ink-800: #1F2426;
  --ink-700: #2E3437;
  --ink-600: #4B5358;
  --ink-500: #6F767B;
  --ink-400: #9CA3A7;
  --ink-300: #C7CBCC;
  --ink-200: #E2E3E1;
  --ink-100: #EFEFEC;
  --ink-50:  #F8F7F3;

  /* ─── Semantic (light) ────────────────────────── */
  --color-bg:        #F8F7F3;       /* warm cream */
  --color-bg-alt:    #EFEEEA;       /* slightly deeper cream */
  --color-surface:   #FFFFFF;
  --color-surface-2: #FDFCF8;
  --color-text:      #1F2426;
  --color-text-soft: #4B5358;
  --color-muted:     #6F767B;
  --color-line:      #E2E3DF;
  --color-line-soft: #ECEBE6;
  --color-primary:        var(--brand-500);
  --color-primary-hover:  var(--brand-600);
  --color-primary-soft:   var(--brand-50);
  --color-on-primary: #FFFFFF;

  /* ─── Typography ──────────────────────────────── */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-md:   1.0625rem;  /* 17 */
  --text-lg:   1.1875rem;  /* 19 */
  --text-xl:   1.4375rem;  /* 23 */
  --text-2xl:  1.875rem;   /* 30 */
  --text-3xl:  2.5rem;     /* 40 */
  --text-4xl:  3.25rem;    /* 52 */
  --text-hero: clamp(2.8rem, 6.5vw, 5.25rem);
  --text-display: clamp(2.2rem, 4.5vw, 3.5rem);

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* ─── Spacing ─────────────────────────────────── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.5rem;
  --space-9: 4.5rem;
  --space-10: 6rem;
  --space-12: 8rem;

  /* ─── Radii / border / shadow ─────────────────── */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --border-w: 1px;

  --shadow-sm: 0 1px 2px rgba(13, 30, 22, 0.05),
               0 1px 1px rgba(13, 30, 22, 0.03);
  --shadow:    0 6px 18px rgba(13, 30, 22, 0.06),
               0 2px 6px rgba(13, 30, 22, 0.04);
  --shadow-lg: 0 28px 60px rgba(13, 30, 22, 0.12),
               0 10px 24px rgba(13, 30, 22, 0.06);

  /* ─── Motion ──────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur:      260ms;
  --dur-slow: 480ms;

  /* ─── Layout ──────────────────────────────────── */
  --container-w: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
}

/* ─── Dark mode ─────────────────────────────────── */
[data-theme="dark"] {
  --color-bg:        #0E1311;
  --color-bg-alt:    #141A17;
  --color-surface:   #181F1C;
  --color-surface-2: #1E2522;
  --color-text:      #ECEBE6;
  --color-text-soft: #C7CBC6;
  --color-muted:     #8E948F;
  --color-line:      #2A322D;
  --color-line-soft: #1F2622;
  --color-primary:        #38B485;
  --color-primary-hover:  #5DC79E;
  --color-primary-soft:   rgba(56, 180, 133, 0.12);
  --color-on-primary: #061B12;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 28px 60px rgba(0,0,0,0.55);
}

/* ============================================================
   RESET / BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background var(--dur) var(--ease-std), color var(--dur) var(--ease-std);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std);
}

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

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

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--color-primary);
}

p { line-height: var(--leading-relaxed); color: var(--color-text-soft); }

strong { font-weight: 600; color: var(--color-text); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}

.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  max-width: 56ch;
}

/* ─── Layout primitives ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-8);
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-std),
              border-color var(--dur-fast) var(--ease-std),
              color var(--dur-fast) var(--ease-std),
              transform var(--dur-fast) var(--ease-std);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ─── Focus ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
