/* ==========================================================================
   Kanzlei Börsenplatz — Design Tokens
   Ink (deep graphite-navy) / Paper (warm off-white) / Brass (muted gold)
   Display: Fraunces · Body: Public Sans · Ledger/data: IBM Plex Mono
   ========================================================================== */

:root {
  --ink: #10151c;
  --ink-soft: #1a212b;
  --paper: #f7f4ec;
  --paper-dim: #efeadb;
  --brass: #a9812e;
  --brass-light: #c9a45c;
  --slate: #262c34;
  --slate-muted: #63697a;
  --slate-on-ink: #b9c0cc;
  --line: #ddd5bf;
  --line-on-ink: #2c3542;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--slate);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Header / ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--slate-on-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-on-ink);
}
.ticker__track {
  display: inline-block;
  padding: 7px 0;
  animation: ticker 38s linear infinite;
}
.ticker__track span { padding: 0 2.2em; color: var(--slate-on-ink); }
.ticker__track span b { color: var(--brass-light); font-weight: 600; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  text-decoration: none; color: var(--slate);
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand small {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--slate-muted); font-weight: 400; margin-top: 2px;
}
.nav__links { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 14.5px; color: var(--slate); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  border: 1px solid var(--slate); padding: 8px 16px; border-radius: 2px;
  font-size: 13.5px; text-decoration: none;
}
.lang-switch { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.lang-switch a { text-decoration: none; color: var(--slate-muted); }
.lang-switch a.active { color: var(--slate); border-bottom: 1px solid var(--brass); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 860px) {
  .nav__links, .nav__cta-wrap { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--pad) 84px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__rule {
  width: 42px; height: 2px; background: var(--brass); margin-bottom: 22px;
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  max-width: 16ch;
}
.hero h1 em { color: var(--brass-light); font-style: normal; }
.hero p.lead {
  font-size: 18px; color: var(--slate-on-ink); max-width: 54ch; margin-top: 22px;
}
.hero__meta {
  margin-top: 44px; display: flex; gap: 46px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--slate-on-ink);
}
.hero__meta div span { display: block; color: var(--brass-light); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 6px; }
.hero__actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; text-decoration: none; font-size: 14.5px;
  border-radius: 2px; font-weight: 500; transition: all .2s ease;
}
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-light); }
.btn--ghost { border: 1px solid var(--line-on-ink); color: var(--paper); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-light); }

/* ---------- Sections ---------- */
section { padding: 90px var(--pad); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 12px; }
.section-head p { color: var(--slate-muted); margin-top: 14px; font-size: 16px; }

/* Ledger / practice-area listing */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid; grid-template-columns: 100px 1fr 220px;
  gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.ledger__code {
  font-family: var(--mono); font-size: 13px; color: var(--brass);
  letter-spacing: 0.06em;
}
.ledger__row h3 { font-size: 20px; font-weight: 600; }
.ledger__row p { margin: 8px 0 0; color: var(--slate-muted); font-size: 15px; max-width: 60ch; }
.ledger__tag {
  font-family: var(--mono); font-size: 12px; color: var(--slate-muted);
  text-align: right; align-self: start;
}
@media (max-width: 760px) {
  .ledger__row { grid-template-columns: 1fr; gap: 8px; }
  .ledger__tag { text-align: left; }
}

/* About / bilingual bench */
.bench {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.bench__col { border-top: 2px solid var(--brass); padding-top: 20px; }
.bench__col h3 { font-size: 15px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-muted); font-weight: 500; }
.bench__col p { margin-top: 14px; color: var(--slate); }
@media (max-width: 760px) { .bench { grid-template-columns: 1fr; gap: 36px; } }

/* Stats strip */
.strip {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding: 50px 0;
}
.strip__grid div { border-left: 1px solid var(--line); padding-left: 18px; }
.strip__grid strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--slate); }
.strip__grid span { font-family: var(--mono); font-size: 11.5px; color: var(--slate-muted); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 760px) { .strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-head p { color: var(--slate-on-ink); }
.contact .eyebrow { color: var(--brass-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info dl { font-family: var(--mono); font-size: 14px; line-height: 2; }
.contact-info dt { color: var(--brass-light); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 18px; }
.contact-info dd { margin: 0; color: var(--paper); }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line-on-ink); }
.appointment-box {
  margin-top: 30px; padding: 22px; border: 1px solid var(--line-on-ink);
  border-radius: 2px;
}
.appointment-box p { margin: 0 0 14px; font-size: 14.5px; color: var(--slate-on-ink); }

form.contact-form { display: grid; gap: 14px; }
.contact-form label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-on-ink); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: var(--ink-soft); border: 1px solid var(--line-on-ink);
  color: var(--paper); padding: 12px 14px; font-family: var(--sans); font-size: 14.5px;
  border-radius: 2px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-family: var(--mono); font-size: 13px; min-height: 20px; margin-top: 4px; }
.form-status.ok { color: #7fbf8f; }
.form-status.err { color: #d98787; }

footer {
  background: var(--ink); color: var(--slate-on-ink);
  border-top: 1px solid var(--line-on-ink);
  padding: 40px var(--pad) 30px;
  font-size: 13px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: var(--max); margin: 0 auto; }
footer a { text-decoration: none; color: var(--slate-on-ink); }
footer a:hover { color: var(--brass-light); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Mobile nav drawer */
.mnav {
  position: fixed; inset: 0; background: var(--ink); color: var(--paper);
  z-index: 60; display: none; flex-direction: column; padding: 26px var(--pad);
}
.mnav.open { display: flex; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; }
.mnav__close { background: none; border: none; color: var(--paper); font-size: 26px; cursor: pointer; }
.mnav ul { list-style: none; padding: 0; margin: 50px 0 0; display: grid; gap: 26px; }
.mnav a { font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--paper); }
