/* Kanzlei Barandt — 2026-10. The name as a monument, the balance standing on it.
   Black, red and white from the logo; Bodoni Moda for display, Piazzolla for reading. */
:root {
  --ground: #0d0d0d;
  --ground-2: #171716;
  --ground-3: #202020;
  --paper: #ffffff;
  --paper-2: #f0f0ee;
  --ink: #141414;
  --ink-soft: #55554f;
  --logo-ink: #343434;
  --on-dark: #f5f5f3;
  --on-dark-soft: #b0b0ab;
  --red: #dc3038;
  --red-deep: #b51f27;

  --display: 'Bodoni Moda', 'Bodoni 72', Didot, serif;
  --text: 'Piazzolla', Georgia, serif;
  /* five steps */
  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.1vw, 2rem);
  --step-head: clamp(2.2rem, 1.2rem + 2.6vw, 4rem);
  --step-display: clamp(2.8rem, 1rem + 4.6vw, 6rem);
  --step-mono: clamp(7.5rem, 27vw, 40rem);

  --m: clamp(18px, 2.2vw, 32px);
  --gap: 24px;
  --section: clamp(120px, 13vw, 220px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  color: var(--on-dark); background: var(--ground); overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
/* Bodoni Moda's display optical sizes have near-invisible hairlines. Below poster size the
   text cut (low opsz) and a heavier weight keep every stroke readable, on black above all. */
h1, h2, h3, .weigh-btn, .reach .row, .invite, .panel figcaption, .others strong, .tel,
.office-grid figcaption strong, .steps strong, .mm-areas a, .about-p1::first-letter {
  font-variation-settings: 'opsz' 14; font-weight: 600; letter-spacing: -0.015em;
}

/* ---------- Logo ---------- */
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo .l-a, .logo .l-b { font-family: var(--display); font-size: 210px; font-weight: 450; font-variation-settings: 'opsz' 6; }
.logo .l-a { fill: var(--red); }
.logo .l-b { fill: var(--logo-ink); }
.logo .l-slash, .logo .l-bar { stroke: var(--logo-ink); stroke-width: 3; fill: none; }
.logo .l-word { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 76px; fill: var(--logo-ink); }
.logo .l-kanzlei { font-family: var(--display); font-weight: 700; font-size: 64px; fill: var(--logo-ink); font-variation-settings: 'opsz' 40; }
/* Bodoni's K is mostly hairline; thicken it so it reads at small size */
.logo .l-k { stroke: var(--logo-ink); stroke-width: 3.2px; stroke-linejoin: round; paint-order: stroke; }
.city { color: var(--red); }

/* ---------- Top bar ---------- */
main { position: relative; }
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--m); color: var(--on-dark);
  transition: background .5s var(--ease-out), padding .5s var(--ease-out), transform .6s var(--ease-out);
}
.top.scrolled { background: var(--ground); padding-top: 10px; padding-bottom: 10px; }
.top.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.mark { display: block; width: 46px; flex: none; }
/* the logo's second line, beside the mark: Kanzlei | Barandt, the script inverted for the dark bar */
.brand-word { display: flex; align-items: center; gap: 10px; }
.bw-k { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .14em; font-variation-settings: 'opsz' 14; }
.bw-bar { flex: none; width: 1.5px; height: 24px; background: currentColor; }
.bw-script { height: 30px; width: auto; filter: invert(1) brightness(1.6); margin-top: 2px; }
.mark svg { display: block; width: 100%; overflow: visible; }
.mark text { font-family: var(--display); font-size: 210px; font-weight: 500; font-variation-settings: 'opsz' 11; transition: transform .6s var(--ease-out); }
.mark .m-a { fill: var(--red); }
.mark .m-b { fill: var(--on-dark); }
.mark .m-slash { stroke: var(--on-dark); stroke-width: 7; transform-origin: 499px 170px; transition: transform .6s var(--ease-out); }
.brand:hover .m-a { transform: translate(-8px, -8px); }
.brand:hover .m-b { transform: translate(8px, 8px); }
.brand:hover .m-slash { transform: rotate(9deg); }
.links { display: flex; gap: 36px; font-size: 1.1875rem; }
.links a { position: relative; text-decoration: none; padding: 6px 0; }
.links a::after, .drop-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); pointer-events: none;
}
.links a:hover::after, .drop-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.links a[aria-current="page"]::after, .drop-btn[data-current]::after { transform: scaleX(1); }
.right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; }
.lang a { position: relative; font-size: var(--step-small); text-decoration: none; padding: 8px; opacity: .55; transition: opacity .3s; }
.lang a[aria-current="true"], .lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { color: var(--red); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--red); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.drop { position: relative; }
.drop-btn { position: relative; font: inherit; font-size: 1.1875rem; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.drop-list {
  position: absolute; left: -24px; top: calc(100% + 14px); min-width: 340px; list-style: none; margin: 0;
  padding: 14px 0; background: var(--paper); color: var(--ink);
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease-out), visibility 0s .5s;
}
.drop.open .drop-list { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out), visibility 0s; }
.drop-list a { display: flex; gap: 14px; align-items: baseline; padding: 10px 24px; text-decoration: none; font-size: 1rem; transition: background .3s, color .3s; }
.drop-list a:hover, .drop-list a:focus-visible { background: var(--paper-2); color: var(--red-deep); }
.drop-list a[aria-current="page"] { color: var(--red-deep); }
.drop-list a::after { display: none; }
.par { color: var(--red); font-family: var(--display); display: inline-block; transition: rotate .6s var(--ease-out), scale .6s var(--ease-out); }

.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; overflow-y: auto; padding: 96px 22px 40px; background: var(--ground); color: var(--on-dark); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; padding: 0; }
.mm-label { font-size: var(--step-small); color: var(--on-dark-soft); }
.mm-lang { margin: 0 0 28px -8px; }
.mm-lang a { font-size: 1.125rem; }
.mm-areas a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; text-decoration: none; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; }
.mm-pages { margin-top: 28px; }
.mm-pages a { display: block; padding: 6px 0; font-size: 1.25rem; text-decoration: none; }
.mm-contact { margin-top: 28px; color: var(--on-dark-soft); line-height: 1.8; }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  background: var(--red); color: #fff; font: inherit; font-weight: 600; font-size: var(--step-small);
  text-decoration: none; border: 0; cursor: pointer;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn span { display: inline-block; transition: transform .55s var(--ease-out); }
.btn:active span { transform: scale(.96); }
.close .btn::before { background: #fff; }
.close .btn:hover, .close .btn:focus-visible { color: #141414; }
.text-link {
  display: inline-flex; gap: .4em; align-items: baseline; font-weight: 600; font-size: var(--step-small);
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 2px;
  transition: color .3s, text-underline-offset .4s var(--ease-out);
}
.text-link:hover { color: var(--red); text-underline-offset: 9px; }
.text-link span { transition: transform .5s var(--ease-out); }
.text-link:hover span { transform: translateX(5px); }

/* SplitText line masks */
.split .line-mask, [data-split] .line-mask { overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-rise] { opacity: 0; }
.js.no-motion [data-rise] { opacity: 1; }

/* ---------- Hero: the balance standing on the name ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ground); }
.hero-lift { position: absolute; inset: 0; transform-origin: 50% 100%; }
.hero-stage { position: absolute; left: 0; right: 0; top: 76px; bottom: var(--seat, 17.6vw); }
.hero-stage canvas, .weigh-stage canvas, .ph-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.monument {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 7%);
  font-size: var(--step-mono); line-height: .8; letter-spacing: -0.045em; white-space: nowrap;
  font-weight: 500; font-variation-settings: 'opsz' 24; color: var(--on-dark); overflow: hidden; padding-top: .06em;
}
.mword { display: inline-block; }
.probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-copy { position: absolute; left: var(--m); top: clamp(104px, 13vh, 150px); width: min(30ch, 28vw); z-index: 2; }
.hero-slogan { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero-line { margin-top: 18px; font-size: clamp(1.125rem, .95rem + .45vw, 1.3rem); line-height: 1.32; }
.hero-sub { margin-top: 10px; font-size: var(--step-small); line-height: 1.45; color: var(--on-dark-soft); }
.hero-aside { position: absolute; right: var(--m); top: clamp(104px, 13vh, 150px); text-align: right; font-size: var(--step-small); line-height: 1.6; color: var(--on-dark-soft); z-index: 2; }
.hero-tel { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 18px; }
.hero-tel a { color: var(--on-dark); font-size: var(--step-body); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hero-tel a:hover { color: var(--red); }
.m-only { display: none; }
.intro-on .hero-aside { opacity: 0; }
.intro-run .hero-aside { opacity: 1; }
.hero-act { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.intro-on body { overflow: hidden; }
.intro-on .mword, .intro-on .hero-copy, .intro-on .top { opacity: 0; }
.intro-run .mword, .intro-run .hero-copy, .intro-run .top { opacity: 1; }

/* the flat drawing, for browsers without WebGL */
.stage-still { position: absolute; inset: 8% 10% 0; width: 80%; height: 92%; display: none; }
.no-webgl .stage-still { display: block; }
.stage-still path { fill: none; stroke: var(--on-dark-soft); stroke-width: 3; stroke-linecap: round; }
.stage-still circle { fill: var(--red); }
.stage-still text { font-family: var(--display); font-size: 120px; text-anchor: middle; }
.stage-still .s-a { fill: var(--red); }
.stage-still .s-b { fill: var(--on-dark); }

/* ---------- Weigh first: a heading that captions the engraving ---------- */
.weighfirst { background: var(--paper); color: var(--ink); padding-top: clamp(48px, 5vw, 88px); overflow: hidden; }
.wf-head { padding: 0 var(--m); }
.wf-head h2 { font-size: var(--step-display); line-height: .95; letter-spacing: -0.035em; max-width: 13em; }
.wf-kicker { margin-top: 22px; font-size: var(--step-lead); line-height: 1.35; color: var(--ink-soft); max-width: 46ch; }
.wf-caps { list-style: none; padding: 0; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.wf-caps li { width: 250px; font-size: var(--step-small); line-height: 1.45; color: var(--ink-soft); }
.wf-caps strong { display: block; color: var(--ink); font-size: var(--step-body); }
.wf-pan { margin: 48px 0 0; position: relative; }
.wf-frame { overflow: hidden; aspect-ratio: 21 / 10; background: var(--paper-2); }
.wf-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.wf-pan figcaption {
  position: absolute; left: 0; top: 0; max-width: 34ch; padding: 8px 12px 9px;
  font-size: .6875rem; line-height: 1.35; letter-spacing: .01em; color: var(--on-dark-soft); background: rgba(10, 10, 10, .72);
}

/* ---------- International: the firm's own text, after the engraving ---------- */
.intl {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px;
  padding: clamp(72px, 8vw, 128px) var(--m); background: var(--paper); color: var(--ink);
}
.intl h2 { grid-column: 1 / 6; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.intl-text { grid-column: 6 / 13; max-width: 66ch; }
.intl-text p + p { margin-top: 1.1em; }
.intl-text p:first-child { font-size: var(--step-lead); line-height: 1.38; }
.intl-text p:not(:first-child) { color: var(--ink-soft); }

/* ---------- The weighing: the balance beside the practice areas ---------- */
.weigh {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m); background: var(--ground);
}
.weigh-slot { grid-column: 1 / 7; position: relative; }
.weigh-stage { position: sticky; top: 8svh; height: 84svh; }
.weigh-stage .stage-still { inset: 12% 4% 6%; width: 92%; height: 82%; }
.weigh-list { grid-column: 7 / 13; padding-top: 4svh; }
.weigh-list h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.weigh-hint { margin-top: 20px; max-width: 44ch; color: var(--on-dark-soft); }
.weigh-rows { list-style: none; padding: 0; margin-top: 48px; }
.weigh-row + .weigh-row { margin-top: 6px; }
.weigh-btn {
  width: 100%; display: flex; gap: .45em; align-items: baseline; text-align: left;
  padding: 14px 18px 14px 0; background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--display); font-size: var(--step-lead); line-height: 1.15;
  transition: color .35s, padding .6s var(--ease-out);
}
.weigh-btn { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.125rem, .9rem + .8vw, 1.6rem); align-items: center; }
.weigh-btn .par { font-size: 2em; line-height: .8; flex: none; width: .75em; text-align: center; opacity: .85; text-transform: none; transition: opacity .35s, rotate .6s var(--ease-out); }
.weigh-btn:hover { padding-left: 14px; }
.weigh-btn:hover .par, .weigh-row.open .par { opacity: 1; rotate: -14deg; }
.weigh-row.open .weigh-btn { color: var(--red); padding-left: 14px; }
.weigh-detail { padding-left: 14px; max-width: 56ch; }
.wd-inner { padding: 4px 0 28px; }
.js .weigh-detail { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease-out), visibility 0s .6s; }
.js .weigh-row.open .weigh-detail { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease-out), visibility 0s; }
.js .wd-inner { overflow: hidden; min-height: 0; }
.weigh-detail p { color: var(--on-dark-soft); }
.weigh-detail ul { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.weigh-detail ul a { font-size: var(--step-small); text-decoration-color: var(--red); text-underline-offset: 4px; }
.weigh-detail ul a:hover { color: var(--red); }
.weigh-detail .text-link { margin-top: 18px; }

/* ---------- Frankfurt and Königstein: a band of unequal panels ---------- */
.places { background: var(--ground); padding: 0 0 var(--section); }
.places h2 { padding: 0 var(--m); margin-left: calc(100% / 12 * 2); font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.band { display: flex; height: 68svh; min-height: 420px; margin-top: 64px; }
.panel { position: relative; margin: 0; overflow: hidden; flex: 2 1 0; transition: flex-grow .6s var(--ease-out); background: var(--ground-2); }
.panel:nth-child(1) { flex-grow: 5; }
.panel:nth-child(3) { flex-grow: 3; }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.86); transition: filter .8s var(--ease-out); }
.panel:nth-child(2) img { object-position: 50% 30%; }
.panel figcaption {
  position: absolute; left: 0; top: 0; max-width: 22ch; padding: 10px 14px 12px;
  font-family: var(--text); font-size: .8125rem; line-height: 1.3; letter-spacing: .01em; color: var(--paper);
  background: rgba(10, 10, 10, .62); opacity: 0; transform: translateY(-12px); transition: opacity .5s, transform .6s var(--ease-out);
}
.panel:first-child figcaption { opacity: 1; transform: none; }
@media (hover: hover) {
  .band:hover .panel { flex-grow: 2; }
  .band .panel:hover { flex-grow: 6; }
  .panel:hover img { filter: grayscale(0) contrast(1.02) brightness(.95); }
  .panel:hover figcaption { opacity: 1; transform: none; }
  .band:hover .panel:first-child:not(:hover) figcaption { opacity: 0; }
}
.band-cap { padding: 18px var(--m) 0; color: var(--on-dark-soft); max-width: 70ch; }

/* ---------- About: the biography, its first letter set as a capital ---------- */
.about {
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: clamp(110px, 10vw, 150px) var(--m);
}
.about-portrait { grid-column: 1 / 5; grid-row: 1 / 3; margin: 0; align-self: start; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-facts { grid-column: 6 / 12; grid-row: 2; margin-top: 48px; list-style: none; padding: 0; font-size: var(--step-small); color: var(--ink-soft); line-height: 1.45; padding-top: .5em; }
.about-facts li + li { margin-top: 14px; }
.about-text { grid-column: 6 / 13; grid-row: 1; }
.about-kicker { font-size: var(--step-small) !important; letter-spacing: .02em; color: var(--red); margin-bottom: 14px; }
.about-title { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; max-width: 16em; margin-bottom: 32px; }
.about-text p { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.005em; max-width: 34em; }
.about-p1::first-letter {
  float: left; font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 6;
  font-size: 4.1em; line-height: .8; margin: .06em .1em 0 -.02em; color: var(--red);
}
.about-p2 { margin-top: 1.2em; color: var(--ink-soft); font-size: var(--step-body) !important; line-height: 1.55 !important; max-width: 60ch !important; }
.about-text .text-link { margin-top: 36px; }

/* ---------- Reach: the address in display rows ---------- */
.reach { background: var(--ground); }
.reach .row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: clamp(72px, 6.6vw, 104px);
  padding: 0 var(--m) clamp(16px, 1.6vw, 24px); text-decoration: none;
  font-family: var(--display); font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em;
  transition: background .45s, padding .6s var(--ease-out);
}
.reach .row:nth-child(odd) { background: var(--ground-2); }
.reach a.row:hover { background: var(--ground-3); padding-left: calc(var(--m) + 18px); }
.reach .greet { background: var(--red) !important; color: #fff; }
.row-place { justify-content: flex-start; }
.row-addr { margin-left: auto; font-family: var(--text); font-size: var(--step-lead); letter-spacing: 0; color: var(--on-dark-soft); text-align: right; }
.row-note { font-family: var(--text); font-size: var(--step-lead); color: var(--on-dark-soft); letter-spacing: 0; font-weight: 400; margin-right: auto; margin-left: .6em; }
.reach .greet:hover { background: var(--red-deep) !important; }
.round {
  flex: none; display: grid; place-items: center; width: .9em; height: .9em; border-radius: 50%; background: #fff; color: var(--red);
  margin-bottom: .04em; transition: transform .6s var(--ease-out);
}
.round svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.greet:hover .round { transform: translateX(10px) rotate(-12deg); }

/* ---------- Close: invitation over the cropped name ---------- */
.close { background: var(--ground); color: var(--on-dark); overflow: hidden; position: relative; --logo-ink: var(--on-dark); --ink: var(--on-dark); --ink-soft: var(--on-dark-soft); --rule: rgba(255,255,255,.16); }
.close-top {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px;
  padding: clamp(96px, 9vw, 140px) var(--m) 0;
}
.close-invite { grid-column: 1 / 7; }
.close-top.solo { padding-top: 64px; }
.invite { font-family: var(--display); font-size: var(--step-display); line-height: .98; letter-spacing: -0.035em; max-width: 9em; }
.close-invite .btn { margin-top: 32px; }
.close-links { list-style: none; padding: 0; }
.close-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--gap);
  margin: clamp(72px, 8vw, 120px) var(--m) 0; padding-top: 36px; border-top: 1px solid var(--ink);
  font-size: .9375rem; line-height: 1.55;
}
.close-h { font-family: var(--display); font-size: 1.125rem; margin-bottom: 10px; color: var(--ink); }
.close-col p + .close-h { margin-top: 22px; }
.close-col { color: var(--ink-soft); }
.close-col a { color: var(--ink); }
.close-links li + li { margin-top: 6px; }
.close-links a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); } /* taste-skill-ignore: underline wipe */
.close-links a:hover { background-size: 100% 2px; }
.close-logo { grid-column: 10 / 13; width: 100%; max-width: 220px; justify-self: end; align-self: end; }
.close-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin: 56px var(--m) 0; padding: 20px 0 32px; border-top: 1px solid var(--rule, rgba(0,0,0,.14)); font-size: .8125rem; color: var(--ink-soft);
}
.close-legal-links { display: flex; gap: 20px; }
.close-legal-links a { color: var(--ink); }
.close-credits { flex-basis: 100%; font-size: .6875rem; opacity: .8; }
.close-legal a { text-underline-offset: 3px; text-decoration-color: var(--red); }

/* ---------- Sub pages ---------- */
.page-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end;
  padding: clamp(120px, 12vw, 170px) var(--m) clamp(40px, 5vw, 72px); background: var(--ground); min-height: 72svh;
}
.ph-text { grid-column: 1 / 8; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--step-small); color: var(--on-dark-soft); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #5a5a56; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--red); }
.page-head h1 { margin-top: 36px; font-size: var(--step-display); line-height: .95; letter-spacing: -0.035em; max-width: 11em; }
.page-lede { margin-top: 28px; max-width: 44ch; font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); line-height: 1.45; color: var(--on-dark-soft); }
.ph-stage { grid-column: 8 / 13; position: relative; height: clamp(300px, 46svh, 560px); align-self: end; }
.ph-stage .stage-still { inset: 0; width: 100%; height: 100%; }

.doc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: clamp(72px, 8vw, 120px) var(--m) var(--section); background: var(--paper); color: var(--ink); }
.toc { grid-column: 1 / 4; }
.toc-label { font-size: var(--step-small); color: var(--ink-soft); padding-bottom: 8px; }
.toc ol { list-style: none; padding: 0; position: sticky; top: 96px; }
.toc a { display: block; padding: 8px 0 8px 14px; text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); position: relative; transition: color .3s, padding .5s var(--ease-out); }
.toc a::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .5s var(--ease-out); }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { padding-left: 20px; }
.toc a.on::before { transform: scaleY(1); }
.doc-sheet { color: var(--ink); }
.doc > .doc-sheet { grid-column: 5 / 12; }
.doc-wide > .doc-sheet { grid-column: 3 / 11; }
.doc-wide > .doc-sheet + .doc-sheet { margin-top: 96px; }
.topic { scroll-margin-top: 90px; }
.topic + .topic { margin-top: clamp(80px, 8vw, 128px); }
.topic h2, .doc-sheet h2 { display: flex; gap: .4em; font-size: clamp(2rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.04; letter-spacing: -0.025em; }
.doc-sheet h2 + * { margin-top: 20px; }
.doc-sheet > h2:not(:first-child) { margin-top: 72px; }
.doc-sheet p { max-width: 66ch; }
.doc-sheet p + p, .doc-sheet ul + p, .doc-sheet p + ul, .doc-sheet ol + p { margin-top: 16px; }
.lead { font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); line-height: 1.4; color: var(--red-deep); max-width: 46ch !important; margin-bottom: 22px; }
.doc-sheet ul { list-style: none; padding: 0; max-width: 66ch; }
.doc-sheet ul li { position: relative; padding-left: 26px; }
.doc-sheet ul li + li { margin-top: 10px; }
.doc-sheet ul li::before { content: '§'; position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--red); }
.disclaimer { margin-top: 96px; font-size: var(--step-small); color: var(--ink-soft); }
.small { font-size: var(--step-small); color: var(--ink-soft); }

.others { padding: var(--section) var(--m); background: var(--ground); }
.others h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.others ul { list-style: none; padding: 0; margin-top: 48px; }
.others a { display: grid; grid-template-columns: 1.2em minmax(0, 5fr) minmax(0, 6fr); gap: 0 24px; align-items: baseline; padding: 20px 0; text-decoration: none; transition: padding .6s var(--ease-out), color .35s; }
.others a:hover { padding-left: 18px; color: var(--red); }
.others .par { font-size: var(--step-lead); }
.others strong { font-family: var(--display); font-weight: 500; font-size: var(--step-lead); line-height: 1.15; }
.others a > span:last-child { font-size: var(--step-small); color: var(--on-dark-soft); line-height: 1.45; }

/* Contact block on sub pages */
.contact { padding: var(--section) var(--m); background: var(--ground); }
.coupon { display: grid; grid-template-columns: 5fr 7fr; gap: 48px var(--gap); }
.coupon-l h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.coupon-l > div { margin-top: 24px; color: var(--on-dark-soft); max-width: 40ch; }
.tel { font-family: var(--display); font-size: var(--step-lead); text-decoration: none; color: var(--on-dark); }
.tel:hover { color: var(--red); }
.tel-wrap { margin-top: 20px; }
.coupon-mail { margin-top: 8px; font-size: var(--step-small); }
.coupon-mail a { text-underline-offset: 3px; text-decoration-color: var(--red); }
.coupon form { display: grid; gap: 10px; }
.field { position: relative; display: block; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); pointer-events: none; }
.field:focus-within::after { transform: scaleX(1); }
.coupon input, .coupon select, .coupon textarea {
  font: inherit; font-size: 1rem; color: var(--on-dark); background: var(--ground-2);
  border: 0; min-height: 56px; padding: 14px 18px; width: 100%; display: block;
}
.coupon input::placeholder, .coupon textarea::placeholder { color: var(--on-dark-soft); }
.coupon input:focus, .coupon select:focus, .coupon textarea:focus { outline: none; background: var(--ground-3); }
.coupon textarea { min-height: 120px; resize: vertical; }
.coupon .btn { width: 100%; min-height: 58px; }
.coupon .btn::before { background: var(--paper); }
.coupon .btn:hover { color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step-small); color: var(--on-dark-soft); line-height: 1.45; margin: 4px 0; }
.consent input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--red); flex: none; }
.form-note { font-size: .8125rem; color: var(--on-dark-soft); line-height: 1.45; }

/* Kanzlei */
.person-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 0; font-size: var(--step-small); color: var(--ink-soft); }
.role-line { margin-top: 6px; color: var(--red-deep); }
.langs { margin-top: 4px; color: var(--ink-soft); font-size: var(--step-small); }
.two { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two h3 { font-size: 1.375rem; margin-bottom: 14px; display: inline; }
.two section > h3 { display: block; }
details summary { cursor: pointer; list-style: none; margin-bottom: 14px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; margin-left: 10px; color: var(--red); font-size: 1.25rem; display: inline-block; transition: rotate .4s var(--ease-out); }
details[open] summary::after { rotate: 45deg; }
.two li { font-size: .9375rem; }
/* Kanzlei round 2026-10-31 */
.page-head h1.h-logo { display: flex; align-items: center; gap: .32em; max-width: none; flex-wrap: wrap; }
.hl-bar { flex: none; width: max(2px, .035em); height: .78em; background: currentColor; }
.hl-script { height: 1.08em; width: auto; margin-top: .06em; }
/* cookie notice */
.cookie { position: fixed; z-index: 90; left: var(--m); right: var(--m); bottom: var(--m); max-width: 560px; margin-left: auto; background: var(--ground-2); color: var(--on-dark); padding: 22px 24px; box-shadow: 0 18px 48px rgba(0,0,0,.35); font-size: .9375rem; line-height: 1.5; }
.cookie[hidden] { display: none; }
.cookie h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.cookie p { color: var(--on-dark-soft); }
.cookie p a { color: var(--on-dark); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-actions button { font: inherit; font-size: .875rem; padding: 10px 18px; border: 1px solid var(--on-dark-soft); background: transparent; color: var(--on-dark); cursor: pointer; }
.cookie-actions .ck-ok { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-actions button:hover { border-color: var(--on-dark); }
.close-legal-links button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.firm-lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.doc-sheet > h3, .bio-sec h3, .focus > h3 { font-size: clamp(1.5rem, 1.1rem + .9vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 56px 0 16px; max-width: 30ch; }
.bio-sec p + p { margin-top: 16px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.focus h4 { font-family: var(--text); font-weight: 600; font-size: 1.0625rem; color: var(--red-deep); margin-bottom: 14px; }
.focus li { font-size: .9375rem; }
#peter-barandt .text-link { margin-top: 20px; display: inline-block; }
.expect-list { list-style: none; padding: 0; counter-reset: ex; max-width: 66ch; }
.expect-list li { counter-increment: ex; position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--paper-2); }
.expect-list li::before { content: '§'; position: absolute; left: 0; top: 14px; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--red); }
.expect-list strong { font-family: var(--text); font-weight: 600; font-size: 1.0625rem; display: block; margin-bottom: 6px; }
.offices { padding: var(--section) var(--m); background: var(--ground); }
.offices > h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin-bottom: 48px; }
.office-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); }
.office-grid figure { margin: 0; }
.place-img { overflow: hidden; }
.office-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.office-grid figure:nth-child(2) img { aspect-ratio: 4 / 5; }
.office-grid figcaption { margin-top: 16px; color: var(--on-dark-soft); font-size: var(--step-small); line-height: 1.6; }
.office-grid figcaption strong { display: block; color: var(--on-dark); font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.office-cards { grid-template-columns: 1fr 1fr; }
.office-cards .doc-sheet { background: var(--ground-2); color: var(--on-dark); padding: clamp(28px, 3.5vw, 52px); }
.office-cards .doc-sheet h2 { font-size: 2rem; }
.office-cards a { text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Kosten */
.fees { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 20px; }
.fees th, .fees td { padding: 14px 0; border-bottom: 1px solid #e2e2df; text-align: left; vertical-align: top; font-weight: 400; }
.fees td { padding-left: 24px; text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.fees + .small { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 22px; background: var(--paper-2); font-size: .9375rem; color: var(--ink-soft); }
.steps strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.375rem; margin-bottom: 6px; }
.steps + .small { margin-top: 32px; }

/* Legal */
.legal h2 { font-size: 1.5rem; }
.legal > h2:not(:first-child) { margin-top: 40px; }
.legal p, .legal li { font-size: 1rem; }
.legal a { text-decoration-color: var(--red); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lang-note { padding: 12px 16px; background: var(--paper-2); font-size: var(--step-small) !important; margin-bottom: 32px; }
.nf + .nf { margin-top: 56px; }
.nf ul { margin-top: 12px; }
.nf a { text-decoration-color: var(--red); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .toc { display: none; }
  .doc > .doc-sheet, .doc-wide > .doc-sheet { grid-column: 1 / -1; }
  .close-logo { grid-column: 1 / 4; justify-self: start; }
}
@media (max-width: 1000px) {
  .links { display: none; }
  .burger { display: block; }
  .coupon { grid-template-columns: 1fr; }
  .weigh-slot { grid-column: 1 / 6; }
  .weigh-list { grid-column: 6 / 13; }
  .close-invite { grid-column: 1 / -1; }
  .close-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gap: 16px; }
  .top .lang { display: none; }
  .top .btn { display: none; }
  .mark { width: 38px; }
  .bw-k { font-size: .875rem; letter-spacing: .08em; }
  .brand { gap: 10px; }
  .brand-word { gap: 7px; }
  .bw-script { height: 21px; }
  .bw-bar { height: 20px; }
  .row-note { font-size: 1rem; margin-left: 0; }
  .row-addr { margin-left: 0; text-align: left; font-size: 1rem; }

  .hero { min-height: 600px; }
  .hero-copy { width: auto; right: var(--m); top: 92px; }
  .hero-aside { display: none; }
  .hero-act .m-only { display: inline-block; background: var(--ground); padding: 2px 6px; margin-left: -6px; }
  .hero-line { font-size: 1.1875rem; }
  .hero-act { margin-top: 20px; }
  .hero-stage { top: 300px; }
  .monument { font-size: 28vw; transform: translate(-50%, 6%); }

  .wf-head h2 { font-size: 12vw; }
  .wf-caps { gap: 14px; flex-direction: column; }
  .wf-caps li { width: auto; }
  .wf-frame { aspect-ratio: 4 / 5; }
  .wf-frame img { object-position: 52% 80%; }

  .weigh { display: block; padding-top: 96px; }
  .weigh-slot { margin: 0 calc(var(--m) * -1); }
  .weigh-stage { position: relative; top: 0; height: 36svh; }
  .weigh-list { padding-top: 24px; }
  .weigh-list h2 { font-size: 9.4vw; }
  .weigh-rows { margin-top: 28px; }
  .weigh-btn { font-size: 1.125rem; }
  .intl { display: block; }
  .intl h2 { font-size: 9.4vw; margin-bottom: 28px; }
  .wf-pan figcaption { max-width: 70%; font-size: .625rem; }

  .places h2 { margin-left: 0; }
  .band { flex-wrap: wrap; height: 84svh; margin-top: 36px; }
  .panel { height: 50%; }
  .panel:nth-child(1) { flex: 0 0 64%; }
  .panel:nth-child(2) { flex: 0 0 36%; }
  .panel:nth-child(3) { flex: 0 0 36%; }
  .panel:nth-child(4) { flex: 0 0 64%; }
  .panel figcaption { font-size: .75rem; padding: 8px 10px 9px; }

  .about-portrait { order: -1; }
  .about-facts { margin-top: 0; order: 2; }
  .about { display: flex; flex-direction: column; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
  .about-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .about-facts li + li { margin-top: 0; }

  .reach .row { font-size: 6.4vw; min-height: 64px; padding-top: 14px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; }
  .reach .greet { flex-direction: row; align-items: center; justify-content: space-between; }
  .reach .greet { font-size: 6.4vw; }
  .round { width: 56px; height: 56px; }

  .close-top { row-gap: 36px; padding-top: 88px; }
  .invite { font-size: 11vw; }
  .close-invite .btn { width: 100%; }
  .close-grid { grid-template-columns: 1fr; gap: 28px; }
  .close-logo { grid-column: 1 / -1; width: 220px; }

  .page-head { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 104px; }
  .page-head h1 { font-size: 11.5vw; }
  .ph-stage { height: 300px; margin-top: 28px; }
  .doc { padding-left: var(--m); padding-right: var(--m); }
  .others a { grid-template-columns: 1.2em 1fr; }
  .others a > span:last-child { grid-column: 2; margin-top: 4px; }
  .office-grid, .office-cards, .two, .steps, .focus-grid { grid-template-columns: 1fr; }
  .person-head { grid-template-columns: 1fr; }
  .person-head .plate { width: 62%; }
  .fees td { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
