/* woogency Referenzen – Filter, Raster, Detailansicht.
   CD: Open Sans, eckig (kein border-radius), keine Schatten, Farben #1A4360 / #3F57E1 / #720EEC.
   Kategorie-Farben wie die Bereichs-Heros (LearnDash #235af4). */
#top #wrap_all .wgy-ref {
  --ref-dunkel: #1a4360; --ref-blau: #3f57e1; --ref-lila: #720eec; --ref-learn: #235af4;
  --ref-grau: #f2f2f2; --ref-linie: #e1e1e1; --ref-text: #333; --ref-leise: #666;
  --ref-akzent: var(--ref-dunkel); --ref-hover: var(--ref-blau); --ref-oben: 0px;
  font-family: opensans, 'Open Sans', Helvetica, Arial, sans-serif; color: var(--ref-text);
  background: var(--ref-grau); padding: 0 0 80px;
}
#top #wrap_all .wgy-ref *, #top #wrap_all .wgy-ref *::before, #top #wrap_all .wgy-ref *::after { box-sizing: border-box; }
#top #wrap_all .wgy-ref-innen { max-width: 1310px; margin: 0 auto; padding: 0 50px; }
#top #wrap_all .wgy-ref-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#top #wrap_all .wgy-ref[data-kat="woocommerce"] { --ref-akzent: var(--ref-lila); --ref-hover: var(--ref-dunkel); }
#top #wrap_all .wgy-ref[data-kat="wordpress"] { --ref-akzent: var(--ref-blau); --ref-hover: var(--ref-dunkel); }
#top #wrap_all .wgy-ref[data-kat="learndash"] { --ref-akzent: var(--ref-learn); --ref-hover: var(--ref-dunkel); }

/* Leiste: bleibt beim Scrollen unter der Topbar stehen */
#top #wrap_all .wgy-ref-leiste { position: sticky; top: var(--ref-oben); z-index: 20; background: #fff; border-bottom: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref-leiste-innen { display: flex; align-items: center; gap: 24px; min-height: 72px; }
#top #wrap_all .wgy-ref-filterliste { display: flex; gap: 8px; flex: 1 1 auto; }
#top #wrap_all .wgy-ref .wgy-ref-filter {
  appearance: none; margin: 0; border: 1px solid var(--ref-linie); border-radius: 0; background: #fff; color: var(--ref-dunkel);
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; padding: 10px 16px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
#top #wrap_all .wgy-ref .wgy-ref-filter span { font-weight: 400; opacity: .65; margin-left: 4px; }
#top #wrap_all .wgy-ref .wgy-ref-filter:hover { border-color: var(--ref-dunkel); }
#top #wrap_all .wgy-ref .wgy-ref-filter.is-aktiv { background: var(--ref-akzent); border-color: var(--ref-akzent); color: #fff; }
#top #wrap_all .wgy-ref .wgy-ref-filter.is-aktiv span { opacity: .8; }
#top #wrap_all .wgy-ref-suche { position: relative; flex: 0 1 300px; }
#top #wrap_all .wgy-ref-suche::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border: 2px solid var(--ref-leise); border-radius: 50%; }
#top #wrap_all .wgy-ref-suche::after { content: ""; position: absolute; left: 25px; top: 50%; width: 2px; height: 7px; margin-top: 2px;
  background: var(--ref-leise); transform: rotate(-45deg); }
#top #wrap_all .wgy-ref .wgy-ref-suche input {
  width: 100%; margin: 0; height: 42px; padding: 0 12px 0 40px; border: 1px solid #8a8a8a; border-radius: 0; background: #fff;
  font: inherit; font-size: 15px; color: var(--ref-text); box-shadow: none;
}
#top #wrap_all .wgy-ref .wgy-ref-suche input:focus { outline: 2px solid var(--ref-akzent); outline-offset: -1px; border-color: var(--ref-akzent); }
#top #wrap_all .wgy-ref button:focus-visible, #top #wrap_all .wgy-ref a:focus-visible { outline: 3px solid var(--ref-akzent); outline-offset: 2px; }

#top #wrap_all .wgy-ref-anzahl { margin: 40px 0 24px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ref-leise); }
#top #wrap_all .wgy-ref-anzahl strong { color: var(--ref-dunkel); }

/* Raster */
#top #wrap_all .wgy-ref .wgy-ref-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#top #wrap_all .wgy-ref .wgy-ref-raster > li { margin: 0; padding: 0; list-style: none; }
#top #wrap_all .wgy-ref-karte[hidden] { display: none; }
#top #wrap_all .wgy-ref-link { display: flex; flex-direction: column; height: 100%; background: #fff; color: inherit; text-decoration: none;
  border-bottom: 3px solid transparent; transition: border-color .25s; }
#top #wrap_all .wgy-ref-link:hover, #top #wrap_all .wgy-ref-link:focus-visible { border-bottom-color: var(--ref-akzent); text-decoration: none; }
#top #wrap_all .wgy-ref-bild { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #e7e9ee; }
#top #wrap_all .wgy-ref-bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
#top #wrap_all .wgy-ref-link:hover .wgy-ref-bild img { transform: scale(1.04); }
#top #wrap_all .wgy-ref-koerper { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 24px 24px; }
#top #wrap_all .wgy-ref-kats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
#top #wrap_all .wgy-ref-kat { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ref-dunkel); }
#top #wrap_all .wgy-ref-kat.is-woocommerce { color: var(--ref-lila); }
#top #wrap_all .wgy-ref-kat.is-wordpress { color: var(--ref-blau); }
#top #wrap_all .wgy-ref-kat.is-learndash { color: var(--ref-learn); }
#top #wrap_all .wgy-ref .wgy-ref-titel { margin: 0; padding: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ref-dunkel); text-transform: none; letter-spacing: 0; word-break: break-word; }
#top #wrap_all .wgy-ref-claim { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ref-leise); }
#top #wrap_all .wgy-ref-weiter { margin-top: auto; padding-top: 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ref-akzent); }
#top #wrap_all .wgy-ref-weiter::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor;
  border-width: 2px 2px 0 0; transform: rotate(45deg); vertical-align: 1px; transition: transform .2s; }
#top #wrap_all .wgy-ref-link:hover .wgy-ref-weiter::after { transform: translateX(4px) rotate(45deg); }

#top #wrap_all .wgy-ref-leer { margin: 24px 0 0; font-size: 16px; }
#top #wrap_all .wgy-ref .wgy-ref-zuruecksetzen { appearance: none; border: 0; padding: 0; background: none; color: var(--ref-akzent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
#top #wrap_all .wgy-ref-mehr-wrap { text-align: center; margin-top: 48px; }
#top #wrap_all .wgy-ref-mehr-wrap[hidden] { display: none; }
#top #wrap_all .wgy-ref .wgy-ref-mehr {
  appearance: none; margin: 0; border: 1px solid var(--ref-akzent); border-radius: 0; background: transparent; color: var(--ref-akzent);
  font: inherit; font-size: 15px; font-weight: 600; padding: 14px 28px; min-height: 48px; cursor: pointer; transition: background-color .2s, color .2s;
}
#top #wrap_all .wgy-ref .wgy-ref-mehr:hover { background: var(--ref-akzent); color: #fff; }

/* Detailansicht */
#top #wrap_all .wgy-ref-dialog { width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; padding: 0;
  border: 0; border-radius: 0; background: #fff; color: var(--ref-text); overflow: hidden; }
#top #wrap_all .wgy-ref-dialog[open] { display: flex; flex-direction: column; }
#top #wrap_all .wgy-ref-dialog::backdrop { background: rgba(10, 30, 45, .78); }
#top #wrap_all .wgy-ref-d-kopf { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 0 0 24px; height: 56px; background: var(--ref-akzent); color: #fff; }
#top #wrap_all .wgy-ref-d-zahl { flex: 1 1 auto; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
#top #wrap_all .wgy-ref .wgy-ref-d-knopf { appearance: none; position: relative; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #fff; cursor: pointer; transition: background-color .2s; }
#top #wrap_all .wgy-ref .wgy-ref-d-knopf:hover { background: rgba(255, 255, 255, .14); }
#top #wrap_all .wgy-ref .wgy-ref-d-knopf:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
#top #wrap_all .wgy-ref-d-knopf::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid #fff; border-width: 2px 2px 0 0; }
#top #wrap_all .wgy-ref-d-zurueck::before { transform: translate(-30%, -50%) rotate(-135deg); }
#top #wrap_all .wgy-ref-d-vor::before { transform: translate(-70%, -50%) rotate(45deg); }
#top #wrap_all .wgy-ref-d-zu::before, #top #wrap_all .wgy-ref-d-zu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; border: 0; background: #fff; }
#top #wrap_all .wgy-ref-d-zu::before { transform: translate(-50%, -50%) rotate(45deg); }
#top #wrap_all .wgy-ref-d-zu::after { transform: translate(-50%, -50%) rotate(-45deg); }
#top #wrap_all .wgy-ref-d-inhalt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); flex: 1 1 auto; min-height: 0; overflow: auto; }
#top #wrap_all .wgy-ref-d-galerie { padding: 32px; background: var(--ref-grau); }
@media (min-width: 1100px) {
  #top #wrap_all .wgy-ref-d-links { align-self: stretch; }   /* kein min-height: 100 %, das deckelte die Zeilenhöhe (Siegel ragten aus dem Grau) */
}
#top #wrap_all .wgy-ref-d-buehne { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #e7e9ee; }
#top #wrap_all .wgy-ref-d-buehne img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
#top #wrap_all .wgy-ref-d-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
#top #wrap_all .wgy-ref .wgy-ref-d-thumb { appearance: none; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: #e7e9ee; aspect-ratio: 2 / 1;
  overflow: hidden; cursor: pointer; opacity: .55; outline: 3px solid transparent; outline-offset: -3px; transition: opacity .2s; }
#top #wrap_all .wgy-ref .wgy-ref-d-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
#top #wrap_all .wgy-ref .wgy-ref-d-thumb:hover { opacity: .85; }
#top #wrap_all .wgy-ref .wgy-ref-d-thumb.is-aktiv { opacity: 1; outline-color: var(--ref-akzent); }
#top #wrap_all .wgy-ref-d-text { padding: 32px 40px 40px; }
#top #wrap_all .wgy-ref .wgy-ref-d-text h2 { margin: 4px 0 0; padding: 0; font-size: 28px; line-height: 36px; font-weight: 300; text-transform: uppercase; letter-spacing: 1px; color: var(--ref-dunkel); word-break: break-word; }
#top #wrap_all .wgy-ref .wgy-ref-d-claim { margin: 8px 0 24px; font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ref-text); }
#top #wrap_all .wgy-ref .wgy-ref-d-text p { margin: 0 0 16px; font-size: 15px; line-height: 25px; hyphens: auto; -webkit-hyphens: auto; }
#top #wrap_all .wgy-ref-d-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref .wgy-ref-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ref-akzent);
  border-radius: 0; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
#top #wrap_all .wgy-ref .wgy-ref-btn.is-voll { background: var(--ref-akzent); color: #fff; }
#top #wrap_all .wgy-ref .wgy-ref-btn.is-voll:hover { background: var(--ref-hover); border-color: var(--ref-hover); color: #fff; }
#top #wrap_all .wgy-ref .wgy-ref-btn.is-rand { background: transparent; color: var(--ref-akzent); }
#top #wrap_all .wgy-ref .wgy-ref-btn.is-rand:hover { background: var(--ref-akzent); color: #fff; }
#top #wrap_all .wgy-ref-dialog[data-kat="woocommerce"] { --ref-akzent: var(--ref-lila); --ref-hover: var(--ref-dunkel); }
#top #wrap_all .wgy-ref-dialog[data-kat="wordpress"] { --ref-akzent: var(--ref-blau); --ref-hover: var(--ref-dunkel); }
#top #wrap_all .wgy-ref-dialog[data-kat="learndash"] { --ref-akzent: var(--ref-learn); --ref-hover: var(--ref-dunkel); }
#top #wrap_all .wgy-ref-dialog[data-kat="b2b"] { --ref-akzent: var(--ref-dunkel); --ref-hover: var(--ref-blau); }
html.wgy-ref-offen { overflow: hidden; }

/* Tablet */
@media (max-width: 1099px) {
  #top #wrap_all .wgy-ref .wgy-ref-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top #wrap_all .wgy-ref-leiste-innen { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  #top #wrap_all .wgy-ref-suche { flex: 1 1 100%; order: -1; }
  #top #wrap_all .wgy-ref-d-inhalt { grid-template-columns: minmax(0, 1fr); }
  #top #wrap_all .wgy-ref-d-galerie { padding: 24px; }
  #top #wrap_all .wgy-ref-d-text { padding: 24px 24px 32px; }
}
/* Handy */
@media (max-width: 767px) {
  #top #wrap_all .wgy-ref { padding-bottom: 48px; }
  #top #wrap_all .wgy-ref-innen { padding: 0 16px; }
  #top #wrap_all .wgy-ref-leiste-innen { padding: 12px 0 0; gap: 12px; }
  #top #wrap_all .wgy-ref-suche { margin: 0 16px; }
  #top #wrap_all .wgy-ref-filterliste { overflow-x: auto; scrollbar-width: none; padding: 0 16px 12px; scroll-padding: 0 16px; }
  #top #wrap_all .wgy-ref-filterliste::-webkit-scrollbar { display: none; }
  #top #wrap_all .wgy-ref .wgy-ref-filter { padding: 10px 14px; min-height: 44px; }
  #top #wrap_all .wgy-ref .wgy-ref-suche input { height: 48px; font-size: 16px; }
  #top #wrap_all .wgy-ref-anzahl { margin: 24px 0 16px; }
  #top #wrap_all .wgy-ref .wgy-ref-raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #top #wrap_all .wgy-ref-koerper { padding: 16px 20px 20px; }
  #top #wrap_all .wgy-ref .wgy-ref-titel { font-size: 18px; line-height: 26px; }
  #top #wrap_all .wgy-ref-mehr-wrap { margin-top: 32px; }
  #top #wrap_all .wgy-ref .wgy-ref-mehr { width: 100%; }
  #top #wrap_all .wgy-ref-dialog { width: 100vw; height: 100dvh; max-height: none; }
  #top #wrap_all .wgy-ref-d-galerie { padding: 16px; }
  #top #wrap_all .wgy-ref-d-thumbs { gap: 8px; margin-top: 8px; }
  #top #wrap_all .wgy-ref-d-text { padding: 20px 20px 32px; }
  #top #wrap_all .wgy-ref .wgy-ref-d-text h2 { font-size: 22px; line-height: 30px; }
  #top #wrap_all .wgy-ref .wgy-ref-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #top #wrap_all .wgy-ref *, #top #wrap_all .wgy-ref *::before, #top #wrap_all .wgy-ref *::after { transition: none !important; }
}

/* ===================== Anfrage-Bausteine ===================== */
#top #wrap_all .wgy-ref .wgy-ref-btn.is-weiss { background: #fff; border-color: #fff; color: var(--ref-akzent); }
#top #wrap_all .wgy-ref .wgy-ref-btn.is-weiss:hover { background: transparent; color: #fff; }
#top #wrap_all .wgy-ref-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* (3) Knopf in der Leiste */
#top #wrap_all .wgy-ref .wgy-ref-leiste-cta { flex: 0 0 auto; min-height: 42px; padding: 10px 20px; font-size: 14px; }

/* (4) Kopfzeile über dem Raster: Anzahl links, Leistungsseite rechts */
#top #wrap_all .wgy-ref-kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 40px 0 24px; }
#top #wrap_all .wgy-ref-kopfzeile .wgy-ref-anzahl { margin: 0; }
#top #wrap_all .wgy-ref-leistung { margin: 0; font-size: 14px; line-height: 20px; color: var(--ref-leise); }
#top #wrap_all .wgy-ref-leistung[hidden] { display: none; }
#top #wrap_all .wgy-ref-leistung a { font-weight: 600; color: var(--ref-akzent); text-decoration: none; }
#top #wrap_all .wgy-ref-leistung a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor;
  border-width: 2px 2px 0 0; transform: rotate(45deg); vertical-align: 1px; }
#top #wrap_all .wgy-ref-leistung a:hover { text-decoration: underline; }

/* (2) Anfrage-Kachel im Raster */
#top #wrap_all .wgy-ref .wgy-ref-raster > li.wgy-ref-kachel { display: flex; flex-direction: column; padding: 32px; background: var(--ref-akzent); color: #fff; }
#top #wrap_all .wgy-ref-kachel .wgy-ref-personen { display: flex; gap: 8px; margin-bottom: 20px; }
#top #wrap_all .wgy-ref-kachel .wgy-ref-personen figure { margin: 0; }
#top #wrap_all .wgy-ref-kachel .wgy-ref-personen img { display: block; width: 64px; height: 64px; object-fit: cover; object-position: top center; }
#top #wrap_all .wgy-ref .wgy-ref-kachel-satz { margin: 0 0 24px; font-size: 20px; line-height: 30px; font-weight: 300; color: #fff; }
#top #wrap_all .wgy-ref-kachel-fuss { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
#top #wrap_all .wgy-ref .wgy-ref-kachel-tel { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
#top #wrap_all .wgy-ref .wgy-ref-kachel-tel:hover { text-decoration: underline; }

/* (5) Leerer Treffer */
#top #wrap_all .wgy-ref-leer { margin: 24px 0 0; padding: 32px; background: #fff; border-left: 3px solid var(--ref-akzent); }
#top #wrap_all .wgy-ref-leer[hidden] { display: none; }
#top #wrap_all .wgy-ref .wgy-ref-leer p { margin: 0 0 16px; font-size: 16px; line-height: 25px; }
#top #wrap_all .wgy-ref .wgy-ref-leer .wgy-ref-leer-titel { margin-bottom: 4px; font-weight: 700; color: var(--ref-dunkel); }
#top #wrap_all .wgy-ref .wgy-ref-leer .wgy-ref-zuruecksetzen { padding: 12px 24px; border: 1px solid var(--ref-akzent); text-decoration: none; }

/* (1) + (6) Detailansicht: Anfrage unter der Galerie, Vertrauen darunter */
#top #wrap_all .wgy-ref-d-links { background: var(--ref-grau); }
#top #wrap_all .wgy-ref-d-anfrage { padding: 0 32px 32px; }
#top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen { display: flex; gap: 24px; padding-top: 24px; border-top: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen figure { display: flex; align-items: center; gap: 12px; margin: 0; }
#top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen img { width: 56px; height: 56px; object-fit: cover; object-position: top center; }
#top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen figcaption { font-size: 13px; line-height: 18px; color: var(--ref-leise); }
#top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen strong { display: block; color: var(--ref-dunkel); font-size: 14px; }
#top #wrap_all .wgy-ref .wgy-ref-d-anfrage-satz { margin: 16px 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ref-dunkel); }
#top #wrap_all .wgy-ref .wgy-ref-d-tel { margin: 12px 0 0; font-size: 14px; color: var(--ref-leise); }
#top #wrap_all .wgy-ref .wgy-ref-d-tel a { color: var(--ref-dunkel); font-weight: 600; text-decoration: none; }
/* Vertrauen: Google-Badge über die ganze Breite, darunter die Siegel als gleich große Kacheln (4 bzw. 2 Spalten) */
#top #wrap_all .wgy-ref-vertrauen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref-siegelreihe { display: contents; }
#top #wrap_all .wgy-ref-vertrauen .wgy-ref-google, #top #wrap_all .wgy-ref-vertrauen .wgy-ref-google-badge { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center;
  min-height: 88px; padding: 12px; background: #fff; border: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref-google { gap: 10px; }
#top #wrap_all .wgy-ref-google-g { display: grid; place-items: center; width: 28px; height: 28px; font-weight: 700; font-size: 18px; color: #4285f4; }
#top #wrap_all .wgy-ref-google-wert { display: block; font-size: 15px; line-height: 18px; font-weight: 700; color: #333; }
#top #wrap_all .wgy-ref-sterne { color: #f8b400; letter-spacing: 1px; font-size: 13px; }
#top #wrap_all .wgy-ref-google-text { display: block; font-size: 11px; line-height: 15px; color: var(--ref-leise); }

#top #wrap_all .wgy-ref-siegel { display: block; box-sizing: border-box; width: 100%; height: 88px; max-width: none; padding: 14px 16px; object-fit: contain;
  background: #fff; border: 1px solid var(--ref-linie); }
#top #wrap_all .wgy-ref-siegel.is-lila { background: var(--ref-lila); border-color: var(--ref-lila); }
#top #wrap_all .wgy-ref .wgy-ref-d-stimme { margin: 0 0 24px; padding: 16px 20px; background: var(--ref-grau); border-left: 3px solid var(--ref-akzent); }
#top #wrap_all .wgy-ref .wgy-ref-d-stimme blockquote { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 24px; font-style: italic; color: var(--ref-text); }
#top #wrap_all .wgy-ref .wgy-ref-d-stimme figcaption { margin-top: 8px; font-size: 13px; color: var(--ref-leise); }
#top #wrap_all .wgy-ref .wgy-ref-d-projekt { margin-top: 24px; }
#top #wrap_all .wgy-ref .wgy-ref-d-projekt a { font-size: 14px; font-weight: 600; color: var(--ref-akzent); }

/* (7) Einmaliger Hinweis */
#top #wrap_all .wgy-ref-hinweis { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 380px; max-width: calc(100vw - 32px); padding: 24px;
  background: var(--ref-dunkel); color: #fff; transform: translateY(24px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
#top #wrap_all .wgy-ref-hinweis.is-da { transform: none; opacity: 1; }
#top #wrap_all .wgy-ref-hinweis[hidden] { display: none; }
#top #wrap_all .wgy-ref .wgy-ref-hinweis p { margin: 0 32px 16px 0; font-size: 15px; line-height: 23px; color: #fff; }
#top #wrap_all .wgy-ref .wgy-ref-hinweis p strong { display: block; font-size: 17px; margin-bottom: 4px; }
#top #wrap_all .wgy-ref .wgy-ref-hinweis .wgy-ref-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
#top #wrap_all .wgy-ref .wgy-ref-hinweis .wgy-ref-btn.is-voll { background: #fff; border-color: #fff; color: var(--ref-dunkel); }
#top #wrap_all .wgy-ref .wgy-ref-hinweis .wgy-ref-btn.is-rand { border-color: #fff; color: #fff; }
#top #wrap_all .wgy-ref .wgy-ref-hinweis .wgy-ref-btn.is-rand:hover { background: rgba(255, 255, 255, .14); }
#top #wrap_all .wgy-ref .wgy-ref-hinweis-zu { appearance: none; position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0;
  background: transparent; cursor: pointer; }
#top #wrap_all .wgy-ref-hinweis-zu::before, #top #wrap_all .wgy-ref-hinweis-zu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: #fff; }
#top #wrap_all .wgy-ref-hinweis-zu::before { transform: translate(-50%, -50%) rotate(45deg); }
#top #wrap_all .wgy-ref-hinweis-zu::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* (3) Handy-Leiste unten */
#top #wrap_all .wgy-ref-mobilleiste { display: none; }

@media (max-width: 1099px) {
  #top #wrap_all .wgy-ref-d-links { display: contents; }
  #top #wrap_all .wgy-ref-d-galerie { order: 1; }
  #top #wrap_all .wgy-ref-d-text { order: 2; }
  #top #wrap_all .wgy-ref-d-anfrage { order: 3; padding: 0 24px 32px; background: var(--ref-grau); }
  #top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen { border-top: 0; }
}
@media (max-width: 767px) {
  #top #wrap_all .wgy-ref .wgy-ref-leiste-cta { display: none; }
  #top #wrap_all .wgy-ref-kopfzeile { margin: 24px 0 16px; flex-direction: column; align-items: flex-start; }
  #top #wrap_all .wgy-ref .wgy-ref-raster > li.wgy-ref-kachel { padding: 24px 20px; }
  #top #wrap_all .wgy-ref .wgy-ref-kachel-satz { font-size: 18px; line-height: 27px; }
  #top #wrap_all .wgy-ref-kachel .wgy-ref-btn { width: 100%; }
  #top #wrap_all .wgy-ref-leer { padding: 24px 20px; }
  #top #wrap_all .wgy-ref-d-anfrage { padding: 0 20px 32px; }
  #top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen { gap: 16px; }
  #top #wrap_all .wgy-ref-d-anfrage .wgy-ref-personen figure { flex: 1 1 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  #top #wrap_all .wgy-ref-vertrauen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top #wrap_all .wgy-ref-siegel { height: 80px; padding: 12px 14px; }
  #top #wrap_all .wgy-ref-hinweis { left: 16px; right: 16px; bottom: 76px; width: auto; max-width: none; padding: 20px; }
  #top #wrap_all .wgy-ref-hinweis .wgy-ref-btn { flex: 1 1 0; }
  #top #wrap_all .wgy-ref-mobilleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; gap: 8px; padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ref-linie);
    transform: translateY(100%); transition: transform .3s ease; }
  #top #wrap_all .wgy-ref-mobilleiste.is-da { transform: none; }
  html.wgy-ref-offen .wgy-ref-mobilleiste { transform: translateY(100%); }
  #top #wrap_all .wgy-ref .wgy-ref-mobilleiste .wgy-ref-btn { width: auto; min-height: 48px; }
  #top #wrap_all .wgy-ref .wgy-ref-mobilleiste .is-voll { flex: 1 1 auto; }
  #top #wrap_all .wgy-ref .wgy-ref-mobilleiste .wgy-ref-tel { flex: 0 0 auto; padding: 12px 18px; }
}

/* ===== Kompakt (Unterseiten): Hintergrund kommt von der Enfold-Sektion, Anfrage-Kachel als volle Zeile ===== */
#top #wrap_all .wgy-ref.is-kompakt { background: transparent; padding: 0; }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-innen { max-width: none; padding: 0; }
/* Sektionen wechseln Weiß/Grau: Karten mit Linie, damit sie auch auf Weiß stehen */
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-link { border: 1px solid var(--ref-linie); border-bottom: 3px solid var(--ref-linie); }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-link:hover, #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-link:focus-visible { border-bottom-color: var(--ref-akzent); }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-raster > li.wgy-ref-kachel { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px 32px; padding: 32px; }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel .wgy-ref-personen { margin: 0; flex: 0 0 auto; }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel-satz { margin: 0; flex: 1 1 auto; }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel-fuss { margin: 0; flex: 0 0 auto; }
#top #wrap_all .wgy-ref.is-kompakt .wgy-ref-mehr { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 1099px) {
  #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-raster > li.wgy-ref-kachel { flex-wrap: wrap; }
  #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel-satz { flex-basis: calc(100% - 200px); }
}
@media (max-width: 767px) {
  #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-raster > li.wgy-ref-kachel { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 0; }
  #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel .wgy-ref-personen { margin-bottom: 20px; }
  #top #wrap_all .wgy-ref.is-kompakt .wgy-ref-kachel-satz { margin-bottom: 24px; }
}


/* ===================== Nur WordPress (Enfold 4.8.2) ===================== */
/* Alte Referenz-Elemente der Seite („Entwurf“): bleiben im Editor, werden nicht angezeigt */
#top .wgy-entwurf { display: none !important; }

/* #wrap_all/body haben overflow: hidden – damit haftet position: sticky nicht. clip schneidet weiter seitlich ab. */
/* Enfold mobil: „.responsive #top #wrap_all“, Borlabs setzt solange das Cookie-Fenster offen ist overflow inline am body */
html body#top.wgy-ref-seite, html.responsive body#top.wgy-ref-seite #wrap_all { overflow: visible !important; overflow-x: clip !important; }

/* Enfold-Sektion um den Shortcode: randlos, ohne Innenabstände */
#top .wgy-ref-sektion .container, .responsive #top #wrap_all .wgy-ref-sektion .container { max-width: none !important; width: 100% !important; padding: 0 !important; }
#top .wgy-ref-sektion .template-page, #top .wgy-ref-sektion .content { padding: 0 !important; }
#top .wgy-ref-sektion .avia_codeblock_section, #top .wgy-ref-sektion .avia_codeblock { margin: 0; padding: 0; }
#top .wgy-ref-sektion + .container_wrap { border-top: 0; }
#top #wrap_all .wgy-ref-vertrauen-quelle[hidden] { display: none !important; }

/* Echtes Google-Badge (BRB 6555) in der Detailansicht */
#top #wrap_all .wgy-ref .wgy-ref-google-badge .rplg { margin: 0 !important; }
#top #wrap_all .wgy-ref .wgy-ref-google-badge .rplg-badge-cnt { margin: 0 !important; padding: 0 !important; }
#top #wrap_all .wgy-ref .wgy-ref-google-badge .rplg-badge2 { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
