/* ==========================================================
   Kanzlei 37 – Stylesheet
   Schriften: Bitte lokal einbinden (DSGVO, keine Google-Server).
   Dateien z. B. über https://gwfh.mranftl.com/fonts herunterladen
   und in /fonts ablegen. Ohne Dateien greifen die Fallbacks.
   ========================================================== */

@font-face { font-family: "Roboto Condensed"; font-weight: 300; font-display: swap;
  src: url("../fonts/roboto-condensed-v31-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-condensed-v31-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap;
  src: url("../fonts/roboto-condensed-v31-latin-700.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap;
  src: url("../fonts/pt-serif-v19-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/pt-serif-v19-latin-italic.woff2") format("woff2"); }

:root {
  /* Farben der Rechtsgebiete */
  --verkehr: #4f8586;   /* Petrol */
  --arbeit:  #7f2150;   /* Beere  */
  --notar:   #84935a;   /* Oliv   */
  --wirt:    #776d68;   /* Taupe  */

  --ink: #2b2b2e;
  --muted: #6b6b70;
  --line: #d9d6d2;
  --paper: #ffffff;
  --paper-2: #f5f3f0;
  --accent: var(--arbeit);

  --sans: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; max-width: none; padding: 0 40px; }
.site-header.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }

.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; transition: color .3s; }
.is-solid .logo { color: var(--ink); }
/* „37“ steht direkt hinter „Kanzlei“, gleiche Zeile und Schrift */
.logo__num { margin-left: .35em; letter-spacing: 1px; }
.logo__name { font-weight: 300; font-size: 26px; letter-spacing: 5px; line-height: 1; text-transform: uppercase; }
.logo__sub { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .6px; text-transform: none; margin-top: 6px; opacity: .9; }
.is-solid .logo__num { color: var(--accent); }
.logo__mark { display: block; height: 58px; width: auto; margin-right: 4px; }

.menu-btn {
  font: 400 15px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: transparent; border: 1.5px solid currentColor;
  padding: 11px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  transition: color .3s, background .2s;
}
.is-solid .menu-btn { color: var(--ink); }
.menu-btn:hover { background: rgba(255,255,255,.12); }
.is-solid .menu-btn:hover { background: var(--paper-2); }
.menu-btn__icon { width: 16px; height: 12px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after, .menu-btn__icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.menu-btn__icon::before { top: 0; } .menu-btn__icon span { top: 5px; } .menu-btn__icon::after { bottom: 0; }

.header-call { display: none; color: inherit; text-decoration: none; margin-right: 22px; font-size: 16px; letter-spacing: .5px; }
.header-call span { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; margin-right: 4px; }
.hero__phones { margin: 34px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; font-size: 17px; }
.hero__phones a { color: rgba(255,255,255,.85); text-decoration: none; letter-spacing: .5px; }
.hero__phones a:hover { color: #fff; }
.hero__phones span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-right: 6px; }
.hero__phones.hero__in { animation-delay: .9s; }
@media (min-width: 900px) {
  .header-actions { display: flex; align-items: center; }
  .header-call { display: inline; color: #fff; }
  .is-solid .header-call { color: var(--ink); }
  .hero__phones { display: none; }
}

/* ---------- Vollbild-Menü ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--arbeit);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 40px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay__close { position: absolute; top: 22px; right: 40px; }
.nav-overlay ul { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 760px; }
.nav-overlay li { border-bottom: 1px solid rgba(255,255,255,.25); }
.nav-overlay a {
  display: block; padding: 14px 0; text-decoration: none;
  font-weight: 300; font-size: clamp(28px, 5vw, 46px); letter-spacing: 1px; text-transform: uppercase;
  transition: padding-left .25s, color .25s;
}
.nav-overlay a:hover, .nav-overlay a:focus-visible { padding-left: 16px; }
.nav-overlay a em { font-style: italic; font-family: var(--serif); text-transform: none; font-size: .7em; opacity: .75; margin-left: 10px; }
.nav-overlay__meta { max-width: 760px; margin: 36px auto 0; width: 100%; font-size: 16px; opacity: .85; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.nav-overlay__meta a { font-size: inherit; text-transform: none; padding: 0; display: inline; letter-spacing: 0; }

/* ---------- Punkt-Navigation (links) ---------- */
.dots { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
.dots a { display: block; width: 10px; height: 10px; border-radius: 50%; margin: 18px 0; background: #b9cfd6; position: relative; transition: transform .2s, background .2s; }
.dots a.is-active { background: #b7c47e; transform: scale(1.25); }
.dots a span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 3px 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
@media (min-width: 1100px) { .dots { display: block; } }

/* ---------- Hero (gezeichneter Schriftzug) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,212,143,.16), transparent),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(161,58,108,.45), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(79,133,134,.25), transparent),
    #1c0a14;
}
.hero__inner { position: relative; z-index: 2; width: 100%; text-align: center; padding: calc(var(--header-h) + 20px) 24px 120px; }
.hero__eyebrow {
  margin: 0 0 28px; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.hero__brand {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; line-height: 1;
  font-size: clamp(64px, 14vw, 200px);
  color: transparent; -webkit-text-stroke: 1.5px #fff; /* Kontur auch ohne JS */
}
.hero__draw { display: none; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; overflow: visible; }
.hero--drawing .hero__brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero--drawing .hero__draw { display: block; visibility: hidden; }
.hero--draw-ready .hero__draw { visibility: visible; }
.hero__headline {
  margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(46px, 9vw, 124px);
}
.hero__headline.hero__in { animation: hero-in-scale .9s .12s cubic-bezier(.22,1,.36,1) both; }
.hero .hl { --hl: #fff; }
.hero .hl__fill { color: #1c0a14; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero__lead { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 20px); margin: 30px auto 0; max-width: 620px; color: rgba(255,255,255,.72); }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Einblenden wie im Original (motion) */
.hero__in { animation: hero-in .8s cubic-bezier(.22,1,.36,1) both; }
.hero__eyebrow.hero__in { animation-delay: 0s; }
.hero__brand.hero__in, .hero__draw { animation: hero-in-scale .9s .12s cubic-bezier(.22,1,.36,1) both; }
.hero__lead.hero__in { animation-delay: .55s; }
.hero__cta.hero__in { animation-delay: .75s; }
.scroll-hint.hero__in { animation: hero-fade .6s 1.1s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-in-scale { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45); text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .28em;
  transition: color .2s;
}
.scroll-hint:hover { color: rgba(255,255,255,.8); }
.scroll-hint__line { display: block; width: 1px; height: 34px; transform-origin: top;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0%,100% { transform: scaleY(1); opacity: .6; } 50% { transform: scaleY(.55); opacity: .2; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 16px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  padding: 16px 24px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: #fff; color: var(--arbeit); border-color: #fff; }
.btn--solid:hover { background: transparent; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--arbeit); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Sektionen ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--paper-2); }
.title {
  font-weight: 300; text-transform: uppercase; text-align: center; margin: 0 auto 28px;
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.15; letter-spacing: .5px; max-width: 880px;
}
.title--rule { border-top: 2px solid var(--ink); padding-top: 34px; max-width: none; }
.lead { text-align: center; max-width: 760px; margin: 0 auto; font-size: 19px; }
.eyebrow { display: block; font-family: var(--serif); font-style: italic; text-transform: none; font-size: 20px; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }

/* Kanzlei-Fakten */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 64px 0 0; border-top: 1px solid var(--line); }
.fact { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__big { font-weight: 300; font-size: 54px; line-height: 1; color: var(--accent); }
.fact__txt { font-family: var(--serif); color: var(--muted); margin-top: 10px; font-size: 16px; }

/* Team */
.team { margin-top: 72px; scroll-margin-top: calc(var(--header-h) + 20px); }
.team__title { text-align: center; font-weight: 300; text-transform: uppercase; letter-spacing: 1px; font-size: 26px; margin: 0 0 28px; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; }
.person { padding: 24px 0 28px; border-top: 2px solid var(--ink); }
.person__name { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.person__role { display: block; margin-top: 4px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.person__fa { list-style: none; padding: 0; margin: 14px 0 0; }
.person__fa li { padding: 6px 0 6px 18px; position: relative; font-size: 17px; }
.person__fa li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--accent); }
.person__link { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.person__link a { color: var(--ink); }
@media (max-width: 760px) {
  .team__grid { grid-template-columns: 1fr; }
  .person { border-top-width: 1px; border-top-color: var(--line); }
  .person:first-child { border-top: 2px solid var(--ink); }
}

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 280px; padding: 40px 24px; text-align: center; color: #fff; text-decoration: none; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.14); opacity: 0; transition: opacity .3s; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile h3 { position: relative; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); }
.tile p { position: relative; margin: 12px 0 0; max-width: 360px; font-size: 16px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.tile:hover p, .tile:focus-visible p { opacity: .95; transform: none; }
.tile__more { position: relative; margin-top: 18px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.tile--verkehr { background: var(--verkehr); }
.tile--arbeit  { background: var(--arbeit); }
.tile--notar   { background: var(--notar); }
.tile--wirt    { background: var(--wirt); }
@media (hover: none) { .tile p { opacity: .95; transform: none; } }

/* ---------- Rechtsgebiet-Detail ---------- */
.area { padding: 100px 0; border-top: 1px solid var(--line); }
.area__head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.area__label { display: inline-block; width: 44px; height: 4px; margin-bottom: 18px; }
.area h2 { margin: 0; font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: .5px; }
.area__intro { font-family: var(--serif); font-size: 19px; margin: 0; }
.area__intro + p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.area__fa { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid currentColor; font-size: 16px; letter-spacing: .3px; }
.area--arbeit .area__fa { color: var(--arbeit); }
.area--verkehr .area__fa { color: var(--verkehr); }
.topics { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topics li { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topics strong { display: block; font-weight: 400; font-size: 19px; letter-spacing: .3px; }
.topics span { display: block; font-size: 15.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.area__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.area__note { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; }
.area--verkehr .area__label { background: var(--verkehr); } .area--verkehr h2 { color: var(--verkehr); }
.area--arbeit  .area__label { background: var(--arbeit); }  .area--arbeit  h2 { color: var(--arbeit); }
.area--notar   .area__label { background: var(--notar); }   .area--notar   h2 { color: #6c7a45; }
.area--wirt    .area__label { background: var(--wirt); }    .area--wirt    h2 { color: var(--wirt); }

/* Hinweisband (Fristen) */
.notice { margin-top: 28px; padding: 16px 20px; border-left: 4px solid var(--arbeit); background: #f8eef3; font-size: 16px; }

/* ---------- Online-Mandat ---------- */
.mandat { background: var(--verkehr); color: #fff; }
.mandat .title { color: #fff; }
.mandat .lead { color: rgba(255,255,255,.92); }
.steps { list-style: none; padding: 0; margin: 56px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.3); counter-increment: s; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s); display: block; font-weight: 300; font-size: 56px; line-height: 1; margin-bottom: 12px; color: #d6e3c0; }
.steps strong { display: block; font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.steps span { display: block; font-family: var(--serif); font-size: 16px; opacity: .9; margin-top: 6px; }

.mandat__frame { background: #fff; color: var(--ink); min-height: 220px; }
.mandat__frame iframe { display: block; width: 100%; height: 1100px; border: 0; }
.mandat__fallback { padding: 48px 32px; text-align: center; }
.mandat__fallback p { max-width: 620px; margin: 0 auto 26px; color: var(--muted); }
.mandat__small { margin-top: 18px; font-size: 14.5px; opacity: .85; text-align: center; }
.mandat__small a { color: #fff; }

/* ---------- Kontakt / Standorte ---------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border-top: 2px solid var(--ink); }
.loc { padding: 40px 36px 40px 0; }
.loc + .loc { padding: 40px 0 40px 36px; border-left: 1px solid var(--line); }
.loc h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.loc__role { text-transform: uppercase; letter-spacing: 1px; font-size: 14px; color: var(--muted); }
.loc address { font-style: normal; margin: 18px 0; }
.loc dl { display: grid; grid-template-columns: 80px 1fr; gap: 2px 12px; margin: 0 0 22px; font-size: 17px; }
.loc dt { color: var(--muted); }
.loc dd { margin: 0; }
.loc a { text-decoration: none; border-bottom: 1px solid var(--line); }
.loc a:hover { border-color: var(--ink); }
.hours { margin-top: 48px; text-align: center; font-family: var(--serif); color: var(--muted); }
.hours strong { font-family: var(--sans); font-weight: 400; color: var(--ink); text-transform: uppercase; letter-spacing: 1px; margin-right: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfd2; padding: 56px 0 40px; font-size: 15.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.site-footer .logo { color: #fff; }
.site-footer .logo__num { color: #fff; }
.site-footer nav a { margin-left: 22px; text-decoration: none; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: #fff; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-head { background: var(--arbeit); color: #fff; padding: calc(var(--header-h) + 80px) 0 70px; }
.page-head h1 { margin: 0; font-weight: 300; text-transform: uppercase; font-size: clamp(38px, 6vw, 72px); letter-spacing: 1px; }
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 21px; margin: 44px 0 10px; }
.legal p, .legal address { margin: 0 0 14px; font-style: normal; }
.legal ul { padding-left: 20px; }
.legal h3 { font-weight: 400; font-size: 18px; margin: 26px 0 8px; }
.legal ul li { margin-bottom: 6px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 48px; }
.legal__toc a { padding: 10px 16px; border: 1.5px solid var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.legal__toc a:hover { background: var(--ink); color: #fff; }
.legal__part { scroll-margin-top: var(--header-h); }
.legal__part + .legal__part { margin-top: 80px; padding-top: 40px; border-top: 2px solid var(--ink); }
.legal h2.legal__parttitle { font-weight: 300; font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 24px; }
.placeholder { border: 2px dashed var(--arbeit); background: #f8eef3; padding: 20px 24px; margin: 24px 0; }

/* ---------- Text-Hervorhebung (Portierung von tactile-highlight.tsx) ----------
   Markup: <mark class="hl" data-dir="left|right|top|bottom" style="--hl-delay:.2s">Text</mark>
   Ein Farbblock mit weißer Textkopie wird per clip-path aufgezogen, sobald die
   Stelle ins Bild scrollt (und beim Herausscrollen wieder zurückgesetzt). */
.hl {
  --hl: var(--ink);
  position: relative; display: inline-block; white-space: nowrap; cursor: default;
  padding: 0 .15em; margin: 0 -.15em; background: none; color: inherit;
}
.hl__fill {
  position: absolute; inset: 0; padding: 0 .15em; white-space: nowrap;
  background: var(--hl); color: #fff;
  clip-path: inset(0 100% 0 0 round 12px);
  transition:
    clip-path .75s cubic-bezier(.22,1,.36,1) var(--hl-delay, .1s),
    transform .35s cubic-bezier(.34,1.56,.64,1);
}
.hl[data-dir="right"] .hl__fill  { clip-path: inset(0 0 0 100% round 12px); }
.hl[data-dir="top"] .hl__fill    { clip-path: inset(0 0 100% 0 round 12px); }
.hl[data-dir="bottom"] .hl__fill { clip-path: inset(100% 0 0 0 round 12px); }
.hl.is-on .hl__fill { clip-path: inset(0 0 0 0 round 4px); }
.hl.is-on:hover .hl__fill { transform: scale(1.05) rotate(-1.5deg); transition-delay: 0s; }
.hl.is-on[data-dir="right"]:hover .hl__fill { transform: scale(1.05) rotate(1.5deg); }
.hl.is-on[data-dir="top"]:hover .hl__fill,
.hl.is-on[data-dir="bottom"]:hover .hl__fill { transform: scale(1.05); }
.area--arbeit .hl  { --hl: var(--arbeit); }
.area--wirt .hl    { --hl: var(--wirt); }
.area--verkehr .hl { --hl: var(--verkehr); }
.area--notar .hl   { --hl: #6c7a45; }

/* ---------- Fragebögen (frageboegen.html) ---------- */
.page-head--notar { background: #4d5a2c; }
.page-head .eyebrow { color: rgba(255,255,255,.7); }
.page-head__lead { font-family: var(--serif); font-size: 19px; max-width: 640px; margin: 18px 0 0; opacity: .9; }

.fb-list { padding: 56px 0 0; }
.fb-list__hint { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; color: var(--muted); }
.fb-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
/* Gruppen nach Rechtsgebiet – Farbe je Gruppe über --tone */
.fb-group { --tone: var(--notar); margin: 0 0 36px; }
.fb-group--immo { --tone: #3f6f70; }
.fb-group--erb  { --tone: var(--arbeit); }
.fb-group--fam  { --tone: #6c7a45; }
.fb-group--ges  { --tone: #3d5a7a; }
.fb-group--begl { --tone: #6e645f; }
.fb-group__title {
  margin: 0 0 14px; padding-left: 14px; border-left: 5px solid var(--tone);
  font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--ink);
}
body.fb-open .fb-group { margin-bottom: 20px; }
body.fb-open .fb-group__title { font-size: 18px; margin-bottom: 10px; }
.fb-card.is-active { filter: brightness(.78); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); }
.fb-card.is-active .fb-card__more { visibility: hidden; }
body.fb-open .fb-list { padding-top: 32px; }
body.fb-open .fb-card { padding: 16px 20px; }
body.fb-open .fb-card > span:not(.fb-card__tag) { display: none; }
body.fb-open .fb-card strong { font-size: 20px; }
body.fb-open .fb-list__hint { font-size: 16px; }
.fb-card {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 24px; text-decoration: none;
  color: #fff; background: var(--tone, var(--notar)); transition: transform .2s, box-shadow .2s;
}
.fb-card:hover, .fb-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.fb-card__tag { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.fb-card strong { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.fb-card span { font-size: 16px; line-height: 1.5; }
.fb-card__more { margin-top: 10px; align-self: flex-start; font-size: 14px !important; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); }

.fb { padding: 64px 0 100px; scroll-margin-top: var(--header-h); }
.fb .wrap { max-width: 960px; }
.fb__title { border-top: 2px solid var(--ink); padding-top: 30px; margin-bottom: 28px; }
.fb__title h2 { margin: 0; font-weight: 300; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.fb__bar { background: var(--paper-2); padding: 22px 24px; margin-bottom: 40px; }
.fb__bar p { margin: 0 0 16px; font-size: 16.5px; }
.fb__bar--end { margin: 48px 0 0; }
.fb__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fb__sec { margin-bottom: 52px; }
.fb__sec h2 { font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 22px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fb__sec h2 span { color: #6c7a45; margin-right: 6px; }
.fb__sec h3 { font-weight: 400; font-size: 18px; margin: 28px 0 8px; letter-spacing: .3px; }
.fb__note { color: var(--muted); font-size: 16px; }
.fb__hints { padding-left: 20px; font-size: 16.5px; }
.fb__hints li { margin-bottom: 6px; }

.fb__table { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 16px; table-layout: fixed; }
.fb__table th, .fb__table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: middle; }
.fb__table thead th { background: var(--paper-2); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 14px; }
.fb__table tbody th, .fb__table--2 th { font-weight: 400; width: 38%; color: var(--ink); }
.fb__table--3 tbody th { width: 34%; }
.fb__table small { display: block; color: var(--muted); font-size: 13px; }
.fb__table--sign th:first-child { width: 18%; }
.fb__signcell { height: 52px; }

.fb input[type="text"], .fb input[type="email"], .fb input[type="tel"], .fb textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 0; border-bottom: 1px solid #b9b5b0; padding: 6px 2px; border-radius: 0; resize: vertical;
}
.fb input:focus, .fb textarea:focus { outline: none; border-bottom: 2px solid #6c7a45; background: #f7f8f1; }
.fb__checks { list-style: none; padding: 0; margin: 0; }
.fb__checks li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16.5px; line-height: 1.5; }
.fb__checks label { cursor: pointer; }
.fb__checks input[type="checkbox"], .fb__radio input { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: #6c7a45; }
.fb .fb__inline { width: auto; min-width: 220px; max-width: calc(100% - 26px); display: inline-block; margin-left: 26px; }
.fb .fb__inline--s { min-width: 110px; width: 130px; margin-left: 4px; }
.fb .fb__inline--block { display: block; width: calc(100% - 26px); margin-top: 6px; }
.fb__sub { display: block; margin: 6px 0 0 26px; color: var(--muted); }
.fb__radio { margin-right: 14px; white-space: nowrap; }
/* Bedingte Fragen */
.fb [hidden] { display: none !important; }
.fb__table--one th:nth-child(3), .fb__table--one td:nth-of-type(2) { display: none !important; }
.fb__checks li.has-box:not(.is-checked) > .fb__inline,
.fb__checks li.has-box:not(.is-checked) > .fb__sub { display: none !important; }
.fb__checks li.fb__follow { padding-left: 26px; border-left: 2px solid #c9d0b4; margin-left: 8px; animation: fb-in .25s ease; }
.fb__checks li.has-box.is-checked > .fb__inline, .fb__checks li.has-box.is-checked > .fb__sub { animation: fb-in .25s ease; }
@keyframes fb-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fb__ask { margin: 6px 0 14px; padding: 12px 14px; background: var(--paper-2); font-size: 16.5px; }
.fb__ask .fb__radio { margin-left: 14px; white-space: normal; display: inline-block; }
@media (max-width: 640px) {
  .fb__ask .fb__radio { display: block; margin: 8px 0 0; }
}
.fb__sec h3.fb__first { margin-top: 6px; }
.fb__send-title { font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 22px; margin: 0 0 10px; }
.fb__consent { display: block; margin: 0 0 20px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.fb__consent input { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: #6c7a45; }
.fb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb__status { margin: 18px 0 0 !important; font-size: 16px; }
.fb__status:empty { display: none; }
.fb__status--ok    { padding: 14px 16px; background: #eef2e2; border-left: 4px solid #6c7a45; }
.fb__status--error { padding: 14px 16px; background: #f8eef3; border-left: 4px solid var(--arbeit); }
.fb__status--warn  { padding: 14px 16px; background: #fbf5e6; border-left: 4px solid #c9a227; }
.fb__checks--cols { columns: 2; column-gap: 32px; }
.fb__checks--cols li { break-inside: avoid; }

@media (max-width: 640px) {
  .fb__table--3, .fb__table--3 thead, .fb__table--3 tbody, .fb__table--3 tr { display: block; }
  .fb__table--3 thead { display: none; }
  .fb__table--3 tr { border: 1px solid var(--line); margin-bottom: 10px; padding: 8px 10px; }
  .fb__table--3 th, .fb__table--3 td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .fb__table--3 td::before { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .fb__table--3 td:nth-of-type(1)::before { content: attr(data-col1); }
  .fb__table--3 td:nth-of-type(2)::before { content: attr(data-col2); }
  .fb__table--2 th, .fb__table--2 td { display: block; width: auto; border: 0; padding: 4px 0; }
  .fb__table--2 tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .fb__checks--cols { columns: 1; }
  .fb .fb__inline { display: block; width: calc(100% - 26px); min-width: 0; }
  .fb .fb__inline--s { display: inline-block; width: 110px; margin-left: 4px; }
}

@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; color: #000; }
  .site-header, .site-footer, .dots, .nav-overlay, .fb__noprint { display: none !important; }
  .fb { padding: 0; }
  .fb .wrap { max-width: none; padding: 0; }
  .fb__title { border-top: 0; padding-top: 0; }
  .fb__sec { margin-bottom: 18pt; }
  .fb__sec h2 { break-after: avoid; }
  .fb__table, .fb__checks li { break-inside: avoid; }
  .fb input, .fb textarea { border-bottom: 1px solid #555 !important; background: none !important; }
  .fb textarea { resize: none; }
}

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__in, .hero__draw, .scroll-hint__line { animation: none !important; }
  .hl__fill { transition: none; clip-path: inset(0 0 0 0 round 4px) !important; }
  .hl:hover .hl__fill { transform: none !important; }
}

:focus-visible { outline: 2px solid #c9d48f; outline-offset: 3px; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .site-header .wrap { padding: 0 20px; }
  .area__head { grid-template-columns: 1fr; gap: 20px; }
  .topics { grid-template-columns: 1fr 1fr; }
  .locations { grid-template-columns: 1fr; }
  .loc, .loc + .loc { padding: 32px 0; border-left: 0; }
  .loc + .loc { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 17px; }
  .logo__mark { height: 36px; margin-right: 0; }
  .logo { gap: 8px; }
  .logo__sub { font-size: 11px; letter-spacing: .2px; white-space: nowrap; margin-top: 4px; }
  .logo__name { font-size: 19px; letter-spacing: 3.5px; }
  .logo__sub { font-size: 12.5px; }
  .menu-btn { padding: 10px 12px; }
  .menu-btn__txt, .hide-sm { display: none; }
  .nav-overlay { padding: 24px 20px; }
  .nav-overlay__close { right: 20px; }
  .nav-overlay a em { display: none; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .24em; }
  .hero__cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero__cta .btn { justify-content: center; }
  .section, .area { padding: 76px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
  .topics { grid-template-columns: 1fr; }
  .facts, .steps { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { gap: 32px; }
  .steps li { border-right: 0; }
  .mandat__frame iframe { height: 1300px; }
  .site-footer nav a { margin: 0 18px 0 0; }
}
