/* Zusätze zum 1:1-Abbild der früheren WordPress-Seite. Nur was die festgelegten Abweichungen brauchen,
   alles andere kommt unverändert aus den Original-Stylesheets unter /wp-content/ und /wp-includes/. */

/* 1) Hinweis zur Speicherung (Info-Hinweis, Knopf „Nicht mehr anzeigen“). Farben des früheren Hinweises: Weiß,
      Text #2b2b2b. Knopf im Höllmer-Blau, eine Stufe dunkler als #0783c6 (Weiß darauf 4,1:1), damit 14 px fett
      5,9:1 erreichen. Sichtbar über transform + visibility, Höhe per ResizeObserver in --cookie-h. */
html { scroll-padding-bottom: var(--cookie-h, 0px); }
body.has-cookie { padding-bottom: calc(var(--cookie-extra, 24px) + var(--cookie-h, 0px)); }
#cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000001;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem;
  margin: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: #fff; color: #2b2b2b; box-shadow: 0 -5px 13px rgba(0, 0, 0, .2);
  font-family: "Open Sans", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.45; text-align: left;
  transform: translateY(110%); visibility: hidden;
}
#cookie.is-visible { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  #cookie { transition: transform .35s ease, visibility 0s linear .35s; }
  #cookie.is-visible { transition: transform .35s ease, visibility 0s; }
}
#cookie p { margin: 0; padding: 0; flex: 1 1 200px; max-width: 46rem; color: inherit; font-size: inherit; line-height: inherit; }
#cookie a { color: #2b2b2b; text-decoration: underline; }
#cookie button {
  font: inherit; font-weight: 700; min-height: 44px; margin: 0; padding: .45rem 1.1rem;
  border: 0; border-radius: 3px; background: #0569a0; color: #fff; cursor: pointer;
}
#cookie button:active { background: #04527c; }   /* Druck-Feedback dunkler statt blasser, Kontrast steigt */
#cookie :focus-visible { outline: 3px solid #0569a0; outline-offset: 2px; }
/* Die untere Leiste auf dem Handy (Anrufen, E-Mail, WhatsApp; Divi-Sticky mit bottom:0 inline) weicht dem Hinweis aus,
   solange er steht. Im Querformat bleibt dafür zu wenig Höhe, dort ist sie so lange ausgeblendet. */
body.has-cookie .et_pb_sticky--bottom { bottom: var(--cookie-h, 0px) !important; }
@media (max-height: 420px) { body.has-cookie .et_pb_sticky--bottom { display: none !important; } }

/* Fußknopf „Hinweis zur Speicherung“ (Widerruf): eigenes Modul unter „Datenschutzerklärung“, sieht aus wie die Links
   darüber (Roboto 15 px, #2ea3f2 auf #0f1115 = 6,9:1). Abstand und Ausrichtung wie zwischen „Impressum“ und
   „Datenschutzerklärung“, gemessen an der Altseite: ab 981 px 25 px und linksbündig, bis 980 px 30 px und mittig.
   Das Skript blendet es ein. */
.hs-fuss-hinweis[hidden] { display: none !important; }
.hs-fuss-hinweis { margin: 25px 0 0; }
@media (max-width: 980px) { .hs-fuss-hinweis { margin-top: 30px; } .hs-fuss-hinweis p { text-align: center; } }
.hs-fuss-hinweis p { margin: 0; padding: 0; }
.fuss-speicher {
  font: 400 15px/23.8px Roboto, Helvetica, Arial, Lucida, sans-serif; color: #2ea3f2;
  background: none; border: 0; margin: 0; padding: 0; min-height: 24px; cursor: pointer; text-align: inherit;
}
@media (hover: hover) { .fuss-speicher:hover { text-decoration: underline; } }
.fuss-speicher:active { text-decoration: underline; text-decoration-thickness: 2px; }
.fuss-speicher:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (forced-colors: active) { .fuss-speicher { color: LinkText; } }

/* 2) 500-Seite (neu, im Look der 404): Links im Text in dunklerem Höllmer-Blau und unterstrichen, sonst Divi-Standardblau
      #2ea3f2 mit 2,8:1 auf Weiß. */
.hs-fehlerseite .entry p a { color: #0569a0; text-decoration: underline; }
/* 2b) Impressum (page-id-987550657) und Datenschutz (page-id-987550659) tragen die neuen Texte mit deutlich mehr Links im
       Fließtext: unterstrichen, damit sie nicht nur an der Farbe erkennbar sind (axe link-in-text-block). Farbe bleibt. */
.page-id-987550657 .et_pb_text_2 .et_pb_text_inner a, .page-id-987550659 .et_pb_text_2 .et_pb_text_inner a { text-decoration: underline; }

/* 3) Credit-Fuß nach Hausstandard (Footer_Standard.md) statt „Designed by MB-COMPUTERS | Powered by WordPress“: dunkle
      Leiste der früheren Seite (#171717), Link-Blau des Fußes (#2ea3f2) für Hover, Druck und Fokus. Auf #171717: Text
      #cfcfcf 11,5:1, Link Weiß 18,1:1, Blau 6,6:1; Symbol Weiß auf dem Abzeichen 14:1, dunkel auf Blau 6,6:1. */
.ft-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin: 0; padding: 20px clamp(20px, 5vw, 40px); background: #171717; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: "Open Sans", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 24px; color: #cfcfcf;
}
/* Textlink: immer unterstrichen (nur über die Farbe hebt er sich nicht 3:1 vom Text ab), inline-block für 24 px Zielhöhe.
   :first-child, weil auch span.ft-socials ein Kind ist: „> span > a“ träfe die Abzeichen mit. */
.ft-credit > span:first-child > a { display: inline-block; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ft-socials { display: inline-flex; gap: 16px; align-items: center; }   /* 16px: darunter überlappen die 44er-Trefferflächen */
.ft-socials a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s;
}
.ft-socials a::before { content: ""; position: absolute; inset: -8px; }   /* Optik 28×28, Trefferfläche 44×44 */
.ft-socials svg { width: 14px; height: 14px; fill: currentColor; }
@media (hover: hover) {
  .ft-credit > span:first-child > a:hover { color: #2ea3f2; }
  .ft-socials a:hover { background: #2ea3f2; color: #171717; }
}
.ft-credit > span:first-child > a:active { color: #2ea3f2; }   /* Druck-Feedback, am Handy gibt es kein Hover */
.ft-socials a:active { background: #2ea3f2; color: #171717; }
.ft-credit a:focus-visible { outline: 2px solid #2ea3f2; outline-offset: 3px; }
@media (max-width: 720px) { .ft-credit { flex-direction: column; gap: 8px; } }

/* 3b) Tastatur-Fokus (13.11.2026, Zustands-Check 37): Divi schaltet den Fokusrahmen global ab (:focus{outline:0}),
       an Kopfzeile, Social-Icons, Links und Formularfeldern war er kaum oder gar nicht zu sehen. Doppelring wie im
       Hausstandard: Weiß innen, Höllmer-Blau außen, so steht auf jedem Grund ein Ring mit mindestens 3:1 (Weiß auf
       dunklen Flächen, #0569a0 auf hellen 5,9:1). Nur bei Tastaturbedienung; wer Maus oder Touch nutzt, sieht die
       Altseite. Der durchsichtige outline trägt den Ring im Kontrastmodus, dort fällt box-shadow weg. Hinweis, Credit und
       Fußknopf haben eigene Ringe (oben) und bleiben draußen; das :not mit der ID hebt die Regel zugleich über Divis Regeln. */
:where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):not(#cookie *, .ft-credit *, .fuss-speicher):focus-visible {
  outline: 2px solid transparent; outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0569a0;
}
/* Datenschutz-Haken im Divi-Kontaktformular: Divi blendet das echte Kästchen aus (display:none), per Tastatur ließ sich
   das Formular so nicht absenden, und Screenreader fanden den Haken nicht. Das Kästchen liegt jetzt unsichtbar über
   Divis gezeichnetem (label i), Tab und Leertaste bedienen es, Divis Häkchen folgt über :checked. Ring wie oben. */
html .et_pb_contact .et_pb_contact_field_checkbox { position: relative; }
html .et_pb_contact .et_pb_contact_field input[type=checkbox] {
  display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0;
}
html .et_pb_contact .et_pb_contact_field input[type=checkbox]:focus-visible + label i { outline: 2px solid transparent; outline-offset: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0569a0; }

/* 3c) Logo-Band „Unsere Kunden“ (13.11.2026): Die Logos laufen am Rand der Logozeile weich aus, statt in
       Bewegung mitten im weißen Band an einer harten Kante abgeschnitten zu werden. Der Verlauf ist 8 % breit, höchstens so breit
       wie die Lücke vor dem äußeren Logo minus 6 px, damit in Ruhe jedes ganz sichtbare Logo voll deckend bleibt. Divi zeigt ab
       981 px drei Logos (15vw), bis 980 px zwei mit halben Nachbarn (die laufen jetzt weich aus), bis 430 px eins (40vw), das
       aktive 1,08-fach. Das HFS-Logo bekommt seine Maße im Bauskript (Liste 13). */
.et_pb_group_carousel_1 { --hs-rand: max(12px, min(8%, calc(16.667% - 7.5vw - 6px))); }
@media only screen and (max-width: 980px) { .et_pb_group_carousel_1 { --hs-rand: 8%; } }
@media only screen and (max-width: 430px) { .et_pb_group_carousel_1 { --hs-rand: min(8%, calc(50% - 21.6vw - 6px)); } }
html .et_pb_group_carousel_1 .et_pb_group_carousel_container {
  padding: 16px 0; margin: -16px 0;   /* die Maske wirkt nur im Rahmen: Luft für das vergrößerte aktive Logo, ohne Versatz */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--hs-rand), #000 calc(100% - var(--hs-rand)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--hs-rand), #000 calc(100% - var(--hs-rand)), transparent);
}
/* Divi beschneidet die Slides neben dem Fenster per clip-path an ihrem eigenen Rahmen; das trifft das noch vergrößerte Logo
   beim Austritt oben und unten. Außerhalb des Fensters schneidet ohnehin der Container. */
html .et_pb_group_carousel_1.et_pb_group_carousel .et_pb_group_carousel_slide_bleed_clip_prev,
html .et_pb_group_carousel_1.et_pb_group_carousel .et_pb_group_carousel_slide_bleed_clip_next { clip-path: none; }
/* Ab rund 2290 px wären die Logos (15vw) breiter als ihr Platz (Slide 380 px, Gruppe 370 px innen), die äußeren stießen in Ruhe
   an den Rand. Sie wachsen deshalb nur so weit, dass links und rechts Verlauf plus 6 px frei bleiben. Darunter greift das nie. */
html .et_pb_group_carousel_1 .et_pb_image { max-width: calc(100% - 26px); }

/* 3d) Formular-Feinschliff (16.11.2026, Abweichung 14): Feldschrift an Handy und Tablet 16 px statt 14 px (Divi) und
       13,3 px (CF7, Schrift des Browsers), sonst zoomt iOS Safari beim Antippen in die Seite (Hausregel iOS-Auto-Zoom). Am
       Rechner mit Maus bleibt sie wie alt. Haken, Optionen, Dateiwahl und Absendeknopf zoomen nicht und bleiben. */
@media screen and (max-width: 980px), screen and (pointer: coarse) {
  html .et_pb_contact .et_pb_contact_field :is(input, textarea, select):not([type=checkbox]),
  html .wpcf7 form :is(input, textarea, select):not([type=checkbox], [type=radio], [type=submit], [type=file]) { font-size: 16px; }
}
/* Ansage des Divi-Kontaktformulars (zusatz.js, Fehlerweg): nur für Screenreader */
.hs-ansage { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 3e) Hinweis zur Herkunft der Bewertungen unter der Überschrift des Bewertungsbands: Schrift, Größe und Grau wie die
       Bewertungstexte darunter. Die Schrift ausdrücklich setzen, ein neuer Absatz im Überschrift-Modul erbte sonst die
       Grundschrift der Seite. */
html .et_pb_heading_container p.hs-bewertungshinweis {
  max-width: 46em; margin: 12px auto 0; padding: 0;
  font-family: Roboto, Helvetica, Arial, Lucida, sans-serif; font-size: 15px; line-height: 1.6; font-weight: 400;
  color: #666; text-align: center;
}

/* 4) Bewegung reduzieren: Einblend- und Übergangsanimationen der Seite enden sofort, nur wenn der Besucher das eingestellt hat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  #cookie, #cookie * { transition: none !important; }
}

/* Druck: Hinweis und Fußknopf nicht mitdrucken */
@media print {
  #cookie, .hs-fuss-hinweis, .fuss-speicher { display: none !important; }
  body.has-cookie { padding-bottom: 0 !important; }
}
