/**
 * Landing Page Arbeitsrecht, Rechtsanwälte Pommerening & Breitenbach
 * Schicht 1: Design-Tokens, Reset, Basis, Buttons, Reveals.
 * Marke: Indigo #29235c (Logo, gemessen), Text #272727 (Live-Site), Weiß.
 * Font: General Sans (Fontshare, ITF Free Font License), selbst gehostet.
 * Komponenten liegen in pommerening.css.
 */

@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke (gemessen) */
  --brand: #29235c;
  --brand-deep: #1c1841;
  --brand-hover: #221d4f;
  --logo-gray: #878786;

  /* Abgeleitet (gleicher Farbton, oklch-nah) */
  --tint: #f1f0f7;
  --tint-line: #e4e2ef;
  --tint-strong: #d6d3e6;

  /* Text */
  --text: #272727;
  --text-muted: #5e5c6a;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.78);

  /* Flächen */
  --surface: #ffffff;
  --surface-dark: #29235c;
  --surface-deep: #1c1841;

  /* Funktional */
  --star: #d99b06;
  --error: #b42318;
  --success: #1f7a4d;
  --focus: rgba(41, 35, 92, 0.28);

  /* Typo */
  --font: 'General Sans', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --fs-h1: clamp(2rem, 1.5rem + 1.9vw, 3.2rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-statement: clamp(1.9rem, 1.4rem + 2vw, 3.2rem);
  --fs-blocktitel: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-min: 0.8125rem;

  /* Abstände (8er-Skala) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container: 1240px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t-reveal: 600ms;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; color: var(--brand); text-wrap: pretty; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

section[id] { scroll-margin-top: 72px; }

.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }

.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 62ch; }
.measure { max-width: 62ch; }
.muted { color: var(--text-muted); }

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn--primary { background: var(--brand); color: var(--text-on-dark); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(41, 35, 92, 0.22); }
.btn--primary:active { transform: scale(0.98); box-shadow: none; }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--text-on-dark); }

.btn--light { background: var(--surface); color: var(--brand); border-color: var(--surface); }
.btn--light:hover { background: var(--tint); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.btn--ghost-light { background: transparent; color: var(--text-on-dark); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--text-on-dark); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* ===========================
   FOKUS (Quality Floor)
   =========================== */

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

/* ===========================
   REVEALS (ein Observer, Rezept 2)
   =========================== */

@media (prefers-reduced-motion: no-preference) {
  body.anim .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  }
  body.anim .reveal.in { opacity: 1; transform: none; }

  /* Listen und Kartenreihen laufen Punkt für Punkt ein, 70 ms Versatz */
  body.anim .stagger { opacity: 1; transform: none; }
  body.anim .stagger > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  body.anim .stagger.in > * { opacity: 1; transform: none; }
  body.anim .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
  body.anim .stagger.in > *:nth-child(2) { transition-delay: 70ms; }
  body.anim .stagger.in > *:nth-child(3) { transition-delay: 140ms; }
  body.anim .stagger.in > *:nth-child(4) { transition-delay: 210ms; }
  body.anim .stagger.in > *:nth-child(5) { transition-delay: 280ms; }
  body.anim .stagger.in > *:nth-child(6) { transition-delay: 350ms; }
  body.anim .stagger.in > *:nth-child(7) { transition-delay: 420ms; }
  body.anim .stagger.in > *:nth-child(8) { transition-delay: 490ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Hinweis zu den Bewertungen (§ 5b Abs. 3 UWG) */
.bewertungen-hinweis { margin: 18px auto 0; max-width: 62em; font-size: 14px; line-height: 1.5; color: var(--text-muted, #5e5c6a); text-align: center; }
