/*
 * Starlab Dental: eigene Ergänzungen zum Nuron-Template.
 * Helix lädt diese Datei automatisch (templates/nuron/css/custom.css). Sie gehört nicht zum
 * Template-Paket und übersteht deshalb Updates.
 */

/* Schriften vom eigenen Server statt von Google Fonts, lateinischer Zeichensatz mit Umlauten */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/media/starlab/fonts/outfit-100-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/media/starlab/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Typografie wie bisher von Helix erzeugt (dort abgeschaltet, weil Helix sonst Google Fonts lädt) */
body { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; text-decoration: none; text-align: left; }
h1 { font-family: 'Outfit', sans-serif; font-size: 68px; font-weight: 600; line-height: 1.1; text-decoration: none; }
h2 { font-family: 'Outfit', sans-serif; font-size: 54px; font-weight: 600; line-height: 1.15; text-decoration: none; }
h3 { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 600; line-height: 1.3; text-decoration: none; }
h4 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 600; line-height: 1.4; text-decoration: none; }
h5 { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 400; line-height: 1.3; text-decoration: none; }
h6 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 400; line-height: 1.3; text-decoration: none; }

@media (min-width: 768px) and (max-width: 991px) {
  body { font-size: 14px; }
  h1 { font-size: 54px; }
  h2 { font-size: 36px; }
  h3 { font-size: 31px; }
  h4 { font-size: 24px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }
}
@media (max-width: 767px) {
  body { font-size: 13px; }
  h1 { font-size: 36px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
  h4 { font-size: 20px; }
  h5 { font-size: 16px; }
  h6 { font-size: 16px; }
}

/*
 * Kundenstimmen: untereinander wie auf der alten Seite. Das Nuron-Karussell läuft senkrecht mit
 * fester Höhe und ist für längere Zitate zu klein, die Texte würden sich überlagern.
 */
.spmedical-advance-carousel .splide__track { height: auto !important; overflow: visible !important; }
.spmedical-advance-carousel .splide__list { display: block !important; height: auto !important; transform: none !important; }
.spmedical-advance-carousel .splide__slide--clone,
.spmedical-advance-carousel .splide__arrows,
.spmedical-advance-carousel .splide__pagination { display: none !important; }

/* Jedes Zitat als ruhige Karte: Foto und Name oben, darunter der Text in Lesegröße */
.spmedical-advance-carousel .splide__slide {
  position: relative;
  width: auto !important;
  height: auto !important;
  margin: 0 0 20px 0 !important;
  padding: 26px 30px 24px !important;
  background: #fff !important;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(25, 30, 30, .07);
}
/* SP Page Builder lässt die Einträge fließen (float), dann umschließt die Karte ihren Inhalt nicht */
.spmedical-advance-carousel .sppb-carousel-extended-item { display: flex; flex-direction: column; float: none !important; height: auto !important; width: 100%; }
.spmedical-advance-carousel .sppb-testimonial-carousel-content-wrap { display: flex; align-items: center; gap: 14px; margin: 0 40px 0 0; }
.spmedical-advance-carousel .sppb-testimonial-carousel-img-wrap { flex: 0 0 52px; width: 52px !important; height: 52px !important; margin: 0 !important; }
.spmedical-advance-carousel .sppb-testimonial-carousel-img-wrap img { width: 52px !important; height: 52px !important; border-radius: 50% !important; object-fit: cover; }
.spmedical-advance-carousel .sppb-testimonial-carousel-name {
  font-family: 'Outfit', sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #191e1e;
}
.spmedical-advance-carousel .sppb-testimonial-carousel-item-content { margin-top: 14px; }
.spmedical-advance-carousel .sppb-testimonial-carousel-client-rating { margin: 0 0 8px; font-size: 13px; }
.spmedical-advance-carousel .sppb-testimonial-carousel-message {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  line-height: 1.75 !important;
  color: #3b4242 !important;
  margin: 0 !important;
}
.spmedical-advance-carousel .sppb-testimonial-carousel-icon {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 26px;
  line-height: 1;
  opacity: .18;
}
@media (max-width: 767px) {
  .spmedical-advance-carousel .splide__slide { padding: 20px 20px 18px !important; }
  .spmedical-advance-carousel .sppb-testimonial-carousel-message { font-size: 14px !important; }
}

/*
 * Beitragsansicht: Nuron schiebt den Titel mit einem negativen Rand 150 px ins Bild. Bei längeren
 * Titeln läuft der Text dann über das Foto. Auf breiten Bildschirmen stehen Titel und Bild deshalb
 * sauber nebeneinander, der Titel etwas kleiner und mit Silbentrennung.
 */
@media (min-width: 992px) {
  .article-details .article-details-top-wraper { gap: 48px; }
  .article-details .article-details-top-wraper .article-header {
    flex: 1 1 44%;
    max-width: none;
    margin: 45px 0 0 0 !important;
  }
  .article-details .article-details-top-wraper .article-full-image { flex: 0 1 52%; margin-bottom: 0; }
  .article-details .article-details-top-wraper .article-full-image img { width: 100%; height: auto; }
}
.article-details .article-details-top-wraper .article-header .article-details-title {
  font-size: clamp(30px, 3.1vw, 44px) !important;
  line-height: 1.2 !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===========================================================================
 * Bedienhilfen (Barrierefreiheit). Das Verhalten steht in js/custom.js.
 * Die Schalter setzen Attribute am <html>-Element, hier steht das Aussehen.
 * =========================================================================== */

/* Sprungmarke: nur sichtbar, wenn sie den Tastaturfokus hat */
.sd-sprung {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  background: #12292a;
  color: #fff;
  text-decoration: none;
  transition: top .18s ease;
}
.sd-sprung:focus { top: 0; color: #fff; outline: 3px solid #0be7df; outline-offset: 2px; }

.sd-hilfeknopf {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #12292a;
  color: #0be7df;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(10, 40, 42, .55);
}
.sd-hilfeknopf svg { width: 26px; height: 26px; }
.sd-hilfeknopf:hover { background: #17393b; }
.sd-hilfeknopf:focus-visible { outline: 3px solid #0be7df; outline-offset: 3px; }

.sd-hilfe {
  position: fixed;
  left: 22px;
  bottom: 86px;
  z-index: 1201;
  width: min(300px, calc(100vw - 32px));
  max-height: min(74vh, 620px);
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: #12292a;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 24px 56px -18px rgba(10, 40, 42, .6);
}
.sd-hilfe[hidden] { display: none; }
.sd-hilfe__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sd-hilfe__titel { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 600; }
.sd-hilfe__zu { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 0 4px; cursor: pointer; }
.sd-hilfe__block { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.sd-hilfe__block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.sd-hilfe__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
}
.sd-hilfe__stufen { display: flex; align-items: center; gap: 10px; }
.sd-hilfe__stufen button {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.sd-hilfe__stufen button:hover { background: rgba(255, 255, 255, .18); }
.sd-hilfe__stufen output { flex: 1; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.sd-hilfe__schalter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.sd-hilfe__schalter:hover { background: rgba(255, 255, 255, .14); }
.sd-hilfe__schalter[disabled] { opacity: .5; cursor: default; }
.sd-hilfe__schalter i {
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  position: relative;
  transition: background .2s ease;
}
.sd-hilfe__schalter i::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.sd-hilfe__schalter[aria-pressed="true"] i { background: #0be7df; }
.sd-hilfe__schalter[aria-pressed="true"] i::after { transform: translateX(14px); background: #12292a; }
.sd-hilfe__reset {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.sd-hilfe__reset:hover { background: rgba(255, 255, 255, .12); }
.sd-hilfe__hinweis { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.sd-hilfe__hinweis a { color: #0be7df; text-decoration: underline; }
.sd-hilfe__meldung { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sd-hilfe button:focus-visible, .sd-hilfe a:focus-visible { outline: 3px solid #0be7df; outline-offset: 2px; }

@media (max-width: 767px) {
  .sd-hilfeknopf { left: 14px; bottom: 14px; width: 48px; height: 48px; }
  .sd-hilfe { left: 12px; right: 12px; bottom: 72px; width: auto; max-height: 62vh; }
}
@media print { .sd-hilfe, .sd-hilfeknopf, .sd-sprung { display: none !important; } }

/* --- Zustände, die die Bedienhilfe setzt ---------------------------------- */

/* Farbfilter werden über Variablen zusammengesetzt, damit sich dunkle Ansicht,
   Blaulichtfilter und Graustufen nicht gegenseitig überschreiben. Der Filter liegt
   auf den großen Abschnitten statt auf <body>, sonst verliert die Kopfzeile ihren Halt. */
html { --sd-invert: ; --sd-warm: ; --sd-grau: ; }
html[data-dunkel="1"] { --sd-invert: invert(1) hue-rotate(180deg); }
html[data-warm="1"] { --sd-warm: sepia(.25) saturate(.95); }
html[data-graustufen="1"] { --sd-grau: grayscale(1); }

html[data-dunkel="1"] #sp-page-title, html[data-warm="1"] #sp-page-title, html[data-graustufen="1"] #sp-page-title,
html[data-dunkel="1"] #sp-main-body, html[data-warm="1"] #sp-main-body, html[data-graustufen="1"] #sp-main-body,
html[data-dunkel="1"] #sp-footer, html[data-warm="1"] #sp-footer, html[data-graustufen="1"] #sp-footer,
html[data-dunkel="1"] .offcanvas-menu, html[data-warm="1"] .offcanvas-menu, html[data-graustufen="1"] .offcanvas-menu,
html[data-dunkel="1"] .offcanvas-overlay, html[data-warm="1"] .offcanvas-overlay, html[data-graustufen="1"] .offcanvas-overlay,
html[data-dunkel="1"] a.sp-scroll-up, html[data-warm="1"] a.sp-scroll-up, html[data-graustufen="1"] a.sp-scroll-up,
html[data-warm="1"] #sp-header, html[data-graustufen="1"] #sp-header {
  filter: var(--sd-invert) var(--sd-warm) var(--sd-grau);
}

/* Fotos und Hintergrundbilder in der dunklen Ansicht zurückdrehen */
html[data-dunkel="1"] img,
html[data-dunkel="1"] video,
html[data-dunkel="1"] iframe,
html[data-dunkel="1"] .sd-bildgrund { filter: invert(1) hue-rotate(180deg); }

/* Die Kopfzeile bleibt ungefiltert, damit sie oben kleben bleibt, und wird direkt dunkel gefärbt */
html[data-dunkel="1"] body { background: #0e1a1a; }
html[data-dunkel="1"] #sp-header,
html[data-dunkel="1"] #sp-header .container-fluid,
html[data-dunkel="1"] #sp-header .sp-module { background-color: #12292a !important; }
html[data-dunkel="1"] #sp-header a,
html[data-dunkel="1"] #sp-header .sp-megamenu-parent > li > a,
html[data-dunkel="1"] #sp-header .sppb-addon-text-block { color: #e6efef !important; }
html[data-dunkel="1"] #sp-header .sppb-btn { color: #12292a !important; }
html[data-dunkel="1"] #sp-header .burger-icon > span { background-color: #e6efef !important; }

/* Starker Kontrast: nur dort dunkler schreiben, wo der Grund hell ist (das Skript markiert das) */
html[data-kontrast="1"] .sd-hellgrund,
html[data-kontrast="1"] .sd-hellgrund .sppb-addon-content,
html[data-kontrast="1"] .sd-hellgrund p,
html[data-kontrast="1"] .sd-hellgrund li { color: #10201f !important; }
html[data-kontrast="1"] .sd-dunkelgrund,
html[data-kontrast="1"] .sd-dunkelgrund p,
html[data-kontrast="1"] .sd-dunkelgrund li { color: #ffffff !important; }
html[data-kontrast="1"] a:not(.sppb-btn):not(.sp-scroll-up):not(.sd-sprung) {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
html[data-kontrast="1"] .sd-hellgrund a:not(.sppb-btn) { color: #0a5f66 !important; }
html[data-kontrast="1"] .sppb-btn { border: 2px solid #10201f !important; }

/* Ruhige Schrift: Symbolschriften bleiben außen vor, sonst verschwinden die Icons */
html[data-lesbar="1"] body,
html[data-lesbar="1"] h1, html[data-lesbar="1"] h2, html[data-lesbar="1"] h3,
html[data-lesbar="1"] h4, html[data-lesbar="1"] h5, html[data-lesbar="1"] h6,
html[data-lesbar="1"] p, html[data-lesbar="1"] li, html[data-lesbar="1"] a,
html[data-lesbar="1"] span:not([class*="fa-"]), html[data-lesbar="1"] div:not([class*="fa-"]),
html[data-lesbar="1"] button, html[data-lesbar="1"] input, html[data-lesbar="1"] textarea,
html[data-lesbar="1"] label, html[data-lesbar="1"] .sppb-addon-title, html[data-lesbar="1"] .sppb-btn {
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  letter-spacing: .01em !important;
}

html[data-abstand="1"] p, html[data-abstand="1"] li,
html[data-abstand="1"] .sppb-addon-content, html[data-abstand="1"] .article-introtext {
  line-height: 2 !important;
  letter-spacing: .03em !important;
  word-spacing: .1em !important;
}
html[data-abstand="1"] p { margin-bottom: 1.1em !important; }

html[data-links="1"] a:not(.sppb-btn):not(.sp-scroll-up):not(.sd-sprung):not(.sd-hilfe a) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  background: rgba(11, 231, 223, .25);
  padding: 0 2px;
  border-radius: 3px;
}

html[data-ruhe="1"] *, html[data-ruhe="1"] *::before, html[data-ruhe="1"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

html[data-ohnebild="1"] img,
html[data-ohnebild="1"] video,
html[data-ohnebild="1"] iframe { visibility: hidden; }
html[data-ohnebild="1"] .sd-bildgrund { background-image: none !important; }

/* Tastaturbedienung: überall ein sichtbarer Fokusrahmen */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #0aa5a0;
  outline-offset: 2px;
}

/* --- Blog: Überschrift der Beitragsliste --------------------------------- */
/* Die Liste bekommt die Seitenüberschrift als H1, die alte Zwischenzeile bleibt leer und geht weg. */
.blog .intro-articles-top-title:empty, .blog .page-header:empty { display: none; }
.blog .intro-articles-top-title,
.blog .page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 40px;
}
@media (min-width: 768px) and (max-width: 991px) {
  .blog .intro-articles-top-title, .blog .page-header h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  .blog .intro-articles-top-title, .blog .page-header h1 { font-size: 34px; }
}

/* Zwischenüberschriften der neuen Seiten behalten die Größe der Vorlage */
.sd-abschnittsueberschrift .sppb-addon-title { font-size: 31px !important; line-height: 1.3 !important; }
.sd-labelueberschrift .sppb-addon-title { font-size: 26px !important; line-height: 1.4 !important; }
@media (max-width: 767px) {
  .sd-abschnittsueberschrift .sppb-addon-title { font-size: 26px !important; }
  .sd-labelueberschrift .sppb-addon-title { font-size: 22px !important; }
}

/* --- Häufige Fragen ------------------------------------------------------- */
.sd-faq .sppb-panel-title { font-size: 19px; line-height: 1.4; }
.sd-faq .sppb-panel-body p:last-child { margin-bottom: 0; }

/* Auf dem Telefon bleibt statt des Hintergrundvideos das Standbild stehen */
@media (max-width: 767px) {
  /* Nur das Hintergrundvideo der Abschnitte verschwindet, dort steht das Standbild als
     Hintergrund. Das Video mit eigenem Vorschaubild bleibt stehen und zeigt sein Standbild. */
  .sppb-section-background-video video[data-sd-video-aus] { display: none; }
  .sppb-section-background-video { background-size: cover; background-position: center; }
  .sppb-addon-video-local-video-wrap video[data-sd-video-aus] { display: block; width: 100%; height: auto; }
}
@media (max-width: 767px) {
  /* feststehende Hintergrundbilder sehen auf Telefonen verrutscht aus */
  .sppb-section, .sppb-section-background-video { background-attachment: scroll !important; }
}

/* --- Startseiten-Diashow ---------------------------------------------- */
/* Die echten Laborfotos sind hell. Ein dunkler Verlauf von links hält die weiße
   Schrift lesbar, rechts bleibt das Foto frei. */
.hero-slider .sp-item { position: relative; }
.hero-slider .sp-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 34, .80) 0%, rgba(8, 32, 34, .64) 36%, rgba(8, 32, 34, .20) 68%, rgba(8, 32, 34, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-slider .sp-item > .sppb-container { position: relative; z-index: 2; }
@media (max-width: 767px) {
  .hero-slider .sp-item::after {
    background: linear-gradient(180deg, rgba(8, 32, 34, .74) 0%, rgba(8, 32, 34, .58) 55%, rgba(8, 32, 34, .40) 100%);
  }
}

/* Bildstrecken auf „Über uns“ und „Für Patienten“ als festes Raster: gleich hohe Kacheln,
   die sich nach der Breite von selbst umbrechen. Kein Karussell, damit auf jedem Gerät
   alle Bilder zu sehen sind und im Quelltext stehen. */
.sd-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.sd-galerie img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 767px) {
  .sd-galerie { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .sd-galerie img { height: 200px; }
}
.sd-bildstrecke [id^="column-wrap-id-"] { max-width: 100% !important; flex-basis: 100% !important; }

/* --- Bildbänder (Abschnitte, die nur aus einem Foto bestehen) -------------
   Auf dem Schreibtisch bleibt das Bild beim Scrollen stehen und nutzt die volle
   Fensterbreite (100% auto). Mit „cover“ würde der Browser auf die Fensterhöhe
   hochrechnen und links und rechts abschneiden – von einem Gruppenbild bliebe
   dann eine Person übrig. Auf dem Telefon läuft der Hintergrund mit, weil iOS
   feste Hintergründe nicht sauber zeichnet. */
.sd-bildband {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2;
  background-color: #0e2a2c;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center 38% !important;
}
@media (min-width: 768px) {
  .sd-bildband {
    aspect-ratio: 2 / 1;
    background-attachment: fixed !important;
    background-size: 100% auto !important;
    background-position: center 35% !important;
  }
}
@media (min-width: 1200px) {
  .sd-bildband { aspect-ratio: 2.4 / 1; max-height: 620px; }
}

/* --- Kopfzeile auf dem Telefon -------------------------------------------
   Helix gibt das Logo mit 85 Pixeln Höhe aus, die Kopfzeile ist aber nur 50 hoch. */
@media (max-width: 991px) {
  #sp-header .logo-image-phone,
  #sp-header img.logo-image-phone,
  #sp-header .logo a img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
  }
  #sp-header .logo, #sp-header #sp-logo { display: flex; align-items: center; }
}
@media (max-width: 767px) {
  .hero-slider .sp-item .sppb-container { padding-top: 10px; }
}

/* --- Abschnitte mit Foto im Hintergrund und Text darauf -------------------
   Die echten Laborfotos sind hell, die Hausfarbe der Schrift ist dunkelgrün.
   Ohne Schleier wäre der Text nicht lesbar. */
.sd-fotoabschnitt { position: relative; }
.sd-fotoabschnitt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 34, .80) 0%, rgba(8, 32, 34, .66) 45%, rgba(8, 32, 34, .52) 100%);
  pointer-events: none;
  z-index: 0;
}
.sd-fotoabschnitt > * { position: relative; z-index: 1; }
.sd-fotoabschnitt,
.sd-fotoabschnitt h1, .sd-fotoabschnitt h2, .sd-fotoabschnitt h3,
.sd-fotoabschnitt h4, .sd-fotoabschnitt h5, .sd-fotoabschnitt h6,
.sd-fotoabschnitt p, .sd-fotoabschnitt li, .sd-fotoabschnitt span,
.sd-fotoabschnitt .sppb-addon-title,
.sd-fotoabschnitt .sppb-addon-content,
.sd-fotoabschnitt .sppb-addon-text-block {
  color: #ffffff !important;
}
.sd-fotoabschnitt .sppb-addon-feature,
.sd-fotoabschnitt .sppb-addon-feature-box {
  background: rgba(8, 32, 34, .55);
  border-radius: 12px;
}
.sd-fotoabschnitt a:not(.sppb-btn) { color: #0be7df !important; }
.sd-fotoabschnitt .sppb-btn { color: #12292a !important; }

/* Seitenüberschriften auf dem Telefon: 42 Pixel sind für lange Zeilen zu groß. */
@media (max-width: 767px) {
  h1.sppb-addon-title { font-size: 32px !important; line-height: 1.2 !important; }
  h2.sppb-addon-title { font-size: 28px !important; line-height: 1.25 !important; }
}
