/* =========================================================================
   NOVUM Rechtsanwälte — styles.css
   Style keyword: "Signal Precision" (see design-tokens.md)
   Cool white + near-black + electric violet · Space Grotesk / IBM Plex Sans / Mono
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F6F8;
  --paper-deep: #ECEEF2;
  --ink: #0E1116;
  --ink-soft: #20242E;
  --signal: #5B2BFF;
  --signal-deep: #3E17C8;
  --text: #1A1E27;
  --muted: #5A6472;
  --line: #E1E4EA;
  --line-dark: #2C3140;

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 6px;
  --shadow-hover: 0 8px 24px rgba(14, 17, 22, 0.06);
  --max-width: 1200px;
  --side-space: max(24px, 5vw);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--side-space);
}
.section { padding-block: clamp(72px, 9.5vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

/* keep sticky header from covering anchored sections */
section[id], main[id] { scroll-margin-top: 92px; }

/* Mono device — the signature */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--signal);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); color: var(--ink); letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--onink { background: var(--signal); color: #fff; }
.btn--onink:hover { background: #fff; color: var(--ink); }

.textlink {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--signal);
  padding-bottom: 2px;
  transition: color .18s var(--ease);
}
.textlink:hover { color: var(--signal-deep); }
.on-ink .textlink { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.wordmark .dot { color: var(--signal); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding-block: 6px;
  transition: color .15s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--signal);
  transition: width .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-meta { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lang-toggle strong { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 9.5vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero .sub { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text); max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px; }

/* Dark stat panel */
.stat-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.stat-panel .img-ph { margin-bottom: 28px; aspect-ratio: 16 / 10; }
.stat-list { display: flex; flex-direction: column; gap: 22px; }
.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  min-width: 72px;
}
.stat .num em { color: var(--signal); font-style: normal; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #AAB2BF;
}

/* ---------- Image placeholder ---------- */
.img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-panel .img-ph { background: #1A1F29; border-color: var(--line-dark); color: #7C8798; }

/* ---------- Real images / media ---------- */
.media { margin: 0; }
.panel-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: block;
  background: #1A1F29;
}
.office-media { margin-top: clamp(56px, 7vw, 96px); }
.office-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.team-media { margin-bottom: clamp(48px, 6vw, 80px); }
.team-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}
.manifesto h2 { font-size: clamp(30px, 4.2vw, 44px); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 24px; }
.manifesto p + p { margin-top: 20px; }

/* ---------- Practice cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--signal);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.card-icon {
  width: 46px;
  height: 46px;
  display: block;
  transition: transform .18s var(--ease);
}
.card:hover .card-icon { transform: translateY(-2px); }
.card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--signal-deep);
  display: block;
}
.card h3 { font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- How we work ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 3.5vw, 44px);
  counter-reset: step;
}
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--signal-deep);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 20px; color: var(--ink); margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 3.5vw, 44px);
}
.member .img-ph { aspect-ratio: 3 / 4; margin-bottom: 18px; }
.member .name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.member h3 { font-size: 20px; color: var(--ink); }
.member .age {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--signal-deep);
  font-weight: 500;
}
.member .role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 12px;
}
.member p { color: var(--text); font-size: 14.5px; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}
.quote blockquote {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quote .cite { margin-top: auto; }
.quote .cite { font-size: 14px; color: var(--muted); }
.quote .cite strong { color: var(--text); font-weight: 600; }

/* ---------- Final CTA band ---------- */
.cta-band {
  color: #fff;
  border-radius: 0;
  background: linear-gradient(100deg, rgba(14,17,22,0.97) 0%, rgba(14,17,22,0.78) 55%, rgba(62,23,200,0.55) 100%), url("images/texture-gradient.webp");
  background-size: cover;
  background-position: center;
}
.cta-band h2 { color: #fff; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.01em; margin-bottom: 20px; }
.cta-band .eyebrow { color: #9AA2B0; }
.cta-band p { color: #C4CAD4; font-size: 18px; line-height: 1.55; max-width: 48ch; }
.cta-band .hero-cta { margin-top: 40px; }
.cta-band .direct {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9AA2B0;
}
.cta-band .direct span { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C4CAD4; padding-block: 88px 48px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.site-footer .wordmark { color: #fff; margin-bottom: 16px; }
.site-footer address { font-style: normal; font-size: 14.5px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7C8798;
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a { font-size: 14.5px; display: block; padding: 4px 0; color: #C4CAD4; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-lang { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; }
.footer-lang strong { color: #fff; }
.disclaimer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7C8798;
  max-width: 78ch;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 28px; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 44px; }
  .card { padding: 32px 26px; }
  .quote { padding: 34px 28px; }
  .quote blockquote { font-size: 21px; margin-bottom: 22px; }
  .stat-panel { padding: 32px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--side-space) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a::after { display: none; }
  .nav-meta { padding-top: 16px; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { gap: 16px; }
  .btn { width: 100%; justify-content: center; }
  .cta-band .btn, .hero .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
