/* LVM Bremen: automatic or manually selected appearance. Printed documents retain the light palette. */
:root{--lvmb-on-action:#fff}
.lvmb-theme-toggle{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  flex:0 0 auto;min-height:44px;min-width:44px;box-sizing:border-box;
  padding:10px 12px!important;margin:0;border:1px solid var(--lvmb-border,#d6d6d6);
  border-radius:0!important;background:var(--lvmb-surface,#fff);color:var(--lvmb-text,#4a4949)!important;
  font:500 14px/1.4 var(--lvmb-font,Roboto,system-ui,sans-serif)!important;
  text-transform:none!important;letter-spacing:normal!important;text-decoration:none!important;
  box-shadow:none!important;cursor:pointer;white-space:nowrap;
}
.lvmb-theme-toggle svg{display:block;width:20px;height:20px;flex:none}
.lvmb-theme-toggle .lvmb-theme-icon{display:inline-flex}
.lvmb-theme-toggle:focus-visible{outline:3px solid var(--lvmb-action,#007229)!important;outline-offset:3px}
.lvmb-theme-toggle--header{margin-left:6px!important}
.lvmb-theme-toggle--header .lvmb-theme-state{display:none}
.lvmb-theme-toggle--menu{width:100%;justify-content:flex-start;margin-top:12px!important}
.lvmb-theme-toggle--menu .lvmb-theme-state{margin-left:auto}
.lvmb-theme-state{font-size:12px;color:var(--lvmb-muted,#666)}
.lvmb-theme-tools{display:flex;justify-content:flex-start;padding-top:16px;margin-top:16px;gap:12px}
body>.lvmb-theme-tools{padding:16px max(20px,calc((100% - 1160px)/2));margin:0;background:var(--lvmb-surface-alt,#f7f7f7)}
@media(max-width:1500px){
 .lvmb-theme-toggle--header{width:44px;padding:10px!important}
 .lvmb-theme-toggle--header .lvmb-theme-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(hover:hover){.lvmb-theme-toggle:hover{background:var(--lvmb-surface-alt,#f7f7f7)}}
@media print{.lvmb-theme-toggle,.lvmb-theme-tools{display:none!important}}

@media screen{
 html[data-theme="dark"]{
  color-scheme:dark!important;
  --lvmb-text:#f3f5f3;--lvmb-muted:#bac6be;
  --lvmb-action:#7bd99a;--lvmb-action-hover:#a0e7b6;--lvmb-action-rgb:123 217 154;
  --lvmb-on-action:#141b18;--lvmb-surface:#141b18;--lvmb-surface-alt:#1c2620;--lvmb-tint:#21362a;
  --lvmb-border:#46594c;--lvmb-field-border:#82998a;
  --lvmb-shadow-card:0 2px 8px rgb(0 0 0 / .2);
  --lvmb-shadow-menu:0 12px 28px rgb(0 0 0 / .4);
  background:#141b18;color:#f3f5f3;
 }
 html[data-theme="dark"] body{background:var(--lvmb-surface)!important;color:var(--lvmb-text)!important}
 html[data-theme="dark"] .lvmb-feedback-help{background:var(--lvmb-surface)!important;color:var(--lvmb-text)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] .lvmb-feedback-help :is(p,h2,h3,strong){color:var(--lvmb-text)!important}
 html[data-theme="dark"] .lvmb-feedback-help a{color:var(--lvmb-action)!important}
 /* Legacy components with fixed white surfaces. Media and document surfaces are deliberately omitted. */
 html[data-theme="dark"] body :is(.g26,.g26-header,.g26-footer,.gn26-footer,.g26-nav-group>div,.g26-topics article,.g26-appointment,.g26-portrait figcaption,.gj-product-grid figcaption,.gqa-review-card,.beamtenstart,.bs-person,.gs-dialog,.gs-input-wrap,.gs-result,.gs-quick a,.gs-all,.gs-page-main,.gs-page-brand,.gs-fallback-bar,.site-header,.site-footer){
  background-color:var(--lvmb-surface)!important;color:var(--lvmb-text)!important;border-color:var(--lvmb-border)!important;
 }
 html[data-theme="dark"] body :is(.g26-hero,.g26-contact-section,.gqa-contact-action,.gs-hint,.gs-result-best,.gqa-care-note,.bs-person,.gqa-news-card,.gqa-contact-card){
  background-color:var(--lvmb-surface-alt)!important;
 }
 html[data-theme="dark"] body :is(.g26-tint,#berufsstartcheck){background-color:var(--lvmb-tint)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] body :is(.gqa-reviews,.gqa-review-card strong,.gqa-review-copy,.beamtenstart,.beamtenstart h1,.beamtenstart h2,.beamtenstart h3,.beamtenstart strong){color:var(--lvmb-text)!important}
 html[data-theme="dark"] body :is(.gqa-review-card time,.gqa-review-source,.beamtenstart p,.beamtenstart li){color:var(--lvmb-muted)!important}
 html[data-theme="dark"] body :is(.gqa-reviews-summary a,.gqa-review-rating,.beamtenstart a,.gs-result-arrow,.gs-best-label){color:var(--lvmb-action)!important}
 html[data-theme="dark"] body :is(.g26-button:not(.g26-secondary),.gfa-primary,.gha-primary,.guk-primary,.gdc-button-primary,.gs-submit,.lvmb-motion-v3__play){
  background-color:var(--lvmb-action)!important;border-color:var(--lvmb-action)!important;color:#141b18!important;
 }
 html[data-theme="dark"] body .g26-secondary{background:var(--lvmb-surface)!important;color:var(--lvmb-action)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] body .lvmb-motion-v3__play span{border-left-color:#141b18!important}
 html[data-theme="dark"] body :is(.g26-mobile>summary,.gs-trigger,.gs-close,.gs-clear,.lvmb-theme-toggle){background:var(--lvmb-surface)!important;color:var(--lvmb-text)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] body :is(.gs-results li+li,.gs-hint,.gs-all,.g26-footer details,.g26-legal){border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] .gs-dialog::backdrop{background:rgb(0 0 0 / .65)}
 /* Preserve original logos, illustrations, photos, video and PDF colors. */
 html[data-theme="dark"] :is(.galrao-brand,.brand:has(>img)){
  background:#fff!important;
 }
 html[data-theme="dark"] .g26-partner{color:var(--lvmb-muted)!important}
 html[data-theme="dark"] .g26-partner img{background:transparent!important}
 /* Photo disclosures retain their own readable neutral label, unchanged by the dark palette. */
 html[data-theme="dark"] :is(.gqa-portrait-credit,.gqa-news-figure>figcaption,.lvmb-media-credit){color:#555!important;background:rgba(255,255,255,.92)!important}
 html[data-theme="dark"] .beamtenstart .bs-person small{color:var(--lvmb-muted)!important}
 /* Funnelforms supplies inline color variables; override those variables at its boundary. */
 html[data-theme="dark"] :is(.ffx-form,.ffx-popup){
  --ffx-color-background:#141b18!important;--ffx-color-option:#1c2620!important;
  --ffx-color-text:#f3f5f3!important;--ffx-color-heading:#f3f5f3!important;
  --ffx-color-muted:#bac6be!important;--ffx-color-primary:#7bd99a!important;
  --ffx-color-border:#82998a!important;--ffx-color-field-border:#82998a!important;--ffx-color-error:#ffb4aa!important;
 }
 html[data-theme="dark"] :is(.ffx-form,.ffx-popup) :is(.ffx-button-primary,.ffx-option[aria-pressed="true"] .ffx-option-icon){color:#141b18!important}
 html[data-theme="dark"] :is(.ffx-form,.ffx-popup) .ffx-button:not(.ffx-button-primary){color:var(--lvmb-text)!important}
 html[data-theme="dark"] body :is(.g26,.beamtenstart,.gfa-page,.gha-page,.guk,.gdc,.gs-dialog,.gs-search-page) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),select,textarea){
  background-color:var(--lvmb-surface)!important;color:var(--lvmb-text)!important;border-color:var(--lvmb-field-border)!important;
 }
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--lvmb-muted);opacity:1}
 html[data-theme="dark"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:var(--lvmb-action)}
 /* Shared financial suite inherits the same values through its custom element boundary. */
 html[data-theme="dark"] lvm-finanzrechner{--lvm-soft:#21362a!important;--lvm-paper:#141b18!important;--lvm-ink:#f3f5f3!important;--lvm-muted:#bac6be!important;--lvm-green:#7bd99a!important;--lvm-line:#46594c!important}

 /* Standalone tools share tokens, but retain a few legacy component colors. */
 html[data-theme="dark"][data-lvmb-tool]{--muted:var(--lvmb-muted);--line:var(--lvmb-border);--danger:#ffb4aa;--yellow-soft:#3c321b;--red-soft:#382521;--red:#ffb4aa}
 html[data-theme="dark"][data-lvmb-tool] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),select,textarea){background-color:var(--lvmb-surface);color:var(--lvmb-text);border-color:var(--lvmb-field-border)}
 html[data-theme="dark"][data-lvmb-tool="check"] :is(.compass-card,.float-card,.how-strip,.tool-card){background:var(--lvmb-surface-alt)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"][data-lvmb-tool="check"] :is(.visual-bars span,.progress-track,.category-bar){background:var(--lvmb-border)}
 html[data-theme="dark"][data-lvmb-tool="check"] :is(.count-badge,.issue-index,.tag-unknown,.tag-partly){color:#f2cf7e;background:var(--yellow-soft)}
 html[data-theme="dark"][data-lvmb-tool="check"] :is(.tag-no,.form-error){color:#ffb4aa;background:var(--red-soft)}
 html[data-theme="dark"][data-lvmb-tool="check"] .result-cta p{color:#21362a}
 html[data-theme="dark"][data-lvmb-tool="check"] .noscript{color:#ffb4aa;background:#382521}
 html[data-theme="dark"][data-lvmb-tool="check"] .modal-backdrop{background:rgb(0 0 0 / .65)}
 html[data-theme="dark"][data-lvmb-tool="pflichtencheck"] :is(.lead,.status-card p,.lead-card p,.privacy-line){color:var(--lvmb-muted)}
 html[data-theme="dark"][data-lvmb-tool="pflichtencheck"] :is(.primary-btn,.brand-mark){color:var(--lvmb-on-action)}
 html[data-theme="dark"][data-lvmb-tool="pflichtencheck"] :is(.status-yellow,.result-box.warning){background:#3c321b;border-color:#9f853d}
 html[data-theme="dark"][data-lvmb-tool="pflichtencheck"] .status-red{background:#382521;border-color:#a96760}
 html[data-theme="dark"][data-lvmb-tool="pflichtencheck"] .step-error{color:#ffb4aa}
 html[data-theme="dark"][data-lvmb-tool="einkommensschutz"] .risk-badge.amber{background:#3c321b;color:#f2cf7e}
 html[data-theme="dark"][data-lvmb-tool="einkommensschutz"] .risk-badge.red{background:#382521;color:#ffb4aa}
 html[data-theme="dark"][data-lvmb-tool="stadtkrimi"] main :is(article,.box,details){background:var(--lvmb-surface-alt);color:var(--lvmb-text)}
 html[data-theme="dark"][data-lvmb-tool="stadtkrimi"] :is(button:not(.secondary):not(.lvmb-theme-toggle),.button){color:var(--lvmb-on-action)}
 html[data-theme="dark"][data-lvmb-tool="stadtkrimi"] .error{color:#ffb4aa}
 html[data-theme="dark"][data-lvmb-tool="sign"] :is(.danger,.notice.error){color:#ffb4aa;background:#382521;border-color:#a96760}
 html[data-theme="dark"][data-lvmb-tool="sign"] .sheet::backdrop{background:rgb(0 0 0 / .65)}
 html[data-theme="dark"][data-lvmb-tool="sign"] .busy-overlay{background:rgb(20 27 24 / .9)}
 /* A document and handwritten signature must keep their actual white paper and black ink. */
 html[data-theme="dark"][data-lvmb-tool="sign"] :is(.paper,.signature-canvas-wrap,.review-paper-scroll canvas,#saved-signatures button){
  --lvmb-surface:#fff;--lvmb-surface-alt:#f7f7f7;--lvmb-text:#111;--lvmb-muted:#666;--lvmb-border:#d6d6d6;--lvmb-action:#007229;
  background:#fff!important;color:#111;color-scheme:light;
 }
}

/* One shared header on every viewport. Existing search and details nodes are moved,
   so their URLs, dialog wiring, category behaviour and appointment action survive. */
html body .g26-header[data-lvmb-header]{
  position:relative!important;z-index:40;overflow:visible!important;
  background:var(--lvmb-surface,#fff)!important;color:var(--lvmb-text,#4a4949)!important;
}
html body .g26-header[data-lvmb-header] .g26-header-row{
  position:relative!important;display:flex!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:space-between!important;
  width:calc(100% - 40px)!important;max-width:1160px!important;min-height:100px;
  box-sizing:border-box;margin:0 auto!important;padding:12px 0!important;gap:20px!important;
}
html body .g26-header[data-lvmb-header] .g26-desktop{display:none!important}
html body .g26-header[data-lvmb-header] .g26-brand{
  flex:0 0 176px!important;width:176px!important;min-width:0!important;max-width:176px!important;
  margin:0!important;padding:0!important;
}
html body .g26-header[data-lvmb-header] .g26-brand>a{display:block;min-height:0;width:100%;max-width:100%}
html body .g26-header[data-lvmb-header] .g26-brand>a>img{
  display:block!important;width:100%!important;max-width:100%!important;height:auto!important;
  aspect-ratio:3/1;object-fit:contain!important;margin:0!important;
}
html body .g26-header[data-lvmb-header] .g26-partner{
  display:flex!important;align-items:center;justify-content:flex-start;gap:6px!important;
  margin-top:3px;font-size:10px!important;line-height:1.2;white-space:nowrap;
}
html body .g26-header[data-lvmb-header] .g26-partner img{width:50px!important;height:auto!important;max-width:50px!important}
html body .g26-header[data-lvmb-header] .lvmb-header-actions{
  display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:8px;margin:0;padding:0;
}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-header-action,
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary{
  position:static!important;inset:auto!important;transform:none!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto;gap:5px!important;width:64px!important;min-width:64px!important;max-width:none!important;
  height:64px!important;min-height:44px!important;box-sizing:border-box;
  margin:0!important;padding:4px 2px!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:var(--lvmb-text,#4a4949)!important;box-shadow:none!important;
  font:400 14px/18px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;
  text-decoration:none!important;text-transform:none!important;letter-spacing:normal!important;
  white-space:nowrap!important;cursor:pointer;list-style:none;overflow:visible!important;
}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-header-account{width:76px!important}
html body .g26-header[data-lvmb-header] .lvmb-header-actions svg{
  display:block;width:32px!important;height:32px!important;min-width:32px;flex:none!important;
  color:currentColor!important;margin:0!important;
}
html body .g26-header[data-lvmb-header] .lvmb-header-actions .lvmb-theme-icon{display:flex;align-items:center;justify-content:center}
html body .g26-header[data-lvmb-header] .lvmb-header-actions :is(.lvmb-theme-text,.lvmb-header-label,.g26-open-label){
  position:static!important;display:block!important;width:auto!important;height:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;
  font:inherit!important;line-height:inherit!important;white-space:nowrap!important;
}
html body .g26-header[data-lvmb-header] .lvmb-header-actions .lvmb-theme-state,
html body .g26-header[data-lvmb-header] .lvmb-header-actions .g26-close-label{display:none!important}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile{
  position:static!important;display:block!important;flex:0 0 64px!important;align-self:center!important;
  width:64px!important;min-width:64px!important;max-width:none!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary::marker{content:""}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary::-webkit-details-marker{display:none}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary::before,
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary::after{content:none!important;display:none!important}
html body .g26-header[data-lvmb-header] .g26-mobile:not([open])>summary .g26-menu-close,
html body .g26-header[data-lvmb-header] .g26-mobile[open]>summary .g26-menu-open{display:none!important}
html body .g26-header[data-lvmb-header] .g26-mobile:not([open])>summary .g26-menu-open,
html body .g26-header[data-lvmb-header] .g26-mobile[open]>summary .g26-menu-close{display:block!important}
html body .g26-header[data-lvmb-header] .g26-mobile>nav{
  position:absolute!important;inset:100% 0 auto!important;transform:none!important;
  z-index:50;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box;
  grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px 24px;
  max-height:calc(100dvh - 100px)!important;overflow:auto!important;overscroll-behavior:contain;
  margin:0!important;padding:24px!important;border:1px solid var(--lvmb-border,#d6d6d6)!important;
  border-top:4px solid var(--lvmb-action,#007229)!important;border-radius:0!important;
  background:var(--lvmb-surface,#fff)!important;color:var(--lvmb-text,#4a4949)!important;
  box-shadow:var(--lvmb-shadow-menu,0 12px 28px rgb(0 0 0 / .12))!important;
}
html body .g26-header[data-lvmb-header] .g26-mobile:not([open])>nav{display:none!important}
html body .g26-header[data-lvmb-header] .g26-mobile[open]>nav{display:grid!important}
html body .g26-header[data-lvmb-header] .g26-mobile>nav>.gn26-nav-group{
  position:static!important;min-width:0;max-width:100%;margin:0!important;padding:0!important;
  border:0!important;border-bottom:1px solid var(--lvmb-border,#d6d6d6)!important;
  background:transparent!important;
}
html body .g26-header[data-lvmb-header] .g26-mobile>nav>.gn26-nav-group[open]{grid-column:1/-1}
html body .g26-header[data-lvmb-header] .g26-mobile>nav>.gn26-nav-group>summary{
  display:flex!important;justify-content:space-between!important;gap:12px;min-height:48px;
  margin:0!important;padding:12px 0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:var(--lvmb-text,#4a4949)!important;
  font:500 16px/24px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;white-space:normal!important;
}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-nav-group>summary>.gn26-chevron{width:20px!important;height:20px!important;min-width:20px}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-nav-group>.gn26-panel{
  position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;
  min-width:0!important;max-height:none!important;overflow:visible!important;margin:0!important;
  padding:8px 0 20px!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  background:var(--lvmb-surface,#fff)!important;color:var(--lvmb-text,#4a4949)!important;
}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-nav-group:not([open])>.gn26-panel{display:none!important}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-nav-group[open]>.gn26-panel{display:block!important}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-panel-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px 24px!important}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-panel a{min-height:44px;color:var(--lvmb-action,#007229)!important;font-size:16px;line-height:24px}
html body .g26-header[data-lvmb-header] .g26-mobile .gn26-panel-title{color:var(--lvmb-text,#4a4949)!important}
html body .g26-header[data-lvmb-header] .g26-mobile>nav>.lvmb-menu-account{
  grid-column:1/-1;display:flex!important;align-items:center;justify-content:flex-start;gap:12px;
  min-height:48px;margin:0 0 8px!important;padding:12px 16px!important;
  background:var(--lvmb-tint,#e5f5ea)!important;color:var(--lvmb-action,#007229)!important;
  font:500 16px/24px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;text-decoration:none;
}
html body .g26-header[data-lvmb-header] .g26-mobile>nav>:is(.g26-button,.lvmb-theme-toggle){grid-column:1/-1;min-height:48px!important;margin:8px 0 0!important}
/* Search remains permanently available above the drawer; do not duplicate its entry. */
html body .g26-header[data-lvmb-header] .g26-mobile>nav>.gs-trigger{display:none!important}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>:is(a,button):focus-visible,
html body .g26-header[data-lvmb-header] .g26-mobile>summary:focus-visible{outline:3px solid var(--lvmb-action,#007229)!important;outline-offset:2px!important}
@media(hover:hover){
 html body .g26-header[data-lvmb-header] .lvmb-header-actions>:is(a,button):hover,
 html body .g26-header[data-lvmb-header] .g26-mobile>summary:hover{color:var(--lvmb-action,#007229)!important}
}
@media(max-width:900px){
 html body .g26-header[data-lvmb-header] .g26-mobile>nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
 html body .g26-header[data-lvmb-header] .g26-mobile .gn26-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:600px) and (max-width:700px){
 html body .g26-header[data-lvmb-header] .g26-header-row{width:calc(100% - 32px)!important;gap:12px!important}
 html body .g26-header[data-lvmb-header] .g26-brand{flex-basis:156px!important;width:156px!important;max-width:156px!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions{gap:4px}
}
@media(max-width:599px){
 html body .g26-header[data-lvmb-header] .g26-header-row{width:calc(100% - 24px)!important;min-height:80px;gap:10px!important;padding:12px 0!important}
 html body .g26-header[data-lvmb-header] .g26-brand{flex-basis:clamp(96px,28vw,144px)!important;width:clamp(96px,28vw,144px)!important;max-width:144px!important}
 html body .g26-header[data-lvmb-header] .g26-partner{gap:3px!important;font-size:8px!important;margin-top:2px}
 html body .g26-header[data-lvmb-header] .g26-partner img{width:40px!important;max-width:40px!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions{gap:5px}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-header-action,
 html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary{
  width:44px!important;min-width:44px!important;height:48px!important;gap:3px!important;padding:2px 0!important;
  font-size:11px!important;line-height:16px!important;
 }
 html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-header-account{display:none!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile{flex-basis:44px!important;width:44px!important;min-width:44px!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions svg{width:24px!important;height:24px!important;min-width:24px}
 html body .g26-header[data-lvmb-header] .g26-mobile>nav{grid-template-columns:minmax(0,1fr);gap:0;padding:16px!important;max-height:calc(100dvh - 100px)!important}
 html body .g26-header[data-lvmb-header] .g26-mobile .gn26-panel-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media print{html body .g26-header[data-lvmb-header]{display:none!important}}

/* Transparent logo, same glyph geometry in both modes. Only the text area turns white. */
html body .g26-header[data-lvmb-header] .g26-brand>a[data-lvmb-logo]{position:relative;background:transparent!important}
html body .g26-header[data-lvmb-header] .g26-brand>a>img.lvmb-logo-dark-lettering{display:none!important;position:absolute!important;inset:0!important;pointer-events:none;filter:brightness(0) invert(1);clip-path:inset(0 0 0 33.333333%)}
@media screen{html[data-theme="dark"] body .g26-header[data-lvmb-header] .g26-brand>a>img.lvmb-logo-dark-lettering{display:block!important}}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-header-action,
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.g26-mobile>summary{color:var(--lvmb-action,#007229)!important}
html body .g26-header[data-lvmb-header] .lvmb-header-actions>.lvmb-theme-toggle--header{color:var(--lvmb-text,#4a4949)!important}
@media(max-width:340px){
 html body .g26-header[data-lvmb-header] .g26-header-row{gap:8px!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions{gap:4px}
}
@media(max-width:319px){
 html body .g26-header[data-lvmb-header] .g26-header-row{flex-wrap:wrap!important;justify-content:center!important}
 html body .g26-header[data-lvmb-header] .g26-brand{flex-basis:120px!important;width:120px!important;max-width:120px!important}
 html body .g26-header[data-lvmb-header] .lvmb-header-actions{flex-basis:100%;justify-content:space-between}
}

/* Shared native dialog for header, menu and footer triggers. */
html body dialog.lvmb-theme-picker{
  position:fixed!important;left:16px;top:80px;right:auto;bottom:auto;
  display:none!important;box-sizing:border-box;width:min(340px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;
  margin:0!important;padding:20px!important;border:1px solid var(--lvmb-border,#d6d6d6)!important;
  border-radius:0!important;background:var(--lvmb-surface,#fff)!important;color:var(--lvmb-text,#4a4949)!important;
  box-shadow:var(--lvmb-shadow-menu,0 12px 28px rgb(0 0 0 / .12));z-index:2147483000;
  font:400 16px/24px var(--lvmb-font,Roboto,system-ui,sans-serif);text-align:left;
}
html body dialog.lvmb-theme-picker[open]{display:block!important}
html body dialog.lvmb-theme-picker::backdrop{background:rgb(0 0 0 / .18)}
html body .lvmb-theme-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
html body .lvmb-theme-picker-heading>h2{
  margin:0!important;padding:0!important;font:700 20px/28px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;
  color:var(--lvmb-text,#4a4949)!important;letter-spacing:normal!important;text-transform:none!important;
}
html body .lvmb-theme-picker-close{
  display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;
  margin:0!important;padding:10px!important;border:0!important;border-radius:0!important;background:transparent!important;
  color:var(--lvmb-text,#4a4949)!important;box-shadow:none!important;cursor:pointer;
}
html body .lvmb-theme-picker-close>svg{display:block;width:24px;height:24px;flex:none}
html body .lvmb-theme-options{display:grid;gap:8px;min-width:0;margin:0!important;padding:0!important;border:0!important}
html body .lvmb-theme-options>legend{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
html body .lvmb-theme-options>label{
  display:flex;align-items:center;gap:12px;min-height:60px;box-sizing:border-box;margin:0!important;padding:10px 12px!important;
  border:1px solid var(--lvmb-border,#d6d6d6);border-radius:0;background:var(--lvmb-surface,#fff);color:var(--lvmb-text,#4a4949);
  cursor:pointer;text-transform:none!important;letter-spacing:normal!important;
}
html body .lvmb-theme-options>label:has(input:checked){border-color:var(--lvmb-action,#007229);background:var(--lvmb-tint,#e5f5ea)}
html body .lvmb-theme-options input[type="radio"]{
  appearance:auto!important;position:static!important;display:block!important;flex:0 0 20px;width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;margin:0!important;padding:0!important;opacity:1!important;
  accent-color:var(--lvmb-action,#007229);clip:auto!important;clip-path:none!important;transform:none!important;
}
html body .lvmb-theme-options>label>span{display:block;min-width:0}
html body .lvmb-theme-options strong{display:block;font:500 16px/24px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;color:inherit!important;text-transform:none!important}
html body .lvmb-theme-options small{display:block;margin:0;font:400 14px/20px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;color:var(--lvmb-muted,#666)!important;text-transform:none!important}
html body .lvmb-theme-picker-status{min-height:40px;margin:12px 0 0!important;padding:0;font:400 14px/20px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;color:var(--lvmb-muted,#666)!important}
html body .lvmb-theme-picker :is(button,input):focus-visible{outline:3px solid var(--lvmb-action,#007229)!important;outline-offset:3px!important}
@media(hover:hover){html body .lvmb-theme-options>label:hover{border-color:var(--lvmb-action,#007229)}}
@media(max-width:380px){html body dialog.lvmb-theme-picker{padding:16px!important}}
@media(forced-colors:active){
 html body .lvmb-theme-options>label{border-color:ButtonText}
 html body .lvmb-theme-options>label:has(input:checked){border-color:Highlight}
 html body .lvmb-theme-options input[type="radio"]{accent-color:auto}
}
@media print{html body dialog.lvmb-theme-picker{display:none!important}}

/* Shared component repairs. Applied after existing theme and service styles. */
body a.gqa-journey-button {
 box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;
 min-height:48px!important;max-width:100%;padding:12px 20px!important;
 border-radius:var(--lvmb-radius,0)!important;box-shadow:none!important;text-shadow:none!important;
 font:500 16px/24px var(--lvmb-font,Roboto,system-ui,sans-serif)!important;
 white-space:normal!important;overflow-wrap:break-word;text-decoration:none!important;
}
/* Authored product action rows: first action primary, further actions secondary. */
body .g26-actions>a.gqa-journey-button,
body.page-id-1353 .gqa-redaktion-next a.gqa-journey-button {
 border:1px solid var(--lvmb-action,#007229)!important;
 background:var(--lvmb-action,#007229)!important;
 color:var(--lvmb-on-action,#fff)!important;
}
body .g26-actions>a.gqa-journey-button:not(:first-child) {
 background:var(--lvmb-surface,#fff)!important;color:var(--lvmb-action,#007229)!important;
}
body a.gqa-journey-button:focus-visible {outline:3px solid var(--lvmb-action,#007229)!important;outline-offset:3px!important}
/* The Kfz hero still contains Elementor's mobile-only centered widgets. */
body.page-id-1353 .elementor-1353 :is(.elementor-element-351e385d,.elementor-element-7c72f4b5) {text-align:left!important}
body.page-id-1353 .elementor-1353 .gqa-route-intro {max-width:65ch;margin:0!important;text-align:left!important;color:var(--lvmb-text,#4a4949)!important}
body.page-id-1353 .elementor-1353 .g26-actions {justify-content:flex-start;align-items:stretch;gap:12px!important}
@media(hover:hover) {
 body .g26-actions>a.gqa-journey-button:first-child:hover,
 body.page-id-1353 .gqa-redaktion-next a.gqa-journey-button:hover {background:var(--lvmb-action-hover,#005b21)!important}
 body .g26-actions>a.gqa-journey-button:not(:first-child):hover {background:var(--lvmb-surface-alt,#f7f7f7)!important}
}
@media(max-width:680px) {
 body.page-id-1353 .elementor-1353 .g26-actions {display:grid!important;grid-template-columns:minmax(0,1fr);width:100%}
 body.page-id-1353 .elementor-1353 .g26-actions>a.gqa-journey-button {width:100%;min-width:0}
}
/* Keep signature exports black on white; the runtime reads the canvas text color as ink. */
body :is(.ffx-form,.ffx-popup) .ffx-signature-pad {background:#fff!important;color:#111!important;color-scheme:light}
@media screen {
 html[data-theme="dark"] body :is(.ffx-form,.ffx-popup) {
  --ffx-color-background-end:var(--lvmb-surface,#141b18)!important;
  --ffx-color-on-primary:var(--lvmb-on-action,#141b18)!important;
  --ffx-color-button:var(--lvmb-action,#7bd99a)!important;
  --ffx-color-on-button:var(--lvmb-on-action,#141b18)!important;
  --ffx-color-icon:var(--lvmb-action,#7bd99a)!important;
  --ffx-color-success:var(--lvmb-action,#7bd99a)!important;
 }
 html[data-theme="dark"] body :is(.ffx-form,.ffx-popup) .ffx-error::before {color:var(--lvmb-on-action,#141b18)!important}
 html[data-theme="dark"] body :is(.ffx-form,.ffx-popup) .ffx-option:is([aria-pressed="true"],:has(:checked),.is-right,.is-wrong)::after {color:var(--lvmb-on-action,#141b18)!important}
 html[data-theme="dark"] body :is(.ffx-form,.ffx-popup) [class^="ffx-booking-"][aria-pressed="true"] {color:var(--lvmb-on-action,#141b18)!important}
 html[data-theme="dark"] body .lvm-native-entry>a {color:var(--lvmb-on-action,#141b18)!important}
 /* WordPress's fixed pale table stripes and captions otherwise inherit pale dark-mode text. */
 html[data-theme="dark"] body :is(.gqa-news-copy table,.gj-article table,.wp-block-table table),
 html[data-theme="dark"] body.gqa-legacy-layout .elementor-widget-text-editor table {color:var(--lvmb-text)!important;background:var(--lvmb-surface)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] body :is(.gqa-news-copy table,.gj-article table,.wp-block-table table) :is(th,td),
 html[data-theme="dark"] body.gqa-legacy-layout .elementor-widget-text-editor table :is(th,td) {color:var(--lvmb-text)!important;border-color:var(--lvmb-border)!important}
 html[data-theme="dark"] body :is(.gqa-news-copy table,.gj-article table,.wp-block-table table) :is(caption,thead),
 html[data-theme="dark"] body.gqa-legacy-layout .elementor-widget-text-editor table :is(caption,thead),
 html[data-theme="dark"] body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {background:var(--lvmb-surface-alt)!important;color:var(--lvmb-text)!important}
}

@media print{html{color-scheme:light!important}}

/* Schadenrueckkauf: adapt the embedded legacy app to shared tokens, without changing calculations. */
@media screen {
 #galrao-sfr .sfr {
  --g:var(--lvmb-action,#007229)!important;--g2:var(--lvmb-action-hover,#005b21)!important;
  --ink:var(--lvmb-text,#4a4949)!important;--mut:var(--lvmb-muted,#666)!important;
  --line:var(--lvmb-border,#d6d6d6)!important;--bg:var(--lvmb-surface,#fff)!important;
  --mint:var(--lvmb-tint,#e5f5ea)!important;--surface-soft:var(--lvmb-surface-alt,#f7f7f7)!important;
  --red:#b42318;--orange:#b54708;--sfr-warning:#7b4b17;--sfr-warning-bg:#fff5e7;
  --shadow:none!important;
  background:var(--bg)!important;color:var(--ink)!important;
  font-family:var(--lvmb-font,Roboto,system-ui,sans-serif)!important;
 }
 #galrao-sfr .sfr :is(.top,.card,.heroSide,.detailsGroup,.panel,.modalHead,.modalActions,.printChoice,.icon,.btn,.statusPill,.tariffBadge) {
  background:var(--lvmb-surface,#fff)!important;color:var(--ink)!important;border-color:var(--line)!important;
 }
 #galrao-sfr .sfr :is(.card,.detailsGroup,.panel,.printChoice,.exportStep,.repayCta,.alert,.note,.special,.model-note,.icon,.btn,.emptyIcon) {border-radius:var(--lvmb-radius,0)!important;box-shadow:none!important}
 #galrao-sfr .sfr :is(.pageHead h1,.emptyState h2,.resultIntro h2,.title h2,.title h3,.field label,.reportType legend,.printChoice strong,.detailsGroup>summary) {color:var(--ink)!important}
 #galrao-sfr .sfr :is(.pageHead p,.emptyState p,.hint,.burden-note,.moneyInput span,.metric small,.metric em,.decisionFoot,.footer,.printChoice span,.modalIntro) {color:var(--mut)!important}
 #galrao-sfr .sfr :is(.pageHead .eyebrow,.model-note a,.experts summary,.cross-label,.footer a) {color:var(--g)!important}
 #galrao-sfr .sfr .field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select),
 #galrao-sfr .sfr .rateTable input {
  background:var(--lvmb-surface,#fff)!important;color:var(--ink)!important;
  border-color:var(--lvmb-field-border,#7d7d7d)!important;border-radius:var(--lvmb-radius,0)!important;
 }
 #galrao-sfr .sfr input::placeholder {color:var(--mut)!important;opacity:1}
 #galrao-sfr .sfr :is(input,select,button,a,summary):focus-visible {outline:3px solid var(--g)!important;outline-offset:3px!important;box-shadow:none!important}
 #galrao-sfr .sfr .field [aria-invalid="true"] {border-color:var(--red)!important}
 #galrao-sfr .sfr .prefillNotice::before,
 #galrao-sfr .sfr :is(.btn.primary,.specialIcon,.exportStepNumber) {
  background:var(--g)!important;color:var(--lvmb-on-action,#fff)!important;border-color:var(--g)!important;
 }
 #galrao-sfr .sfr .btn.primary:hover {background:var(--g2)!important;border-color:var(--g2)!important}
 #galrao-sfr .sfr .btn:not(.primary):hover {background:var(--surface-soft)!important;border-color:var(--g)!important}
 #galrao-sfr .sfr :is(.special,.note,.model-note,.prefillNotice,.repayCta,.localBadge,.statusPill.ready,.decisionItem.good) {
  background:var(--mint)!important;color:var(--ink)!important;border-color:var(--line)!important;
 }
 #galrao-sfr .sfr :is(.special p,.note p,.model-note p,.prefillNotice p) {color:var(--ink)!important}
 #galrao-sfr .sfr :is(.decisionItem,.exportStep,.pill,.detailsBody,.range b,.range output) {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
 #galrao-sfr .sfr .printChoice:has(input:checked) {background:var(--mint)!important;border-color:var(--g)!important;box-shadow:inset 0 0 0 1px var(--g)!important}
 #galrao-sfr .sfr .printChoice:has(input:focus-visible) {outline:3px solid var(--g)!important;outline-offset:3px!important}
 #galrao-sfr .sfr :is(.alert,.decisionItem.warn,.pill.claim,.mailHint,.tariffBadge.custom) {background:var(--sfr-warning-bg)!important;color:var(--sfr-warning)!important;border-color:var(--sfr-warning)!important}
 #galrao-sfr .sfr :is(.alert,.decisionItem.warn,.mailHint) :is(strong,p,small) {color:inherit!important}
 #galrao-sfr .sfr .metric.primaryMetric {background:var(--g)!important;color:var(--lvmb-on-action,#fff)!important;border-color:var(--g)!important}
 #galrao-sfr .sfr .metric.primaryMetric :is(strong,small,em) {color:inherit!important}
 #galrao-sfr .sfr :is(.metric strong.bad,td.bad) {color:var(--red)!important}
 #galrao-sfr .sfr .metric.primaryMetric strong.bad {color:inherit!important}
 #galrao-sfr .sfr :is(table,td) {background:var(--lvmb-surface,#fff)!important;color:var(--ink)!important;border-color:var(--line)!important}
 #galrao-sfr .sfr th {background:var(--surface-soft)!important;color:var(--mut)!important;border-color:var(--line)!important}
 #galrao-sfr .sfr .break-row :is(th,td) {background:var(--mint)!important;color:var(--ink)!important}
 #galrao-sfr .sfr .break-row th:first-child {box-shadow:inset 4px 0 var(--g)!important}
 #galrao-sfr .sfr .chartWrap svg text {fill:var(--mut)!important}
 #galrao-sfr .sfr .chartWrap svg [stroke="#00843d"] {stroke:var(--g)!important}
 #galrao-sfr .sfr .chartWrap svg [stroke="#b54708"] {stroke:var(--orange)!important}
 #galrao-sfr .sfr .chartWrap svg [fill="#b54708"] {fill:var(--orange)!important}
 #galrao-sfr .sfr .chartWrap svg [stroke="#d9e1dc"] {stroke:var(--line)!important}
 #galrao-sfr .sfr .tooltip {background:var(--lvmb-surface-alt,#f7f7f7)!important;color:var(--ink)!important;border:1px solid var(--lvmb-field-border,#7d7d7d)}
 html[data-theme="dark"] #galrao-sfr .sfr {--red:#ffb4aa;--orange:#ffc078;--sfr-warning:#f2cf7e;--sfr-warning-bg:#3c321b}
 html[data-theme="dark"] #galrao-sfr .sfr .modal {background:rgb(0 0 0 / .65)!important}
}

/* The standalone PDF editor uses the same transparent logo layers as the site header. */
html body .site-header > a.brand[data-lvmb-logo] {
  position:relative;
  background:transparent!important;
}
html body .site-header > a.brand[data-lvmb-logo] > img {
  object-fit:contain!important;
}
html body .site-header > a.brand[data-lvmb-logo] > img.lvmb-logo-dark-lettering {
  display:none!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none;
  filter:brightness(0) invert(1);
  clip-path:inset(0 0 0 33.333333%);
}
@media screen {
  html[data-theme="dark"] body .site-header > a.brand[data-lvmb-logo] > img.lvmb-logo-dark-lettering {
    display:block!important;
  }
  html[data-theme="dark"][data-lvmb-tool="einkommensschutz"] .server-message.error {
    color:#ffb4aa;
  }
}
