/* Four editorial themes, one shared illustration language. */
.law-hero.hero-carousel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 84px;justify-content:stretch;position:relative;min-height:720px;height:100svh;max-height:1080px;overflow:hidden;background:#11283a;color:#f7f1e7;isolation:isolate}
.hero-slides{position:relative;min-height:0}
.hero-slide{position:absolute;inset:0;isolation:isolate;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility 0s .18s;overflow:hidden;background:#11283a}
.hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .55s ease .12s,visibility 0s;z-index:1}
.hero-slide:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(112deg,#1d374a 0%,#11283a 58%,#1c3447 100%)}
.hero-slide-unternehmen:before{background:linear-gradient(112deg,#102332,#122b3c 55%,#223e50)}
.hero-slide-familie:before{background:linear-gradient(112deg,#1a2c3c,#192d3d 55%,#39434a)}
.hero-slide-nachfolge:before{background:linear-gradient(112deg,#112a3b,#102738 55%,#223c4e)}
.hero-carousel .hero-content{position:relative;height:100%;padding-block:110px 55px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;pointer-events:none}
.hero-carousel .hero-content>a,.hero-actions>a{pointer-events:auto}
.hero-carousel .hero-overline{font-size:9px;letter-spacing:.16em;color:#d4b496;margin:0 0 26px;line-height:1.65;max-width:57%}
.law-page .hero-carousel .hero-title{font-family:'Caslon Display',Georgia,serif;font-weight:400;font-size:clamp(58px,6.4vw,100px);line-height:1.015;letter-spacing:-.025em;margin:0 0 24px;max-width:66%;text-wrap:balance}
.hero-carousel .hero-intro{font-size:14px;line-height:1.85;max-width:440px;width:44%;color:#c6d2d9;font-weight:400}
.hero-carousel .hero-link{margin-top:18px;padding-block:12px;font-size:12px;gap:38px;color:#f3dfc9;border-color:#bd9979}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 30px;max-width:58%;margin-top:30px}
.hero-carousel .hero-actions .hero-link{margin-top:0}
.hero-primary-cta{--control-cut:10px;--control-shape:polygon(var(--control-cut) 0,100% 0,100% calc(100% - var(--control-cut)),calc(100% - var(--control-cut)) 100%,0 100%,0 var(--control-cut));--button-face:#d0aa84;position:relative;isolation:isolate;clip-path:var(--control-shape);display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:56px;padding:17px 24px;border:1px solid transparent;background:var(--button-face);color:#10283a;font-size:13px;font-weight:600;line-height:1.5;transition:background .2s}
.hero-secondary-cta{display:inline-flex;align-items:center;min-height:44px;padding-block:11px;border-bottom:1px solid #b99a7b;color:#f3dfc9;font-size:12px;line-height:1.5}
.hero-actions>a:focus-visible{outline:2px solid #f7f1e7;outline-offset:5px}
.hero-carousel .hero-primary-cta:focus-visible{background:#fff3e5;outline:none}
.hero-primary-cta:focus-visible:before{content:'';position:absolute;inset:2px;--control-cut:8.243px;clip-path:polygon(var(--control-cut) 0,100% 0,100% calc(100% - var(--control-cut)),calc(100% - var(--control-cut)) 100%,0 100%,0 var(--control-cut));background:var(--button-face);z-index:-1}
@media(forced-colors:active){.hero-primary-cta,.hero-carousel .hero-primary-cta:focus-visible{clip-path:none;border:1px solid ButtonText;background:ButtonFace;color:ButtonText}.hero-primary-cta:focus-visible:before{display:none}.hero-carousel .hero-primary-cta:focus-visible{outline:2px solid Highlight;outline-offset:-4px}}
/* Overlapping letter entrances; no ongoing animation once the copy has settled. */
.hero-title-line{display:block}
.hero-title-word{display:inline-block;white-space:nowrap}
.hero-letter{display:inline-block}
.hero-slide.is-active:not(.copy-settled) :is(.hero-overline,.hero-intro,.hero-link,.hero-actions){animation:hero-type-arrive .9s cubic-bezier(.16,1,.3,1) both}
.hero-slide.is-active:not(.copy-settled) .hero-overline{animation-delay:120ms}
.hero-slide.is-active:not(.copy-settled) .hero-letter{animation:hero-letter-arrive .76s cubic-bezier(.2,.65,.3,1) var(--letter-delay,200ms) both}
.hero-slide.is-active:not(.copy-settled) .hero-intro{animation-delay:var(--intro-delay,510ms);animation-duration:.7s}
.hero-slide.is-active:not(.copy-settled) :is(.hero-link,.hero-actions){animation-delay:var(--link-delay,670ms);animation-duration:.7s}
@keyframes hero-type-arrive{from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes hero-letter-arrive{from{opacity:0;transform:translate3d(0,.23em,0)}to{opacity:1;transform:translate3d(0,0,0)}}
.hero-carousel.motion-held .hero-content :is(.hero-overline,.hero-letter,.hero-intro,.hero-link,.hero-actions),.hero-carousel .hero-link:focus-visible{animation:none!important;opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.hero-content :is(.hero-overline,.hero-letter,.hero-intro,.hero-link,.hero-actions){animation:none!important;opacity:1;transform:none!important}.hero-primary-cta{transition:none}}
.hero-carousel .hero-topline{position:absolute;z-index:3;top:25px;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:25px;pointer-events:none}
.hero-section-label{font-size:8px;letter-spacing:.2em;color:#c1ced6}
.hero-controls{display:flex;align-items:center;gap:5px;pointer-events:auto}
.hero-counter{display:flex;align-items:center;gap:11px;font-size:10px;letter-spacing:.08em;margin-right:15px;font-variant-numeric:tabular-nums;color:#c2cdd2}
#hero-current{color:#e2bb97}.counter-divider{width:27px;height:1px;background:#bba69170}
.hero-controls button{display:grid;place-items:center;border:1px solid #d2c8b83d;background:#10253755;width:38px;height:38px;padding:0;color:#ecdbc8;border-radius:50%;transition:background .2s,border-color .2s}
.hero-controls button:hover{background:#c48e6226;border-color:#d1ad87}
.hero-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.2}
.hero-playback .play-symbol{display:none}.is-paused .hero-playback .play-symbol{display:block}.is-paused .hero-playback .pause-symbol{display:none}
.hero-carousel .hero-navigation{position:relative;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;align-self:stretch}
.hero-topic{position:relative;display:flex;align-items:flex-start;gap:17px;background:none;border:0;text-align:left;padding:24px 0 15px;color:#bdcad3;min-width:0}
.topic-progress{position:absolute;left:0;right:0;top:0;height:1px;background:#adc2cf42;overflow:hidden}
.topic-progress>span{display:block;position:absolute;inset:0;transform:scaleX(0);transform-origin:left;background:#e4b78d;height:2px}
.is-current .topic-progress{height:2px;background:#adc2cf4d}.is-current .topic-progress>span{transform:scaleX(1)}
.topic-number{font-size:10px;font-variant-numeric:tabular-nums;color:#8295a3;padding-top:3px}
.topic-copy{display:block;min-width:0}.topic-copy strong{font-size:12px;font-weight:500;line-height:1.5}.is-current .topic-number{color:#d6ad88}.is-current .topic-copy strong,.hero-topic:hover .topic-copy strong{color:#fff3e5}
.hero-illustration{position:absolute;top:0;bottom:0;right:-2%;width:54%;z-index:-1;pointer-events:none;opacity:.95;transform:translateX(28px);transition:transform 1.3s cubic-bezier(.22,1,.36,1)}
.is-active .hero-illustration{transform:translateX(0)}
/* Each SVG is a static image; only its HTML layer is animated. */
.illustration-canvas{position:absolute;top:50%;right:0;width:100%;aspect-ratio:1;max-height:125%;transform:translateY(-50%);overflow:visible;mask-image:linear-gradient(90deg,transparent,#000 14%,#000 96%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 96%,transparent)}
.illustration-layer,.illustration-motion{position:absolute;inset:0;transform-origin:50% 50%}
.illustration-layer img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;user-select:none;pointer-events:none}
.illustration-caption{position:absolute;right:16%;bottom:23px;font-size:7px;letter-spacing:.19em;color:#aabec9;opacity:.65}
.is-active .illustration-layer:not(.layer-base):not(.layer-network){animation:layer-arrive 1.35s cubic-bezier(.16,1,.3,1) var(--layer-delay,0ms) both}
.is-active .illustration-motion{will-change:transform}
.layer-orientation-frame,.layer-orientation-flow{inset:7% 6%}
.is-active .layer-orientation-frame .illustration-motion{will-change:auto}
.is-active .layer-orientation-flow .illustration-motion{animation:motion-orientation 8s ease-in-out infinite alternate}
@keyframes motion-orientation{from{transform:translate3d(-3px,3px,0)}to{transform:translate3d(3px,-3px,0)}}
/* Static gradient artwork lights the existing grid; only layer opacity changes. */
.layer-network .illustration-motion{opacity:.26}
.is-active .layer-network .illustration-motion{will-change:opacity;animation:motion-network-light 6.8s ease-in-out infinite}
.is-active .network-light-b .illustration-motion{animation-duration:7.6s;animation-delay:-3.2s}
@keyframes motion-network-light{0%,100%{opacity:.07}45%{opacity:.92}70%{opacity:.44}}
.is-active .layer-drift .illustration-motion{animation:motion-ribbon 5.8s ease-in-out infinite alternate}
.is-active .layer-flow .illustration-motion{animation:motion-current 6.6s ease-in-out infinite alternate}
.is-active .layer-block-1 .illustration-motion,.is-active .layer-block-3 .illustration-motion{animation:motion-rise 4.8s ease-in-out infinite alternate}
.is-active .layer-block-2 .illustration-motion,.is-active .layer-block-4 .illustration-motion{animation:motion-rise 6.2s ease-in-out .3s infinite alternate}
.is-active .layer-trace .illustration-motion{animation:motion-signal 4.6s ease-in-out infinite alternate}
.is-active .layer-orbit-left .illustration-motion{transform-origin:36.8% 47.9%;animation:motion-orbit-left 6.8s ease-in-out infinite alternate}
.is-active .layer-orbit-right .illustration-motion{transform-origin:64.6% 54.2%;animation:motion-orbit-right 7.4s ease-in-out infinite alternate}
.is-active .layer-rise .illustration-motion{animation:motion-arch 6.4s ease-in-out infinite alternate}
@keyframes layer-arrive{from{opacity:0;transform:translate3d(25px,35px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes motion-ribbon{from{transform:translate3d(-9px,9px,0) rotate(-.5deg)}to{transform:translate3d(18px,-13px,0) rotate(.8deg)}}
@keyframes motion-current{from{transform:translate3d(-20px,20px,0);opacity:.62}to{transform:translate3d(22px,-20px,0);opacity:1}}
@keyframes motion-rise{from{transform:translate3d(0,5px,0)}to{transform:translate3d(0,-13px,0)}}
@keyframes motion-signal{from{transform:translate3d(-8px,7px,0);opacity:.5}to{transform:translate3d(7px,-7px,0);opacity:1}}
@keyframes motion-orbit-left{from{transform:translate3d(-7px,4px,0) rotate(-4deg)}to{transform:translate3d(10px,-5px,0) rotate(6deg)}}
@keyframes motion-orbit-right{from{transform:translate3d(7px,-4px,0) rotate(4deg)}to{transform:translate3d(-10px,6px,0) rotate(-6deg)}}
@keyframes motion-arch{from{transform:translate3d(0,9px,0) scale(.985)}to{transform:translate3d(0,-12px,0) scale(1.015)}}
.hero-carousel.motion-held .illustration-layer,.hero-carousel.motion-held .illustration-motion{animation-play-state:paused}
.hero-carousel.motion-held .illustration-layer{animation:none;opacity:1;transform:none}
.hero-carousel.motion-held .illustration-motion{will-change:auto}
.hero-slide:not(.is-active) .illustration-motion{will-change:auto}
@media(min-width:1600px){.hero-carousel .hero-illustration{right:0;width:52%}.hero-carousel .hero-content{padding-top:120px}.hero-carousel .hero-intro{font-size:16px;max-width:480px}.hero-carousel .hero-overline{font-size:10px}.hero-carousel .hero-link{font-size:13px;margin-top:27px}}
@media(max-height:790px) and (min-width:761px){.law-page .hero-carousel .hero-title{font-size:clamp(55px,5.7vw,80px);margin-bottom:18px}.hero-carousel .hero-content{padding-top:105px;padding-bottom:45px}.hero-carousel .hero-overline{margin-bottom:19px}.hero-carousel .hero-intro{font-size:12px;max-width:400px}.hero-carousel .hero-link{font-size:11px;margin-top:13px}}
@media(max-width:1100px){.hero-carousel .hero-navigation{gap:20px}.hero-topic{gap:11px}.topic-copy strong{font-size:11px}.hero-carousel .hero-intro{width:47%;font-size:12px}.hero-carousel .hero-title{max-width:70%}.hero-carousel .hero-illustration{width:58%;right:-8%}}
@media(max-width:760px){
  .law-hero.hero-carousel{height:auto;min-height:0;max-height:none;grid-template-rows:minmax(690px,calc(100svh - 110px)) 145px}
  .hero-carousel .hero-topline{top:19px}.hero-section-label{font-size:6.5px;letter-spacing:.13em}.hero-counter{gap:7px;font-size:9px;margin-right:4px}.counter-divider{width:15px}
  .hero-controls{gap:3px}.hero-controls button{width:36px;height:36px}.hero-controls svg{width:16px;height:16px}
  .hero-carousel .hero-content{justify-content:flex-start;padding-block:118px 40px}
  .hero-carousel .hero-overline{max-width:100%;font-size:8px;margin-bottom:25px;letter-spacing:.13em}
  .law-page .hero-carousel .hero-title{font-size:clamp(42px,7.8vw,60px);line-height:1.06;max-width:100%;margin-bottom:23px;position:relative;z-index:2}
  .hero-carousel .hero-intro{font-size:12px;line-height:1.9;width:90%;max-width:370px;position:relative;z-index:2}
  .hero-carousel .hero-link{font-size:11px;margin-top:20px;gap:25px;position:relative;z-index:2}
  .hero-actions{max-width:100%;flex-direction:column;align-items:flex-start;gap:12px;margin-top:26px;position:relative;z-index:2}
  .hero-primary-cta{min-width:220px;font-size:12px}
  .hero-secondary-cta{font-size:11px}
  .hero-carousel .hero-illustration{width:80%;right:-9%;top:270px;bottom:-55px;opacity:.64;mask-image:linear-gradient(0deg,#000 0%,#000 35%,transparent 92%)}
  .hero-carousel .hero-slide-kanzlei .hero-illustration{width:min(82%,370px);height:370px;right:-9%;top:auto;bottom:5px;opacity:.9;mask-image:none;-webkit-mask-image:none}
  .hero-carousel .hero-slide-kanzlei :is(.layer-orientation-frame,.layer-orientation-flow){inset:7% 12%}
  .illustration-canvas{max-height:none;top:auto;bottom:0;transform:none}
  .illustration-caption{display:none}
  .hero-carousel .hero-navigation{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;row-gap:0;background:#11283a}
  .hero-topic{padding:16px 0 12px;gap:11px;min-height:67px}.topic-copy strong{font-size:11px}.topic-number{font-size:9px;padding-top:2px}
  .hero-slide-unternehmen .hero-title{font-size:clamp(41px,7.7vw,59px)}
}
@media(max-width:390px){.hero-carousel .hero-topline{gap:7px}.hero-section-label{font-size:6px}.hero-counter{display:none}.hero-carousel .hero-content{padding-top:112px}.hero-carousel .hero-overline{font-size:7px}.law-page .hero-carousel .hero-title{font-size:11.5vw}.hero-carousel .hero-intro{font-size:11.5px}.law-hero.hero-carousel{grid-template-rows:minmax(670px,calc(100svh - 150px)) 138px}.hero-carousel .hero-illustration{top:270px;width:90%;right:-19%}.topic-copy strong{font-size:10px}}
.law-page.high-contrast .hero-slide:before{background:#071b2b}.law-page.high-contrast .hero-illustration{display:none}.law-page.high-contrast .hero-carousel p{color:#fff}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-illustration,.hero-controls button{transition:none!important}.illustration-layer,.illustration-motion{animation:none!important;transform:none!important;will-change:auto!important}}
