/* Hardok & Partner – Ergänzungen zur statischen Seite (Schriften, Termin-Modal, Einwilligung) */

/* ---------- Schriften (lokal, Fontsource 5.3.0, SIL OFL) ---------- */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/montserrat-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/open-sans-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/open-sans-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/open-sans-latin-700-normal.woff2) format('woff2')}

/* ---------- Buttons ---------- */
.hp-btn{display:inline-block;padding:12px 28px;border:0;border-radius:4px;background:#a5944e;color:#000;font:600 1rem/1.4 'Open Sans',sans-serif;cursor:pointer;text-decoration:none}
.hp-btn:hover,.hp-btn:focus-visible{background:#c4b47a;color:#000}
.hp-btn:focus-visible,.hp-modal__close:focus-visible,.hp-consent a:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* ---------- Termin-Modal (ersetzt Elementor-Pro-Popup) ---------- */
.hp-modal[hidden]{display:none}
.hp-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.hp-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.8)}
.hp-modal__box{position:relative;width:min(1000px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:#000;color:#fff;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5);padding:48px 24px 24px}
.hp-modal .hp-modal__title{margin:0 0 16px;color:#fff;font-size:1.6rem;line-height:1.3;text-align:center;text-transform:none}
.hp-modal button.hp-modal__close{position:absolute;top:8px;right:8px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font-size:32px;line-height:44px;text-align:center;cursor:pointer}
.hp-modal button.hp-modal__close:hover,.hp-modal button.hp-modal__close:focus{background:rgba(255,255,255,.12);color:#fff}
body.hp-modal-open{overflow:hidden}
/* Elementor-Popup-Layout im Modal neutralisieren (Pro-CSS blendet .elementor-location-popup sonst aus) */
.hp-modal .elementor-location-popup{display:block!important}
.hp-modal .elementor-628 .elementor-element.elementor-element-35eeffc{--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0;--min-height:0}
/* Theme-Button-Stile (Astra) für eigene Buttons überschreiben */
.hp-consent button.hp-btn,.hp-404 a.hp-btn{padding:12px 28px;border:0;border-radius:4px;background:#a5944e;color:#000}
.hp-consent button.hp-btn:hover,.hp-consent button.hp-btn:focus,.hp-404 a.hp-btn:hover,.hp-404 a.hp-btn:focus{background:#c4b47a;color:#000}

/* ---------- Kontrast (WCAG AA, mind. 4,5:1) ---------- */
/* Grau #5D7280 erreicht auf Schwarz/#111 nur 3,8–4,2:1 -> gleicher Farbton, etwas heller */
html:root{--ast-global-color-3:#6f8494;--e-global-color-astglobalcolor3:#6f8494}
body.elementor-kit-333{--e-global-color-766ef949:#6f8494}
@media (max-width:544px){
  #astra-footer-menu .menu-item>a,#astra-footer-menu .menu-item.current-menu-item>a{color:#6f8494}
}
/* Bewertungskarten sind weiß: dort Originalgrau behalten (5:1 auf Weiß) */
.elementor-testimonial-wrapper{color:#5d7280}
/* Weiß auf Gold #A5944E erreicht nur 3:1 -> schwarze Schrift auf Gold (rund 7:1), Hover helleres Gold */
.ast-header-button-1 .ast-custom-button,.ast-footer-button-1 .ast-custom-button,
.elementor-6 .elementor-element.elementor-element-efac784 .elementor-button,
.elementor-6 .elementor-element.elementor-element-d3c4816 .elementor-button{color:#000}
.ast-header-button-1 .ast-custom-button:hover,.ast-footer-button-1 .ast-custom-button:hover,
.ast-header-button-1 a:focus-visible .ast-custom-button,.ast-footer-button-1 a:focus-visible .ast-custom-button,
.elementor-6 .elementor-element.elementor-element-efac784 .elementor-button:hover,
.elementor-6 .elementor-element.elementor-element-efac784 .elementor-button:focus-visible,
.elementor-6 .elementor-element.elementor-element-d3c4816 .elementor-button:hover,
.elementor-6 .elementor-element.elementor-element-d3c4816 .elementor-button:focus-visible{color:#000;background-color:#c4b47a}

/* ---------- Einwilligung Calendly ---------- */
.hp-consent{max-width:640px;margin:0 auto;text-align:center;color:#fff;font-size:1rem;line-height:1.6}
.hp-consent p{margin:0 0 16px}
.hp-consent a{color:#d8c98a;text-decoration:underline}
.hp-consent__alt{font-size:.9rem}
.hp-consent--loaded{max-width:none}
.hp-consent iframe{display:block;width:100%;min-width:320px;height:700px;border:0;background:#000}

/* ---------- ProvenExpert-Siegel (statisch) ---------- */
.hp-proseal{display:inline-block;line-height:0}
.hp-proseal img{width:120px;height:auto}

/* ---------- Logo-Karussell: gleichmäßiger Lauf ---------- */
.elementor-image-carousel-wrapper.hp-ticker .swiper-wrapper{transition-timing-function:linear!important}

/* ---------- Überschriften-Ebenen Startseite (build.py: HEADING_FIXES) ----------
   Tag wurde für die Gliederung geändert; hp-<alter Tag> stellt die Astra-Typografie des alten Tags wieder her. */
.elementor-widget-heading .elementor-heading-title.hp-h3{font-size:1.66667rem;line-height:1.3em}
.elementor-widget-icon-box .elementor-icon-box-title.hp-h4{font-size:1.33333rem;line-height:1.2em}
.elementor-widget-heading .elementor-heading-title.hp-h5{font-family:Montserrat,sans-serif;font-weight:800;font-size:1.2rem;line-height:1.2em;text-transform:capitalize}
@media (max-width:921px){.elementor-widget-heading .elementor-heading-title.hp-h3{font-size:22px}}
@media (max-width:544px){.elementor-widget-heading .elementor-heading-title.hp-h3{font-size:20px}}

/* ---------- Rechtstexte (Impressum, Datenschutzerklärung) ---------- */
.hp-legal{max-width:820px;line-height:1.7}
.hp-legal h2{margin:2.2em 0 .6em;color:#a5944e;font-size:1.35rem;line-height:1.35;text-transform:none;scroll-margin-top:24px}
.hp-legal strong{color:#fff}
.hp-legal p,.hp-legal ul{margin:0 0 1em}
.hp-legal ul{padding-left:1.3em}
.hp-legal li{margin:.2em 0}
.hp-legal a{text-decoration:underline;text-underline-offset:2px}
.hp-legal__stand{margin-top:2.5em;font-size:.9em;opacity:.8}
/* Platzhalter für noch fehlende Pflichtangaben (Build warnt) */
.hp-offen{padding:0 .3em;border-radius:3px;background:#ffd84d;color:#000;font-weight:600}

/* ---------- 404 ---------- */
.hp-404{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0b1520;color:#fff;font-family:'Open Sans',sans-serif;text-align:center;padding:16px}
.hp-404 h1{font-family:'Montserrat',sans-serif;font-weight:800;font-size:2rem;margin:16px 0}

@media (prefers-reduced-motion:reduce){
  .animated{animation:none!important}
}
