:root {
  --cw-canvas: #faf9f6;
  --cw-surface: #f0ede7;
  --cw-ink: #293538;
  --cw-ink-soft: #5b6260;
  --cw-accent: #751b36;
  --cw-accent-ink: #ffffff;
  --cw-font-display: Georgia, 'Times New Roman', serif;
  --cw-font-text: Arial, Helvetica, sans-serif;
  --line: #d8d9d3;
}
body { font-size: 16px; line-height: 1.65; overflow-x: visible; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--cw-font-display); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(2.2rem,3.5vw,3.45rem); line-height: 1.12; letter-spacing: -0.035em; }
h3 { font-size: 1.65rem; line-height: 1.25; }
p { text-wrap: pretty; }
a { text-underline-offset: 5px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 108px; }
.wrap { width: min(1240px,calc(100% - 96px)); margin-inline: auto; }
.section { padding: 100px 0; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--cw-accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.4; transition: background-color 160ms, transform 160ms; }
.button-primary { background: var(--cw-accent); color: white; }
.button-primary:hover { background: #59142a; }
.button-light { background: #faf9f6; color: #751b36; }
.button-light:hover { background: #e9e1dc; }
.button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; color: var(--cw-accent); font-weight: 600; text-decoration: none; padding: 10px 0; }
.text-link:hover { text-decoration: underline; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: #faf9f6; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: 0 0 200px; }
.brand img { width: 200px; height: auto; }
#navigation { display: flex; align-items: center; gap: 28px; }
#navigation > a:not(.button) { font-size: 13px; font-weight: 600; text-decoration: none; }
#navigation > a:hover { text-decoration: underline; }
.header-phone { white-space: nowrap; color: var(--cw-accent); }
.menu-toggle { background: transparent; border: 1px solid var(--line); padding: 10px; border-radius: 3px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding-top: 76px; padding-bottom: 64px; min-height: 580px; }
.hero h1 { font-size: clamp(3.4rem,5.3vw,5rem); line-height: 1.06; letter-spacing: -.045em; margin: 22px 0 24px; }
.hero h1 em { color: var(--cw-accent); font-weight: 400; }
.hero-intro { max-width: 430px; color: var(--cw-ink-soft); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hero-portrait { position: relative; padding-top: 40px; isolation: isolate; align-self: end; margin-bottom: 14px; }
.portrait-ground { position: absolute; inset: 0 0 44px 36px; z-index: -2; background: #e6e2da; border-top-left-radius: 160px; }
.portrait-rule { position: absolute; inset: 20px -14px 32px 62px; z-index: -1; border: 1px solid #ad8d90; border-top-left-radius: 150px; }
.hero-portrait img { width: 100%; height: auto; position: relative; }
.hero-portrait figcaption { position: relative; z-index: 2; background: #751b36; color: #fff; padding: 18px 26px; margin: -2px 0 0 36px; box-shadow: 0 10px 25px #42252119; }
.hero-portrait figcaption span:first-child { display: block; font-family: Georgia,serif; font-size: 23px; }
.hero-portrait figcaption span:last-child { font-size: 11px; letter-spacing: .03em; color: #efdee4; }
.intro-strip { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 30px 0 38px; gap: 32px; }
.intro-strip > * + * { border-left: 1px solid var(--line); padding-left: 36px; }
.intro-strip strong { display: block; font-size: 14px; font-weight: 600; }
.intro-strip span { font-size: 12px; color: var(--cw-ink-soft); }
.intro-strip a { text-decoration: none; }
.intro-strip a:hover strong { text-decoration: underline; }
.areas-section { background: #f0ede7; }
.areas-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 100px; }
.areas-intro > p { color: var(--cw-ink-soft); margin-top: 24px; max-width: 380px; }
.areas-intro { align-self: start; position: sticky; top: 130px; }
.services-jump { display:flex; flex-wrap:wrap; gap:4px 24px; margin-top:18px; }
.services-jump .text-link { font-size:12px; gap:10px; }
.services-groups { min-width:0; }
.services-group h2 { font-size:clamp(28px,2.7vw,36px); }
.services-group-intro { font-size:14px; color:var(--cw-ink-soft); margin:16px 0 24px; }
.services-group + .services-group { margin-top:52px; padding-top:32px; border-top:2px solid var(--cw-accent); }
.services-group > .eyebrow { margin-bottom:14px; }
.finder { margin-top: 32px; }
.finder label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.finder select { width: 100%; border: 1px solid #b5b5ad; background: #fff; border-radius: 3px; padding: 14px 36px 14px 14px; font-size: 15px; min-height: 52px; }
.finder-result { padding-top: 20px; }
.finder-result p { font-size: 15px; min-height: 3.3em; }
.finder-result .button { display: flex; margin-top: 12px; }
.small-note { font-size: 13px; }
.small-note a { color: var(--cw-accent); }
.areas-list > a { display: flex; justify-content: space-between; gap: 24px; padding: 23px 4px; border-top: 1px solid #c9cbc4; text-decoration: none; }
.areas-list > a > div { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.areas-list > a > span { flex-shrink: 0; }
.areas-list > a:last-child { border-bottom: 1px solid #c9cbc4; }
.areas-list h3 { transition: color 160ms; }
.areas-list p { color: var(--cw-ink-soft); font-size: 13px; margin-top: 7px; }
.areas-list > a > span { align-self: center; font-size: 24px; color: var(--cw-accent); transition: transform 160ms; }
.areas-list > a:hover h3,.areas-list > a:focus-visible h3 { color: var(--cw-accent); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 64px; margin-bottom: 54px; }
.section-heading > p { max-width: 350px; color: var(--cw-ink-soft); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.person { display: grid; grid-template-columns: .8fr 1fr; gap: 24px; align-items: center; }
.person-image { background: #eeede8; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 3px; }
.person-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person-role { font-size: 10px; letter-spacing: .08em; color: var(--cw-ink-soft); margin-bottom: 10px; }
.person ul { list-style: none; padding: 0; margin: 16px 0; font-size: 13px; color: var(--cw-ink-soft); }
.person li { margin-bottom: 8px; }
.online-section { background: #e9ece9; }
.online-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.online-layout h2 { margin: 18px 0 22px; }
.online-layout > div > p:not(.eyebrow) { color: var(--cw-ink-soft); max-width: 410px; }
.online-links { align-self: center; }
.online-links a { display: block; padding: 24px 0; border-bottom: 1px solid #c5cec7; text-decoration: none; }
.online-links a:first-child { border-top: 1px solid #c5cec7; }
.online-links h3 { display: flex; justify-content: space-between; gap: 20px; }
.online-links p { margin-top: 10px; font-size: 14px; color: var(--cw-ink-soft); }
.online-links a:hover h3 { color: var(--cw-accent); }
.info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.info-layout > div > p { margin: 24px 0 12px; color: var(--cw-ink-soft); max-width: 420px; }
.info-links > a,.expertise > summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; text-decoration: none; }
.info-links > a:first-child { border-top: 1px solid var(--line); }
.expertise > summary { cursor: pointer; list-style: none; }
.expertise > summary::-webkit-details-marker { display: none; }
.expertise > summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--cw-accent); }
.expertise[open] > summary::after { content: '−'; }
.info-links > a:hover,.expertise > summary:hover { color: var(--cw-accent); }
.expertise-content { padding: 24px 0; font-size: 15px; }
.expertise-content h2 { font-size: 25px; margin: 30px 0 14px; line-height: 1.25; }
.expertise-content h3 { font-size: 21px; margin: 24px 0 12px; }
.expertise-content p { margin-bottom: 16px; }
.expertise-content a { color: var(--cw-accent); }
.expertise-content ul,.expertise-content ol { padding-left: 20px; }
.expertise-content li { margin-bottom: 18px; }
.contact-close { background: #751b36; color: #fff; padding: 76px 0; }
.contact-close .eyebrow { color: #ebcdd7; margin-bottom: 24px; }
.contact-close h2 { font-size: clamp(2.2rem,3.4vw,3.2rem); }
.contact-close .button { margin-top: 30px; }
.close-layout { display: flex; justify-content: space-between; gap: 64px; align-items: center; }
.contact-close address { font-style: normal; font-size: 15px; }
.contact-close address > a { display: block; text-decoration: none; padding: 5px 0; }
.contact-close address > a:hover { text-decoration: underline; }
.close-phone { font-size: clamp(1.6rem,2.4vw,2.4rem); font-family: Georgia,serif; }
.contact-close address p { margin-top: 24px; color: #efdee4; }
.contact-close :focus-visible { outline-color: #fff; }
.site-footer { background: #f0ede7; padding: 26px 0; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { text-decoration: none; padding: 8px 0; }
.footer-inner a:hover { text-decoration: underline; }
#footer-cookie { position: fixed; z-index: 100; bottom: 16px; left: 16px; width: min(520px,calc(100% - 32px)); background: #293538; color: white; padding: 18px 22px; font-size: 12px; box-shadow: 0 8px 30px #14202330; border-radius: 3px; max-height: 42vh; overflow-y: auto; }
#footer-cookie #accept a { display: inline-block; border: 1px solid #b8c2be; margin-top: 12px; padding: 8px 16px; text-decoration: none; }
#footer-cookie :focus-visible { outline-color: white; }
/* The static document remains complete if animation cannot initialize. */
html:not(.cw-ready) [data-cw-in] { opacity: 1; transform: none; }
[data-cw-in]:focus-within { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .areas-list > a:hover > span { transform: translate(3px,-3px); } }
@media (max-width: 1150px) { .wrap { width: calc(100% - 64px); } #navigation { gap: 18px; } .header-phone { display: none; } .hero { gap: 36px; } .areas-layout,.online-layout,.info-layout { gap: 64px; } .team-grid { gap: 32px; } .person { grid-template-columns: 1fr; } .person-image { aspect-ratio: 5 / 4; } .person-image img { object-fit: contain; } }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .header-inner { min-height: 80px; gap: 16px; flex-wrap: wrap; }
  .brand { flex-basis: 170px; } .brand img { width: 170px; }
  .menu-toggle:not([hidden]) { display: block; }
  #navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 18px; }
  #navigation > a:not(.button) { padding: 12px 0; }
  .header-phone { display: block; }
  .menu-enabled #navigation:not(.is-open) { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 44px; padding-bottom: 40px; min-height: auto; }
  .hero h1 { font-size: 46px; }
  .hero-intro { font-size: 15px; }
  .hero .eyebrow { font-size: 9px; }
  .actions { gap: 8px; }
  .hero-portrait figcaption { padding: 14px; margin-left: 0; }
  .hero-portrait figcaption span:first-child { font-size: clamp(18px,5.4vw,21px); }
  .hero-portrait figcaption span:last-child { font-size: 10px; }
  .intro-strip { gap: 16px; }
  .intro-strip > * + * { padding-left: 16px; }
  .intro-strip strong { font-size: 12px; }
  .intro-strip span { font-size: 11px; }
  .areas-layout,.online-layout,.info-layout { grid-template-columns: 1fr; gap: 32px; }
  .areas-intro { position: static; }
  .areas-intro > p { max-width: 580px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 24px; max-width: 500px; }
  .close-layout { align-items: start; gap: 32px; }
  .contact-close h2 { font-size: 34px; }
  .contact-close { padding: 56px 0; }
  .footer-inner { flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero h1 { font-size: clamp(42px,11vw,58px); margin: 16px 0 20px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-intro { max-width: 400px; }
  .actions { margin-top: 24px; gap: 12px 20px; }
  .hero-portrait { width: min(100%,410px); margin: 18px auto 0; padding-top: 26px; }
  .hero-portrait [data-cw-parallax] { transform: none !important; }
  .portrait-rule { right: 0; }
  .portrait-ground { left: 20px; }
  .hero-portrait figcaption { margin-left: 20px; }
  .intro-strip { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .intro-strip > * + * { border-left: 0; padding-left: 0; }
  .intro-strip strong { font-size: 14px; }
  .intro-strip span { font-size: 12px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .person { grid-template-columns: .72fr 1fr; gap: 18px; }
  .person-image { aspect-ratio: 3 / 5; }
  .person-image img { object-fit: cover; }
  .person h3 { font-size: 25px; }
  .person ul { font-size: 12px; }
  .person .text-link { font-size: 12px; gap: 12px; }
  .person-role { font-size: 9px; }
  .close-layout { flex-direction: column; }
  .contact-close h2 { font-size: 34px; }
  .footer-inner { display: grid; gap: 12px; }
  #footer-cookie { font-size: 11px; padding: 14px 18px; }
}
.finder-guidance { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line, #ded6d1); }
.finder-guidance h3 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
.finder-guidance p { font-size: 14px; line-height: 1.7; min-height: 0; margin-bottom: 12px; }
.finder-guidance .text-link { font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-cw-in] { opacity: 1; transform: none; transition: none; }
  [data-cw-parallax] { transform: none !important; }
  .button,.areas-list > a > span { transition: none; }
}

.guide-home { border-top:1px solid var(--line); }


/* Gemeinsames Hauptmenü: Rechtsgebiete und Angebote direkt erreichbar, Kosten im Hauptmenü. */
.header-inner { gap: 20px; }
.brand { flex-basis: 180px; }
.brand img { width: 180px; }
#navigation { gap: 16px; }
#navigation > a:not(.button), .nav-group summary { white-space: nowrap; }
.nav-group { position: relative; }
.nav-group summary { display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-group[open] summary { color: var(--accent); }
.nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-submenu { position: absolute; top: 100%; left: -14px; min-width: 225px; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--cw-canvas); box-shadow: 0 12px 24px rgb(41 53 56 / 10%); }
.nav-submenu a { display: block; padding: 12px; font-size: 14px; text-decoration: none; }
.nav-submenu a:hover { color: var(--accent); background: var(--cw-surface); }
.nav-group summary:focus-visible, .nav-submenu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-inner nav { flex-wrap: wrap; }
@media (max-width: 1320px) and (min-width: 1151px) { .header-phone { display: none; } }
@media (max-width: 1150px) {
  .header-inner { min-height: 80px; gap: 16px; flex-wrap: wrap; }
  .brand { flex-basis: 170px; } .brand img { width: 170px; }
  .menu-toggle:not([hidden]) { display: block; }
  #navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 18px; }
  #navigation > a:not(.button) { padding: 12px 0; }
  .menu-enabled #navigation:not(.is-open) { display: none; }
  .header-phone { display: block; }
  .nav-group summary { min-height: 48px; }
  .nav-submenu { position: static; min-width: 0; padding: 0 0 4px 16px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav-submenu a { min-height: 44px; padding: 10px 12px; }
}


/* Lange Themenliste bleibt auch auf kleinen Bildschirmen erreichbar. */
.nav-lawareas .nav-submenu { min-width: 320px; max-height: calc(100svh - 128px); overflow-y: auto; }
@media (max-width: 1150px) {
  #navigation { max-height: calc(100svh - 96px); overflow-y: auto; }
  .nav-lawareas .nav-submenu { min-width: 0; max-height: none; overflow: visible; }
}


/* Direkter Kontakt im ersten Bildschirm, auch auf kleinen Handys. */
.button-outline { color: var(--cw-accent); border-color: var(--cw-accent); background: transparent; }
.button-outline:hover { background: #efe5e8; }
@media (max-width: 560px) {
  .hero .actions { gap: 10px; }
  .hero .actions .button { flex: 1 1 135px; padding-inline: 12px; gap: 10px; }
}

/* Give both caption lines enough room on narrow phones, while allowing text zoom to wrap. */
@media (max-width:380px) {
  .hero-portrait figcaption { margin-left:0; padding-inline:12px; }
  .hero-portrait figcaption span:last-child { letter-spacing:0; }
}

.person-scope { font-size:12px; line-height:1.6; color:var(--cw-ink-soft); margin:16px 0 8px; }
.person-scope a { color:var(--cw-accent); }
