/* ==========================================================================
   Rechtsanwalt Christian Beck, Insolvenzrecht, Nürnberg
   Haltung: klassischer, ruhiger Kanzleiauftritt. Weißer Grund, Tintenblau,
   Buchschrift für Überschriften und Text, Grotesk nur für Navigation und
   Beschriftungen. Abschnitte sind wie ein Gesetzeskommentar gegliedert
   (Paragrafenzeichen, Randnummern, Stichworte).
   Schriften lokal (DSGVO): Literata, Archivo.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --tint: #f3f5f8;            /* ruhige Wechselfläche */
  --blue: #1c2b4a;            /* Tintenblau */
  --blue-deep: #142038;
  --ink: #141a26;
  --ink-2: #394253;
  --ink-3: #5b6577;
  --rule: #d9dde4;
  --rule-strong: #aab1bd;
  --mark: #22386b;            /* Paragrafenzeichen, Randnummern */
  --on-blue: #f4f5f7;
  --on-blue-2: rgba(244, 245, 247, 0.74);
  --on-blue-rule: rgba(244, 245, 247, 0.24);
  --focus: #22386b;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --inline: max(var(--pad), calc((100% - var(--max)) / 2));
  --margin-col: clamp(3rem, 6.5vw, 5.75rem);   /* Randspalte für § und Rn. */
  --gap: clamp(1.25rem, 2.4vw, 2.5rem);
  --sec-y: clamp(3.75rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 40;
  background: var(--blue); color: var(--on-blue); padding: 0.8rem 1.1rem;
  font-family: var(--sans); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Kopf ---------- */
.topbar {
  background: var(--blue); color: var(--on-blue-2);
  font-family: var(--sans); font-size: 0.875rem; line-height: 1.3;
  padding: 0.55rem var(--inline);
  display: flex; justify-content: space-between; gap: 1.5rem;
}
.topbar a { color: var(--on-blue); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.topbar :focus-visible { outline-color: var(--on-blue); }

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--inline);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
  min-height: 5rem;
}
.wordmark { display: grid; grid-template-columns: auto auto; column-gap: 0.85rem; align-content: center; justify-content: start; text-decoration: none; line-height: 1.1; flex: none; }
.wordmark__mark { grid-row: 1 / span 2; width: 3.1rem; height: 3.1rem; align-self: center; transition: transform 320ms var(--ease); }
.wordmark:hover .wordmark__mark { transform: translateY(-2px); }
.wordmark__name { align-self: end; }
.wordmark__name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.012em; }
.wordmark__name b { font-weight: 700; }
.wordmark__role { font-family: var(--sans); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.3rem; }

.nav { display: flex; align-items: stretch; gap: clamp(1rem, 2.2vw, 2.25rem); align-self: stretch; }
.nav__link {
  display: flex; align-items: center;
  font-family: var(--sans); font-weight: 500; font-size: 0.9688rem; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; border-top: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.head-call {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 1px solid var(--blue); color: var(--blue);
  font-family: var(--sans); font-weight: 600; font-size: 0.9688rem; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.head-call:hover { background: var(--blue); color: var(--on-blue); }

/* ---------- Abschnitte ---------- */
.sec { padding: var(--sec-y) var(--inline); border-top: 1px solid var(--rule); }
.sec--tint { background: var(--tint); }

/* ---------- Auftakt ---------- */
.hero { background: var(--tint); padding: 0 var(--inline); }
.cover {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
}
.cover__copy { display: grid; justify-items: start; gap: clamp(1.4rem, 2.4vw, 2.1rem); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mark); }
.cover h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.5vw, 3.9rem); line-height: 1.1; letter-spacing: -0.02em;
}
.cover h1 span { display: block; }
.cover__lede { counter-reset: rn; display: grid; gap: 0.8em; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.55; max-width: 32em; color: var(--ink-2); }
.cover__lede p { counter-increment: rn; position: relative; padding-left: 2em; text-wrap: pretty; }
.cover__lede p::before { content: counter(rn); position: absolute; left: 0; top: 0.1em; font-size: 0.85em; font-weight: 600; color: var(--mark); }
.cover__lede .runin { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.cover__plate .plate { aspect-ratio: 4 / 4.6; max-height: 36rem; width: 100%; }
.cover__plate img { object-position: 58% 12%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.6rem;
  background: var(--blue); color: var(--on-blue);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease;
}
.btn:hover { background: var(--blue-deep); }
.textlink {
  font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- Abbildungen ---------- */
.plate { overflow: hidden; background: var(--tint); }
.plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(0.97); }
figcaption { font-family: var(--sans); font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); padding-top: 0.6rem; }

/* ---------- Kommentarsatz: Paragraf, Randnummern, Stichworte ---------- */
.para { display: grid; grid-template-columns: var(--margin-col) minmax(0, 1fr); align-items: baseline; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.para__sign {
  font-family: var(--serif); font-weight: 500; color: var(--mark);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1; white-space: nowrap;
}
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.15; letter-spacing: -0.016em;
  max-width: 20em; text-wrap: balance;
}
.body { padding-left: var(--margin-col); }
.intro { max-width: 38em; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.rn { counter-reset: rn; display: grid; gap: clamp(1.5rem, 2.6vw, 2.25rem); }
.rn > li, .rn > div { counter-increment: rn; position: relative; padding-left: var(--margin-col); }
.rn > li::before, .rn > div::before {
  content: counter(rn);
  position: absolute; left: 0; top: 0.1em; width: 2rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; color: var(--mark);
}
.rn p { max-width: 36em; text-wrap: pretty; }
.lemma { font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.25; letter-spacing: -0.008em; margin-bottom: 0.45rem; }
.runin { font-weight: 700; }
.see { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.9063rem; line-height: 1.5; color: var(--ink-3); }

/* ---------- § 1 Schwerpunkte ---------- */
.areas .rn { gap: 0; }
.areas .rn > li { display: grid; grid-template-columns: minmax(0, 1fr) clamp(11rem, 23vw, 17rem); gap: 1.25rem clamp(1.5rem, 4vw, 4rem); align-items: start; padding-block: clamp(1.5rem, 2.6vw, 2.1rem); border-top: 1px solid var(--rule); }
.areas .rn > li:last-child { border-bottom: 1px solid var(--rule); }
.areas .rn > li::before { top: calc(clamp(1.5rem, 2.6vw, 2.1rem) + 0.1em); }
.areas .plate { aspect-ratio: 3 / 2; }

/* ---------- § 2 Fristen ---------- */
.fristen { width: 100%; border-collapse: collapse; margin-top: clamp(2rem, 4vw, 3rem); background: var(--bg); border: 1px solid var(--rule); }
.fristen caption { text-align: left; font-family: var(--sans); font-size: 0.9063rem; color: var(--ink-3); padding-bottom: 0.7rem; }
.fristen th, .fristen td { text-align: left; vertical-align: baseline; hyphens: auto; padding: 1.15rem clamp(1rem, 2vw, 1.75rem); border-top: 1px solid var(--rule); }
.fristen thead th { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-block: 0.75rem; border-top: 0; }
.fristen tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; width: 25%; }
.fristen .frist { width: 19%; white-space: nowrap; font-family: var(--serif); font-weight: 500; color: var(--mark); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; }
.fristen .frist small { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); margin-left: 0.45em; }
.fristen .norm { width: 19%; color: var(--ink-2); font-size: 1rem; hyphens: manual; white-space: nowrap; }
.fristen td:last-child { font-size: 1rem; line-height: 1.55; }

.rechner { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg); border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.rechner__form { display: grid; gap: 1.1rem; }
.rechner fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.rechner legend, .rechner label.label { padding: 0; font-family: var(--sans); font-size: 0.9063rem; font-weight: 500; color: var(--ink-2); margin-bottom: 0.35rem; display: block; }
.choice { display: grid; grid-template-columns: 1fr 1fr; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule-strong); font-family: var(--sans); font-weight: 500; font-size: 0.9688rem; text-align: center; line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.choice label + label span { border-left: 0; }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.rechner input[type="date"] {
  width: 100%; min-height: 3rem; padding: 0.4rem 0.85rem;
  background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 0;
  font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
  accent-color: var(--blue);
}
.rechner__out { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 4vw, 3.5rem); min-height: 10rem; font-size: 1rem; }
.rechner__out p { max-width: 30em; }
.rechner__date { display: block; font-family: var(--serif); font-weight: 500; color: var(--mark); font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; letter-spacing: -0.012em; margin: 0.3rem 0 0.7rem; text-wrap: balance; }
.rechner__out a { font-weight: 600; white-space: nowrap; text-underline-offset: 0.2em; }
.note { margin-top: clamp(1.5rem, 3vw, 2rem); font-family: var(--sans); font-size: 0.875rem; line-height: 1.55; color: var(--ink-3); max-width: 50em; }

.strip { aspect-ratio: 21 / 8; }
.fristen-plate { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- § 3 Ablauf ---------- */
.wide { aspect-ratio: 21 / 8; margin-bottom: clamp(2rem, 4vw, 3rem); }
.wide img { object-position: 50% 58%; }
.steps { counter-reset: rn; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.steps li { counter-increment: rn; padding-top: 1.1rem; border-top: 2px solid var(--blue); }
.steps li::before { content: counter(rn); display: block; font-weight: 600; color: var(--mark); margin-bottom: 0.6rem; }
.steps p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); hyphens: auto; }

/* ---------- § 4 Kanzlei ---------- */
.firm { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.firm .plate { aspect-ratio: 3 / 2; }
.firm__room { margin-top: clamp(2.5rem, 5vw, 4rem); padding-left: var(--margin-col); }
.firm__room img { object-position: 50% 60%; }
.faq-plate { margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq-plate img { object-position: 50% 42%; }
.team { margin-top: clamp(3rem, 6vw, 5rem); padding-left: var(--margin-col); }
.team__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1.5vw, 1.4rem); padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.team__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.team .plate { aspect-ratio: 4 / 5; }
.team img { object-position: 50% 15%; }

/* ---------- § 5 Fragen ---------- */
.faq { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); counter-reset: rn; }
.faq > div { counter-increment: rn; break-inside: avoid; position: relative; padding: 1.2rem 0 1.6rem 2.5rem; border-top: 1px solid var(--rule); }
.faq > div::before { content: counter(rn); position: absolute; left: 0; top: 1.25rem; font-weight: 600; color: var(--mark); }
.faq dt { font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 1.35vw, 1.25rem); line-height: 1.3; margin-bottom: 0.5rem; text-wrap: balance; }
.faq dd { font-size: 1rem; line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }

/* ---------- § 6 Kontakt ---------- */
.contact__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__top .plate { aspect-ratio: 3 / 2; }
.contact__phone {
  display: inline-block; font-family: var(--serif); font-weight: 500; color: var(--mark);
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.015em; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; text-decoration-color: transparent;
  transition: text-decoration-color 200ms ease;
}
.contact__phone:hover { text-decoration-color: currentColor; }
.contact__lede { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 28em; text-wrap: pretty; }
.contact .actions { margin-top: clamp(1.5rem, 2.6vw, 2rem); }
.contact__fields { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.contact__fields dt { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.contact__fields dd { font-size: 1rem; line-height: 1.55; }
.contact__fields a { color: var(--mark); text-underline-offset: 0.22em; }

/* ---------- Fuß ---------- */
.back { background: var(--blue); color: var(--on-blue); padding: clamp(2.5rem, 5vw, 3.75rem) var(--inline) clamp(1.75rem, 3vw, 2.25rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.back .wordmark__role { color: var(--on-blue-2); }
.back p { font-family: var(--sans); font-size: 0.9063rem; line-height: 1.55; color: var(--on-blue-2); max-width: 36em; margin-top: 1.1rem; }
.back nav { display: flex; gap: 1.75rem; font-family: var(--sans); font-weight: 500; font-size: 0.9688rem; }
.back nav a { text-decoration: underline; text-decoration-color: var(--on-blue-rule); text-underline-offset: 0.3em; transition: text-decoration-color 180ms ease; }
.back nav a:hover { text-decoration-color: currentColor; }
.back :focus-visible { outline-color: var(--on-blue); }
.back p.back__line { grid-column: 1 / -1; max-width: none; margin-top: 0; padding-top: 1.25rem; border-top: 1px solid var(--on-blue-rule); font-size: 0.8438rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) var(--inline) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 46em; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.018em; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); hyphens: auto; }
.legal h2 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.008em; line-height: 1.25; margin: 2.4rem 0 0.6rem; max-width: none; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.5rem; display: grid; gap: 0.25rem; }
.legal a { color: var(--mark); text-underline-offset: 0.22em; }
.todo { background: #f0dd8c; color: #141a26; padding: 0.05em 0.35em; }
figcaption .todo { margin-left: 0.6em; font-size: 0.8125rem; white-space: nowrap; }
.legal__back { margin-top: 3rem; font-family: var(--sans); font-weight: 500; }

/* ---------- Feinschliff ---------- */
.site-head { transition: box-shadow 240ms ease; }
.site-head.is-scrolled { box-shadow: 0 10px 28px -22px rgba(20, 26, 38, 0.55); }
.nav__link { position: relative; border-bottom-color: transparent !important; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Paragrafenzeichen als Wasserzeichen im Auftakt und im Fuß */
.hero, .back { position: relative; overflow: hidden; }
.hero::before, .back::before {
  content: "§"; position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--serif); font-weight: 400; line-height: 1;
}
.hero::before { left: 47%; top: 50%; transform: translateY(-52%); font-size: clamp(16rem, 32vw, 30rem); color: rgba(28, 43, 74, 0.055); }
.back::before { right: max(1rem, calc((100% - var(--max)) / 2)); top: -0.12em; font-size: clamp(11rem, 20vw, 17rem); color: rgba(244, 245, 247, 0.06); }
.cover, .back > * { position: relative; z-index: 1; }

/* Porträt mit versetztem Linienrahmen */
.cover__plate .plate { box-shadow: 14px -14px 0 -1px var(--tint), 14px -14px 0 0 var(--mark); margin-top: 14px; width: calc(100% - 14px); }

/* Leitsätze unter dem Auftakt */
.band { background: var(--blue); color: var(--on-blue); padding: 0 var(--inline); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band li { padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1rem, 2.4vw, 2.25rem); display: grid; gap: 0.3rem; border-left: 1px solid var(--on-blue-rule); }
.band li:first-child { padding-left: 0; border-left: 0; }
.band strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -0.008em; }
.band strong::before { content: "§"; margin-right: 0.5em; color: var(--on-blue-2); font-weight: 400; }
.band span { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--on-blue-2); }

/* Überschriften mit kurzem Strich */
.para h2::after { content: ""; display: block; width: 3.5rem; height: 2px; background: var(--mark); margin-top: clamp(0.9rem, 1.6vw, 1.3rem); }

/* Button mit Pfeil */
.btn::after { content: "→"; margin-left: 0.7em; transition: transform 260ms var(--ease); }
.btn:hover::after { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

/* Bilder reagieren ruhig auf den Zeiger */
.plate img { transition: transform 900ms var(--ease), filter 500ms ease; }
@media (hover: hover) and (pointer: fine) {
  .areas .rn > li:hover .plate img, .team figure:hover .plate img, .firm figure:hover .plate img, .contact__top:hover .plate img { transform: scale(1.035); filter: saturate(0.95) contrast(1); }
  .areas .rn > li { transition: background-color 300ms ease; }
  .areas .rn > li:hover { background: linear-gradient(90deg, transparent, var(--tint) 30%, var(--tint) 70%, transparent); }
  .faq > div { transition: border-color 300ms ease; }
  .faq > div:hover { border-top-color: var(--mark); }
}

/* Ablauf: Markierung auf der Linie */
.steps li { position: relative; }
.steps li::after { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--blue); }

/* Fristen: Zeile hebt sich ab */
.fristen tbody tr { transition: background-color 240ms ease; }
.fristen tbody tr:hover { background: var(--tint); }
.rechner__date { animation: datum 500ms var(--ease) both; }
@keyframes datum { from { opacity: 0; transform: translateY(6px); } }

/* Einblenden beim Scrollen und beim Laden */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.cover__copy > *, .cover__plate { animation: rise 900ms var(--ease) both; }
.cover__copy > :nth-child(2) { animation-delay: 80ms; }
.cover__copy > :nth-child(3) { animation-delay: 160ms; }
.cover__copy > :nth-child(4) { animation-delay: 240ms; }
.cover__plate { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 700px) {
  .hero::before { left: auto; right: -0.08em; top: 0.02em; transform: none; font-size: 15rem; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band li, .band li:first-child { padding: 1.1rem 0; border-left: 0; border-top: 1px solid var(--on-blue-rule); }
  .band li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover__copy > *, .cover__plate, .rechner__date { animation: none; }
  .plate img, .btn::after, .nav__link::after { transition: none; }
}
@media print { .reveal { opacity: 1; transform: none; } .hero::before, .back::before { display: none; } }

/* ---------- Anpassung ---------- */
@media (max-width: 1080px) {
  html { scroll-padding-top: 8rem; }
  .site-head { flex-wrap: wrap; min-height: 0; padding-top: 0.8rem; row-gap: 0.35rem; }
  .nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
    gap: 1.6rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { min-height: 2.75rem; }
}

@media (max-width: 860px) {
  .firm, .rechner, .contact__top { grid-template-columns: minmax(0, 1fr); }
  .rechner__out { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.25rem; min-height: 8rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .wide, .strip { aspect-ratio: 16 / 9; }
  .faq { columns: 1; }
  .contact__fields { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .back { grid-template-columns: minmax(0, 1fr); }
  .fristen tbody th { font-size: 1rem; width: 24%; }
  .fristen .frist { font-size: 1.9rem; width: 17%; }
  .fristen .norm { width: 17%; white-space: normal; font-size: 0.9063rem; line-height: 1.4; }
  .fristen th, .fristen td { padding-inline: 0.85rem; }
}

@media (max-width: 700px) {
  .topbar { display: none; }
  .site-head { column-gap: 0.75rem; }
  .head-call span { display: none; }
  .head-call::after { content: "Anrufen"; }
  /* Fristentabelle: Zeilen werden zu Blöcken */
  .fristen thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fristen, .fristen caption, .fristen tbody, .fristen tr, .fristen th, .fristen td { display: block; width: auto; }
  .fristen { border: 0; background: transparent; }
  .fristen tr { padding: 1.1rem 1.1rem 1.3rem; background: var(--bg); border: 1px solid var(--rule); margin-top: -1px; }
  .fristen th, .fristen td { border: 0; padding: 0; }
  .fristen tbody th, .fristen .norm, .fristen .frist { width: auto; }
  .fristen .frist { margin: 0.5rem 0 0.6rem; }
  .fristen .norm { margin-bottom: 0.3rem; }
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cover__plate .plate { aspect-ratio: 4 / 4.2; max-height: none; }
  .areas .rn > li { grid-template-columns: minmax(0, 1fr); }
  .areas .plate { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .wordmark__name { font-size: 1.3rem; }
  .wordmark { column-gap: 0.65rem; }
  .wordmark__mark { width: 2.7rem; height: 2.7rem; }
  .site-head { column-gap: 0.75rem; }
  .head-call { padding-inline: 0.8rem; font-size: 0.9063rem; }
  .wordmark__role { letter-spacing: 0.1em; font-size: 0.6875rem; }
  .cover h1 span { display: inline; }
  .actions { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .actions .textlink { align-self: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .team__row { grid-template-columns: 1fr 1fr; }
  .team, .firm__room { padding-left: 0; }
  .contact__phone { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}

@media print {
  .topbar, .site-head .nav, .head-call, .skip { display: none; }
  .site-head { position: static; }
  .sec { break-inside: avoid; }
}

@media (max-width: 480px) {
  .head-call { padding-inline: 0; width: 2.75rem; justify-content: center; }
  .head-call::after { content: none; }
}
