/*
 * mainHAUS v2 – Ergänzungen zu style.css
 * Wird nur geladen, wenn die neue Version aktiv ist (siehe inc/switch.php).
 * Schalter (Body-Klassen mh-*) kommen aus Design → mainHAUS (inc/settings.php).
 */

/* --------------------------------------------------------------------------
   1. Schriften: nur WOFF2, font-display: swap
   -------------------------------------------------------------------------- */
@font-face {font-family:'Roboto'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/roboto-v30-latin-300.woff2') format('woff2')}
@font-face {font-family:'Roboto'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/roboto-v30-latin-regular.woff2') format('woff2')}
@font-face {font-family:'Roboto'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/roboto-v30-latin-500.woff2') format('woff2')}
@font-face {font-family:'Roboto Condensed'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/roboto-condensed-v25-latin-300.woff2') format('woff2')}
@font-face {font-family:'Roboto Condensed'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/roboto-condensed-v25-latin-regular.woff2') format('woff2')}
@font-face {font-family:'Yanone Kaffeesatz'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/yanone-kaffeesatz-v24-latin-500.woff2') format('woff2')}

/* --------------------------------------------------------------------------
   2. Fließende Schriftgrößen
   Statt fester Größen + Sprung bei 767 px wachsen die Größen stufenlos mit der
   Fensterbreite (Werte für 375 px → 1280 px). Gleiche Spezifität wie style.css,
   damit die mobilen Festwerte dort überschrieben werden.
   -------------------------------------------------------------------------- */
.responsive #top h1,
.responsive #top .xxlarge,
#top h1, #top .xxlarge {font-size:clamp(34px, calc(27.4px + 1.77vw), 50px)}
.responsive #top h2,
.responsive #top .xlarge,
#top h2, #top .xlarge {font-size:clamp(22px, calc(19.5px + .66vw), 28px)}
.responsive #top h3,
.responsive #top .large,
#top h3, #top .large {font-size:clamp(19px, calc(17.8px + .33vw), 22px)}
.responsive #top .hero .headline,
#top .hero .headline {font-size:clamp(46px, calc(25px + 5.6vw), 100px)}
.responsive #top .hero .headline small,
#top .hero .headline small {font-size:.6em}
#top .widgettitle {font-size:clamp(32px, calc(25px + 2vw), 50px)}
#top .news-slider .slide-entry .slide-content .slide-entry-title,
#top .news-list .slide-entry .slide-content .slide-entry-title {font-size:clamp(18px, calc(16.8px + .33vw), 20px); line-height:1.3}

/* Mindestgröße 12 px für Hinweise und Beschriftungen */
#top .info-notice.small {font-size:12px}
.responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger::before {font-size:12px; color:#5C6464}
.responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger::before {left:-80px}
.responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger.is-active::before {left:-128px}

/* --------------------------------------------------------------------------
   3. Barrierefreiheit: Fokus, Bewegung
   -------------------------------------------------------------------------- */
#top a:focus-visible,
#top button:focus-visible,
#top input:focus-visible,
#top select:focus-visible,
#top textarea:focus-visible,
#top .cta:focus-visible {outline:3px solid #BF4C00; outline-offset:2px; box-shadow:0 0 0 5px #fff}

@media (prefers-reduced-motion: reduce) {
  #top .news-slider .slide-entry .slide-image img,
  #top .cta,
  #top #header,
  #top #footer .fixed-sidebar,
  #top #footer .fixed-sidebar a {transition:none !important}
  #top .news-slider .slide-entry .slide-image:is(:hover,:focus) img {transform:none}
}

/* --------------------------------------------------------------------------
   4. Barrierefreie Kontraste (Schalter "Barrierefreie Kontraste")
   #FF6702 erreicht auf Weiß nur 2,9:1. #BF4C00 erreicht 4,9:1 auf Weiß und
   4,6:1 auf #EFF8F8. Gilt für Text und Buttons mit Text; dekorative Flächen
   (Diagonalen, Linien) behalten #FF6702.
   -------------------------------------------------------------------------- */
#top.mh-contrast {
  --mh-orange:#BF4C00;
  --enfold-alternate-color-primary:#BF4C00;
  --enfold-footer-color-primary:#BF4C00;
  --enfold-socket-color-primary:#BF4C00;
  --enfold-header-color-primary:#BF4C00;
}
/* Globale Linkfarbe aus style.css (#top a). :where() hält die Spezifität gleich,
   damit z. B. .txt-white weiterhin gewinnt. */
#top:where(.mh-contrast) a {color:#BF4C00}
#top.mh-contrast #cmplz-cookiebanner-container .cmplz-cookiebanner {--cmplz_hyperlink_color:#BF4C00}
#top.mh-contrast #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links .cmplz-link {color:#BF4C00}
/* Complianz-Bannertext war auf dem Handy sehr klein */
#top #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message {font-size:14px; line-height:1.5}
#top.mh-contrast .txt-orange,
#top.mh-contrast .widget ul .cat-item,
#top.mh-contrast .av-share-box .av-share-link-description,
#top.mh-contrast .toggle_content.invers-color a,
#top.mh-contrast .av-hotspot-container .av-image-hotspot_inner,
#top.mh-contrast .news-slider .slide-entry .slide-content .slide-entry-title:is(:hover,:focus),
#top.mh-contrast .news-list .slide-entry .slide-content .slide-entry-title:is(:hover,:focus),
#top.mh-contrast .social-channels:is(:hover,:focus),
#top.mh-contrast .social-channels:is(:hover,:focus) i,
#top.mh-contrast #header #header_main .main_menu .av-main-nav .sub-menu li.current_page_item > a {color:#BF4C00}
#top.mh-contrast .bg-orange,
#top.mh-contrast .widget ul .cat-item:is(:hover,:focus),
#top.mh-contrast .event-box > a:is(:hover,:focus) .more-cta,
#top.mh-contrast .infomaterial-box > a:is(:hover,:focus) .download-cta,
#top.mh-contrast .houses-slider .avia-slide-wrap::before,
#top.mh-contrast #footer .fixed-sidebar a:is(:hover,:focus) {background:#BF4C00}
#top.mh-contrast #header #header_main .main_menu .av-main-nav > li.cta-appointment > a {background:#BF4C00}
#top.mh-contrast #header #header_main .main_menu .av-main-nav > li.cta-appointment > a:is(:hover,:focus) {background:#0D7E7E}
#top.mh-contrast .cta.orange,
#top.mh-contrast .mh-embed__load {background:#BF4C00; border-color:#BF4C00}
#top.mh-contrast .cta.orange:is(:hover,:focus),
#top.mh-contrast .mh-embed__load:is(:hover,:focus) {background:#fff; color:#BF4C00}
.html_av-overlay-full #top.mh-contrast #wrap_all #av-burger-menu-ul li .sub-menu li a {color:#BF4C00}
/* Hinweis "Echtheit der Kundenmeinungen": weiße Schrift auf halbtransparentem Weiß (3,4:1) */
#top.mh-contrast .info-notice.small {background:rgba(0,0,0,.2)}

/* Links im Fließtext zusätzlich unterstreichen (Schalter "Links unterstreichen") */
#top.mh-links .avia_textblock :is(p,li) a:not(.cta):not(.avia-button):not(#footer a):not(#socket a),
#top.mh-links .entry-content :is(p,li) a:not(.cta):not(.avia-button),
#top.mh-links :is(.breadcrumb, #breadcrumb) a,
#top.mh-links span:has(> .breadcrumb_last) a {text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px}

/* --------------------------------------------------------------------------
   5. Buttons (CTAs)
   -------------------------------------------------------------------------- */
#top .cta {max-width:100%; text-wrap:balance}
#top.mh-no-cta-icons .cta > i,
#top.mh-no-cta-icons .cta > svg,
#top.mh-no-cta-icons .avia-button .avia_button_icon {display:none}
#top.mh-no-cta-icons #header #header_main .main_menu .av-main-nav > li.cta-appointment > a {padding-right:15px}
#top.mh-no-cta-icons #header #header_main .main_menu .av-main-nav > li.cta-appointment > a::after {content:none}

/* --------------------------------------------------------------------------
   6. Header & Schnellzugriffe beim Scrollen (Klassen setzt js/main.js)
   -------------------------------------------------------------------------- */
#top.mh-autohide-header #header {transition:transform .3s ease}
html.mh-ui-hidden.mh-header-fixed #top.mh-autohide-header #header {transform:translateY(calc(-100% - 70px))}
html.mh-ui-hidden.mh-header-fixed #top.mh-autohide-header #header:focus-within {transform:none}

#top.mh-autohide-sidebar #footer .fixed-sidebar {transition:transform .3s ease; transform:translateX(110%)}
html.mh-scrolling-up #top.mh-autohide-sidebar #footer .fixed-sidebar,
html.mh-at-top #top.mh-autohide-sidebar.mh-sidebar-top #footer .fixed-sidebar,
#top.mh-autohide-sidebar #footer .fixed-sidebar:focus-within {transform:none}

/* --------------------------------------------------------------------------
   7. Slider
   -------------------------------------------------------------------------- */
/* Ratgeber-/News-Boxen: Abstand zwischen Bild und Überschrift */
#top .news-slider .slide-entry .slide-content {padding:16px 18px 18px}
#top .news-slider .slide-entry .slide-content .slide-meta {padding:6px 0 0}

/* Punkte: Enfold-Punkte der Wisch-Leiste und eigene Punkte der Kundenmeinungen */
#top .mh-dots {color:#fff; display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:18px auto 0; padding:0}
#top .mh-dots button {width:12px; height:12px; padding:0; border:0; border-radius:50%; background:currentColor; opacity:.4; cursor:pointer}
#top .mh-dots button[aria-current="true"] {opacity:1}
.responsive #top .news-slider .av-track-dots a {width:12px; height:12px; margin:0 6px; background:#0D7E7E; opacity:.35; border:0}
.responsive #top .news-slider .av-track-dots a.active {opacity:1}

@media only screen and (min-width:768px) {
  #top .news-slider .avia-slideshow-dots,
  #top .mh-dots {display:none}

  /* Ratgeber-/News-Boxen im Slider gleich hoch */
  #top .news-slider .slide-entry-wrap {display:flex; align-items:stretch}
  #top .news-slider .slide-entry {min-height:0; height:auto; float:none}

  /* Kundenmeinungen: Pfeile dauerhaft sichtbar (Enfold zeigt sie sonst nur bei Mouse-over), weiß, mittig */
  #top .avia-testimonial-wrapper .avia-slideshow-arrows a {opacity:.75 !important; top:50%; margin-top:-30px; background:none}
  #top .avia-testimonial-wrapper .avia-slideshow-arrows a:is(:hover,:focus-visible) {opacity:1 !important}
  #top .avia-testimonial-wrapper .avia-slideshow-arrows a :is(svg, svg path) {fill:#fff !important; stroke:none}
}
@media only screen and (max-width:767px) {
  /* Pfeile liegen auf dem Handy außerhalb bzw. erscheinen nur bei Mouse-over: Punkte statt Pfeile */
  #top.mh-slider-dots .news-slider .avia-slideshow-arrows,
  #top.mh-slider-dots .avia-testimonial-wrapper .avia-slideshow-arrows {display:none}
  #top:not(.mh-slider-dots) .mh-dots {display:none}

  /* Partner im Footer: X Logos nebeneinander, ohne Pfeile, Punkte und Scrollbalken */
  .responsive #top #footer .footer-partner .avia-content-slider-inner {--av-track-cols:var(--mh-partner-cols, 2); scrollbar-width:none}
  .responsive #top #footer .footer-partner .avia-content-slider-inner::-webkit-scrollbar {display:none; height:0}
  .responsive #top #footer .footer-partner :is(.avia-slideshow-arrows, .avia-slideshow-dots) {display:none}
}

/* --------------------------------------------------------------------------
   8. Header 990–1199 px (Tablet quer, kleine Laptops)
   -------------------------------------------------------------------------- */
@media only screen and (min-width:990px) and (max-width:1199px) {
  #top #header .logo {width:115px}
  #top #header .main_menu .av-main-nav > li > a {font-size:17px; padding-left:8px; padding-right:8px}
  #top #header .main_menu .av-main-nav > li.dropdown_ul_available > a {padding-right:22px}
  #top #header .main_menu .av-main-nav > li.dropdown_ul_available > a::after {right:8px}
  #top #header #header_main .main_menu .av-main-nav > li.cta-appointment > a {margin:30px 0 30px 8px; padding-left:10px; padding-right:30px; font-size:14px; white-space:nowrap}
  #top #header #header_main .main_menu .av-main-nav > li.cta-appointment > a::after {right:10px; font-size:14px}
}

/* --------------------------------------------------------------------------
   9. Tablet hochkant 768–989 px: Burger-Button und mobiles Menü im mainHAUS-Design
   -------------------------------------------------------------------------- */
@media only screen and (min-width:768px) and (max-width:989px) {
  .responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger {padding:10px; width:50px; height:50px; background:#0D7E7E; border-radius:100%; text-align:center; position:relative}
  .responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger::before {content:'Navigation'; position:absolute; top:50%; transform:translateY(-50%); line-height:1}
  .responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger.is-active::before {content:'Navigation schließen'}
  .responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger .av-hamburger-box {height:30px; width:30px; margin:0 auto 2px}
  .responsive #top .av-hamburger-inner,
  .responsive #top .av-hamburger-inner::before,
  .responsive #top .av-hamburger-inner::after {background-color:#fff; height:4px; border-radius:5px}
  .responsive #top .av-hamburger-inner::before {top:-8px}
  .responsive #top .av-hamburger-inner::after {bottom:-8px}
  .responsive #top #header_main > .container .main_menu .av-main-nav > li > a .av-hamburger.is-active {background:#EFF8F8}
  .responsive #top .av-hamburger.is-active .av-hamburger-inner,
  .responsive #top .av-hamburger.is-active .av-hamburger-inner::before,
  .responsive #top .av-hamburger.is-active .av-hamburger-inner::after {background-color:#0D7E7E}
  .responsive #top .av-hamburger.is-active .av-hamburger-inner::before {top:0}
  .responsive #top .av-hamburger.is-active .av-hamburger-inner::after {bottom:0}

  .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li {font-size:22px; text-align:left; padding:0}
  .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li a {color:#666E6E; position:relative; padding:0 10px; border-bottom:1px solid #EFF8F8; margin:0 auto 5px; width:90%}
  .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li .sub-menu li a {color:#FF6702; padding:5px 10px; font-size:16px; border:0}
  .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li.av-show-submenu > a {background:#EFF8F8; color:#0D7E7E}
  .responsive #top .av-burger-overlay-bg {background:#fff; opacity:1}
  .responsive #top .av-burger-overlay-inner #av-burger-menu-ul {padding-bottom:160px !important}
}

/* Kontaktleiste im mobilen Menü: bis 989 px, kleinere Icons, Platz für 4 Icons */
@media only screen and (max-width:989px) {
  .responsive #top .av-burger-overlay-inner .mobilenav-footer {position:fixed; bottom:0; left:0; z-index:1; width:100%; height:88px; padding:0 15px 8px; display:flex; justify-content:center; align-items:center; gap:16px; background:#0D7E7E}
  .responsive #top .av-burger-overlay-inner .mobilenav-footer::before {content:''; position:absolute; z-index:-1; height:30px; top:-15px; width:120%; left:-10%; transform:rotate(-1deg); background:#0D7E7E}
  .responsive #top .av-burger-overlay-inner .mobilenav-footer a {display:flex; align-items:center; justify-content:center; width:54px; height:54px; margin:0; border-radius:100%; background:rgba(255,255,255,.25); color:#fff}
  .responsive #top .av-burger-overlay-inner .mobilenav-footer a > i {font-size:22px; line-height:1; color:#fff}
  .responsive #top .av-burger-overlay-inner .mobilenav-footer a:is(:hover,:focus) {background:#fff}
  .responsive #top .av-burger-overlay-inner .mobilenav-footer a:is(:hover,:focus) > i {color:#0D7E7E}
}

/* --------------------------------------------------------------------------
   10. Smartphones bis 767 px
   -------------------------------------------------------------------------- */
@media only screen and (max-width:767px) {
  /* Blocksatz erzeugt auf schmalen Spalten große Wortlücken */
  .responsive #top .align-justify,
  .responsive #top .av_textblock_section [style*="justify"] {text-align:left}

  /* Seitliche Schnellzugriffe: nur Icon (Text bleibt für Screenreader im DOM) */
  .responsive #top #footer .fixed-sidebar a {width:44px; padding:10px 0; font-size:0; line-height:0}
  .responsive #top #footer .fixed-sidebar a > i {font-size:20px; line-height:24px}

  /* News-Liste (Aktuelles, Ratgeber): Bild über dem Text statt als Float, damit das
     Innenpolster wirkt und die Überschrift nicht am Bild klebt */
  .responsive #top #wrap_all .news-list .slide-entry .slide-image {float:none}
  .responsive #top #wrap_all .news-list .slide-entry .slide-content {margin:0; padding:18px 20px 20px}

  /* Buttons dürfen umbrechen, ohne über den Rand zu laufen */
  #top .cta {white-space:normal; text-align:center}
}

/* --------------------------------------------------------------------------
   11. Zwei-Klick-Einbettungen (inc/embeds.php), z. B. FLYERALARM-Broschüre
   -------------------------------------------------------------------------- */
#top .mh-embed {position:relative; width:100%; max-width:1040px; margin:0 auto 20px; overflow:hidden; border-radius:5px; background:#EFF8F8; display:flex; align-items:flex-end; justify-content:center}
#top .mh-embed__preview {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top}
#top .mh-embed__overlay {position:relative; z-index:1; width:100%; padding:20px 25px; background:rgba(92,100,100,.95); color:#fff; text-align:center}
#top .mh-embed__title {font-family:'Roboto Condensed',sans-serif; font-size:22px; line-height:1.2; margin:0 0 6px; color:#fff}
#top .mh-embed__text {font-size:14px; line-height:1.5; margin:0 0 12px; color:#fff}
#top .mh-embed__text a {color:#fff; text-decoration:underline}
#top .mh-embed__load {font-family:'Roboto',sans-serif; font-size:18px; padding:8px 16px; border-radius:5px; border:1px solid #FF6702; background:#FF6702; color:#fff; cursor:pointer; transition:all .25s ease-in-out}
#top .mh-embed__load:is(:hover,:focus) {background:#fff; color:#FF6702}
@media only screen and (max-width:767px) {
  #top .mh-embed {min-height:420px !important}
  #top .mh-embed__title {font-size:20px}
}
