/* Zusätze zum Abbild Saror Meisterbetrieb: nur was die festgelegten Abweichungen brauchen,
   alles andere kommt unverändert aus den Stylesheets der Altseite. Farben der Seite: Blau #325a99 (Akzent), Gold #c88e41,
   Fußleiste #1c1c1c (#copyright) und #252525 (#footer-outer). */

/* 1) Einwilligungs-Banner für den Tag Manager (Liste 2, sm/zusatz.js baut ihn). Unten fest, unter der Kopfleiste geschichtet
      (#header-outer z-index 9999 trägt das Mobilmenü, es liegt über dem Banner). Auf Weiß: Text #222 15,9:1, Link #325a99
      6,9:1 (unterstrichen), Knöpfe Weiß auf #325a99 6,9:1, beide gleich gestaltet (Ablehnen gleichwertig). */
.sm-einwilligung {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #fff; color: #222; border-top: 3px solid #c88e41; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  font-family: "Open Sans", Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
.sm-einw-innen {
  max-width: 1425px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
}
.sm-einw-text { flex: 1 1 520px; margin: 0; padding: 0; color: #222; }
.sm-einw-text a { color: #325a99; text-decoration: underline; text-underline-offset: 2px; }
.sm-einw-knoepfe { display: flex; gap: 12px; flex: 0 0 auto; }
.sm-einw-knopf {
  min-height: 44px; min-width: 128px; padding: 10px 20px; margin: 0;
  border: 2px solid #325a99; border-radius: 4px; background: #325a99; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s;
}
@media (hover: hover) { .sm-einw-knopf:hover { background: #24457a; border-color: #24457a; } }
.sm-einw-knopf:active { background: #1b3560; border-color: #1b3560; }   /* Druck-Feedback, am Handy gibt es kein Hover */
/* Fokusring dunkelblau: Gold hätte auf Weiß nur 2,8:1 (Fokus braucht 3:1), #24457a hat 9,5:1 */
.sm-einwilligung a:focus-visible, .sm-einw-knopf:focus-visible { outline: 3px solid #24457a; outline-offset: 2px; }
@media (max-width: 690px) {
  .sm-einw-innen { padding: 12px 16px; gap: 8px; }
  .sm-einwilligung { font-size: 13px; }
  .sm-einw-knoepfe { flex: 1 1 100%; }
  .sm-einw-knopf { flex: 1 1 0; min-width: 0; }
}
/* schmale Handys (bis 380 px): eine Zeile weniger, Ziel höchstens 180 px Bannerhöhe bei 360 px */
@media (max-width: 380px) {
  .sm-einwilligung { font-size: 12.25px; line-height: 1.4; }
  .sm-einw-innen { padding: 10px 14px; gap: 6px; }
}
@media (forced-colors: active) { .sm-einwilligung { border-top-color: CanvasText; } .sm-einw-knopf { border-color: ButtonText; } }
@media print { .sm-einwilligung { display: none !important; } }
/* Seite um die Bannerhöhe anheben, solange er offen ist, damit Fuß, Impressum und Datenschutz nie darunter liegen
   (--cookie-h aus der Border-Box per ResizeObserver, Cookie_Banner_Regel.md Punkt 3); der Nach-oben-Knopf weicht aus. */
body.sm-banner-offen { padding-bottom: var(--cookie-h, 0px); }
body.sm-banner-offen #to-top { translate: 0 calc(-1 * var(--cookie-h, 0px)); }

/* 2) Fußknopf „Cookie-Einstellungen“ (Widerruf) unter dem Copyright, sieht aus wie ein Textlink. Auf #1c1c1c: #ccc 10,6:1. */
.sm-fuss-einwilligung { margin: 4px 0 0; }
.fuss-einwilligung {
  display: inline-block; min-height: 24px; padding: 0; margin: 0; border: 0; background: none; color: #ccc;
  font: inherit; text-decoration: none; cursor: pointer; touch-action: manipulation;
}
@media (hover: hover) { .fuss-einwilligung:hover { text-decoration: underline; } }
.fuss-einwilligung:active { text-decoration: underline; text-decoration-thickness: 2px; }
.fuss-einwilligung:focus-visible { outline: 2px solid #c88e41; outline-offset: 2px; }
@media (forced-colors: active) { .fuss-einwilligung { color: LinkText; } }

/* 3) Credit-Fuß nach Hausstandard (Footer_Standard.md), die Altseite hatte keinen: eigene Leiste am Ende des Fußes im Dunkel
      der Copyright-Zeile (#1c1c1c), Gold #c88e41 für Hover, Druck und Fokus. Auf #1c1c1c: Text #cfcfcf 10,8:1, Link Weiß
      17,4:1, Gold 6,0:1; Symbol Weiß auf dem Abzeichen, dunkel auf Gold 6,0: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: #1c1c1c; 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;
}
/* Farben mit #footer-outer davor: Die Regeln des Themes (#footer-outer a, a:hover) schlagen sonst jede Klasse, der Link wäre
   in Ruhe grau und bei Hover und Fokus im Blau der Seite (#325a99 !important, 2,5:1). Darum hier ebenfalls !important. 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. */
#footer-outer .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;
}
#footer-outer .ft-socials a, #footer-outer .ft-socials a:focus { color: #fff !important; }
#footer-outer .ft-credit > span:first-child > a:focus { color: #fff !important; }
.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) {
  #footer-outer .ft-credit > span:first-child > a:hover { color: #c88e41 !important; }
  #footer-outer .ft-socials a:hover { background: #c88e41; color: #1c1c1c !important; }
}
#footer-outer .ft-credit > span:first-child > a:active { color: #c88e41 !important; }
#footer-outer .ft-socials a:active { background: #c88e41; color: #1c1c1c !important; }
.ft-credit a:focus-visible { outline: 2px solid #c88e41; outline-offset: 3px; }
@media (max-width: 720px) { .ft-credit { flex-direction: column; gap: 8px; } }

/* 4b) Kartenbild auf /kontakt/ (Liste 6) statt der Leaflet-Karte, gleicher Rahmen (volle Breite, 350 px hoch). object-fit:none
       hält Maßstab und Mitte wie die Live-Karte, der Standort liegt in der Bildmitte (Karten_und_Geo.md). Punkt im Blau der
       Seite wie Salients Marker „nectar“ (ohne dessen Puls), Quellenangabe Pflicht. */
.sm-karte { position: relative; height: 350px; overflow: hidden; background: #f2efe9; }
.sm-karte img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: none; object-position: 50% 50%; }   /* !important: .row .col img der Altseite setzt height:auto */
.sm-karte-punkt {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: #325a99; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(50, 90, 153, .28), 0 2px 6px rgba(0, 0, 0, .35);
}
.sm-karte-quelle {
  position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 8px; background: rgba(255, 255, 255, .9);
  font-size: 11px; line-height: 18px; color: #333;
}
.sm-karte-quelle a { color: #333; text-decoration: underline; }
@media (forced-colors: active) { .sm-karte-punkt { forced-color-adjust: none; } }

/* 4) Honigtopf sm_hp der Formulare (Liste 5): für Menschen unsichtbar, ohne Tabstopp, ohne left:-9999px (Hausregel). */
.sm-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 5) Links in unseren eigenen Texten (Rechtsseiten, Hinweis am Kontaktformular, 500-Seite) unterstrichen: Das Blau der Seite hebt
   sich vom grauen Text mit 1,2:1 zu wenig ab (WCAG 1.4.1). */
.page-id-3 .main-content p a, .page-id-3 .main-content li a, .page-id-328 .main-content p a, .sm-formhinweis a, #error-404 p a { text-decoration: underline; }

/* 6) Bewertungen auf Google auf /kontakt/: vierte Angabe unter „Anschrift“, „Arbeitszeiten“ und „So erreichen Sie uns“, im
      selben Aufbau (goldenes Symbol, Überschrift, Text). Sterne-Zeile und Hinweis stehen verborgen im HTML; /sm/zusatz.js füllt
      und zeigt sie nur mit gültiger /bewertungen.json der letzten 14 Tage, sonst bleiben Überschrift, Knopf und Link. Der Hinweis
      ist 16 px groß wie der Hinweis am Kontaktformular, nie kleiner als die übrigen Hinweistexte. Die Sterne sind nur Bild
      (Lucide „star“, ISC), die Zahl steht als Text daneben. --f ist die gefüllte Breite: Ein Stern belegt 2 bis 22 von 28
      Einheiten, die Lücke zählt nicht mit, sonst sähe 4,8 aus wie fünf volle Sterne. Googles „G“ nur im Knopf, auf einem weißen
      Feld, damit sein Blau nicht im Blau des Knopfs verschwindet; kein Stern am „G“ oder am Wort „Google“.
      Auf Weiß: Zeile #444 9,7:1, Hinweis #676767 5,7:1, Link #325a99 6,9:1 (unterstrichen), Knopf Weiß auf #325a99 6,9:1,
      Fokusring #24457a 9,5:1. */
/* position und z-index wie bei den Spalten der Reihe (.row_col_wrap_12): sonst liegt Salients Hintergrund-Ebene der Reihe
   (.row-bg-layer, z-index 1) über dem Block, er ist sichtbar, aber Klick und Tipp landen auf der Ebene */
.sm-google { position: relative; z-index: 10; padding-top: 25px; }   /* gestapelt im Takt der drei Angaben darüber (25 px) */
@media (min-width: 1000px) { .sm-google { padding-top: 44px; } }   /* nebeneinander: Abstand unter der höchsten Spalte */
.sm-google [hidden] { display: none !important; }
.sm-google p { margin: 0; padding: 0; }
.sm-google__zeile, .sm-google__zeile strong { color: #444; }
.sm-google__zeile strong { font-weight: 700; }
.sm-google__sterne {
  --sm-stern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
  display: inline-block; width: calc(1.15em * 5 * 28 / 24); height: 1.15em; margin-right: .5em; vertical-align: -.22em;
  background: linear-gradient(90deg, #c38643 var(--f, 100%), #e3dcd2 0);
  -webkit-mask: var(--sm-stern) 0 0 / auto 100% repeat-x; mask: var(--sm-stern) 0 0 / auto 100% repeat-x;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sm-google__hinweis { margin-top: 6px !important; max-width: 46em; }
.sm-google__wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 14px !important; }
.sm-google__zahlen:not([hidden]) + .sm-google__wege { margin-top: 22px !important; }
.sm-google__knopf {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 48px; margin: 0; padding: 8px 20px 8px 8px;
  border: 2px solid #325a99; border-radius: 4px; background: #325a99; color: #fff !important;
  font-family: "Open Sans", Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s;
}
.sm-google__g { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 2px; background: #fff; }
.sm-google__g img { display: block; width: 20px !important; height: 20px !important; max-width: none; margin: 0 !important; }
@media (hover: hover) { .sm-google__knopf:hover { background: #24457a; border-color: #24457a; } }
.sm-google__knopf:active { background: #1b3560; border-color: #1b3560; }   /* Druck-Feedback, am Handy gibt es kein Hover */
.sm-google__knopf:focus-visible { outline: 3px solid #24457a; outline-offset: 3px; }
.sm-google__profil {
  display: inline-block; padding: 2px 0; color: #325a99 !important; font-weight: 600;
  text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px;
}
@media (hover: hover) { .sm-google__profil:hover { color: #24457a !important; text-decoration-thickness: 2px !important; } }
.sm-google__profil:active { color: #1b3560 !important; text-decoration-thickness: 2px !important; }
.sm-google__profil:focus-visible { outline: 3px solid #24457a; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .sm-google__knopf { transition: none; } }
/* Schmale Handys: Die Sterne stehen über der Zeile, sonst bricht sie in kurze Reste um */
@media (max-width: 399px) { .sm-google__sterne { display: block; margin: 0 0 6px; } }
@media (forced-colors: active) {
  .sm-google__sterne { forced-color-adjust: none; background: linear-gradient(90deg, CanvasText var(--f, 100%), GrayText 0); }
  .sm-google__knopf { border-color: ButtonText; }
}
@media print {
  .sm-google__knopf { background: none !important; color: #000 !important; border-color: #000 !important; }
  .sm-google__profil { color: #000 !important; }
}

/* 7) Zustände der Altseite (check-site Punkt 37, 27.11.2026), Farben aus der Palette oben.
      a) Kopfnavigation: Salient nimmt den Fokusring weg (.sf-menu .menu-item a, .sf-menu:not(.buttons) a:focus {outline:0 none}).
         Ring dunkelblau wie am Banner: #24457a auf dem weißen Kopf 9,5:1. Der Knopf „Kontakt“ malt sein Blau als ::before über
         die Zeilenhöhe des Links hinaus, sein Ring sitzt darum am ::before (sonst läge er oben und unten im Blau). */
#header-outer .sf-menu .menu-item > a:focus-visible { outline: 3px solid #24457a; outline-offset: 4px; }
#header-outer .sf-menu .button_solid_color > a:focus-visible { outline: 0; }
#header-outer .sf-menu .button_solid_color > a:focus-visible::before { outline: 3px solid #24457a; outline-offset: 2px; }
/*    b) Fußlinks Startseite, Datenschutzerklärung, Impressum: Das Theme färbt sie bei Hover und Fokus im Blau der Seite
         (#footer-outer a:hover, a:focus {color:#325a99 !important}, 2,5:1 auf #1c1c1c). Fokus behält das Grau #ccc (10,6:1) und
         bekommt den goldenen Ring der übrigen Fußlinks, Hover und Druck Gold #c88e41 (6,0:1) mit Unterstrich wie der Credit-Link.
         Die erste Zeile gilt ohne Hover-Abfrage: Am Handy klebt der Hover nach dem Tipp, der Link bleibt dann grau statt blau. */
#footer-outer #copyright .menu a:hover, #footer-outer #copyright .menu a:focus { color: #ccc !important; }
@media (hover: hover) { #footer-outer #copyright .menu a:hover { color: #c88e41 !important; text-decoration: underline; } }
#footer-outer #copyright .menu a:active { color: #c88e41 !important; text-decoration: underline; }
#footer-outer #copyright .menu a:focus-visible { outline: 2px solid #c88e41; outline-offset: 2px; }
/*    c) Copyright-Zeile: #777 auf #1c1c1c hatte 3,8:1, #999 hat 6,0:1 und bleibt hinter den Links (#ccc) zurück. */
#footer-outer #copyright p { color: #999; }
/*    d) Knöpfe der Altseite (.nectar-button, etwa „Back Home“ auf der 404 und „Zur Startseite“ auf der 500): Das Theme blendet sie
         bei Hover auf 87 % ab, Weiß auf dem aufgehellten Blau hatte 4,3:1. Volle Deckkraft (6,9:1), Schatten und Anheben des
         Themes bleiben das Hover-Zeichen. Ohne Hover-Abfrage, weil die Regel eine Wirkung wegnimmt (klebender Hover am Handy). */
#ajax-content-wrap .nectar-button:hover { opacity: 1; }
/*    e) 500-Seite (Liste 8, nur sie hat einen Absatz unter der Überschrift): Die zweizeilige Überschrift erbte die Zeilenhöhe der
         einzeiligen 404 (36 px bei 54 px Schrift), ihre Zeilen überlagerten einander und den Absatz. */
#error-404 h2:has(+ p) { line-height: 1.15; }

/* 8) Feste Unterleiste: Solange der Einwilligungs-Banner offen ist, hält scroll-padding-bottom Tab- und Sprungziele über ihm
      (WCAG 2.4.11), Bannerhöhe (--cookie-h aus sm/zusatz.js, nur bei offenem Banner gesetzt) plus 16 px Luft. */
html:has(body.sm-banner-offen) { scroll-padding-bottom: calc(var(--cookie-h, 0px) + 16px); }

/* 9) Kacheln auf Start und Über Uns (PV-Anlagen, Klimatechnik, Elektroinstallation, Lüftungsanlagen): Bei vier Kacheln
      nebeneinander liefen die Wörter über ihre Überschrift (bis 125 px). Die Trennstellen setzt der Bau (&shy;, Liste 26); zwischen
      1000 und 1094 px ist auch „installation“ breiter als die Überschrift (17 % der Fensterbreite), dort etwas kleinere Schrift
      (29 px des Themes, bei 1000 px 26,5 px). */
@media (min-width: 1000px) and (max-width: 1300px) { .scaler h2.vc_custom_heading { font-size: min(29px, 2.65vw); } }

/* 10) Senden-Knöpfe Kontakt und Bewerbung (check-site Punkt 37, 27.11.2026): Das Theme blendet sie bei Hover auf 85 % ab
       (style-non-critical.css), Weiß auf dem aufgehellten Blau hatte 4,02:1; volle Deckkraft wie bei 7d, Schatten und Anheben
       bleiben das Hover-Zeichen. Fokus änderte kaum etwas (1,32:1): Ring dunkelblau wie in 7a, mit Abstand auf dem hellen Grund. */
html body[data-form-submit=regular] input[type=submit]:hover { opacity: 1; }
html body input.wpcf7-submit:focus-visible { outline: 3px solid #24457a; outline-offset: 3px; }
/*     Kästchen und Optionsfelder zeichnet Salient selbst (data-fancy-form-rcs), der Fokus am Datenschutz-Kästchen der Bewerbung
       zeigte nichts: Ring um das ganze Label, sobald sein Feld den Tastaturfokus hat. */
html body .wpcf7-list-item label:has(input:focus-visible) { outline: 3px solid #24457a; outline-offset: 3px; }
