/* Shared contrast header across every page, including the scrolled state. */
html body > header,
html body > header.is-scrolled{
  background:linear-gradient(180deg,#e8f6fc 0%,#dceffa 100%)!important;
  border-bottom:1px solid #bfdfee!important;
  box-shadow:none!important;
  backdrop-filter:none;
}
html body > header .terra-brand,
html body > header .terra-brand-name,
html body > header nav a{color:#102c43!important}
html body > header .terra-brand img.terra-brand-symbol{filter:url("/assets/terra-orbit-colors.svg#orbit-blue")!important}
html body > header nav a:hover{color:#006c9e!important}
html body > header .header-actions > .nav-blog,
html body > header .header-actions > .nav-blog span,
html body > header .menu-toggle{color:#102c43!important}
html body > header .header-actions > .nav-blog,
html body > header .menu-toggle{background:transparent!important;border-color:#8ac7e3!important}
html body > header .header-actions > .nav-blog:hover,
html body > header .menu-toggle:hover{background:#bde5f8!important;border-color:#63b6dc!important}
html body > header .mobile-menu:not([hidden]){background:linear-gradient(180deg,#e8f6fc 0%,#dceffa 100%)!important;border-bottom-color:#bfdfee!important}
html body > header .mobile-menu a{color:#102c43!important}
html body > header .mobile-menu a:hover{background:#bde5f8!important;color:#006c9e!important}
html body > header a:focus-visible,
html body > header button:focus-visible{outline:2px solid #007bad!important;outline-offset:4px}

/* Quiet, consistent social links on every page. */
html body footer .social-icon-button{background:#e8f0f5;border-color:#cfdee8;transition:background .2s ease,border-color .2s ease}
html body footer .social-icon-button:hover{background:#d6e6f0;border-color:#91b3c9}
html body footer .social-icon-button:focus-visible{outline:2px solid #337899;outline-offset:3px}

/* Same inquiry CTA pulse on the home page and CMS-generated blog pages. */
@keyframes tc-header-contact-pulse{
0%,100%{box-shadow:0 6px 12px rgba(7,159,234,.17),0 0 0 0 rgba(7,159,234,.28)}
50%{box-shadow:0 8px 18px rgba(7,159,234,.43),0 0 0 3px rgba(7,159,234,.10)}
}
html body > header .header-actions > a.btn-primary:is([href="#kontakt"],[href="/#kontakt"]){animation:tc-header-contact-pulse 2.4s ease-in-out infinite;cursor:pointer}
html body > header .header-actions > a.btn-primary:is([href="#kontakt"],[href="/#kontakt"]):hover{animation-play-state:paused}
/* Keep the subtle shadow pulse consistent with the home page. */

/* Mobile pyramid: readable flowing copy and touch-friendly focus. */
@media(max-width:700px){
#leistungen #sichtbarkeit-pyramide .pyramid-info{container-type:normal!important;min-height:0!important;height:auto!important;padding-bottom:0!important}
#leistungen #sichtbarkeit-pyramide .pyramid-info p{font-size:17px!important;line-height:1.65!important;height:auto!important;min-height:0!important}
#leistungen #sichtbarkeit-pyramide .pyramid-info-line{display:inline!important;white-space:normal!important;height:auto!important;line-height:inherit!important}
#leistungen #sichtbarkeit-pyramide .pyramid-info strong{font-size:22px!important;line-height:1.3!important}
#leistungen #sichtbarkeit-pyramide .pyramid-hint{margin-top:14px}
}
@media(hover:none) and (pointer:coarse){
#leistungen #sichtbarkeit-pyramide button.pyramid-level{-webkit-tap-highlight-color:transparent}
#leistungen #sichtbarkeit-pyramide button.pyramid-level:focus:not(:focus-visible){outline:none!important}
}

/* Keep the interaction hint with the pyramid, ahead of its explanation. */
#leistungen #sichtbarkeit-pyramide .pyramid-interactive{display:flex;flex-direction:column}
#leistungen #sichtbarkeit-pyramide .pyramid-interactive>.visibility-pyramid{order:0}
#leistungen #sichtbarkeit-pyramide .pyramid-interactive>.pyramid-hint{order:1;text-align:center!important;margin:12px 0 18px!important;width:100%;font-size:15px!important;line-height:1.5}
#leistungen #sichtbarkeit-pyramide .pyramid-interactive>.pyramid-info{order:2;margin-top:0!important}
@media(max-width:700px){
#ablauf .steps.steps-four .step>p{font-size:17px!important;line-height:1.65!important}
#ablauf .steps.steps-four .step>h3{font-size:22px!important;line-height:1.3!important}
}

/* SVG tier taps must not draw the browser's rectangular focus ring. */
#leistungen #sichtbarkeit-pyramide .visibility-pyramid svg,
#leistungen #sichtbarkeit-pyramide .visibility-pyramid svg *{
outline:none!important;-webkit-tap-highlight-color:transparent!important
}
@media(hover:none) and (pointer:coarse){
#leistungen #sichtbarkeit-pyramide .visibility-pyramid button.pyramid-level:focus,
#leistungen #sichtbarkeit-pyramide .visibility-pyramid button.pyramid-level:focus-visible{
outline:none!important;box-shadow:none!important
}
}
