/* Shared controls: clear opaque foundations, with glass only on floating chrome. */
body.tk-experience {
  --tkx-ink: #203548;
  --tkx-muted: #506174;
  --tkx-blue: #155d99;
  --tkx-line: #cbd6e3;
  --tkx-paper: #f5f7fb;
  --tkx-glass: linear-gradient(145deg,rgba(255,255,255,.92),rgba(234,240,248,.90));
  --tkx-shadow: 0 12px 34px #263d581b, inset 0 1px 0 #fff, inset 0 -1px 0 #bccde34d;
  -webkit-text-size-adjust: 100%;
}
body.tk-experience :is(button,input,select,textarea) { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience :is(.nav-shell,.mobile-contact.tk-ios-dock,.tk-utility-sheet,.tk-ios-sheet,.privacy-card,.privacy-dialog) {
  background: #f5f7fb !important;
  border: 1px solid #fff !important;
  box-shadow: var(--tkx-shadow) !important;
  color: var(--tkx-ink);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html:not(.tk-matte):not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience :is(.nav-shell,.mobile-contact.tk-ios-dock,.tk-utility-sheet,.tk-ios-sheet) {
    background: var(--tkx-glass) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
    backdrop-filter: blur(24px) saturate(1.25) !important;
  }
}
/* A sheet nested under navigation is opaque: no stacked blur layers. */
html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience .nav-shell :is(.locale-panel,.service-menu-panel,.checks-menu-panel) {
  background: #f7f9fc !important;
  border-color: #e0e7f0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 26px;
}
body.tk-experience .nav-shell :is(.language-switch>summary,.menu-toggle,.tk-desktop-search) {
  min-height: 44px;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 #fff,0 2px 8px #20354b08;
}
body.tk-experience .nav-shell :is(.menu-columns a,.checks-menu-panel a,.locale-panel>a) {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  border-radius: 14px;
}
body.tk-experience .tkx-heatpump-link { font-weight: 650; }
body.tk-experience .tkx-logo { display: block; flex: 1 1 auto; min-width: 0; max-width: 100%; }
/* Keep the live theme's direct-child logo geometry after adding picture sources. */
body.tk-experience .nav-shell .main-brand > picture.tkx-logo > img.tk-redesigned-logo { width: 210px; max-width: 100%; height: 76px; object-fit: contain; border-radius: 0; }
@media(max-width:370px) { body.tk-experience .nav-shell .main-brand > picture.tkx-logo > img.tk-redesigned-logo { width: 185px; height: 70px; } }

/* Equal secondary actions, independent of whether the semantic element is a link or button. */
html body.tk-experience :is(.privacy-card,.privacy-dialog) .privacy-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px !important;
}
html body.tk-experience :is(.privacy-card,.privacy-dialog) .privacy-links > :is(a,button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 1px solid #cbd6e3 !important;
  border-radius: 999px !important;
  background: #eaf0f7 !important;
  color: #29445d !important;
  font: 600 15px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 #fff !important;
  transform: none !important;
}
body.tk-experience :is(.privacy-card,.privacy-dialog) .privacy-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
body.tk-experience :is(.privacy-card,.privacy-dialog) .privacy-actions>button {
  min-width: 0;
  min-height: 50px;
  height: auto;
  padding: 13px 16px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 999px !important;
  font-weight: 650;
  line-height: 1.35;
}
body.tk-experience :is(.privacy-card,.privacy-dialog) { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }

/* Content and forms keep quiet, readable surfaces. Only the controls receive depth. */
body.tk-experience .tk-inquiry :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea),
body.tk-experience .tk-check :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) {
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  border-radius: 15px;
  box-shadow: inset 0 1px 3px #21395309;
}
body.tk-experience :is(.tk-inquiry,.tk-check) :is(input,select,textarea):focus-visible {
  outline: 3px solid #1b6dac;
  outline-offset: 3px;
}
body.tk-experience :is(.tk-inquiry,.tk-check) :is(.button,button[type=submit],.photo-picker) { min-height: 48px; border-radius: 18px; }
body.tk-experience :is(.tk-quick-questions,.check-options) { gap: 10px; }
body.tk-experience :is(.tk-quick-questions button,.check-option) { min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
body.tk-experience .tkx-check-context {
  margin: 28px 0;
  padding: clamp(22px,3vw,32px);
  border: 1px solid var(--tkx-line);
  border-radius: 24px;
  background: #f5f8fc;
  color: var(--tkx-ink);
}
body.tk-experience .tkx-check-context h2 { margin: 0 0 16px; font-size: clamp(23px,2.3vw,30px); line-height: 1.25; text-wrap: balance; }
body.tk-experience .tkx-check-context p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; }
body.tk-experience .tkx-check-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
body.tk-experience .tkx-check-links a { color: #155d99; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
/* Long translated words stay inside their existing content columns. */
body.tk-experience #inhalt :is(h1,h2,h3,h4,p,figcaption) { min-width: 0; overflow-wrap: anywhere !important; }

@media(max-width:780px) {
  html body.tk-experience .mobile-contact.tk-ios-dock {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    align-items: stretch;
    gap: 4px !important;
    padding: 7px !important;
    min-height: 76px;
    height: auto !important;
    border-radius: 32px !important;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
  html body.tk-experience .mobile-contact.tk-ios-dock > :is(a,button) {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 60px !important;
    height: auto !important;
    padding: 6px 3px !important;
    gap: 4px !important;
    border-radius: 25px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 12px !important;
    line-height: 1.18 !important;
    box-sizing: border-box;
  }
  html body.tk-experience .mobile-contact.tk-ios-dock > :is(a,button)>span {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    text-wrap: balance;
  }
  html body.tk-experience .mobile-contact.tk-ios-dock svg { flex-shrink: 0; width: 23px; height: 23px; }
  html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience .mobile-contact.tk-ios-dock [aria-current=page] {
    background: linear-gradient(160deg,#dcecff,#cbdff6) !important;
    box-shadow: inset 0 1px 0 #ffffffbd;
    color: #11538d !important;
  }
  body.tk-experience .nav-shell #main-nav { max-height: calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
body.tk-experience :is(.privacy-links>a,.privacy-links>button,.mobile-contact>a,.mobile-contact>button,.tk-quick-questions>button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .15s ease,box-shadow .15s ease; }
body.tk-experience :is(.privacy-links>a,.privacy-links>button,.mobile-contact>a,.mobile-contact>button):focus-visible { outline: 3px solid #155d99; outline-offset: 3px; }
body.tk-experience :is(.privacy-links>a,.privacy-links>button,.mobile-contact>a,.mobile-contact>button):active { filter: brightness(.94); }
@media(prefers-reduced-motion:reduce) { body.tk-experience :is(.nav-shell,.mobile-contact,.privacy-card,.privacy-dialog,.tk-utility-sheet,.tk-ios-sheet) { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  html:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience :is(.nav-shell,.mobile-contact.tk-ios-dock,.tk-utility-sheet,.tk-ios-sheet,.privacy-card,.privacy-dialog) { background: #f5f7fb !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-color: #75879b !important; }
}
html.tk-matte:not(.a11y-high):not(.a11y-light):not(.a11y-negative) body.tk-experience :is(.nav-shell,.mobile-contact.tk-ios-dock,.tk-utility-sheet,.tk-ios-sheet) { background: #f5f7fb !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:is(.a11y-high,.a11y-light,.a11y-negative) body.tk-experience :is(.privacy-links>a,.privacy-links>button,.tkx-check-context) { color: inherit !important; background: inherit !important; border-color: currentColor !important; box-shadow: none !important; }
@media(forced-colors:active) { body.tk-experience :is(.nav-shell,.mobile-contact,.privacy-links>a,.privacy-links>button,.tkx-check-context) { background: Canvas !important; color: CanvasText !important; border: 1px solid CanvasText !important; box-shadow: none !important; } }
