/* ==========================================================================
   WALTER | Rechtsanwälte — Stylesheet
   ========================================================================== */

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; }
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; }
::selection { background: #003055; color: #fff; }

/* ---- Tokens --------------------------------------------------------------
   Farben: Weiß = primärer Hintergrund/Primärfarbe · Schwarz = Text
   #003055 = Sekundär- und Hervorhebungsfarbe
--------------------------------------------------------------------------- */
:root {
  --c-white: #ffffff;
  --c-black: #0b0c0d;
  --c-ink: #14181c;
  --c-ink-70: rgba(20, 24, 28, .72);
  --c-ink-55: rgba(20, 24, 28, .58);
  --c-ink-35: rgba(20, 24, 28, .38);

  --c-navy: #003055;
  --c-navy-2: #012440;
  --c-navy-rgb: 0, 48, 85;
  --c-navy-06: rgba(0, 48, 85, .06);
  --c-navy-10: rgba(0, 48, 85, .1);
  --c-navy-15: rgba(0, 48, 85, .15);
  --c-navy-30: rgba(0, 48, 85, .3);
  --c-navy-55: rgba(0, 48, 85, .55);

  --c-mist: #f5f4f1;      /* warm off-white alt background */
  --c-haze: #eef2f5;      /* cool navy-tinted alt background */
  --c-line: rgba(20, 24, 28, .1);
  --c-line-on-navy: rgba(255, 255, 255, .16);

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1288px;
  --pad: clamp(20px, 5.4vw, 56px);
  --pad-narrow: clamp(20px, 5.4vw, 40px);
  --section-y: clamp(64px, 9vw, 124px);
  --section-y-sm: clamp(44px, 6vw, 80px);

  --radius: 2px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;
}

body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html { overflow-x: hidden; }
p, li, .lead { overflow-wrap: break-word; hyphens: auto; }
.split > *,
.grid > *,
.footer-top > *,
.footer-contact-item,
.hero-inner,
.section-head,
.section-head-row > *,
.article-body,
.rg-sidebar,
.info-card { min-width: 0; }

/* ---- Layout --------------------------------------------------------------*/
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); position: relative; }
.section--sm { padding-block: var(--section-y-sm); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--xs { padding-block: clamp(30px, 3.4vw, 42px); }

.bg-white { background: var(--c-white); color: var(--c-ink); }
.bg-mist { background: var(--c-mist); color: var(--c-ink); }
.bg-haze { background: var(--c-haze); color: var(--c-ink); }
.bg-navy { background: var(--c-navy); color: var(--c-white); }
.bg-navy .c-ink-70-on { color: rgba(255, 255, 255, .68); }

.bg-navy a:not(.btn) { color: inherit; }

/* Equal-height split layout: left/right content always match length */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(32px, 6vw, 96px);
}
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }
.split--sidebar { grid-template-columns: 1.7fr 1fr; align-items: start; }
.split--natural { align-items: start; }
.split-media { position: relative; overflow: hidden; min-height: 320px; background: var(--c-navy-06); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-building-media img { object-position: center top; }
.kanzlei-location-media img { object-position: center 12%; }
/* Shows the complete, un-cropped photo at its natural aspect ratio instead
   of being stretched/cover-cropped to match the text column's height. */
.split-media--natural { min-height: 0; overflow: visible; background: none; }
.split-media--natural img { position: static; width: 100%; height: auto; object-fit: initial; }
.split-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.split-body--top { justify-content: flex-start; padding-top: 8px; }

/* Compact fact list woven into a profile's text column (Anwalt pages) */
.fact-rows { display: flex; flex-direction: column; }
.fact-row { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; color: var(--c-ink-70); line-height: 1.5; }
.fact-row:first-child { border-top: 1px solid var(--c-line); }
.fact-row svg { color: var(--c-navy); flex-shrink: 0; margin-top: 3px; }
.fact-row span { min-width: 0; overflow-wrap: anywhere; }

/* Anwalt profile photo: capped narrower so it no longer dominates the
   column next to the (often much taller) bio + career facts. */
.split:has(.anwalt-photo) {
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
}
.split:has(.anwalt-photo) .split-body {
  max-width: 620px;
}
.anwalt-photo {
  width: 100%;
  max-width: 380px;
  justify-self: end;
}
.anwalt-photo img {
  display: block;
  width: 100%;
  max-width: 380px;
}

/* Contact details + CTA moved out of the (variable-height) text column and
   into one full-width bar beneath image + bio + career facts — this is the
   one place both columns are guaranteed to share a common bottom edge,
   instead of one column's contact block dangling below a shorter photo. */
.anwalt-contact-bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(32px, 4.5vw, 52px); padding-top: 32px; border-top: none;
}
.anwalt-contact-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  width: min(calc(100% - var(--pad) - var(--pad)), 1044px);
  height: 1px;
  background: var(--c-line);
}
.anwalt-contact-items { display: flex; gap: 32px; flex-wrap: wrap; }
.anwalt-contact-items span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-ink-70); }
.anwalt-contact-items svg { color: var(--c-navy); flex-shrink: 0; }
.anwalt-contact-items a { overflow-wrap: anywhere; }
.anwalt-contact-items a:hover { color: var(--c-navy); }
@media (max-width: 700px) {
  .anwalt-contact-bar { flex-direction: column; align-items: flex-start; }
  .anwalt-contact-bar .btn { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .split, .split--sidebar { grid-template-columns: 1fr; }
  .split:has(.anwalt-photo) { grid-template-columns: 1fr; }
  .split--rev { direction: ltr; }
  .split-media { min-height: 46vw; max-height: 440px; }
  .split-media--natural { min-height: 0; max-height: none; }
  .anwalt-photo { justify-self: start; }
}

/* ---- Typography ----------------------------------------------------------*/
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: 18px;
}
.bg-navy .kicker { color: rgba(255, 255, 255, .72); }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; flex-shrink: 0; }

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--c-navy);
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.bg-navy h1, .bg-navy .h1 { color: var(--c-white); }

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.14;
  letter-spacing: -.005em;
  color: var(--c-navy);
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.bg-navy h2, .bg-navy .h2 { color: var(--c-white); }

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.25;
  color: var(--c-navy);
  overflow-wrap: break-word;
  hyphens: auto;
}
.bg-navy h3, .bg-navy .h3 { color: var(--c-white); }

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--c-navy);
}
.bg-navy h4, .bg-navy .h4 { color: var(--c-white); }

.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--c-ink-70); font-weight: 400; }
.bg-navy .lead { color: rgba(255, 255, 255, .74); }
p { color: var(--c-ink-70); }
.bg-navy p { color: rgba(255, 255, 255, .7); }
p + p { margin-top: 14px; }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--wide { max-width: 960px; }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.section-head-row .section-head { margin-bottom: 0; }
@media (max-width: 700px) {
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.eq { color: var(--c-navy); font-style: italic; font-family: var(--font-serif); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn--navy { background: var(--c-navy); color: var(--c-white); }
.btn--navy:hover { background: var(--c-navy-2); }

.btn--outline-navy { border-color: var(--c-navy-30); color: var(--c-navy); }
.btn--outline-navy:hover { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

.btn--white { background: var(--c-white); color: var(--c-navy); }
.btn--white:hover { background: var(--c-navy); color: var(--c-white); }

.btn--outline-white { border-color: rgba(255, 255, 255, .45); color: var(--c-white); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); }

.btn--ghost { color: var(--c-navy); padding: 10px 0; gap: 8px; }
.btn--ghost::after { content: ''; }
.bg-navy .btn--ghost { color: var(--c-white); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--c-navy); border-bottom: 1px solid var(--c-navy-30);
  padding-bottom: 3px; transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.text-link:hover { border-color: var(--c-navy); gap: 12px; }
.text-link svg { width: 13px; height: 13px; }
.bg-navy .text-link { color: var(--c-white); border-color: rgba(255, 255, 255, .35); }
.bg-navy .text-link:hover { border-color: #fff; }

/* ---- Icon utility ------------------------------------------------------ */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; stroke-width: 1.2; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: var(--c-navy-06);
  color: var(--c-navy);
  border-radius: 1px;
  flex-shrink: 0;
}
.bg-navy .icon-tile { background: rgba(255, 255, 255, .1); color: var(--c-white); }
.icon-tile .icon { width: 24px; height: 24px; stroke-width: 1.3; }
.icon-tile--sm { width: 40px; height: 40px; }
.icon-tile--sm .icon { width: 19px; height: 19px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
  opacity: 1; transition: opacity var(--dur) var(--ease); pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 12px 32px -14px rgba(0, 48, 85, .18);
}

.header-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  transition: padding var(--dur) var(--ease);
}
.site-header.is-scrolled .header-row { padding-block: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: clamp(190px, 15vw, 245px);
  height: 34px;
  overflow: hidden;
}
.brand img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-49%);
  filter: brightness(0) invert(1);
  transition: filter var(--dur) var(--ease);
}
.site-header.is-scrolled .brand img { filter: none; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, .92);
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.site-header.is-scrolled .nav-link { color: var(--c-ink); }
.site-header.is-scrolled .nav-link:hover { color: var(--c-navy); }
.nav-link .chev { width: 9px; height: 9px; opacity: .6; transition: transform .25s var(--ease); }
.main-nav > li:hover .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}
.site-header.is-scrolled .lang-switch { color: var(--c-ink-55); }
.lang-switch button {
  padding: 3px 2px; color: inherit; opacity: .55; transition: opacity .25s var(--ease), color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; color: #fff; border-color: rgba(255, 255, 255, .6); }
.site-header.is-scrolled .lang-switch button[aria-pressed="true"] { color: var(--c-navy); border-color: var(--c-navy); }
.lang-switch .sep { opacity: .35; font-size: 11px; }

.header-cta {
  padding: 9px 16px;
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  transition: all var(--dur) var(--ease);
}
.header-cta:hover { background: #fff; color: var(--c-navy); }
.site-header.is-scrolled .header-cta { color: var(--c-navy); border-color: var(--c-navy-30); }
.site-header.is-scrolled .header-cta:hover { background: var(--c-navy); color: #fff; }

.menu-btn {
  display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: 4px;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: #fff; transition: all .3s var(--ease); }
.site-header.is-scrolled .menu-btn span { background: var(--c-navy); }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Dropdown panels */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.main-nav > li:hover .dropdown,
.main-nav > li:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.dropdown-panel {
  background: rgba(255, 255, 255, .98); border-top: 2px solid var(--c-navy);
  box-shadow: 0 30px 70px -22px rgba(0, 48, 85, .34);
  padding: 28px 30px;
}
.dropdown-panel--wide { width: min(980px, 90vw); }
.dropdown-panel--narrow { width: 300px; padding: 16px; }

.dd-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.dd-col-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-navy-55); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line);
}
.dd-col a {
  display: block; font-size: 13.5px; color: var(--c-ink); padding: 6px 0;
  transition: color .2s var(--ease), transform .2s var(--ease); line-height: 1.4;
}
.dd-col a:hover { color: var(--c-navy); transform: translateX(3px); }

.dropdown-panel--narrow a {
  display: block; padding: 10px 12px; font-size: 13.5px; color: var(--c-ink);
  border-radius: 1px; transition: background .2s var(--ease), color .2s var(--ease);
  line-height: 1.35;
}
.dropdown-panel--narrow a small { display: none; }
.dropdown-panel--narrow a:hover { background: var(--c-mist); color: var(--c-navy); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 950;
  background: var(--c-navy);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  flex-shrink: 0;
}
.mobile-nav-top img {
  width: 250px;
  height: 36px;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0) invert(1);
}
.mobile-nav-close { display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-nav-close span { display: block; width: 22px; height: 1.5px; background: #fff; }
.mobile-nav-close span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-nav-close span:nth-child(2) { opacity: 0; }
.mobile-nav-close span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav-body { flex: 1; overflow-y: auto; padding: 6px var(--pad) 40px; }
.m-nav-item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.m-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px;
  font-family: var(--font-serif); font-size: 21px; color: #fff;
}
.m-nav-item.has-children .m-nav-link { cursor: pointer; }
.m-nav-link .chev { width: 12px; height: 12px; color: rgba(255, 255, 255, .55); transition: transform .3s var(--ease); flex-shrink: 0; }
.m-nav-item.is-open .m-nav-link .chev { transform: rotate(180deg); }
.m-sub {
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
}
.m-nav-item.is-open .m-sub { max-height: 1400px; }
.m-sub-inner { padding: 4px 2px 22px; }
.m-sub-group { margin-bottom: 16px; }
.m-sub-group-title { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 6px; }
.m-sub a { display: block; padding: 8px 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
.m-sub a:hover { color: #fff; }
.mobile-nav-foot { padding: 20px var(--pad) 34px; border-top: 1px solid rgba(255, 255, 255, .12); flex-shrink: 0; }
.mobile-nav-foot .btn { width: 100%; justify-content: center; margin-bottom: 16px; }
.mobile-lang { display: flex; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.mobile-lang button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1080px) {
  .main-nav, .header-actions .lang-switch, .header-cta { display: none; }
  .menu-btn { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.hero--home { height: 100svh; min-height: 640px; align-items: center; }
.hero--page { height: 42svh; min-height: 300px; max-height: 440px; align-items: center; padding-top: 60px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,14,26,.76) 0%, rgba(0,14,26,.58) 34%, rgba(0,14,26,.7) 76%, rgba(0,14,26,.94) 100%);
}
.hero--page .hero-scrim {
  background: linear-gradient(180deg, rgba(0,14,26,.62) 0%, rgba(0,14,26,.42) 45%, rgba(0,14,26,.72) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-block: 90px 0; }
.hero--page .hero-content { padding-block: 0; }
.hero--home .hero-content { padding-bottom: 84px; }
.hero-inner { max-width: 760px; }
.hero-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .58); margin-bottom: 18px;
  letter-spacing: .02em;
}
.hero-crumb a:hover { color: #fff; }
.hero-crumb .sep { opacity: .5; }
.hero-crumb,
.hero-eyebrow,
.post-cat { display: none !important; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: rgba(255, 255, 255, .6); }
.hero-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 74px); line-height: 1.06; color: #fff; letter-spacing: -.01em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .58);
}
.hero--home .hero-title { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.12; }
.hero--page .hero-title { font-size: clamp(32px, 4.2vw, 52px); }
.hero-sub {
  margin-top: 20px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.7;
  color: rgba(255, 255, 255, .96); max-width: 560px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .62);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-meta svg { width: 13px; height: 13px; }
.hero-meta .sep { width: 1px; height: 13px; background: rgba(255, 255, 255, .28); }

/* Thin, self-playing practice-area ticker docked to the hero's bottom edge */
.hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-block: 10px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 16, 28, .32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-ticker-viewport { overflow: hidden; padding-inline: var(--pad); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hero-ticker-track { display: flex; align-items: center; width: max-content; animation: ht-scroll 75s linear infinite; }
.hero-ticker:hover .hero-ticker-track { animation-play-state: paused; }
.ht-item {
  flex: 0 0 auto; padding: 3px 0; font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, .68); white-space: nowrap; transition: color .2s var(--ease);
}
.ht-item:hover { color: #fff; }
.ht-dot { flex: 0 0 auto; width: 3px; height: 3px; margin: 0 20px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
@keyframes ht-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none; }
}

@media (max-width: 700px) {
  .hero--home { height: 100svh; }
  .hero--page { height: auto; min-height: 320px; align-items: flex-end; padding-top: 82px; }
  .hero--page .hero-content { padding-block: 58px 44px; }
  .hero--page .hero-title { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.13; }
  .hero--home .hero-title { font-size: clamp(29px, 8vw, 33px); line-height: 1.15; }
  .hero-title,
  .hero-sub { overflow-wrap: anywhere; }
  .hero-sub { font-size: 15.5px; line-height: 1.62; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions { max-width: 336px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .ht-dot { margin: 0 16px; }
}
@media (max-width: 520px) {
  .hero--page { min-height: 300px; }
  .hero--home .hero-content { padding-bottom: 70px; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */

/* Practice-area card (grid contexts) */
.rg-tile {
  display: block; padding: 26px 24px; background: var(--c-white);
  border: 1px solid var(--c-line); transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  height: 100%;
}
.rg-tile:hover { box-shadow: 0 22px 48px -20px rgba(0, 48, 85, .28); border-color: transparent; transform: translateY(-3px); }
.rg-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rg-tile-name { font-family: var(--font-serif); font-size: 18px; color: var(--c-navy); line-height: 1.3; margin-bottom: 8px; }
.rg-tile-desc { font-size: 13px; color: var(--c-ink-55); line-height: 1.6; }
.rg-tile-arrow { width: 15px; height: 15px; color: var(--c-navy-55); transition: transform .3s var(--ease); }
.rg-tile:hover .rg-tile-arrow { transform: translateX(4px); color: var(--c-navy); }

/* Category feature block (home Leistungen section) */
.cat-card {
  background: var(--c-white); border-top: 2px solid var(--c-navy); padding: 30px 0 0;
  display: flex; flex-direction: column; height: 100%;
}
.cat-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-inline: 22px; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; line-height: 1.65; }
.cat-card .icon-tile { width: 44px; height: 44px; }
.cat-card .icon-tile .icon { width: 21px; height: 21px; }
#leistungen .lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 760px;
  text-wrap: balance;
}
#leistungen .cat-card h3 {
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.25;
}
#team .section-head h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  white-space: nowrap;
}
/* Aligned 2-column list instead of a wrapped tag-cloud: every cell sits in a
   fixed grid track regardless of label length, so all three category cards
   keep an identical, flush right edge — and the list is roughly half the
   height of a single-column list, keeping the whole section compact. */
.cat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 10px;
  padding: 0 22px 24px;
  flex: 1;
  align-content: start;
}
.cat-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 38px;
  padding: 9px 11px; font-size: 13px; color: var(--c-ink);
  background: var(--c-mist);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.cat-list-item:nth-child(odd),
.cat-list-item:nth-child(even) { border-right: none; padding-left: 11px; }
.cat-list-item svg { width: 11px; height: 11px; color: var(--c-navy-55); opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); flex-shrink: 0; }
.cat-list-item:hover { color: var(--c-navy); background: var(--c-haze); }
.cat-list-item:hover svg { opacity: 1; transform: translateX(0); }
@media (max-width: 560px) {
  .cat-list { grid-template-columns: 1fr; padding-inline: 20px; }
  .cat-card { padding-top: 24px; }
  .cat-card-top { display: block; padding-inline: 20px; }
  .cat-card .icon-tile { margin-bottom: 16px; }
  .cat-list-item,
  .cat-list-item:nth-child(odd),
  .cat-list-item:nth-child(even) { border-right: none; padding: 11px 12px; }
}

/* Lawyer / team card */
.person-card { display: block; }
.person-photo { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--c-mist); margin-bottom: 18px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.person-card:hover .person-photo img { transform: scale(1.045); }
.person-card--compact .person-name { font-size: 16px; }
.person-card--compact .person-role { font-size: 11.5px; }
.person-photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-navy);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.person-card:hover .person-photo::after { transform: scaleX(1); }
.person-name { font-family: var(--font-serif); font-size: 19px; color: var(--c-navy); margin-bottom: 4px; }
.person-role { font-size: 12.5px; color: var(--c-ink-55); line-height: 1.5; }

/* Blog card */
.post-card { display: block; }
.post-media { position: relative; overflow: hidden; aspect-ratio: 16/11; background: var(--c-mist); margin-bottom: 20px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-cat { display: none; }
.post-title { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; color: var(--c-navy); margin-bottom: 10px; }
.post-excerpt { font-size: 13.5px; color: var(--c-ink-55); line-height: 1.7; margin-bottom: 16px; }
.post-meta { font-size: 12px; color: var(--c-ink-35); display: flex; gap: 10px; align-items: center; }

/* Rechtsgebiet — Ansprechpartner mini card (standalone use, e.g. blog author).
   One text size for name, one for everything else — no third size, no extra
   nested row. */
.rg-contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--c-white);
  border: 1px solid var(--c-line); transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.rg-contact-card:hover { box-shadow: 0 16px 36px -20px rgba(0, 48, 85, .3); border-color: transparent; }
.rg-contact-card img { width: 52px; height: 52px; object-fit: cover; object-position: top center; flex-shrink: 0; }
.rg-contact-name { font-family: var(--font-serif); font-size: 15px; color: var(--c-navy); line-height: 1.3; }
.rg-contact-meta { font-size: 12.5px; color: var(--c-ink-55); margin-top: 3px; line-height: 1.4; }

/* Rechtsgebiet — Ansprechpartner sidebar. One bordered container is enough;
   the contacts inside are a flat, divided list rather than cards-in-a-card. */
.rg-sidebar { background: var(--c-white); border: 1px solid var(--c-line); padding: 30px; display: flex; flex-direction: column; }
.rg-sidebar h4 { margin-bottom: 4px; }
.rg-sidebar .rg-contact-list { display: flex; flex-direction: column; }
.rg-sidebar .rg-contact-card {
  background: none; border: none; border-top: 1px solid var(--c-line); border-radius: 0;
  padding: 16px 0; margin: 0;
}
.rg-sidebar .rg-contact-card:hover { background: none; box-shadow: none; }
.rg-sidebar .rg-contact-card:hover .rg-contact-name { color: var(--c-navy-2); }
.rg-sidebar-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--c-line);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--c-navy);
}
.rg-sidebar-cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.rg-sidebar-cta:hover svg { transform: translateX(4px); }

.split--sidebar {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: start;
}
.split--sidebar .split-body {
  display: block;
  justify-content: flex-start !important;
}
.split--sidebar .split-body > .kicker { display: none; }
.split--sidebar .split-body h2 { margin-bottom: 14px; }
.split--sidebar .lead { margin-top: 0 !important; }

/* Rechtsgebiet — Leistungen as individual cards with an icon each */
.leistung-card {
  background: var(--c-white); border: 1px solid var(--c-line); padding: 30px 26px; height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.leistung-card:hover { box-shadow: 0 22px 48px -22px rgba(0, 48, 85, .28); border-color: transparent; transform: translateY(-3px); }
.leistung-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.28;
  color: var(--c-navy);
  margin-top: 2px;
}
.leistung-card p { font-size: 14.5px; line-height: 1.75; color: var(--c-ink-70); }

/* Job card */
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 32px; border: 1px solid var(--c-line); transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.job-card:hover { box-shadow: 0 20px 44px -22px rgba(0, 48, 85, .3); border-color: transparent; }
.job-title { font-family: var(--font-serif); font-size: 21px; color: var(--c-navy); margin-bottom: 8px; }
.job-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.job-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--c-navy-55); display: inline-flex; align-items: center; gap: 6px; }
.job-tag svg { width: 13px; height: 13px; }

.benefit-card {
  min-height: 150px;
  padding: 28px 24px;
  background: var(--c-white);
  border-top: 2px solid var(--c-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.benefit-card .icon-tile { width: 46px; height: 46px; }
.benefit-card h4 { line-height: 1.45; }

/* Value / feature list */
.feat-list { display: flex; flex-direction: column; }
.feat-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--c-line); }
.feat-list .feat-item:last-child { border-bottom: 1px solid var(--c-line); }
.bg-navy .feat-item { border-color: var(--c-line-on-navy); }
.feat-item h4 { margin-bottom: 6px; }
.feat-item p { font-size: 13.5px; }

/* Stats row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border: none; gap: 28px; margin-top: clamp(28px, 3.2vw, 46px); }
.bg-navy .stat-row { border-color: var(--c-line-on-navy); }
.stat { padding: 0; text-align: left; border-left: none; }
.bg-navy .stat { border-color: var(--c-line-on-navy); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-serif); font-size: clamp(28px, 3.15vw, 38px); font-weight: 400; color: var(--c-navy); line-height: 1; }
.bg-navy .stat-num { color: #fff; }
.stat-label { font-size: 16px; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--c-ink-70); margin-top: 8px; }
.bg-navy .stat-label { color: rgba(255, 255, 255, .55); }

/* Quote / pull */
.pull-quote { border-left: 2px solid var(--c-navy); padding-left: 26px; }
.pull-quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 2vw, 23px); color: var(--c-navy); line-height: 1.5; }
.bg-navy .pull-quote p { color: #fff; }
.pull-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-55); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--airy { gap: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
#team .grid-6,
#team .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.grid-3.blog-listing { gap: 40px 32px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } .stat-row { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3){border-left:none;} .stat:nth-child(n+3){border-top:1px solid var(--c-line);} }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }
.stat-row .stat,
.stat-row .stat:nth-child(n+3) { border: none; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
/* Progressive enhancement: content is visible by default (no-JS, slow JS,
   crawlers, print). Only once main.js confirms it can drive the reveal
   does html.js-anim switch elements to the animated hidden→visible state. */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   BREADCRUMB / TOC / PROSE (legal + article pages)
   ========================================================================== */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 48px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 30px; margin-bottom: 12px; }
.prose p { font-size: 15px; line-height: 1.85; margin-bottom: 16px; color: var(--c-ink-70); }
.prose ul, .prose ol { margin: 0 0 16px 0; padding-left: 0; }
.prose li { list-style: none; padding-left: 26px; position: relative; font-size: 15px; line-height: 1.8; color: var(--c-ink-70); margin-bottom: 8px; }
.prose li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--c-navy); }
.prose a { color: var(--c-navy); border-bottom: 1px solid var(--c-navy-30); }
.prose a:hover { border-color: var(--c-navy); }
.prose strong { color: var(--c-ink); font-weight: 600; }

.article-body { font-size: 16px; }
.article-body h2 { font-family: var(--font-serif); font-size: 26px; color: var(--c-navy); margin: 44px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 16px; line-height: 1.9; margin-bottom: 18px; color: var(--c-ink-70); }
.article-body ul { margin: 0 0 18px 4px; }
.article-body li { list-style: none; padding-left: 24px; position: relative; margin-bottom: 10px; line-height: 1.8; color: var(--c-ink-70); }
.article-body li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--c-navy); }
.article-body blockquote { border-left: 2px solid var(--c-navy); padding-left: 22px; font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--c-navy); margin: 28px 0; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-55); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--c-line);
  padding: 11px 2px; font-family: var(--font-sans); font-size: 15px; color: var(--c-ink);
  transition: border-color .3s var(--ease); outline: none; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  min-height: 50px;
  background-color: var(--c-white);
  border: 1px solid var(--c-line);
  border-bottom-color: var(--c-line);
  padding: 12px 44px 12px 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23003055' stroke-width='1.35' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-position: right 15px center;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--c-navy); }
.field select:focus { border-color: var(--c-navy); box-shadow: 0 0 0 3px var(--c-navy-06); }
.field select option { font-family: var(--font-sans); color: var(--c-ink); background: var(--c-white); }
.field input::placeholder, .field textarea::placeholder { color: var(--c-ink-35); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.field-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--c-navy); flex-shrink: 0; }
.field-check label { font-size: 13px; color: var(--c-ink-55); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field-check a { color: var(--c-navy); border-bottom: 1px solid var(--c-navy-30); }
.form-submit {
  display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between;
  padding: 18px 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-navy); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.form-submit:hover { color: var(--c-navy-2); }
.form-submit svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.form-submit:hover svg { transform: translateX(6px); }
.form-note { font-size: 12px; color: var(--c-ink-35); margin-top: 16px; line-height: 1.7; }
.form-status { font-size: 13.5px; margin-top: 16px; display: none; padding: 12px 14px; }
.form-status.is-ok { display: block; background: rgba(0,48,85,.06); color: var(--c-navy); }
.form-status.is-err { display: block; background: rgba(180,40,40,.08); color: #7a1f1f; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Contact info card */
.info-card { padding: 34px; background: var(--c-mist); }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row svg { width: 17px; height: 17px; color: var(--c-navy); flex-shrink: 0; margin-top: 2px; }
.info-row div { font-size: 14.5px; line-height: 1.6; color: var(--c-ink-70); }
.info-row a:hover { color: var(--c-navy); }

.map-frame { border: none; width: 100%; height: 100%; min-height: 320px; filter: grayscale(28%) contrast(1.02); }

/* Contact page */
.contact-grid {
  align-items: stretch;
  gap: clamp(42px, 5vw, 64px);
}
.contact-panel {
  display: flex;
  flex-direction: column;
}
.contact-panel h2 { margin-bottom: 26px; }
.contact-panel--form form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-panel--form .field:has(textarea) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-panel--form textarea {
  flex: 1;
  min-height: 190px;
}
.contact-section .field label {
  color: var(--c-ink-70);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
}
.contact-section .field select {
  min-height: 46px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  padding: 11px 30px 11px 2px;
  background-size: 9px 9px;
  background-position: right 2px center;
}
.contact-section .field select:focus {
  border-color: transparent;
  border-bottom-color: var(--c-navy);
  box-shadow: none;
}
.contact-section .field select.is-enhanced {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.custom-select {
  position: relative;
}
.custom-select-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  text-align: left;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.custom-select-button.is-placeholder { color: var(--c-ink-35); }
.custom-select-button:hover,
.custom-select.is-open .custom-select-button {
  border-bottom-color: var(--c-navy);
}
.custom-select-button svg {
  width: 10px;
  height: 10px;
  color: var(--c-navy);
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.custom-select.is-open .custom-select-button svg { transform: rotate(180deg); }
.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  background: var(--c-white);
  border-top: 2px solid var(--c-navy);
  box-shadow: 0 24px 58px -28px rgba(0, 48, 85, .42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--c-ink);
  text-align: left;
}
.custom-select-option:hover,
.custom-select-option.is-selected {
  background: var(--c-mist);
  color: var(--c-navy);
}
.contact-section .form-submit {
  width: auto;
  align-self: flex-start;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--c-navy);
  color: var(--c-white);
  border: 1px solid var(--c-navy);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.contact-section .form-submit:hover {
  background: var(--c-navy-2);
  color: var(--c-white);
}
.contact-section .form-submit svg { width: 16px; height: 16px; }
.contact-info.info-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
}
.contact-info .contact-fax {
  display: inline;
  font-size: inherit;
  opacity: 1;
  color: inherit;
}
.contact-photo {
  flex: 1;
  min-height: 300px;
  margin-top: 30px;
}
.contact-photo img { object-position: center 44%; }

#karriere .lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 760px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--c-navy); color: rgba(255, 255, 255, .82); }
.footer-top { display: grid; grid-template-columns: 1fr 2.7fr; gap: 72px; padding-block: 82px 64px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand img {
  width: clamp(190px, 15vw, 245px);
  height: 34px;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0) invert(1);
  opacity: .96;
  margin-bottom: 22px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .72); max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(132px, 1fr)); gap: 32px 34px; }
.footer-col h5 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .92); margin-bottom: 16px; }
.footer-col-title { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .92); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .82); margin-bottom: 12px; line-height: 1.55; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; padding-block: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-contact-item { padding-inline: 42px; border-left: 1px solid rgba(255, 255, 255, .12); }
.footer-contact-item:first-child { padding-left: 0; border-left: none; }
.footer-contact-item h5 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .9); opacity: 1; margin-bottom: 12px; }
.footer-contact-item div, .footer-contact-item a { font-family: var(--font-sans); font-size: 15px; color: #fff; line-height: 1.6; display: block; }
.footer-contact-item .fx-small { font-family: var(--font-sans); font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-copy { font-size: 12px; color: rgba(255, 255, 255, .68); }
.footer-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255, 255, 255, .72); }
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-contact-row { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact-item { padding-inline: 0; border-left: none; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-contact-item:first-child { border-top: none; padding-top: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   BREADCRUMB (in-page, used on non-hero content contexts if needed)
   ========================================================================== */
.related-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.related-pill {
  font-size: 12.5px; color: var(--c-navy); border: 1px solid var(--c-navy-15); padding: 11px 19px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.related-pill:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* "Related topics" band: label + pills, with enough room to breathe without
   ballooning into a full empty-feeling section. */
.related-band { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.related-band-label { flex-shrink: 0; }
.related-band-title { font-family: var(--font-serif); font-size: 20px; color: var(--c-navy); margin-top: 2px; }
.related-band .related-strip { flex: 1; }
@media (max-width: 700px) {
  .related-band { align-items: flex-start; gap: 18px; }
}

/* Numbered list used for the Leistungen bullets on Rechtsgebiet pages —
   full sentences with real breathing room, not a cramped checklist grid. */
.step-list { display: flex; flex-direction: column; }
.step-item { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--c-line); }
.step-item:first-child { border-top: 1px solid var(--c-line); }
.step-item:last-child { border-bottom: 1px solid var(--c-line); }
.step-num { flex-shrink: 0; min-width: 24px; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--c-navy); }
.step-item h4 { margin-bottom: 4px; }
.step-item p { font-size: 15px; line-height: 1.75; color: var(--c-ink-70); }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--c-navy-55); margin-bottom: 28px; }
.back-link:hover { color: var(--c-navy); }
.back-link svg { width: 13px; height: 13px; transform: rotate(180deg); }

/* 404 */
.notfound { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-navy); color: #fff; padding: 12px 20px; z-index: 1200; }
.skip-link:focus { left: 12px; top: 12px; }

/* Utility spacing */
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.divider { height: 1px; background: var(--c-line); }
.bg-navy .divider { background: var(--c-line-on-navy); }
.center { text-align: center; margin-inline: auto; }

@media (max-width: 900px) {
  h1, .h1 { font-size: clamp(32px, 8vw, 46px); }
  .section { padding-block: var(--section-y-sm); }
  .grid-3 { gap: 18px; }
}

/* Mobile polish: keep cards, long German headings and footer blocks from
   squeezing into awkward two-column layouts on phone-sized screens. */
@media (max-width: 760px) {
  :root {
    --section-y-sm: clamp(42px, 12vw, 64px);
  }

  .header-row { padding-block: 10px; }
  .brand { width: min(225px, calc(100vw - 92px)); height: 32px; }

  body,
  main,
  section,
  .site-footer,
  .hero,
  .hero-content,
  .wrap,
  .grid,
  .post-card,
  .cat-card,
  .leistung-card,
  .split-body,
  .article-body {
    width: 100%;
    max-width: 100%;
  }

  .hero-inner {
    width: 100%;
    max-width: 336px;
  }

  .hero-sub,
  .hero-actions,
  .post-card,
  .cat-card,
  .leistung-card,
  .rg-sidebar,
  .info-card {
    width: 100%;
    max-width: 336px;
  }

  .grid:has(.post-card),
  .grid:has(.cat-card),
  .grid:has(.leistung-card) { justify-items: center; }

  .split,
  .split--sidebar {
    grid-template-columns: 1fr !important;
  }
  .split--rev { direction: ltr; }
  .split--sidebar .split-body { display: block; }

  .section-head,
  .section-head--wide,
  .section-head-row .section-head { max-width: 100%; margin-bottom: 24px; }
  .section-head-row { gap: 12px; }
  .section-head h2,
  .section-head-row h2 { font-size: clamp(26px, 8vw, 34px); line-height: 1.16; }

  #leistungen .grid-3,
  .grid-3.blog-listing,
  .section .grid.grid-3:has(.post-card),
  .section .grid.grid-3:has(.leistung-card) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #team .grid-6,
  #team .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  #team .section-head h2 { white-space: normal; }

  .post-title { font-size: 19px; line-height: 1.34; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
  .post-excerpt { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .post-media { margin-bottom: 14px; }

  .leistung-card { padding: 24px 20px; }
  .leistung-card h3 { font-size: 19px; }

  .rg-sidebar { padding: 24px 20px; }
  .rg-sidebar .rg-contact-card { align-items: flex-start; }

  .rg-contact-card,
  .info-row { min-width: 0; }
  .info-row a,
  .footer-contact-item a,
  .footer-col a,
  .footer-bottom-copy { overflow-wrap: anywhere; }

  .section--tight .wrap > .reveal[style*="aspect-ratio"] {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: 100%;
    max-width: 390px;
    margin-inline: 0;
  }

  #team .grid-6,
  #team .grid-3,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .person-card { max-width: 360px; width: 100%; }
  #team .person-card { margin-inline: auto; }
  .person-photo { margin-bottom: 14px; }
  .person-name { font-size: 18px; line-height: 1.28; }

  .split-media { min-height: 62vw; }
  .home-building-media { min-height: 78vw; }
  .stat-row { gap: 18px; margin-top: 28px; }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding-inline: 22px;
  }

  .footer-top { padding-block: 54px 40px; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand img { width: min(225px, 100%); height: 32px; }
  .footer-contact-row { padding-block: 34px; }
  .footer-contact-item div,
  .footer-contact-item a,
  .footer-contact-item .fx-small { font-size: 14.5px; }

  .info-card { padding: 24px 20px; }
  .article-body h2 { font-size: 23px; line-height: 1.2; }
  .article-body p,
  .article-body li { font-size: 15px; line-height: 1.78; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 18px; }
  .brand { width: min(205px, calc(100vw - 86px)); height: 30px; }
  .mobile-nav-top img { width: min(250px, calc(100vw - 96px)); height: 36px; }
  .hero--page .hero-title { font-size: clamp(26px, 8vw, 32px); }
  .hero-sub { font-size: 15px; }
  .section-head h2,
  .section-head-row h2 { font-size: clamp(25px, 7.6vw, 31px); }
  .cat-card h3 { font-size: 22px; }
}
