/* ============================================================
   Pactos Website — Basis-Primitiven (Phase 3, Fundament)
   Gemeinsame Grundbausteine für migrierte + neue Seiten.
   Setzt tokens.css voraus:
     <link rel="stylesheet" href="src/styles/tokens.css">
     <link rel="stylesheet" href="src/styles/base.css">
   Bestandsseiten behalten ihr Inline-CSS, bis sie laut MIGRATION.md
   umgestellt werden — diese Datei kollidiert bewusst mit nichts
   (nur Element-Defaults + die etablierten Utility-Klassen).
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--tech); color: var(--green-900); }

a { color: var(--green-600); text-decoration: none; }
:focus-visible { outline: 2px solid var(--tech); outline-offset: 3px; border-radius: 4px; }

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

/* Layout-Container (identisch zur etablierten .wrap-Konvention) */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons — die zwei verbindlichen CTA-Varianten
   (primär: „Gespräch vereinbaren", sekundär: „Demo buchen") */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: inherit; font-weight: 600; padding: 16px 26px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, border-color .2s, color .2s, background-color .2s, transform .12s;
}
.btn svg { width: 18px; height: 18px; flex: none; stroke-width: 1.4; } /* Pfeil: dünne Strichstärke (DESIGN.md §3b) */
.btn-tech { background: var(--tech); color: #000; }
.btn-tech:hover { box-shadow: 0 12px 30px -10px rgba(0,0,0,.5), inset 0 0 0 999px rgba(0,0,0,.07); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { box-shadow: 0 12px 30px -10px rgba(0,0,0,.55), inset 0 0 0 999px rgba(0,0,0,.14); }
.btn-white { background: #fff; color: #000; border-color: rgba(0,0,0,.06); }
.btn-white:hover { box-shadow: 0 12px 30px -10px rgba(0,0,0,.35), inset 0 0 0 999px rgba(0,0,0,.05); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.92); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.10); box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); }
.btn-ghost-grey { background: transparent; border-color: #666666; color: #000; }
.btn-ghost-grey:hover { border-color: var(--green-800); color: var(--green-800); background: rgba(10,78,71,.06); box-shadow: 0 12px 30px -10px rgba(0,0,0,.22); }
.btn-block { width: 100%; }
/* Alias für Bestandsmarkup */
.btn-primary { background: var(--tech); color: #000; }

/* Überschriften (DESIGN.md §2: Geist 550, Tracking 0) */
h1 { font-size: var(--fs-h1); font-weight: var(--fw-head); line-height: 1.1; letter-spacing: 0; max-width: 20ch; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-head); line-height: 1.1; letter-spacing: 0; }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-head); line-height: 1.15; letter-spacing: 0; }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-head); line-height: 1.3; letter-spacing: 0; }

/* Formulare (DESIGN.md §4a) */
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 16px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--tech-tint);
}
.field.error input, .field.error textarea { border-color: var(--red); }
.field .error-msg { color: var(--red); font-size: .82rem; }
.field input:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }

/* Sektions-Gerüst */
.sec { padding: 96px 0; }
.sec.tint { background: var(--surface-2); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
