/* Shared public controls. Calculator choices and form states stay distinguishable. */
body.bgc-modern-navigation {
 --bgc-ui-blue:#10466c;
 --bgc-ui-blue-hover:#0b3654;
 --bgc-ui-green:#168338;
 --bgc-ui-green-hover:#126d2e;
 --bgc-ui-red:#b92d21;
 --bgc-ui-red-hover:#98231a;
 --bgc-ui-line:#ccdce7;
 --bgc-ui-soft:#edf7fb;
}
body.bgc-modern-navigation #content :is(
 a[class*="btn"],a[class*="button"],.bego-home-inline-links a,
 button.bego-btn-next,button.bego-cta-btn,.bgc-primary,
 :where(#pv-submit-btn,#hl-submit-btn,#bego-submit-btn)
) {
 background:var(--bgc-ui-blue)!important;
 color:#fff!important;
 border-color:var(--bgc-ui-blue)!important;
 border-radius:9px!important;
 box-shadow:none!important;
 font-size:15px!important;
 font-weight:600;
 line-height:1.4;
 min-height:44px;
 max-width:100%;
 white-space:normal!important;
 overflow-wrap:anywhere;
 text-decoration:none!important;
}
body.bgc-modern-navigation #content :is(.bego-rechner-header,.bego-hl-header) {background:var(--bgc-ui-blue)!important;}
body.bgc-modern-navigation #content :is(.begocon-hero-2026,.bego-home-section,.bego-home-seo-faq) {border-left-color:#e83728;}
body.bgc-modern-navigation #content :is(a[class*="btn"],a[class*="button"],.bego-home-inline-links a) {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 padding:12px 18px;
 text-align:center;
 border:1px solid var(--bgc-ui-blue);
}
body.bgc-modern-navigation #content :is(
 a[class*="btn"],a[class*="button"],.bego-home-inline-links a,
 button.bego-btn-next,button.bego-cta-btn,.bgc-primary,
 :where(#pv-submit-btn,#hl-submit-btn,#bego-submit-btn)
):not(:disabled):hover {background:var(--bgc-ui-blue-hover)!important;border-color:var(--bgc-ui-blue-hover)!important;color:#fff!important;filter:none;}
body.bgc-modern-navigation #content :is(.bego-cta,.bego-cta-wrapper,.bego-cost-cta-wrapper,.bego-faq-praxis,.bego-hllight-cta,.bego-wpcalc-cta,.bego-pvcalc-cta) :is(a[class*="btn"],a[class*="button"]) {border-color:var(--bgc-ui-line)!important;}

/* Secondary links and back/reset actions share a white outlined treatment. */
body.bgc-modern-navigation #content :is(
 a[class*="btn"][class*="secondary"],a[class*="btn"][class*="outline"],
 a[class*="btn"][class*="light"],a[class*="btn"][class*="white"],
 .bego-home-inline-links a,button.bego-cta-outline,
 button.bego-btn-back,button.bego-btn-reset,button.bego-btn-secondary,.bgc-secondary
) {
 background:#fff!important;color:var(--bgc-ui-blue)!important;border:1px solid var(--bgc-ui-line)!important;
 border-radius:9px!important;box-shadow:none!important;min-height:44px;
}
body.bgc-modern-navigation #content :is(
 a[class*="btn"][class*="secondary"],a[class*="btn"][class*="outline"],
 a[class*="btn"][class*="light"],a[class*="btn"][class*="white"],
 .bego-home-inline-links a,button.bego-cta-outline,
 button.bego-btn-back,button.bego-btn-reset,button.bego-btn-secondary,.bgc-secondary
):not(:disabled):hover {background:var(--bgc-ui-soft)!important;color:var(--bgc-ui-blue)!important;border-color:var(--bgc-ui-blue)!important;filter:none;}

/* The same green identifies phone booking throughout the site, including secondary CTAs. */
body.bgc-modern-navigation #content :is(a[class*="btn"],a[class*="button"],.bego-home-inline-links a)[href*="/telefontermin"],
body.bgc-modern-navigation #content .bgc-native[data-kind="booking"] .bgc-primary {
 background:var(--bgc-ui-green)!important;color:#fff!important;border-color:var(--bgc-ui-green)!important;
}
body.bgc-modern-navigation #content :is(a[class*="btn"],a[class*="button"],.bego-home-inline-links a)[href*="/telefontermin"]:hover,
body.bgc-modern-navigation #content .bgc-native[data-kind="booking"] .bgc-primary:not(:disabled):hover {
 background:var(--bgc-ui-green-hover)!important;color:#fff!important;border-color:var(--bgc-ui-green-hover)!important;
}

/* Choice cards and time slots retain their own selected/disabled semantics. */
body.bgc-modern-navigation #content :is(.bego-answer-btn,.bego-btn-ans),
body.bgc-modern-navigation #content .bgc-slots button {
 background:#fff!important;color:var(--bgc-ui-blue)!important;border-color:var(--bgc-ui-line)!important;
 box-shadow:none!important;min-height:44px;
}
body.bgc-modern-navigation #content :is(.bego-answer-btn,.bego-btn-ans):hover,
body.bgc-modern-navigation #content .bgc-slots button:not([aria-pressed="true"]):hover {
 background:var(--bgc-ui-soft)!important;color:var(--bgc-ui-blue)!important;border-color:var(--bgc-ui-blue)!important;
}
body.bgc-modern-navigation #content :is(.bego-answer-sub,.bego-answer-btn:hover .bego-answer-sub) {color:#536878!important;}
body.bgc-modern-navigation #content .bgc-slots button[aria-pressed="true"] {
 background:var(--bgc-ui-green)!important;color:#fff!important;border-color:var(--bgc-ui-green)!important;
}
body.bgc-modern-navigation #content .bgc-native[data-kind="booking"] :is([data-cancel],[data-confirm-cancel]) {
 background:var(--bgc-ui-red)!important;border-color:var(--bgc-ui-red)!important;color:#fff!important;
}
body.bgc-modern-navigation #content .bgc-native[data-kind="booking"] :is([data-cancel],[data-confirm-cancel]):not(:disabled):hover {
 background:var(--bgc-ui-red-hover)!important;border-color:var(--bgc-ui-red-hover)!important;color:#fff!important;
}
body.bgc-modern-navigation #content :is(.bgc-primary,.bgc-secondary,.bego-btn-next):disabled {opacity:.6;cursor:default;}
body.bgc-modern-navigation #content :is(a[class*="btn"],a[class*="button"],button):focus-visible {
 outline:3px solid var(--bgc-ui-blue);outline-offset:3px;
}

/* Complete the brand palette on explanatory panels, FAQ markers and progress bars. */
body.bgc-modern-navigation #content :is(.bego-page-wrap,.bego-service-page,.bego-faq-page,.bego-about-page,.bego-video-page,.bego-termin-wrapper,.bego-anfrage-wrapper,.bego-leistungen-wrapper,.bego-ratgeber-hub-wrapper,.bego-rechner-hub-wrapper,.bego-wpcheck-wrapper) {border-left-color:#e83728;}
body.bgc-modern-navigation #content :is(.bego-anfrage-note,.bego-termin-note,.bego-wpcheck-highlight,.bego-tipp-box,.bego-hint-box,.bego-hllight-note,.bego-pvcalc-note,.bego-wpcalc-note,.bego-hero-note) {background:var(--bgc-ui-soft);border-color:var(--bgc-ui-line);color:var(--bgc-ui-blue);}
body.bgc-modern-navigation #content :is(.bego-faq-hero-card,.bego-faq-sidebar,.bego-faq-cta-box,.bego-faq-sidebar input) {border-color:var(--bgc-ui-line);}
body.bgc-modern-navigation #content .bego-faq-sidebar {border-left-color:#e83728;}
body.bgc-modern-navigation #content .bego-faq-search input {border-color:var(--bgc-ui-line)!important;}
body.bgc-modern-navigation #content .bego-faq-search input:focus {border-color:var(--bgc-ui-blue)!important;box-shadow:0 0 0 3px rgba(16,70,108,.14)!important;}
body.bgc-modern-navigation #content :is(.bego-faq-kicker,.bego-pvcalc-kicker) {background:var(--bgc-ui-soft);color:var(--bgc-ui-blue);border-color:var(--bgc-ui-line);}
body.bgc-modern-navigation #content :is(.bego-faq-hero,.bego-pvcalc-hero) {border-color:var(--bgc-ui-line);box-shadow:0 18px 48px rgba(16,70,108,.10);}
body.bgc-modern-navigation #content .bego-faq-hero::before,
body.bgc-modern-navigation #content .bego-pvcalc-hero::before {background:radial-gradient(circle,rgba(16,70,108,.12),transparent 68%);}
body.bgc-modern-navigation #content .bego-pvcalc-hero h1 span {color:var(--bgc-ui-blue);}
body.bgc-modern-navigation #content .bego-faq-item summary::before,
body.bgc-modern-navigation #content .bego-faq-item summary::after {background:var(--bgc-ui-soft);color:var(--bgc-ui-blue);}
body.bgc-modern-navigation #content .bego-faq-item[open] summary::before,
body.bgc-modern-navigation #content .bego-faq-item[open] summary::after {background:#eff8f0;color:var(--bgc-ui-green);}
body.bgc-modern-navigation #content .bego-faq-item {background:#fff;}
body.bgc-modern-navigation #content .bego-progress-fill {background:var(--bgc-ui-blue);}
body.bgc-modern-navigation.page-id-3527 #content .bego-highlight h2 span {color:#fff;}
body.bgc-modern-navigation #content .bego-warning {background:#fff4f2;border-color:#e8c8c4;color:#70443d;}

/* Existing Astra footer content and destinations remain editable in its builder. */
body.bgc-modern-navigation #colophon {position:relative;background:#fff;color:#536878;border-top:1px solid #dfe7ec;font-size:14px;line-height:1.6;}
body.bgc-modern-navigation #colophon :is(.site-above-footer-wrap,.site-primary-footer-wrap) {background:transparent;border:0;padding:0;}
body.bgc-modern-navigation #colophon .ast-builder-grid-row-container-inner {width:100%;max-width:1240px;margin:auto;padding:0;box-sizing:border-box;}
body.bgc-modern-navigation #colophon .site-above-footer-inner-wrap {
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand instagram facebook";
 align-items:center;gap:20px;padding:16px 24px;min-height:0;width:100%;box-sizing:border-box;
}
body.bgc-modern-navigation #colophon .site-footer-above-section-1 {grid-area:instagram;}
body.bgc-modern-navigation #colophon .site-footer-above-section-2 {grid-area:brand;}
body.bgc-modern-navigation #colophon .site-footer-above-section-3 {grid-area:facebook;}
body.bgc-modern-navigation #colophon .site-footer-section {margin:0;padding:0;min-width:0;justify-content:flex-start;text-align:left;}
body.bgc-modern-navigation #colophon .ast-footer-html-1 .ast-builder-html-element::before {
 content:"";display:block;width:126px;height:42px;margin-bottom:4px;
 background:url("./begocon-logo.png") no-repeat left center / contain;
}
body.bgc-modern-navigation #colophon .ast-footer-html-1 :is(p,span,code) {
 font-family:inherit;font-size:14px!important;font-weight:400;line-height:1.5;color:#536878;
 background:transparent;white-space:normal;overflow-wrap:anywhere;padding:0;margin:0;
}
body.bgc-modern-navigation #colophon .ast-footer-html-1 :is(.ast-header-html,.ast-builder-html-element,p) {text-align:left;}
body.bgc-modern-navigation #colophon :is(.ast-builder-layout-element,.footer-widget-area,.footer-social-inner-wrap) {margin:0;}
body.bgc-modern-navigation #colophon .ast-builder-social-element {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
 padding:10px 14px;margin:0;border:1px solid #dfe7ec;border-radius:9px;
 background:#f8f9fa!important;color:var(--bgc-ui-blue)!important;text-decoration:none;
 font-size:14px;line-height:1.4;
}
body.bgc-modern-navigation #colophon .ast-builder-social-element:hover {background:var(--bgc-ui-soft)!important;color:var(--bgc-ui-blue-hover)!important;border-color:var(--bgc-ui-blue);}
body.bgc-modern-navigation #colophon .ast-builder-social-element :is(svg,.ahfb-svg-iconset) {width:20px!important;height:20px!important;fill:currentColor!important;line-height:1;}
body.bgc-modern-navigation #colophon .social-item-label {padding:0;margin:0;color:inherit;font-size:14px;}
body.bgc-modern-navigation #colophon .site-primary-footer-wrap {background:#f8f9fa;border-top:1px solid #dfe7ec;}
body.bgc-modern-navigation #colophon .site-primary-footer-inner-wrap {display:block;padding:8px 24px;min-height:0;width:100%;box-sizing:border-box;}
body.bgc-modern-navigation #colophon .ast-footer-html-2 p {
 display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 16px;
 margin:0;font-size:0;line-height:0;
}
body.bgc-modern-navigation #colophon .ast-footer-html-2 a {
 display:inline-flex;align-items:center;min-height:44px;max-width:100%;
 color:var(--bgc-ui-blue);font-size:14px;line-height:1.5;text-align:left;overflow-wrap:anywhere;text-decoration:none;
}
body.bgc-modern-navigation #colophon .ast-footer-html-2 a:hover {text-decoration:underline;}
body.bgc-modern-navigation #colophon a:focus-visible {outline:3px solid var(--bgc-ui-blue);outline-offset:3px;}
/* The existing scroll control wraps with the links instead of reserving an extra row. */
body.bgc-modern-navigation #colophon .bgc-footer-utility {display:flex;flex:0 0 auto;align-items:center;position:static;}
body.bgc-modern-navigation #ast-scroll-top {
 position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:44px;height:44px;
 line-height:44px;border-radius:50%;background:var(--bgc-ui-blue);color:#fff;
}
body.bgc-modern-navigation #ast-scroll-top svg {fill:currentColor;}
@media(max-width:600px) {
 body.bgc-modern-navigation #colophon .site-above-footer-inner-wrap {
  grid-template-columns:1fr 1fr;grid-template-areas:"brand brand" "instagram facebook";
  gap:10px 12px;padding:14px 18px;
 }
 body.bgc-modern-navigation #colophon .site-footer-above-section-2 {text-align:center;justify-content:center;}
 body.bgc-modern-navigation #colophon .ast-footer-html-1 :is(.ast-header-html,.ast-builder-html-element,p) {text-align:center;}
 body.bgc-modern-navigation #colophon .ast-footer-html-1 .ast-builder-html-element::before {margin-left:auto;margin-right:auto;}
 body.bgc-modern-navigation #colophon .site-footer-above-section-1 {justify-self:end;}
 body.bgc-modern-navigation #colophon .site-footer-above-section-3 {justify-self:start;}
 body.bgc-modern-navigation #colophon .site-primary-footer-inner-wrap {padding:8px 18px;}
 body.bgc-modern-navigation #colophon .ast-footer-html-2 p {justify-content:center;gap:4px 12px;}
 body.bgc-modern-navigation #colophon .ast-footer-html-2 a {justify-content:center;text-align:center;}
}
