/* ==========================================================================
   Kocher & Bucher Rechtsanwälte — Quiet Luxury
   ========================================================================== */

:root {
  /* Palette */
  /* Kocher & Bucher house colours: logo anthracite, brand gold, light orange bands */
  --ivory: #F7F6F3;
  --paper: #FFFFFF;
  --sand: #ECECEC;
  --line: #DEDEDC;
  --ink: #3C3C3B;
  --ink-deep: #2A2A29;
  --text: #3C3C3B;
  --text-soft: #575756;
  --brass: #C9952F;
  --brass-text: #906400;   /* small gold text: WCAG AA (4.5:1) on every background */
  --brass-light: #F3BA37; /* Kocher & Bucher brand gold */
  --on-dark: #FFFFFF;
  --on-dark-soft: #C9C9C7;
  --sun: #FDF0D8;           /* light orange for the "Warum" band and footer */
  --sun-line: rgba(176, 125, 16, .22);
  --error: #A3281F;
  --ring: #B07D3A;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(88px, 12vw, 168px);
  --radius: 4px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.06; }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); line-height: 1.2; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--brass-text); }
p { text-wrap: pretty; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 18px; border-radius: var(--radius);
  text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
}
.eyebrow-light { color: var(--brass-light); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ""; width: 36px; height: 1px; background: currentColor; }

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-intro {
  margin-top: 24px; font-size: 1.125rem; color: var(--text-soft); max-width: 60ch;
}
.section-head-center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med), transform var(--t-med) var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.btn-primary { --bg: var(--ink); --fg: var(--on-dark); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brass-text);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 520ms var(--ease-out);
}
.btn-ghost { border-color: var(--line); }
.btn-light { --bg: var(--brass-light); --fg: var(--ink-deep); margin-top: 40px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn-block { width: 100%; }

@media (any-hover: hover) {
  .btn-primary:hover::before { transform: translateY(0); }
  .btn:hover .i { transform: translateX(4px); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-light:hover { --bg: var(--on-dark); }
}
.btn:active { transform: scale(.98); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background var(--t-med), box-shadow var(--t-med), height var(--t-med) var(--ease-out);
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header.is-scrolled { background: rgba(247, 243, 236, .92); }
}
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brass); transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--brass-light);
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .02em; line-height: 1; padding-bottom: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.brand-sub { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }

.nav ul { display: flex; gap: clamp(16px, 1.9vw, 32px); }
.nav a {
  position: relative; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--text);
  padding-block: 10px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px;
  font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone .i { color: var(--brass-text); }
@media (any-hover: hover) { .header-phone:hover { color: var(--brass-text); } }
@media (max-width: 1520px) { .header-phone { display: none; } }
.brand-name, .nav a { white-space: nowrap; }

.lang-switch {
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 2px;
}
.lang-switch button {
  min-width: 40px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 1px; background: transparent; cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 2px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: 2rem; color: var(--ink); text-decoration: none;
  transform: translateY(100%); transition: transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.mobile-menu.is-open a:not(.btn) { transform: none; }

.mobile-menu-actions { display: grid; gap: 12px; }

@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: .875rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }
}

/* ---------- Hero ---------- */
/* Centred stage: headline on top, landmark in the middle, copy and figures either side */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  background:
    radial-gradient(900px 520px at 50% 92%, rgba(217, 168, 91, .24), transparent 65%),
    var(--ivory);
  text-align: center;
}
.hero-watermark {
  position: absolute; left: 50%; top: 58%; translate: -50% -50%;
  font-family: var(--serif); font-weight: 600; font-size: clamp(8rem, 30vw, 30rem);
  line-height: .8; letter-spacing: .02em; white-space: nowrap;
  color: rgba(42, 42, 41, .05);
  pointer-events: none; user-select: none;
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
}
.hero-title strong { font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; }
.pill {
  display: inline-block; padding: 0 .32em .05em;
  border: 1px solid var(--brass); border-radius: 999px;
  font-style: italic; color: var(--brass-text); line-height: 1;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px) minmax(0, 1fr);
  grid-template-areas: "left art right";
  gap: clamp(24px, 3vw, 48px); align-items: end;
  margin-top: clamp(20px, 3vw, 40px);
}
.hero-side { padding-bottom: clamp(48px, 7vw, 104px); }
.hero-side-left { grid-area: left; text-align: left; }
.hero-side-right { grid-area: right; text-align: right; }
.lead { font-size: clamp(1.0625rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--text-soft); max-width: 38ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats { display: flex; justify-content: flex-end; gap: clamp(20px, 2.6vw, 40px); }
.hero-stats li { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1; color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label { font-size: .8125rem; line-height: 1.35; color: var(--text-soft); max-width: 13ch; }
.hero-trust {
  display: grid; justify-items: end; gap: 10px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--text-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .i { color: var(--brass-text); }

.hero-art { grid-area: art; position: relative; width: 100%; }
/* White studio backdrop melts into the cream page via multiply; edges fade out */
/* The studio backdrop is light grey with a vignette; lifting it to white lets
   multiply dissolve it into the cream page, and the masks soften top and sides */
.hero-photo {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;
  /* contrast after brightness: light grey goes white, dark suit cloth stays dark */
  filter: brightness(1.1) contrast(1.14);
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 12%);
  mask-composite: intersect;
}
.uhrturm { width: 100%; height: auto; overflow: visible; }
.uhrturm .sun { fill: rgba(217, 168, 91, .38); }
.uhrturm .draw-group > * {
  stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.coords {
  display: none;
  position: absolute; left: 0; bottom: 4%;
  font-size: .6875rem; letter-spacing: .2em; color: var(--text-soft);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.float-card {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  width: max-content; max-width: 280px; padding: 16px 18px;
  margin: 0 0 32px auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(42, 42, 41, .3);
  font-size: .8125rem; line-height: 1.45; color: var(--text-soft);
}
a.float-card { color: inherit; text-decoration: none; transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
@media (any-hover: hover) { a.float-card:hover { border-color: var(--brass); } }
.float-card strong { display: block; color: var(--text-soft); font-size: .8125rem; font-weight: 500; margin-bottom: 2px; }
.float-card-phone { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.float-card .dot {
  flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%;
  background: #4C8B5A; box-shadow: 0 0 0 4px rgba(76, 139, 90, .18);
}

@media (max-width: 1080px) {
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "art";
    gap: 40px; margin-top: 28px;
  }
  .hero-side { padding-bottom: 0; }
  .hero-side-left, .hero-side-right { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-trust { justify-items: center; max-width: 520px; margin-inline: auto; }
  .hero-art { justify-self: center; max-width: 520px; }
  .float-card { margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 16px; }
  .hero-stats li { align-items: center; text-align: center; }
  .stat-label { max-width: 11ch; }
  .hero-art { max-width: 100%; }
  .hero-watermark { top: 74%; }
}

/* ---------- Band (dark marquee under the hero) ---------- */
.band { background: var(--ink); color: var(--on-dark-soft); overflow: hidden; }
.band-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-group { display: flex; align-items: center; flex-shrink: 0; }
.band-group li {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3vw, 34px) 0 clamp(22px, 3vw, 34px) clamp(28px, 4vw, 56px);
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); white-space: nowrap;
}
.band-group li::after {
  content: ""; width: 7px; height: 7px; background: var(--brass-light); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  padding: clamp(32px, 3.6vw, 48px) clamp(20px, 2.6vw, 40px) clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background var(--t-med) var(--ease-out);
}
.service:nth-child(3n) { border-right: 0; }
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.service-no {
  position: absolute; top: clamp(32px, 3.6vw, 48px); right: clamp(20px, 2.6vw, 40px);
  font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--brass-text);
}
.service-icon { width: 36px; height: 36px; color: var(--ink); stroke-width: 1.2; margin-bottom: 36px; transition: color var(--t-med), transform var(--t-med) var(--ease-out); }
.service h3 { margin-bottom: 14px; }
.service p { color: var(--text-soft); font-size: 1rem; }
@media (any-hover: hover) {
  .service:hover { background: var(--paper); }
  .service:hover::before { transform: scaleX(1); }
  .service:hover .service-icon { color: var(--brass-text); transform: translateY(-4px); }
}
/* Hover grow uses the separate `scale` property so it never fights the reveal's
   transform transition (and its stagger delay) */
.js .service-grid .service,
.service-grid .service {
  transition:
    opacity 1000ms var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 1000ms var(--ease-out) calc(var(--i, 0) * 90ms),
    scale 450ms var(--ease-out),
    box-shadow 450ms var(--ease-out),
    background var(--t-med) var(--ease-out);
}
@media (any-hover: hover) {
  .service-grid .service:hover {
    z-index: 1; scale: 1.05;
    box-shadow: 0 30px 60px -28px rgba(42, 42, 41, .35), 0 0 0 1px var(--line);
  }
}
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; padding-inline: 0; }
  .service-no { right: 0; }
}

/* ---------- Employers (dark) ---------- */
.employers {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(176, 141, 87, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 255, 255, .05), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.employers h2 { color: var(--on-dark); }
.employers h2 em { color: var(--brass-light); }
.employers .section-intro { color: var(--on-dark-soft); }
.employers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: center; }
.check-list { display: grid; gap: 0; }
.check-list li {
  display: flex; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid rgba(244, 239, 230, .14);
}
.check-list li:first-child { border-top: 1px solid rgba(244, 239, 230, .14); }
.check-list .i {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  border: 1px solid rgba(210, 180, 126, .5); color: var(--brass-light); stroke-width: 2;
}
.check-list strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.check-list span { color: var(--on-dark-soft); font-size: .9375rem; }
@media (max-width: 900px) { .employers-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps {
  --p: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  counter-reset: step;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
}
.steps::before { background: var(--line); }
.steps::after { background: var(--brass); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; padding-top: 48px; }
.step-dot {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--line);
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.step.is-active .step-dot { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 6px rgba(176, 141, 87, .18); }
.step-no { display: block; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--brass-text); margin-bottom: 10px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-soft); font-size: 1rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p)); }
  .step { padding-top: 0; }
  .step-dot { left: -40px; top: 6px; }
}

/* ---------- About ---------- */
.about { background: var(--paper); border-block: 1px solid var(--line); }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-intro .section-head { margin-bottom: 0; }
.about-copy > * + * { margin-top: 20px; }
.about-copy > p { color: var(--text-soft); }

.team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
}
.lawyer-photo {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius);
  background: var(--sand);
}
.lawyer-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform 1200ms var(--ease-out);
}
.lawyer-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 30, 29, .62), transparent 38%);
}
.lawyer-vname {
  position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(18px, 2.4vw, 32px); z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .03em; color: #fff;
}
@media (any-hover: hover) { .lawyer:hover .lawyer-photo img { transform: scale(1.04); } }
/* Whole photo grows on hover; `scale` keeps it independent of the clip-path reveal */
.js .team-grid .lawyer .lawyer-photo,
.team-grid .lawyer .lawyer-photo {
  transition:
    clip-path 1400ms var(--ease-out) calc(var(--i, 0) * 160ms),
    scale 500ms var(--ease-out),
    box-shadow 500ms var(--ease-out);
}
@media (any-hover: hover) {
  .team-grid .lawyer:hover .lawyer-photo {
    z-index: 1; scale: 1.05;
    box-shadow: 0 34px 70px -30px rgba(42, 42, 41, .5);
  }
}
.lawyer-body { padding-top: 28px; }
.lawyer-body h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.lawyer-meta { margin: 6px 0 22px; font-size: .875rem; color: var(--text-soft); }
.quote {
  position: relative; padding-left: 24px; border-left: 2px solid var(--brass);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--ink);
}
.credentials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px;
  margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line);
}
.credentials li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: .9375rem; }
.credentials li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--brass); }
@media (max-width: 900px) {
  .about-intro, .team-grid, .credentials { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  margin: 0; padding: clamp(28px, 3vw, 40px); padding-top: clamp(56px, 5vw, 72px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.review::before {
  content: "\201C"; position: absolute; top: 4px; left: clamp(22px, 2.6vw, 34px);
  font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--brass);
}
.review blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink); }
.review figcaption { font-size: .875rem; font-weight: 600; color: var(--ink); }
.review figcaption span { font-weight: 400; color: var(--text-soft); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Fees ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.fee {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(32px, 3.6vw, 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.fee h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.fee-price { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4rem); line-height: 1; color: var(--ink); margin-top: 24px; }
.fee-price-text { font-size: clamp(2.25rem, 3.6vw, 2.75rem); }
.fee-cur { font-size: .5em; vertical-align: .6em; margin-right: 4px; color: var(--brass-text); }
.fee-note { font-size: .8125rem; color: var(--text-soft); margin-top: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.fee > p:last-child { color: var(--text-soft); font-size: .9375rem; }
.fee-featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.fee-featured h3, .fee-featured .fee-price { color: var(--on-dark); }
.fee-featured .fee-note, .fee-featured > p:last-child { color: var(--on-dark-soft); }
.fee-featured .fee-note { border-color: rgba(244, 239, 230, .16); }
.fee-badge {
  position: absolute; top: -13px; left: clamp(32px, 3.6vw, 48px);
  padding: 4px 12px; border-radius: 999px; background: var(--brass-light); color: var(--ink-deep);
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
@media (any-hover: hover) {
  .fee:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(42, 42, 41, .32); }
}
@media (max-width: 900px) { .fee-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 128px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; font-family: inherit; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 22px 0; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.3; color: var(--ink);
}
.acc-btn .i {
  width: 36px; height: 36px; padding: 9px; border-radius: 50%; border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease-out), background var(--t-med), color var(--t-med), border-color var(--t-med);
}
.acc-btn[aria-expanded="true"] .i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
@media (any-hover: hover) { .acc-btn:hover .i { border-color: var(--brass); } }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease-out);
}
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 60px 28px 0; color: var(--text-soft); opacity: 0; transition: opacity 300ms; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel p { opacity: 1; transition-delay: 120ms; }
/* Without JS every answer stays readable */
html:not(.js) .acc-panel { grid-template-rows: 1fr; }
html:not(.js) .acc-panel p { opacity: 1; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: relative; top: 0; }
  .acc-panel p { padding-right: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: stretch; }
.contact-form {
  padding: clamp(24px, 4vw, 56px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 24px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(176, 141, 87, .35);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.field-hint { font-size: .8125rem; color: var(--text-soft); }
.field-error { display: none; font-size: .8125rem; font-weight: 500; color: var(--error); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 14px; }
.field-check input {
  width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: 2px; cursor: pointer;
  border-radius: 3px; display: grid; place-items: center;
}
.field-check input:checked { background: var(--ink); border-color: var(--ink); }
.field-check input:checked::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border-right: 2px solid var(--on-dark); border-bottom: 2px solid var(--on-dark); transform: rotate(45deg);
}
.field-check label { font-weight: 400; color: var(--text-soft); line-height: 1.5; cursor: pointer; }
.field-check label a { color: var(--ink); }
.field-check .field-error { grid-column: 2; }
.form-success {
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(76, 139, 90, .1); border: 1px solid rgba(76, 139, 90, .35); color: #2E5C3A; font-weight: 500;
}

.contact-card {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.6vw, 48px);
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
}
.contact-card h3 { color: var(--on-dark); font-size: 1.75rem; margin-bottom: 28px; }
.contact-card-sub {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light);
}
.contact-list strong { color: var(--on-dark); font-weight: 600; }
.fees { background: var(--paper); border-top: 1px solid var(--line); }
.fees .fee { background: var(--ivory); }
.fees .fee-featured { background: var(--ink); }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-soft); }
.contact-list .i { color: var(--brass-light); margin-top: 2px; }
.contact-list a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(210, 180, 126, .5); overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--brass-light); }
.contact-map { position: relative; margin-top: auto; padding-top: 32px; }
.contact-map svg { width: 100%; height: auto; border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.contact-map .streets { stroke: rgba(244, 239, 230, .14); stroke-width: 1; }
.contact-map .river { stroke: rgba(210, 180, 126, .5); stroke-width: 6; stroke-linecap: round; }
.contact-map .pin { fill: var(--brass-light); }
.contact-map .pin-ring { stroke: var(--brass-light); stroke-width: 1; transform-origin: 168px 54px; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map-label { position: absolute; left: 12px; bottom: 10px; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-soft); padding: 56px 0 40px; font-size: .875rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--on-dark); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.footer-brand .brand-mark { background: var(--on-dark); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; padding-block: 10px; }
.footer-links a:hover { color: var(--on-dark); }
.footer-more { grid-column: 1 / -1; font-size: .8125rem; line-height: 2; }
.footer-more a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(243, 186, 55, .4); }
.footer-more a:hover { border-color: var(--brass-light); }
.footer-legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(244, 239, 230, .1); font-size: .8125rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion — only when JS is running, always transform/opacity
   ========================================================================== */

/* Hero entrance */
.js .hero-in { opacity: 0; transform: translateY(18px); }
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-photo { opacity: 0; transform: translateY(48px) scale(.97); transform-origin: 50% 100%; }

.is-loaded .hero-in {
  opacity: 1; transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d) * 110ms + 100ms);
}
.is-loaded .hero-title .line > span { transform: none; transition: transform 1100ms var(--ease-out); }
.is-loaded .hero-title .line:nth-child(1) > span { transition-delay: 180ms; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 300ms; }
.is-loaded .hero-art.is-drawn .hero-photo {
  opacity: 1; transform: none;
  transition: opacity 1200ms var(--ease-out) 250ms, transform 1600ms var(--ease-out) 250ms;
}

/* Scroll reveals */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] .lawyer-photo {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1400ms var(--ease-out) calc(var(--i, 0) * 160ms);
}
.js [data-reveal="clip"] .lawyer-photo img { transform: scale(1.15); transition: transform 1800ms var(--ease-out) calc(var(--i, 0) * 160ms); }
.js [data-reveal="clip"] .lawyer-body {
  opacity: 0; transform: translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 160ms + 400ms);
}
.js [data-reveal="clip"].is-in .lawyer-photo { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in .lawyer-photo img { transform: none; }
.js [data-reveal="clip"].is-in .lawyer-body { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .hero-in, .js .hero-title .line > span, .js .hero-photo,
  .js [data-reveal], .js [data-reveal="clip"] .lawyer-photo, .js [data-reveal="clip"] .lawyer-photo img,
  .js [data-reveal="clip"] .lawyer-body {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
}

/* ==========================================================================
   Micro-interactions — quiet details that respond to scroll, hover and input
   ========================================================================== */

::selection { background: rgba(243, 186, 55, .35); color: var(--ink-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section headings: the italic accent word draws a hairline once revealed */
h2 em {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1200ms var(--ease-out) 450ms;
}
.is-in h2 em, html:not(.js) h2 em { background-size: 100% 1px; }

/* Process: a single soft pulse when a step becomes active */
.step-dot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--brass); opacity: 0; pointer-events: none;
}
.step.is-active .step-dot::after { animation: dot-pulse 1300ms var(--ease-out) 1; }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.step-no { transition: color 600ms var(--ease-out), letter-spacing 600ms var(--ease-out); }
.step.is-active .step-no { color: var(--brass); letter-spacing: .06em; }

/* Lawyers: quote rule draws down; the vertical name lifts and opens up on hover */
.lawyer .quote { border-left: 0; }
.lawyer .quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--brass); transform: scaleY(0); transform-origin: top;
  transition: transform 1200ms var(--ease-out) 700ms;
}
.lawyer.is-in .quote::before, html:not(.js) .lawyer .quote::before { transform: none; }
.lawyer-vname { transition: letter-spacing 700ms var(--ease-out), translate 700ms var(--ease-out); }
@media (any-hover: hover) {
  .lawyer:hover .lawyer-vname { letter-spacing: .1em; translate: 0 -8px; }
}

/* Reviews & fees: a gold light follows the cursor along the card edge */
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: radial-gradient(260px circle at var(--mx) var(--my), #F3BA37, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 450ms var(--ease-out);
}
.review::before { transition: translate 600ms var(--ease-out), color 600ms var(--ease-out); }
@media (any-hover: hover) {
  [data-spotlight]:hover::after { opacity: 1; }
  .reviews .review[data-spotlight]:hover,
  .fees .fee[data-spotlight]:hover {
    background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(243, 186, 55, .07), transparent 55%);
  }
  .review:hover::before { translate: 0 -5px; color: var(--brass-light); }
}

/* FAQ: plus folds into a minus, question nudges, open answer gets a gold rule */
.acc-icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 450ms var(--ease-out), border-color 450ms, color 450ms, rotate 500ms var(--ease-out);
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 1px;
  background: currentColor; transition: transform 500ms var(--ease-out);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--ink); border-color: var(--ink); color: var(--on-dark); rotate: 180deg; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-btn > span:first-child { transition: translate 450ms var(--ease-out); }
@media (any-hover: hover) {
  .acc-btn:hover > span:first-child { translate: 8px 0; }
  .acc-btn:hover .acc-icon { border-color: var(--brass); }
}
.acc-item { position: relative; }
.acc-item::before {
  content: ""; position: absolute; left: -20px; top: 24px; bottom: 24px; width: 2px;
  background: var(--brass); transform: scaleY(0); transform-origin: top;
  transition: transform 600ms var(--ease-out);
}
.acc-item.is-open::before { transform: scaleY(1); }
@media (max-width: 600px) { .acc-item::before { left: -10px; } }

/* Form: a gold line draws under the focused field; the checkmark scales in */
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), background-size 600ms var(--ease-out);
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  background-color: #fff; background-size: 100% 2px;
}
.contact-form .field-check input { background-image: none; transition: background-color 250ms, border-color 250ms; }
.contact-form .field-check input::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border-right: 2px solid var(--on-dark); border-bottom: 2px solid var(--on-dark);
  transform: rotate(45deg) scale(0); transition: transform 350ms var(--ease-out);
}
.contact-form .field-check input:checked::after { transform: rotate(45deg) scale(1); }

/* Submit: arrow → spinner → check */
.btn-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(246, 239, 228, .3); border-top-color: var(--on-dark);
  animation: spin 800ms linear infinite;
}
.btn-submit.is-loading .i { display: none; }
.btn-submit.is-loading .btn-spinner { display: block; }
.btn-submit:disabled { cursor: default; }
.btn-submit.is-done { --bg: #2E5C3A; }
.btn-submit.is-done .i { animation: pop 550ms var(--ease-out); }
.form-success:not([hidden]) { animation: rise-in 600ms var(--ease-out) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }

/* Contact card: copy phone / email with a small confirmation */
.copy-btn {
  position: relative; flex: none; margin: -9px 0 0 auto;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(243, 186, 55, .22); border-radius: 50%;
  background: transparent; color: var(--on-dark-soft); cursor: pointer;
  transition: color 300ms, border-color 300ms, background 300ms;
}
.copy-btn .i { width: 16px; height: 16px; }
@media (any-hover: hover) { .copy-btn:hover { color: var(--brass-light); border-color: var(--brass-light); } }
.copy-btn.is-copied { color: var(--ink-deep); background: var(--brass-light); border-color: var(--brass-light); }
.copy-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brass-light); color: var(--ink-deep);
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms var(--ease-out), translate 250ms var(--ease-out);
}
.copy-btn.is-copied .copy-tip { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Custom cursor (fine pointers only; JS adds .has-cursor)
   ========================================================================== */
.cursor-live, .cursor-live * { cursor: none !important; }
.cursor-live input:not([type="checkbox"]), .cursor-live textarea { cursor: text !important; }
.cursor-live select { cursor: default !important; }

.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; transition: opacity 300ms var(--ease-out); }
.cursor.is-hidden, .cursor.is-text { opacity: 0; }
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; will-change: transform; }

.cursor-circle {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(138, 90, 34, .55); background: rgba(243, 186, 55, 0);
  transition: width 500ms var(--ease-out), height 500ms var(--ease-out),
              background 350ms var(--ease-out), border-color 350ms var(--ease-out), scale 250ms var(--ease-out);
}
.cursor-dot::before {
  content: ""; position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass-text);
  transition: scale 300ms var(--ease-out), background 300ms;
}
.cursor-label {
  font: 600 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--brass-light); opacity: 0; transition: opacity 250ms var(--ease-out);
}

/* Links & buttons: ring opens up and fills softly, the dot dissolves */
.cursor.is-link .cursor-circle { width: 58px; height: 58px; background: rgba(243, 186, 55, .16); border-color: var(--brass); }
.cursor.is-link .cursor-dot::before, .cursor.is-label .cursor-dot::before { scale: 0; }
/* Cards & photos: a wide, faint halo */
.cursor.is-card .cursor-circle { width: 88px; height: 88px; background: rgba(243, 186, 55, .06); border-color: rgba(176, 125, 58, .4); }
/* Phone / mail links: solid disc with a word */
.cursor.is-label .cursor-circle { width: 86px; height: 86px; background: var(--ink); border-color: var(--ink); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-down .cursor-circle { scale: .82; }
/* Over dark surfaces the cursor switches to gold */
.cursor.on-dark .cursor-circle { border-color: rgba(243, 186, 55, .65); }
.cursor.on-dark .cursor-dot::before { background: var(--brass-light); }
.cursor.on-dark.is-label .cursor-circle { background: var(--brass-light); border-color: var(--brass-light); }
.cursor.on-dark.is-label .cursor-label { color: var(--ink-deep); }

/* Magnetic elements glide back smoothly (they move via `translate`) */
.has-cursor .btn { transition: color var(--t-med) var(--ease-out), border-color var(--t-med), transform var(--t-med) var(--ease-out), translate 550ms var(--ease-out); }
.has-cursor .header-phone { transition: color 300ms, scale 500ms var(--ease-out), translate 550ms var(--ease-out); }
.has-cursor .copy-btn { transition: color 300ms, border-color 300ms, background 300ms, translate 550ms var(--ease-out); }
.has-cursor .lang-switch button { transition: background var(--t-fast), color var(--t-fast), translate 450ms var(--ease-out); }

/* "Rufen Sie uns an": the card grows and its status dot breathes on hover */
a.float-card {
  transition: border-color var(--t-med), scale 600ms var(--ease-out), box-shadow 600ms var(--ease-out), translate 550ms var(--ease-out);
}
@media (any-hover: hover) {
  a.float-card:hover {
    scale: 1.08; border-color: var(--brass);
    box-shadow: 0 34px 64px -26px rgba(42, 42, 41, .42);
  }
  a.float-card:hover .dot { animation: call-pulse 1.4s var(--ease-out) infinite; }
  .header-phone:hover { scale: 1.06; }
}
@keyframes call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 139, 90, .45); }
  100% { box-shadow: 0 0 0 12px rgba(76, 139, 90, 0); }
}

/* ==========================================================================
   Testimonials: one quote at a time, words build in, autoplay progress line
   ========================================================================== */
.testimonials { --qr: -6deg; position: relative; max-width: 920px; margin-inline: auto; text-align: center; }
.testimonials::before {
  content: "\201C"; position: absolute; left: 50%; top: -.42em; z-index: 0;
  font-family: var(--serif); font-size: clamp(10rem, 22vw, 18rem); line-height: 1;
  color: var(--brass); opacity: .16; pointer-events: none;
  translate: -50% 0; rotate: var(--qr);
  transition: rotate 1400ms var(--ease-out);
}
.t-stage { position: relative; z-index: 1; display: grid; touch-action: pan-y; }
.t-slide {
  grid-area: 1 / 1; margin: 0; align-self: center;
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease-out), visibility 0s linear 500ms;
}
.t-slide.is-active { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease-out); }
.t-slide blockquote { margin: 0; }
.t-slide blockquote p {
  font-family: var(--serif); font-size: clamp(1.55rem, 3.1vw, 2.5rem); line-height: 1.32;
  color: var(--ink); text-wrap: balance;
}
/* Word-by-word build: rise, fade and un-blur, staggered by index */
.t-slide .w {
  display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), filter 300ms var(--ease-out);
}
.t-slide.is-active .w {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out), filter 800ms var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 32ms + 120ms);
}
.t-slide figcaption {
  margin-top: 32px; font-size: .9375rem; color: var(--text-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 300ms, transform 300ms;
}
.t-slide figcaption strong { color: var(--ink); font-weight: 600; }
.t-slide.is-active figcaption { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) 700ms, transform 900ms var(--ease-out) 700ms; }

.t-controls {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px);
  max-width: 560px; margin: clamp(40px, 5vw, 56px) auto 0;
}
.t-count { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.t-sep { margin: 0 6px; color: var(--text-soft); }
.t-progress { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.t-progress span { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.t-progress.is-running span { animation: t-fill 7s linear forwards; }
.testimonials.is-paused .t-progress span { animation-play-state: paused; }
@keyframes t-fill { to { transform: scaleX(1); } }
.t-buttons { display: flex; gap: 8px; }
.t-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background 300ms var(--ease-out), border-color 300ms, color 300ms, translate 500ms var(--ease-out);
}
.t-btn .i { width: 18px; height: 18px; }
.t-prev .i { transform: rotate(180deg); }
@media (any-hover: hover) { .t-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); } }
.t-pause-icon { position: relative; width: 10px; height: 12px; }
.t-pause-icon::before, .t-pause-icon::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor;
}
.t-pause-icon::before { left: 0; }
.t-pause-icon::after { right: 0; }
.t-pause[aria-pressed="true"] .t-pause-icon::before {
  left: 1px; width: 0; height: 0; border-radius: 0; background: none;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.t-pause[aria-pressed="true"] .t-pause-icon::after { display: none; }
.testimonials.no-autoplay .t-progress, .testimonials.no-autoplay .t-pause { display: none; }
@media (max-width: 600px) {
  .t-controls { flex-wrap: wrap; justify-content: space-between; }
  .t-progress { order: 3; flex-basis: 100%; }
}
/* Without JS: show every quote as a calm list */
html:not(.js) .t-stage { display: block; }
html:not(.js) .t-slide { opacity: 1; visibility: visible; margin-bottom: 48px; }
html:not(.js) .t-slide figcaption { opacity: 1; transform: none; }
html:not(.js) .t-controls { display: none; }

/* ==========================================================================
   Phone refinements
   ========================================================================== */
.services-progress { display: none; }
.mobile-cta { display: none; }

@media (max-width: 760px) {
  /* Quick-contact bar: slides up once the hero is passed, leaves at the contact section */
  .mobile-cta {
    position: fixed; z-index: 80;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px;
    background: rgba(30, 30, 29, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: 8px; box-shadow: 0 18px 40px -16px rgba(30, 30, 29, .55);
    translate: 0 calc(100% + 24px); opacity: 0;
    transition: translate 550ms var(--ease-out), opacity 400ms var(--ease-out);
  }
  .mobile-cta.is-visible { translate: 0 0; opacity: 1; }
  .mobile-cta-call {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
    border: 1px solid rgba(243, 186, 55, .35); border-radius: 2px;
    color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .9375rem;
  }
  .mobile-cta-call .i { color: var(--brass-light); width: 18px; height: 18px; }
  .mobile-cta .mobile-cta-book { margin: 0; min-height: 48px; padding: 0 16px; font-size: .9375rem; }
  .mobile-cta-call:active, .mobile-cta .mobile-cta-book:active { scale: .97; }
  /* Keep the footer's last lines clear of the bar */
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  :root { --section-y: 72px; }
  .section-head { margin-bottom: 40px; }

  /* Hero eyebrow: drop the side rules so the two-line label stays centred and calm */
  .hero .eyebrow-center::before, .hero .eyebrow-center::after { display: none; }
  .hero .eyebrow { line-height: 1.7; letter-spacing: .16em; text-align: center; }

  /* Bigger tap targets */
  .lang-switch button { min-height: 42px; }
  .contact-list a { display: inline-block; padding-block: 6px; margin-block: -6px; }
  .footer-more a { display: inline-block; padding-block: 8px; }

  /* Services: a swipeable card row instead of six stacked tiles */
  .service-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
    border-top: 0; scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-grid .service {
    flex: 0 0 84%; scroll-snap-align: start;
    border: 1px solid var(--line) !important; border-radius: var(--radius);
    padding: 26px 22px 30px !important; background: var(--paper);
  }
  .service-grid .service-no { top: 26px; right: 22px; }
  .service-grid .service-icon { margin-bottom: 22px; }
  .services-progress {
    display: block; position: relative; height: 2px; margin-top: 18px;
    background: var(--line); border-radius: 2px; overflow: hidden;
  }
  .services-progress span {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--sw, 30%);
    background: var(--brass); border-radius: 2px; translate: var(--sx, 0%) 0;
  }

  /* Fees: a little tighter */
  .fee { padding: 28px 24px; }
  .fee-price { margin-top: 16px; }

  /* Process: slightly less air between steps */
  .steps { gap: 32px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; font-size: .8125rem; }
  .lang-switch button { min-width: 36px; padding: 0 8px; }
}
/* ---------- Official Kocher & Bucher logo ---------- */
.brand-logo { display: block; height: 42px; width: auto; transition: height var(--t-med) var(--ease-out); }
.site-header.is-scrolled .brand-logo { height: 36px; }
.footer-logo { display: block; height: 46px; width: auto; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand p { margin: 0; }
@media (max-width: 600px) {
  .brand-logo, .site-header.is-scrolled .brand-logo { height: 34px; }
}
@media (max-width: 380px) {
  .brand-logo, .site-header.is-scrolled .brand-logo { height: 30px; }
}
/* ==========================================================================
   Legal page (impressum.html)
   ========================================================================== */
.legal-hero {
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(243, 186, 55, .14), transparent 65%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}
.legal-back {
  display: flex; width: max-content; align-items: center; gap: 10px; margin-bottom: 28px; min-height: 44px;
  font-size: .875rem; font-weight: 500; color: var(--text-soft); text-decoration: none;
  transition: color 300ms, gap 400ms var(--ease-out);
}
.legal-back .i { width: 16px; height: 16px; transform: rotate(180deg); color: var(--brass-text); }
@media (any-hover: hover) { .legal-back:hover { color: var(--ink); gap: 14px; } }
.legal-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.legal-title em { font-style: italic; color: var(--brass-text); }
.legal-intro { margin-top: 20px; max-width: 56ch; font-size: 1.0625rem; color: var(--text-soft); }
.legal-lang-note { margin-top: 16px; padding: 12px 16px; max-width: 56ch; border-left: 2px solid var(--brass); background: var(--paper); font-size: .9375rem; color: var(--text-soft); }
.legal-lang-note:empty { display: none; }

.legal-body { padding: clamp(48px, 7vw, 104px) 0 var(--section-y); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .875rem; }
.legal-toc-title { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc ol ol { margin: 4px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.legal-toc a {
  display: block; padding: 6px 0; color: var(--text-soft); text-decoration: none;
  transition: color 250ms, translate 400ms var(--ease-out);
}
.legal-toc > ol > li > a { color: var(--ink); font-weight: 500; }
@media (any-hover: hover) { .legal-toc a:hover { color: var(--brass-text); translate: 4px 0; } }

.legal-content { max-width: 72ch; }
.legal-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-block + .legal-block { margin-top: clamp(40px, 5vw, 56px); }
.legal-block-head { padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.legal-block h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: 12px; }
.legal-block h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin: 0 0 14px; }
.legal-block h2 + p, .legal-block h3 + p { margin-top: 0; }
.legal-block p { color: var(--text-soft); line-height: 1.75; }
.legal-block p + p { margin-top: 14px; }
.legal-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.legal-lead { font-size: 1.0625rem; color: var(--text) !important; margin-bottom: 24px; }
.legal-no { font-style: italic; color: var(--brass-text); margin-right: 6px; }

.legal-dl { margin: 8px 0 28px; border-top: 1px solid var(--line); }
.legal-dl > div {
  display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 6px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.legal-dl dt { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.legal-dl dd { margin: 0; color: var(--text-soft); }

.legal-list { margin: 14px 0; padding-left: 0; list-style: none; }
.legal-list li { position: relative; padding-left: 22px; color: var(--text-soft); line-height: 1.7; }
.legal-list li + li { margin-top: 10px; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--brass); }
.legal-list strong { color: var(--ink); font-weight: 600; }

.legal-address {
  margin-top: 18px; padding: 20px 22px; font-style: normal; line-height: 1.8;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-soft);
}
.legal-address strong { color: var(--ink); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .legal-toc ol ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
@media (max-width: 600px) {
  .legal-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .legal-toc ol ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Consent banner
   ========================================================================== */
.consent {
  position: fixed; z-index: 120;
  left: clamp(12px, 3vw, 32px); bottom: calc(clamp(12px, 3vw, 32px) + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 24px));
  opacity: 0; translate: 0 24px;
  transition: opacity 500ms var(--ease-out), translate 600ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-open { opacity: 1; translate: 0 0; }
.consent-card {
  position: relative; padding: clamp(22px, 3vw, 30px);
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 30px 70px -28px rgba(30, 30, 29, .45);
  max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); overflow-y: auto;
}
.consent-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 2px; background: var(--brass);
}
.consent-eyebrow {
  margin: 0 0 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text);
}
.consent-title { font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.15; margin: 0 0 12px; }
.consent-text { font-size: .9375rem; line-height: 1.6; color: var(--text-soft); }
.consent-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

.consent-settings { margin-top: 18px; border-top: 1px solid var(--line); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.consent-row-text { display: grid; gap: 2px; font-size: .875rem; }
.consent-row-text strong { color: var(--ink); font-weight: 600; }
.consent-row-text span { color: var(--text-soft); line-height: 1.45; }

.consent-switch {
  position: relative; flex: none; width: 46px; height: 28px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--sand); cursor: pointer;
  transition: background 300ms var(--ease-out), border-color 300ms;
}
.consent-switch span {
  position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(30, 30, 29, .25);
  transition: translate 350ms var(--ease-out);
}
.consent-switch[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }
.consent-switch[aria-checked="true"] span { translate: 18px 0; background: var(--brass-light); }
.consent-switch:disabled { cursor: not-allowed; opacity: .55; }

.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.consent-actions .btn { width: 100%; padding: 0 12px; }
.consent-actions .consent-save { grid-column: 1 / -1; }
.consent-more {
  grid-column: 1 / -1; justify-self: center; min-height: 40px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  font-size: .8125rem; font-weight: 500; color: var(--text-soft);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
  transition: color 250ms, text-decoration-color 250ms;
}
@media (any-hover: hover) { .consent-more:hover { color: var(--ink); text-decoration-color: var(--brass); } }

/* Footer: reopen settings */
.footer-cookie {
  padding: 10px 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.footer-cookie:hover { color: var(--on-dark); }

/* While the banner is open on phones the quick-contact bar steps aside */
.consent-open .mobile-cta { visibility: hidden; opacity: 0; }
@media (max-width: 600px) {
  .consent { left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { translate: 0 0; }
}

/* Buttons set their own display; make sure [hidden] still wins inside the banner */
.consent [hidden] { display: none !important; }
/* ==========================================================================
   Contact dock: "Rufen Sie an" / "Schreiben Sie uns" on every page
   ========================================================================== */
.hero { border-bottom: 1px solid var(--line); }

.contact-dock {
  position: fixed; z-index: 80;
  right: clamp(16px, 2.5vw, 32px); bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; translate: 0 24px; pointer-events: none;
  transition: opacity 450ms var(--ease-out), translate 600ms var(--ease-out);
}
.contact-dock.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.dock-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(30, 30, 29, .55);
  transition: scale 400ms var(--ease-out), background 300ms, color 300ms, translate 550ms var(--ease-out);
}
.dock-btn .i { width: 20px; height: 20px; flex: none; }
.dock-call { background: var(--ink); color: var(--on-dark); }
.dock-call .i { color: var(--brass-light); }
.dock-write { background: var(--brass-light); color: var(--ink-deep); }
@media (any-hover: hover) {
  .dock-btn:hover { scale: 1.05; }
  .dock-call:hover { background: var(--ink-deep); }
}
.dock-btn:active { scale: .97; }
.consent-open .contact-dock { visibility: hidden; opacity: 0; }

@media (max-width: 760px) {
  .contact-dock {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: row; gap: 8px; padding: 8px;
    background: rgba(30, 30, 29, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: 8px; box-shadow: 0 18px 40px -16px rgba(30, 30, 29, .55);
  }
  .dock-btn { flex: 1; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 2px; box-shadow: none; font-size: .875rem; }
  .dock-call { background: transparent; border: 1px solid rgba(243, 186, 55, .35); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* ==========================================================================
   Topics: home cards, orientation check, topic pages
   ========================================================================== */

/* ---------- Orientation check (home) ---------- */
.orient {
  display: grid; gap: 10px; margin: -24px 0 clamp(36px, 5vw, 56px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: var(--radius);
}
.orient label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); }
.orient-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.orient select {
  width: 100%; min-height: 52px; padding: 12px 44px 12px 16px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); -webkit-appearance: none; appearance: none;
}
.orient select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176, 141, 87, .3); }
@media (max-width: 600px) { .orient-row { grid-template-columns: 1fr; } .orient { margin-top: -12px; } }

/* ---------- Topic cards (home) ---------- */
a.theme-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.theme-card p { flex: 0 0 auto; }
.theme-points { margin: 18px 0 26px; padding: 0; list-style: none; display: grid; gap: 8px; }
.theme-points li { position: relative; padding-left: 20px; font-size: .9375rem; color: var(--text); }
.theme-points li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--brass); }
.theme-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--brass-text);
}
.theme-more .i { width: 16px; height: 16px; transition: translate 400ms var(--ease-out); }
@media (any-hover: hover) { .theme-card:hover .theme-more .i { translate: 6px 0; } }

/* ---------- Topic page hero ---------- */
.topic-hero {
  padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(243, 186, 55, .16), transparent 65%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: .875rem; color: var(--text-soft); }
.crumb a { color: var(--text-soft); text-decoration: none; padding-block: 8px; }
.crumb a:hover { color: var(--ink); }
.crumb [aria-current] { color: var(--ink); font-weight: 500; }
.topic-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 6vw, 96px); align-items: center; }
.topic-title { font-size: clamp(2.6rem, 6.4vw, 5.25rem); line-height: 1.02; letter-spacing: -.02em; hyphens: manual; }
.topic-title em { font-style: italic; color: var(--brass-text); }
.topic-intro { margin-top: 22px; max-width: 58ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-soft); }
.topic-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.topic-hero-icon {
  width: clamp(120px, 16vw, 220px); height: auto; aspect-ratio: 1;
  fill: none; stroke: var(--brass); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; opacity: .9;
}
@media (max-width: 760px) {
  .topic-hero-grid { grid-template-columns: 1fr; }
  .topic-hero-icon { display: none; }
  .topic-actions .btn { flex: 1 1 100%; }
}

/* ---------- Topic page body ---------- */
.topic-body { padding: clamp(48px, 7vw, 104px) 0; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.topic-main > * + * { margin-top: clamp(40px, 5vw, 64px); }
.topic-block h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 26px; }

.topic-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topic-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 1.0625rem; color: var(--text);
}
.topic-list .i {
  flex: none; width: 28px; height: 28px; padding: 6px; margin-top: -1px; border-radius: 50%;
  border: 1px solid rgba(176, 125, 58, .45); color: var(--brass-text); stroke-width: 2.2;
}

.tsteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tstep { position: relative; padding: 24px 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tstep-no { display: block; margin-bottom: 10px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--brass-text); }
.tstep h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tstep p { color: var(--text-soft); font-size: .9875rem; }
@media (max-width: 600px) { .tsteps { grid-template-columns: 1fr; } }

.cstrip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: var(--radius);
}
.cstrip > span { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.cstrip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .cstrip-actions, .cstrip-actions .btn { width: 100%; } }

.topic-warn {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; background: var(--ink); color: var(--on-dark-soft); border-radius: var(--radius);
}
.topic-warn .i { flex: none; width: 26px; height: 26px; color: var(--brass-light); margin-top: 2px; }
.topic-warn strong { color: var(--on-dark); }

.topic-side { position: sticky; top: calc(var(--header-h) + 28px); }
.topic-facts { padding: 26px 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-facts::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 18px; background: var(--brass); }
.topic-facts .eyebrow { margin-bottom: 8px; }
.topic-facts dl { margin: 0 0 22px; }
.topic-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.topic-facts dt { color: var(--text-soft); }
.topic-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.topic-side-actions { display: grid; gap: 8px; }
.topic-side-actions .btn { width: 100%; }
.topic-side-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--brass-text); text-decoration: none;
}
.topic-side-link .i { width: 16px; height: 16px; transition: translate 400ms var(--ease-out); }
.topic-side-link:hover .i { translate: 5px 0; }
@media (max-width: 960px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-side { position: static; }
}

/* ---------- Related topics + closing CTA ---------- */
.topic-more { padding: 0 0 var(--section-y); }
.topic-related { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chips a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition: border-color 300ms, background 300ms;
}
.topic-chips .i { width: 16px; height: 16px; color: var(--brass-text); transition: translate 400ms var(--ease-out); }
@media (any-hover: hover) { .topic-chips a:hover { border-color: var(--brass); } .topic-chips a:hover .i { translate: 4px 0; } }

.topic-cta {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  text-align: center; color: var(--on-dark-soft); border-radius: var(--radius);
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(176, 141, 87, .22), transparent 60%),
    var(--ink);
}
.topic-cta h2 { color: var(--on-dark); font-size: clamp(2rem, 4vw, 3.25rem); }
.topic-cta h2 em { color: var(--brass-light); font-style: italic; }
.topic-cta p { margin: 14px auto 0; max-width: 48ch; }
.topic-cta .topic-actions { justify-content: center; }
.topic-cta .btn-primary { --bg: var(--brass-light); --fg: var(--ink-deep); }
.topic-cta .btn-ghost { --fg: var(--on-dark); border-color: rgba(246, 239, 228, .3); }

/* Topic pages: "Auf einen Blick" card beside the intro, warning inside the FAQ column */
.topic-hero-grid .topic-facts { width: 360px; }
.topic-facts .float-card { margin: 18px 0 0; max-width: none; width: 100%; }
.faq .section-head .topic-warn { margin-top: 28px; }
@media (max-width: 760px) { .topic-hero-grid .topic-facts { width: auto; } }
/* ==========================================================================
   "Themen" dropdown in the header
   ========================================================================== */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 500; color: var(--text);
}
.nav-drop-btn .i { width: 14px; height: 14px; color: var(--brass-text); transition: rotate 350ms var(--ease-out); }
.nav-drop.is-open .nav-drop-btn .i { rotate: 180deg; }

.nav-panel {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 120;
  width: 420px; padding: 22px 14px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 30px 60px -28px rgba(42, 42, 41, .4);
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity 280ms var(--ease-out), translate 380ms var(--ease-out), visibility 0s linear 380ms;
}
.nav-panel::before { /* gold hairline + hover bridge so the panel doesn't close on the way down */
  content: ""; position: absolute; left: 22px; top: 0; width: 48px; height: 2px; background: var(--brass);
}
.nav-panel::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop.is-open .nav-panel {
  opacity: 1; visibility: visible; translate: -50% 0;
  transition: opacity 280ms var(--ease-out), translate 380ms var(--ease-out), visibility 0s;
}
@media (any-hover: hover) and (any-pointer: fine) {
  .nav-drop:hover .nav-panel {
    opacity: 1; visibility: visible; translate: -50% 0;
    transition: opacity 280ms var(--ease-out), translate 380ms var(--ease-out), visibility 0s;
  }
  .nav-drop:hover .nav-drop-btn .i { rotate: 180deg; }
}
.nav-panel-title {
  margin: 0 8px 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text);
}
.nav .nav-panel ul { display: grid; gap: 2px; }
.nav .nav-panel a {
  display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-radius: 4px;
  white-space: normal; text-decoration: none; color: var(--text);
  transition: background 250ms var(--ease-out);
}
.nav .nav-panel a::after { display: none; }
.nav-panel a .i {
  flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--brass-text); stroke-width: 1.4;
  transition: background 300ms, color 300ms, border-color 300ms;
}
.nav-panel a > span { display: grid; gap: 1px; transition: translate 350ms var(--ease-out); }
.nav-panel strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.nav-panel small { font-size: .8125rem; color: var(--text-soft); line-height: 1.35; }
.nav .nav-panel a:hover, .nav .nav-panel a:focus-visible { background: var(--ivory); }
.nav-panel a:hover .i, .nav-panel a:focus-visible .i { background: var(--ink); border-color: var(--ink); color: var(--brass-light); }
.nav-panel a:hover > span { translate: 4px 0; }
.nav-panel a[aria-current="page"] strong { color: var(--brass-text); }
.nav .nav-panel .nav-panel-all {
  justify-content: space-between; margin-top: 8px; padding: 14px 12px 6px; border-top: 1px solid var(--line); border-radius: 0;
  font-size: .875rem; font-weight: 600; color: var(--brass-text);
}
.nav .nav-panel .nav-panel-all:hover { background: none; }
.nav-panel-all .i { width: 16px; height: 16px; padding: 0; border: 0; transition: translate 350ms var(--ease-out); }
.nav-panel-all:hover .i { background: none !important; color: var(--brass-text) !important; translate: 5px 0; }

/* Mobile menu: topics grouped under "Themen" */
.mobile-menu { overflow-y: auto; }
.mobile-menu .mm-group { overflow: visible; padding: 14px 0 10px; }
.mm-label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text);
}
.mobile-menu .mm-sub { margin: 6px 0 0; }
.mobile-menu .mm-sub li { border-bottom: 0; }
.mobile-menu .mm-sub a:not(.btn) { font-size: 1.35rem; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); }
.mobile-menu .mm-sub a[aria-current="page"] { color: var(--brass-text); border-left-color: var(--brass); }

/* ==========================================================================
   Header: floating glass bar
   ========================================================================== */
:root { --header-h: 96px; }
.site-header {
  inset: auto; top: 14px; left: 50%; translate: -50% 0;
  width: min(calc(100% - 28px), 1320px); height: 68px;
  border-radius: 999px;
  background: rgba(251, 248, 242, .7);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid rgba(220, 207, 188, .75);
  box-shadow: 0 12px 32px -20px rgba(42, 42, 41, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: top 450ms var(--ease-out), height 450ms var(--ease-out), background 300ms, box-shadow 300ms,
              opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
}
.site-header.is-scrolled {
  top: 8px; height: 60px;
  background: rgba(251, 248, 242, .9);
  box-shadow: 0 18px 44px -22px rgba(42, 42, 41, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.site-header .header-inner { max-width: none; padding: 0 8px 0 26px; }
.site-header .scroll-progress { left: 30px; right: 30px; bottom: -1px; height: 2px; border-radius: 2px; }
.site-header .header-cta, .site-header .lang-switch { border-radius: 999px; }
.site-header .lang-switch button { border-radius: 999px; }
.site-header .menu-toggle { border-radius: 50%; }
/* Entrance: the bar glides down once the page has loaded */
.js .site-header { opacity: 0; translate: -50% -24px; }
.is-loaded .site-header { opacity: 1; translate: -50% 0; }
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .site-header { top: 10px; width: calc(100% - 20px); height: 62px; }
  .site-header.is-scrolled { top: 6px; height: 56px; }
  .site-header .header-inner { padding: 0 6px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .site-header { opacity: 1; translate: -50% 0; }
}
.topic-intro-2 { margin-top: 14px; font-size: 1rem; }
/* Nav alignment: links and the "Themen" button share one box model so their text sits on the same line */
.nav > ul { align-items: center; }
.nav > ul > li > a, .nav-drop-btn { display: inline-flex; align-items: center; padding-block: 10px; line-height: 1.4; }
.nav > ul > li > a::after { bottom: 6px; }
/* Sixth topic tile: a contact card instead of an empty cell (same look as the topics) */
.service-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Slower, calmer hover growth on topic tiles and the call cards */
.js .service-grid .service,
.service-grid .service {
  transition:
    opacity 1000ms var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 1000ms var(--ease-out) calc(var(--i, 0) * 90ms),
    scale 900ms var(--ease-out),
    box-shadow 900ms var(--ease-out),
    background 600ms var(--ease-out);
}
a.float-card {
  transition: border-color 600ms, scale 1000ms var(--ease-out), box-shadow 1000ms var(--ease-out), translate 550ms var(--ease-out);
}
.has-cursor .header-phone { transition: color 300ms, scale 900ms var(--ease-out), translate 550ms var(--ease-out); }
.dock-btn { transition: scale 850ms var(--ease-out), background 300ms, color 300ms, translate 550ms var(--ease-out); }
/* ==========================================================================
   Light-orange bands ("Warum wir" + footer), matching kocher-bucher.at
   ========================================================================== */
.employers, .site-footer { --on-dark: var(--ink); --on-dark-soft: var(--text-soft); }
.employers {
  background: radial-gradient(900px 500px at 0% 0%, rgba(243, 186, 55, .18), transparent 60%), var(--sun);
  color: var(--ink);
}
.employers h2 em, .employers .eyebrow-light { color: var(--brass-text); }
.employers .check-list li { border-color: var(--sun-line); }
.employers .check-list .i { border-color: rgba(176, 125, 16, .45); color: var(--brass-text); }
@media (any-hover: hover) { .employers .btn-light:hover { --bg: var(--ink); --fg: #FFFFFF; } }
.site-footer { background: var(--sun); }
.footer-legal { border-top-color: var(--sun-line); }
.footer-links a:hover, .footer-cookie:hover { color: var(--brass-text); }.topic-actions .btn-light { margin-top: 0; } /* align both CTA buttons */

/* Contact card beside the form: tile look (like the topic squares) on light orange */
.contact-card {
  --on-dark: var(--ink); --on-dark-soft: var(--text-soft); --brass-light: var(--brass-text);
  position: relative;
  background: var(--sun); color: var(--ink);
  border: 1px solid var(--sun-line);
  transition: scale 900ms var(--ease-out), box-shadow 900ms var(--ease-out);
}
.contact-card::before {
  content: ""; position: absolute; left: clamp(28px, 3.6vw, 48px); top: 0; width: 48px; height: 2px; background: var(--brass);
}
.contact-card .contact-list a { border-bottom-color: rgba(176, 125, 16, .4); }
.contact-card .copy-btn { border-color: rgba(176, 125, 16, .3); }
.contact-card .contact-map svg { background: rgba(255, 255, 255, .55); }
.contact-card .contact-map .streets { stroke: rgba(60, 60, 59, .14); }
.contact-card .contact-map .river { stroke: rgba(201, 149, 47, .45); }
@media (any-hover: hover) {
  .contact-card:hover { scale: 1.02; box-shadow: 0 30px 60px -28px rgba(42, 42, 41, .3); }
}
/* Long German legal words (e.g. "Ausländerbeschäftigungsgesetz") wrap instead of widening the page */
.topic-facts dd { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.topic-facts dl > div > * { min-width: 0; }
@media (max-width: 960px) { .topic-hero-grid { grid-template-columns: minmax(0, 1fr); } }
/* ==========================================================================
   Finishing touches: quiet motion on the remaining static parts
   ========================================================================== */
/* Light-orange bands: the soft gold glow drifts slowly */
.employers { background-size: 160% 160%; animation: sun-drift 22s ease-in-out infinite alternate; }
@keyframes sun-drift { from { background-position: 0% 0%; } to { background-position: 60% 40%; } }
.topic-facts { position: relative; }

@media (any-hover: hover) {
  /* "Warum wir" list: the check fills with gold, the text leans in */
  .check-list li > div { transition: translate 600ms var(--ease-out); }
  .check-list .i { transition: background 500ms var(--ease-out), color 500ms var(--ease-out), border-color 500ms var(--ease-out), scale 600ms var(--ease-out); }
  .check-list li:hover > div { translate: 6px 0; }
  .check-list li:hover .i { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink-deep); scale: 1.08; }

  /* Process: hovering a step lights its dot, like the scroll animation does */
  .step h3 { transition: translate 600ms var(--ease-out), color 400ms; }
  .step-dot { transition: background 500ms var(--ease-out), border-color 500ms var(--ease-out), box-shadow 500ms var(--ease-out), scale 600ms var(--ease-out); }
  .step:hover .step-dot { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 6px rgba(201, 149, 47, .18); scale: 1.15; }
  .step:hover h3 { translate: 0 -3px; }

  /* "Auf einen Blick" rows on the topic pages */
  .topic-facts dl > div { transition: padding 500ms var(--ease-out), background 400ms; }
  .topic-facts dl > div:hover { padding-inline: 8px; background: var(--ivory); }
  .topic-facts dl > div:hover dt { color: var(--brass-text); }

  /* Footer and topic links: a gold underline grows in */
  .footer-links a { background: linear-gradient(var(--brass), var(--brass)) no-repeat 0 calc(100% - 8px) / 0 1px; transition: background-size 500ms var(--ease-out), color 300ms; }
  .footer-links a:hover { background-size: 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .employers { animation: none; }
}
/* ==========================================================================
   Document checklist on the practice-area pages (same list as "Warum wir")
   ========================================================================== */
.checklist { background: var(--paper); border-top: 1px solid var(--line); }
.checklist .check-list { --on-dark: var(--ink); --on-dark-soft: var(--text-soft); }
.checklist .check-list li { padding: 0; border-color: var(--line); }
.check-row { position: relative; display: flex; gap: 20px; padding: 24px 0; cursor: pointer; }
.check-row > div { transition: translate 600ms var(--ease-out); }
.check-input { position: absolute; left: 0; top: 24px; width: 34px; height: 34px; margin: 0; opacity: 0; cursor: pointer; }
.checklist .check-list .i {
  flex: none; border-color: rgba(176, 125, 16, .45); color: rgba(176, 125, 16, .28);
  transition: background 450ms var(--ease-out), color 450ms var(--ease-out), border-color 450ms var(--ease-out), scale 600ms var(--ease-out);
}
.checklist .check-list .check-input:checked + .i {
  background: var(--brass-light); border-color: var(--brass-light); color: var(--ink-deep);
  animation: pop 520ms var(--ease-out);
}
.check-input:focus-visible + .i { outline: 2px solid var(--ring); outline-offset: 3px; }
.check-row strong { transition: color 400ms; }
.check-input:checked ~ div strong { color: var(--text-soft); text-decoration: line-through; text-decoration-color: var(--brass); text-decoration-thickness: 1px; }
@media (any-hover: hover) {
  .checklist .check-list li:hover > div { translate: none; }
  .checklist .check-list li:hover .i { background: rgba(243, 186, 55, .16); border-color: var(--brass); color: var(--brass-text); scale: 1.08; }
  .checklist .check-row:hover > div { translate: 6px 0; }
}
.check-progress { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: .9375rem; color: var(--text-soft); }
.check-progress strong { color: var(--ink); }
.check-progress-bar { flex: 0 0 160px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.check-progress-bar span { display: block; width: var(--done, 0%); height: 100%; background: var(--brass); transition: width 700ms var(--ease-out); }

/* Hero, right column: lines break evenly so no single word is left alone */
.hero-trust span, .stat-label { text-wrap: balance; }
.lead { text-wrap: balance; }

/* Contact card: the little map opens Google Maps */
a.contact-map { display: block; color: inherit; text-decoration: none; }
.contact-map svg { transition: scale 900ms var(--ease-out), box-shadow 600ms var(--ease-out); }
.map-open { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); }
.map-open .i { width: 14px; height: 14px; transition: translate 400ms var(--ease-out); }
@media (any-hover: hover) {
  a.contact-map:hover svg { scale: 1.02; box-shadow: 0 18px 36px -24px rgba(42, 42, 41, .35); }
  a.contact-map:hover .map-open .i { translate: 4px 0; }
}
a.contact-map:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: var(--radius); }
/* Long German words in check lists wrap instead of widening the page */
.check-list strong, .check-list span { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 900px) { .employers-grid { grid-template-columns: minmax(0, 1fr); } }.check-row > div, .check-list li > div { min-width: 0; }
.check-list { grid-template-columns: minmax(0, 1fr); }

/* Practice-area pages: back arrow above the crumb, key points with gold ticks under the intro */
.topic-back { margin-bottom: 4px; }
.topic-back .i { transition: translate 400ms var(--ease-out); }
@media (any-hover: hover) { .topic-back:hover .i { translate: 4px 0; } }
.key-title { margin-top: 30px; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.key-list { display: grid; gap: 12px; margin-top: 14px; max-width: 58ch; }
.key-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.key-list li > span { min-width: 0; transition: translate 500ms var(--ease-out); }
.key-list .i {
  flex: none; width: 24px; height: 24px; padding: 5px; margin-top: 0; border-radius: 50%;
  background: var(--brass-light); color: var(--ink-deep); stroke-width: 2.6;
  transition: scale 500ms var(--ease-out);
}
@media (any-hover: hover) {
  .key-list li:hover > span { translate: 4px 0; }
  .key-list li:hover .i { scale: 1.12; }
}
.topic-hero .key-list + .hero-actions { margin-top: 30px; }
/* Migration Austria logo (from the YouTube channel): wide word mark, sized to the glass bar */
.brand-logo { height: 34px; }
.site-header.is-scrolled .brand-logo { height: 30px; }
.footer-logo { height: 40px; }
@media (max-width: 1080px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 28px; } }
@media (max-width: 480px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 22px; } }
@media (max-width: 360px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 19px; } }

/* ==========================================================================
   All "call" and "e-mail" buttons look the same: brand gold, fully rounded
   ========================================================================== */
.btn[href^="tel:"], .btn[href^="mailto:"] {
  --bg: var(--brass-light); --fg: var(--ink-deep);
  border-color: transparent; border-radius: 999px;
}
.btn[href^="tel:"]::before, .btn[href^="mailto:"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 520ms var(--ease-out);
}
@media (any-hover: hover) {
  .btn[href^="tel:"]:hover, .btn[href^="mailto:"]:hover { --bg: var(--brass-light); --fg: #FFFFFF; border-color: transparent; }
  .btn[href^="tel:"]:hover::before, .btn[href^="mailto:"]:hover::before { transform: translateY(0); }
}
.dock-btn, .dock-call, .dock-write { background: var(--brass-light); color: var(--ink-deep); border-radius: 999px; }
.dock-call .i, .dock-write .i { color: var(--ink-deep); }
@media (any-hover: hover) {
  .dock-btn:hover { background: var(--ink); color: #FFFFFF; }
  .dock-btn:hover .i { color: var(--brass-light); }
}
a.float-card {
  background: var(--brass-light); border-color: transparent; border-radius: 999px;
  padding: 12px 24px 12px 20px; align-items: center;
}
a.float-card strong { color: rgba(42, 42, 41, .75); }
a.float-card .float-card-phone { color: var(--ink-deep); }
a.float-card .dot { margin-top: 0; background: #2E7D45; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
@media (any-hover: hover) { a.float-card:hover { border-color: transparent; } }
/* ==========================================================================
   Four languages (DE · EN · TR · AR) and right-to-left layout for Arabic
   ========================================================================== */
.lang-switch-menu { display: none; }
@media (max-width: 560px) {
  .header-actions .lang-switch { display: none; }
  .mobile-menu .lang-switch-menu { display: inline-flex; width: max-content; margin: 0 0 22px; }
}

/* Arabic: system Arabic typefaces, no letter-spacing (it breaks the joined script), no italics */
html[lang="ar"] {
  --serif: "Cormorant Garamond", "EB Garamond", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", Georgia, serif;
  --sans: "Geist", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] em, html[lang="ar"] .pill { font-style: normal; }
html[lang="ar"] .hero-title, html[lang="ar"] .topic-title { line-height: 1.3; }
html[lang="ar"] .hero-title .line { padding-bottom: .22em; margin-bottom: -.22em; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }

/* Mirror what was laid out for left-to-right */
[dir="rtl"] .hero-side-left { text-align: right; }
[dir="rtl"] .hero-side-right { text-align: left; }
[dir="rtl"] .hero-stats li { text-align: right; }
[dir="rtl"] .hero-trust { justify-items: start; }
[dir="rtl"] .float-card { margin-left: 0; margin-right: auto; text-align: right; }
@media (max-width: 1080px) {
  [dir="rtl"] .hero-side-left, [dir="rtl"] .hero-side-right { text-align: center; }
  [dir="rtl"] .hero-trust { justify-items: center; }
  [dir="rtl"] .float-card { margin-inline: auto; }
}
[dir="rtl"] .topic-facts dd { text-align: left; }
[dir="rtl"] .btn .i, [dir="rtl"] .theme-more .i, [dir="rtl"] .nav-panel-all .i,
[dir="rtl"] .topic-chips .i, [dir="rtl"] .topic-side-link .i, [dir="rtl"] .map-open .i { scale: -1 1; }
[dir="rtl"] .legal-back .i { transform: none; }
[dir="rtl"] .contact-card::before { left: auto; right: clamp(28px, 3.6vw, 48px); }
[dir="rtl"] .nav-panel::before { left: auto; right: 22px; }
[dir="rtl"] .map-open { right: auto; left: 12px; }
[dir="rtl"] .map-label { left: auto; right: 12px; }
/* Phone numbers and e-mail addresses always read left to right */
[dir="rtl"] .float-card-phone, [dir="rtl"] .header-phone span, [dir="rtl"] .contact-list a,
[dir="rtl"] .mobile-menu-actions a[href^="tel:"] span { direction: ltr; unicode-bidi: isolate; }
/* Reviews in Arabic: the German quotes keep their own reading direction and typeface
   (word spans would otherwise be laid out right to left, i.e. backwards) */
[dir="rtl"] .t-slide blockquote p {
  direction: ltr; unicode-bidi: isolate;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
}
[dir="rtl"] .t-count { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .t-prev .i { transform: none; }
[dir="rtl"] .t-next .i { transform: rotate(180deg); }
[dir="rtl"] .t-progress span { transform-origin: right; }
/* Small phones (≈320 px) */
.check-row { flex: 1 1 auto; min-width: 0; }   /* the row may get narrower than its longest word */
.check-row strong { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 360px) {
  .dock-btn { gap: 0; padding: 0 8px; font-size: .8125rem; }
  .dock-btn .i { display: none; }
}
/* ==========================================================================
   Last round: equal call / e-mail buttons, fixed contact buttons in the
   footer (no more floating dock), social icons
   ========================================================================== */
/* Every call and e-mail button has the same size */
.btn[href^="tel:"], .btn[href^="mailto:"] {
  min-width: 15rem; min-height: 52px; padding: 0 28px;
  font-size: .9375rem; justify-content: center; margin-top: 0;
}
@media (max-width: 560px) { .btn[href^="tel:"], .btn[href^="mailto:"] { min-width: 0; width: 100%; } }

/* Fixed contact buttons at the top of every footer */
.footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--sun-line); }
[dir="rtl"] .footer-contact .i { scale: 1 1; }
.site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* Social icons (footer and contact card) */
.social-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social-link {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brass-light); color: var(--ink-deep); text-decoration: none;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out), scale 600ms var(--ease-out);
}
.social-link .i { width: 18px; height: 18px; }
@media (any-hover: hover) {
  .social-link:hover { background: var(--ink); color: #FFFFFF; scale: 1.1; }
}
.contact-list .contact-social { flex-direction: column; gap: 10px; }
.contact-card .social-link { border-bottom: 0; }
.footer-links .social-links { margin-inline-start: 4px; }.employers .btn-light[href^="tel:"] { margin-top: 40px; }
/* Social icons: keep their own look inside link lists that style every <a> / icon */
.footer-links a.social-link, .contact-list a.social-link {
  background: var(--brass-light); background-size: auto; padding: 0; border-bottom: 0; color: var(--ink-deep);
}
.contact-list .social-link .i, .footer-links .social-link .i { color: inherit; margin: 0; }
@media (any-hover: hover) {
  .footer-links a.social-link:hover, .contact-list a.social-link:hover { background: var(--ink); color: #FFFFFF; }
}.contact-card .contact-list a.social-link { background: #F3BA37; }
@media (any-hover: hover) { .contact-card .contact-list a.social-link:hover { background: var(--ink); } }

/* FAQ: long German words in questions may wrap; columns may shrink on small phones */
.acc-btn > span:first-child { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
/* Call + e-mail pair in every section */
.section-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.section-head .section-cta { margin-top: 28px; }
.section-cta-start { justify-content: flex-start; }
.section-cta .btn { margin-top: 0; }
.employers .section-cta { margin-top: 40px; }
.employers .section-cta .btn-light[href^="tel:"] { margin-top: 0; }
@media (max-width: 960px) { .faq .section-cta-start { justify-content: center; } }

/* Hero right column: the two facts (scale + globe) share one icon line */
.hero-trust { justify-content: end; justify-items: start; }
.hero-trust li { text-align: left; }
[dir="rtl"] .hero-trust { justify-content: start; }
[dir="rtl"] .hero-trust li { text-align: right; }
@media (max-width: 1080px) { .hero-trust, [dir="rtl"] .hero-trust { justify-content: center; } }

/* Umlauts: the reveal masks (overflow hidden) must not clip the dots of Ö / Ä / Ü */
.hero-title .line { padding-top: .14em; margin-top: -.14em; }
.topic-title, .legal-title { padding-top: .08em; }
.eyebrow { line-height: 1.6; }.toc-cta { flex-direction: column; margin-top: 28px; }
.toc-cta .btn[href^="tel:"], .toc-cta .btn[href^="mailto:"] { min-width: 0; width: 100%; }

/* Contact form: hidden spam trap and the error message */
/* Clipped in place rather than pushed off-screen: a far negative offset becomes scrollable width in RTL (Arabic) */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-error {
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(163, 40, 31, .08); border: 1px solid rgba(163, 40, 31, .35); color: #8A2219; font-weight: 500;
}
.form-error a { color: inherit; font-weight: 600; }
.form-error:not([hidden]) { animation: rise-in 600ms var(--ease-out) both; }
[dir="rtl"] .form-error a { direction: ltr; unicode-bidi: isolate; }
/* Nothing follows the mouse any more (client's request): no gold edge light on cards */
[data-spotlight]::after { display: none; }
@media (any-hover: hover) {
  .reviews .review[data-spotlight]:hover, .fees .fee[data-spotlight]:hover { background-image: none; }
}