/* Theme identity follows the subject, independently of the layout or illustration. */

/* Content entry points use their destination's palette. Navigation stays neutral. */
.audience-card[data-theme]{background:var(--topic-surface);color:var(--topic-text)}

.site-navigation .nav-home,.site-navigation .nav-group>summary{color:var(--ink)}
.site-navigation .nav-home[aria-current],.site-navigation .nav-group[data-active]>summary,.site-navigation .nav-group[open]>summary{color:var(--ink);border-bottom-color:var(--ink)}
.nav-panel-intro .eyebrow{color:var(--muted)}
.nav-panel-links>a[data-theme]{color:var(--ink);border-bottom-color:var(--line)}
.nav-panel-links>a[data-theme] .nav-link-number{width:27px;min-width:27px;height:27px;border-radius:50%;display:grid;place-items:center;padding:0;background:#eeefed;color:var(--muted);border:1px solid var(--line)}
.nav-panel-links>a[data-theme] .nav-link-arrow{color:var(--muted)}
.nav-panel-links>a[data-theme]:hover,.nav-panel-links>a[data-theme][aria-current]{background:#eeefed;color:var(--ink)}
.nav-panel-links>a[data-theme][aria-current] strong{font-weight:650}
.header .header-actions .header-booking:hover{background:#294158;color:#fff}
.header :is(a,button,summary):focus-visible,.page-tabs a:focus-visible{outline-color:var(--ink)}
.footer-top>div:not(:first-child)>h2{color:#b9c3cc}
.footer-top>div:not(:first-child)>a[data-theme]{color:#d0d7dd;display:flex;gap:9px;align-items:baseline}
.footer-top>div:not(:first-child)>a[data-theme]:before{content:"";width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#92a0ac}
.footer-top>div:not(:first-child)>a[data-theme]:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.footer a:focus-visible{outline-color:#d0d7dd}
main a.link[data-theme],main a[data-theme].link span{color:var(--topic-accent)}
main .dark a.link[data-theme],main .cta a.link[data-theme]{color:var(--topic-light)}
.btn[data-theme],.page-hero .btn[data-theme],.topic-stripe .btn[data-theme]{background:var(--topic-deep);color:var(--topic-light);border-color:transparent}
.btn[data-theme]:hover{background:var(--topic-accent);color:var(--topic-light)}
.btn.light[data-theme]{background:var(--topic-light);color:var(--topic-deep)}
.btn.outline[data-theme]{background:transparent;color:var(--topic-light);border-color:currentColor}
.trust-item a[data-theme]{color:var(--topic-accent)}
body[data-topic-page] main .btn:not([data-theme]){background:var(--topic-deep);color:var(--topic-light)}
body[data-topic-page] main .btn:not([data-theme]):hover{background:var(--topic-accent)}

/* The same surface used on the homepage becomes the subject page's hero. */
body[data-topic-page] main{--gold:var(--topic-accent);--gold-light:var(--topic-light)}
body[data-topic-page] .page-hero{background:var(--topic-surface);color:var(--topic-text)}
body[data-topic-page] .page-hero :is(.accent,.eyebrow,.object-coordinate){color:var(--topic-text)}
body[data-topic-page] .page-hero :is(.lead,.hero-labels){color:var(--topic-text)}
body[data-topic-page] .page-hero .lead{opacity:.85}
body[data-topic-page] .page-hero .hero-labels{opacity:.75}
body[data-topic-page] .page-hero .hero-object{background:transparent}
body[data-topic-page] .page-hero .object-orbit{border-color:color-mix(in srgb,var(--topic-text) 24%,transparent);background:radial-gradient(ellipse at center,color-mix(in srgb,var(--topic-shine) 20%,transparent),transparent 70%)}
body[data-topic-page] .page-hero .object-orbit:after{border-color:color-mix(in srgb,var(--topic-text) 20%,transparent)}
.page-tabs{background:var(--paper);border-color:var(--line)}
.page-tabs a{color:var(--ink)}
.page-tabs a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:6px}

/* Content keeps light, medium and dark contrast within one named palette. */
body[data-topic-page] .module-section .numbered-card{background:var(--topic-pale);border-color:color-mix(in srgb,var(--topic-accent) 16%,transparent);color:var(--topic-deep)}
body[data-topic-page] .module-section .numbered-card :is(p,ul){color:var(--topic-deep);opacity:.86}
body[data-topic-page] .module-section .numbered-card .number{color:var(--topic-accent)}
body[data-topic-page] .module-section .numbered-card:first-child{background:var(--topic-deep);color:var(--topic-light);border-color:transparent}
body[data-topic-page] .module-section .numbered-card:first-child :is(p,ul,.number){color:var(--topic-light)}
body[data-topic-page] .module-section .numbered-card:nth-child(2),body[data-topic-page] .module-section .numbered-card:nth-child(5){background:var(--topic-surface);color:var(--topic-text)}
body[data-topic-page] .module-section .numbered-card:nth-child(2) :is(p,ul,.number),body[data-topic-page] .module-section .numbered-card:nth-child(5) :is(p,ul,.number){color:var(--topic-text)}
body[data-topic-page] .module-section.dark{background:var(--topic-deep);color:var(--topic-light)}
body[data-topic-page] .module-section.dark .numbered-card{background:color-mix(in srgb,var(--topic-light) 7%,var(--topic-deep));color:var(--topic-light);border-color:color-mix(in srgb,var(--topic-light) 25%,transparent)}
body[data-topic-page] .module-section.dark .numbered-card :is(p,ul,.number){color:var(--topic-light)}
body[data-topic-page] .module-section.dark .numbered-card:first-child{background:var(--topic-light);color:var(--topic-deep)}
body[data-topic-page] .module-section.dark .numbered-card:first-child :is(p,ul,.number){color:var(--topic-deep)}
body[data-topic-page] .case-section{background:var(--topic-pale)}
body[data-topic-page] .case-card{border:1px solid color-mix(in srgb,var(--topic-accent) 17%,transparent)}
body[data-topic-page] .case-card:first-child{background:var(--topic-deep);color:var(--topic-light)}
body[data-topic-page] .case-card:first-child :is(p,.case-meta,summary,.case-links a){color:var(--topic-light)}
body[data-topic-page] .case-card:first-child .case-limit{border-color:var(--topic-shine)}
body[data-topic-page] .case-card:first-child .case-links{border-color:color-mix(in srgb,var(--topic-light) 30%,transparent)}
body[data-topic-page] .case-card .case-limit{border-color:var(--topic-shine)}
body[data-topic-page] .process article{background:var(--topic-pale);border-color:color-mix(in srgb,var(--topic-accent) 20%,transparent)}
body[data-topic-page] .process article:nth-child(2){background:var(--topic-light)}
body[data-topic-page] .process article:nth-child(3){background:var(--topic-surface);color:var(--topic-text)}
body[data-topic-page] .process article:nth-child(3) :is(p,span){color:var(--topic-text)}
body[data-topic-page] .process article:after{color:var(--topic-accent)}
body[data-topic-page] .process article>span{color:var(--topic-accent)}
body[data-topic-page] .topic-stripe{background:var(--topic-surface);color:var(--topic-text)}
body[data-topic-page] .topic-stripe :is(.accent,.eyebrow,p){color:var(--topic-text)}
body[data-topic-page] .topic-stripe:before{border-color:color-mix(in srgb,var(--topic-text) 17%,transparent)}
body[data-topic-page] .cta{background:var(--topic-deep);color:var(--topic-light)}
body[data-topic-page] .cta :is(.accent,.eyebrow,.lead,.small){color:var(--topic-light)}
body[data-topic-page] .cta:before,body[data-topic-page] .cta:after{border-color:color-mix(in srgb,var(--topic-light) 20%,transparent)}
body[data-topic-page] .story-section{background:var(--topic-deep);color:var(--topic-light)}
body[data-topic-page] .story-step :is(h2,.accent,p,.step-count),body[data-topic-page] .story-caption{color:var(--topic-light)}
body[data-topic-page] .callout,body[data-topic-page] .form-notice{background:var(--topic-pale);border-color:var(--topic-accent)}

/* Illustrations inherit subject colors; partner logos and portraits keep originals. */
[data-theme] .abstract svg [id^="metal-"] stop:nth-child(1){stop-color:var(--topic-light)}
[data-theme] .abstract svg [id^="metal-"] stop:nth-child(2){stop-color:var(--topic-shine)}
[data-theme] .abstract svg [id^="metal-"] stop:nth-child(3){stop-color:var(--topic-accent)}
[data-theme] .abstract svg [id^="metal-"] stop:nth-child(4){stop-color:var(--topic-shine)}
[data-theme] .abstract svg [id^="stone-"] stop:first-child{stop-color:var(--topic-pale)}
[data-theme] .abstract svg [id^="stone-"] stop:last-child{stop-color:var(--topic-light)}
[data-theme] .abstract svg [id^="navy-"] stop:first-child{stop-color:var(--topic-accent)}
[data-theme] .abstract svg [id^="navy-"] stop:last-child{stop-color:var(--topic-deep)}
[data-theme] .abstract svg [stroke="#b79a64"],[data-theme] .abstract svg [stroke="#9b8053"]{stroke:var(--topic-accent)}
[data-theme] .abstract svg [stroke="#d5b981"],[data-theme] .abstract svg [stroke="#e6d4af"]{stroke:var(--topic-shine)}
[data-theme] .abstract svg [fill="#e5c992"]{fill:var(--topic-light)}
[data-theme] .abstract .object-label{background:var(--topic-pale);color:var(--topic-deep);border-color:var(--topic-light)}
[data-theme] .stack-art .slab{background:linear-gradient(120deg,var(--topic-light),var(--topic-shine) 60%,var(--topic-light));border-color:var(--topic-light);box-shadow:0 20px 3px var(--topic-accent),0 30px 50px #0002}
[data-theme] .stack-art .slab:first-child{background:linear-gradient(120deg,var(--topic-accent),var(--topic-deep));box-shadow:0 20px 3px var(--topic-deep),0 30px 50px #0002}
[data-theme] .stack-art .slab:last-child{background:linear-gradient(120deg,var(--topic-pale),var(--topic-light));box-shadow:0 20px 3px var(--topic-shine),0 30px 50px #0002}
[data-theme] .stack-art .slab span{color:var(--topic-deep)}
[data-theme] .stack-art .slab:first-child span{color:var(--topic-light)}
[data-theme] .architecture-art i{background:linear-gradient(100deg,var(--topic-light),var(--topic-shine) 60%,var(--topic-light));box-shadow:14px 16px 0 var(--topic-accent),20px 35px 25px #0002}
[data-theme] .architecture-art i:nth-child(2){background:linear-gradient(100deg,var(--topic-accent),var(--topic-deep));box-shadow:14px 16px 0 var(--topic-deep),20px 35px 25px #0002}
[data-theme] .architecture-art i:nth-child(3){background:linear-gradient(100deg,var(--topic-pale),var(--topic-light));box-shadow:14px 16px 0 var(--topic-shine),20px 35px 25px #0002}
[data-theme] .orbit-art .orbit{border-color:var(--topic-shine)}
[data-theme] .orbit-art .orbit:nth-child(2){border-color:var(--topic-deep)}
[data-theme] .orbit-art .orbit:nth-child(3){border-color:var(--topic-light)}
[data-theme] .orbit-art .orb{background:radial-gradient(circle at 25% 25%,var(--topic-light),var(--topic-shine) 50%,var(--topic-accent))}

/* Four service previews on the homepage use the same colors as their pages. */
.page-home .story-step[data-theme] .accent{color:var(--topic-light)}
.page-home .story-step[data-theme] .step-count{background:var(--topic-surface);color:var(--topic-text);border-radius:99px;align-self:flex-start;padding:9px 14px}
.page-home .story-step[data-theme] .link{color:var(--topic-light);border-color:var(--topic-shine)}
.story-controls button[data-theme]{color:var(--topic-light)}
.story-controls button[data-theme] span{background:var(--topic-shine)}
.story-controls button[data-theme][aria-pressed=true]{color:var(--topic-light)}
.story-controls button[data-theme][aria-pressed=true] span{background:var(--topic-light)}

/* Digital collaboration has one olive palette, including its contact form. */
.digital-band[data-theme]{background:var(--topic-surface);color:var(--topic-text)}
.digital-band[data-theme] :is(.accent,.eyebrow,.console-bar,.console-base){color:var(--topic-accent)}
.digital-band[data-theme] .hub-console{background:var(--topic-pale);border-color:var(--topic-light);box-shadow:20px 30px 0 color-mix(in srgb,var(--topic-shine) 25%,transparent),0 30px 70px #12233612}
.digital-band[data-theme] .status-dot{background:var(--topic-accent)}
.hub-console .hub-apps a[data-theme]{background:var(--topic-pale);color:var(--topic-deep);border-color:var(--topic-shine)}
.hub-console .hub-apps a[data-theme]:hover{background:var(--topic-surface)}
.hub-console .hub-apps a[data-theme]:first-child{background:var(--topic-deep);color:var(--topic-light);border-color:var(--topic-deep)}
.hub-console .hub-apps a[data-theme] :is(b,.app-symbol){color:var(--topic-accent)}
.hub-console .hub-apps a[data-theme]:first-child :is(b,.app-symbol){color:var(--topic-light)}
body[data-theme="datev"] .app-card{border-color:var(--topic-light)}
body[data-theme="datev"] .app-card .app-icon{background:var(--topic-surface);color:var(--topic-accent)}
body[data-theme="datev"] .app-card .badge{color:var(--topic-accent)}
body[data-theme="datev"] .filter-btn[aria-pressed=true]{background:var(--topic-deep);border-color:var(--topic-deep);color:var(--topic-light)}
body[data-theme="datev"] .onboard-track article{border-color:var(--topic-shine)}
.contact-write[data-theme]{background:var(--topic-surface);color:var(--topic-text);border-color:var(--topic-shine)}
.contact-write[data-theme] :is(.eyebrow,.contact-option-note),.contact-write[data-theme]>p:not(.eyebrow){color:var(--topic-accent)}
.contact-write[data-theme] .btn{background:var(--topic-deep);color:var(--topic-light)}
.contact-write[data-theme] .btn:hover{background:var(--topic-accent)}
.contact-form-section[data-theme] .contact-form-shell{border-color:var(--topic-shine)}
.contact-form-section[data-theme] .eyebrow{color:var(--topic-accent)}

/* Firm and careers are also consistent across previews, profiles and contact. */
.people-teaser[data-theme],.closing-links>a[data-theme]{background:var(--topic-surface);color:var(--topic-text);border-color:color-mix(in srgb,var(--topic-accent) 20%,transparent)}
.people-teaser[data-theme] :is(.accent,.eyebrow),.closing-links>a[data-theme] :is(.eyebrow,.circle-arrow){color:var(--topic-accent)}
.closing-links>a[data-theme]:hover{background:var(--topic-surface);border-color:var(--topic-accent)}
.closing-links .closing-booking[data-theme]{background:var(--topic-surface);color:var(--topic-text);border-color:color-mix(in srgb,var(--topic-accent) 20%,transparent)}
body.page-ueber-uns .founder{background:var(--topic-surface)}
body.page-ueber-uns .founder:nth-child(2){background:var(--topic-pale)}
body.page-karriere .job{background:var(--topic-surface);color:var(--topic-deep);border-color:color-mix(in srgb,var(--topic-accent) 20%,transparent)}
body.page-karriere .job p{color:var(--topic-deep);opacity:.86}
.page-kontakt .contact-book{background:var(--topic-deep);border-color:var(--topic-deep);color:var(--topic-light)}
.page-kontakt .contact-book :is(.eyebrow,.contact-option-top,.contact-option-note),.page-kontakt .contact-book>p:not(.eyebrow){color:var(--topic-light)}
.page-kontakt .contact-book .btn{background:var(--topic-light);color:var(--topic-deep)}
.page-kontakt .contact-location{background:var(--topic-pale)}
.page-kontakt .location-current{background:var(--topic-surface);color:var(--topic-text);border-color:var(--topic-shine)}
.page-kontakt .location-next{background:var(--topic-deep);color:var(--topic-light);border-color:var(--topic-deep)}
.page-kontakt .location-next :is(.location-period,.location-card-kicker,.location-city,.location-firm){color:var(--topic-light)}
.page-kontakt .location-house-number,.page-kontakt .location-next .location-house-number{color:var(--topic-shine)}
.page-kontakt .location-art{border-color:color-mix(in srgb,var(--topic-accent) 20%,transparent);background:repeating-linear-gradient(90deg,transparent,transparent 55px,color-mix(in srgb,var(--topic-accent) 7%,transparent) 56px,transparent 57px)}
.page-kontakt .location-next .location-art{border-color:color-mix(in srgb,var(--topic-light) 20%,transparent);color:var(--topic-light)}
.page-kontakt .location-picker{background:var(--topic-surface);border-color:var(--topic-shine)}
.page-kontakt .location-picker button{color:var(--topic-accent)}
.page-kontakt .location-picker button[aria-pressed=true]{background:var(--topic-deep);color:var(--topic-light)}
.page-kontakt .location-arrows button{color:var(--topic-deep);border-color:var(--topic-shine)}
.page-kontakt .location-arrows button:not(:disabled):hover{background:var(--topic-surface)}
.page-kontakt .location-bottom{border-color:var(--topic-shine)}
.page-kontakt .location-bottom strong{color:var(--topic-deep)}
.page-kontakt .contact-mobile-shortcuts a[data-theme="kanzlei"]{background:var(--topic-surface);color:var(--topic-text)}
.page-kontakt .contact-mobile-shortcuts a:last-child{background:var(--topic-deep);color:var(--topic-light)}

@media print{
 body[data-topic-page] :is(.page-hero,.module-section.dark,.cta,.story-section,.topic-stripe,.case-card:first-child){background:white;color:#111}
 body[data-topic-page] :is(.page-hero,.module-section.dark,.cta,.story-section,.topic-stripe,.case-card:first-child) :is(p,.accent,.eyebrow,h1,h2,h3){color:#111}
}
