/*
 * R4-Gestaltungsschicht (Rolle A, 01.10.2026).
 *
 * Neue Seitenmodule unter dem unveraenderten Einstieg: Leistungsansichten mit Arbeits-
 * und Materialbildern, Materialband, Erfahrungsband, Prozesskreise, Projektbeleg,
 * Fugenfarbe als Illustration, Bilddetails mit Markierungen, Projektkarten mit Filter,
 * Ablaufkapitel. Markenwerte und Schriften bleiben die des R3-Stands (live.css:
 * --yl-brand, --yl-ink, --yl-body, --yl-smoke, --yl-sand, Manrope, Roboto).
 *
 * Grenzen: nur Seiteninhalte. Keine Regeln fuer Kopf, Fuss, Navigation, Mobilmenue,
 * Einstieg (.yl-hero) oder Formularfelder. Bewegung und Zustandslogik gehoeren Rolle B
 * (r4-interaktionen.js/.css); hier stehen nur Ruhe- und Zustandsdarstellung der in
 * R4/A/SCHNITTSTELLEN.md vereinbarten Klassen. Laden nach r3-formular.css.
 */

/* ------------------------------------------------------------ Werte */

body.yk {
  /* Abschnittsabstand knapper als R3 (Codex-Sichtpruefung 1: keine grossen Leerflaechen
     zwischen Prozess, Arbeit, TikTok und Rezensionen). */
  --yr4-luft: clamp(56px, 6vw, 96px);
  --yr4-luft-sm: clamp(40px, 4.5vw, 72px);
  --yr4-bildradius: 2px;
  --yr4-linie: rgba(20, 20, 34, 0.12);
  --yr4-ring: 5px;
  --yr4-ziffer: 44px;
  --yr4-kreis: 260px;
}

@media (min-width: 900px) {
  body.yk {
    --yr4-ziffer: 52px;
    --yr4-kreis: 300px;
  }
}

@media (min-width: 1200px) {
  body.yk {
    --yr4-kreis: 320px;
  }
}

/* Fugenlinie (Doppelstrich wie in der Vorzeile) als kleines Ordnungszeichen. */
body.yk .yr4-fakt__titel .elementor-heading-title::before,
body.yk .yr4-leistung__wann .elementor-heading-title::before {
  content: '';
  display: block;
  width: 30px;
  height: 9px;
  margin-bottom: 12px;
  background:
    linear-gradient(var(--yl-brand), var(--yl-brand)) 0 0 / 30px 2px no-repeat,
    linear-gradient(var(--yl-brand), var(--yl-brand)) 0 100% / 20px 2px no-repeat;
}

/* Hinweis und Bildunterschrift fuer illustrative Motive: klein, sachlich, ausserhalb des Bildes. */
body.yk .yr4-illu-hinweis .elementor-heading-title,
body.yk [class*='yr4-'] .wp-caption-text,
body.yk .yr4-faq__img .wp-caption-text {
  margin: 10px 0 0;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
}

body.yk [class*='yr4-'] .wp-caption,
body.yk .yr4-kopf .wp-caption {
  max-width: 100%;
  margin: 0;
}

/* ------------------------------------------------------------ Startseite: Leistungen */

/* Die Flaeche ueberlappt den Einstieg um denselben Wert wie bisher die Leistungsleiste
   (--yl-hero-ueberlappung, mobil 0). Weiss ist nur die Innenflaeche; seitlich bleibt der
   Einstieg in der Ueberlappung sichtbar. */
body.yk .yl-sec.yr4-leistungen {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--yl-hero-ueberlappung));
  padding: 0 var(--yl-gutter) var(--yr4-luft);
  background: transparent;
}

body.yk .yr4-leistungen > .e-con-inner {
  position: relative;
  padding-top: clamp(32px, 4vw, 64px);
  background: var(--yl-white);
}

@media (min-width: 1024px) {
  /* Innenflaeche ragt seitlich ueber das Raster hinaus, der Inhalt bleibt buendig
     mit allen anderen Abschnitten. */
  body.yk .yr4-leistungen > .e-con-inner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(-48px, calc(50% - 50vw));
    right: max(-48px, calc(50% - 50vw));
    z-index: -1;
    background: var(--yl-white);
  }
}

body.yk .yr4-leistungen__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 820px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

body.yk .yr4-leistungen__titel .elementor-heading-title {
  margin: 0;
}

body.yk .yr4-leistungen__intro {
  margin-top: 0;
  max-width: 62ch;
}

body.yk .yr4-leistungen__alle .elementor-heading-title a {
  min-height: 32px;
  color: var(--yl-brand);
}

/* Kernleistungen: zwei grosse Bilder, bewusst ungleich breit. */
body.yk .yr4-leistungen__kern {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

@media (min-width: 900px) {
  body.yk .yr4-leistungen__kern {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
}

/* Weitere Leistungen: kleiner, vier Spalten am Desktop, mobil als Liste mit Vorschaubild. */
body.yk .yr4-leistungen__weitere {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: clamp(32px, 3vw, 40px);
  border-top: 1px solid var(--yr4-linie);
}

@media (min-width: 640px) {
  body.yk .yr4-leistungen__weitere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
}

@media (min-width: 1100px) {
  body.yk .yr4-leistungen__weitere { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ganze Leistung klickbar ueber den Titelverweis; Zwischenebenen ohne eigene Lage. */
body.yk .yr4-leistung {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.yk .yr4-leistung > .e-con,
body.yk .yr4-leistung .elementor-widget,
body.yk .yr4-leistung .yr4-leistung__inhalt {
  position: static;
}

body.yk .yr4-leistung__bild {
  overflow: hidden;
  background: var(--yl-smoke);
}

body.yk .yr4-leistung__bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--yr4-bildradius);
}

body.yk .yr4-leistung--gross .yr4-leistung__bild img {
  aspect-ratio: auto;
  height: clamp(240px, 31vw, 460px);
}

/* Bildausschnitte nach Bildzuordnung: Hand und Werkzeug, Giebelrisse, Strahl, Duese. */
body.yk .yr4-leistung--klinker .yr4-leistung__bild img { object-position: 60% 58%; }
body.yk .yr4-leistung--sanierung .yr4-leistung__bild img { object-position: 62% 30%; }
body.yk .yr4-leistung--reinigung .yr4-leistung__bild img { object-position: 45% 50%; }
body.yk .yr4-leistung--schutz .yr4-leistung__bild img { object-position: 50% 50%; }
body.yk .yr4-leistung--strahlen .yr4-leistung__bild img { object-position: 65% 50%; }
body.yk .yr4-leistung--anschluss .yr4-leistung__bild img { object-position: 22% 50%; }

body.yk .yr4-leistung__inhalt {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}

body.yk .yr4-leistung__titel .elementor-heading-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-leistung--gross .yr4-leistung__titel .elementor-heading-title {
  font-size: clamp(24px, 1vw + 16px, 30px);
  line-height: 1.2;
}

body.yk .yr4-leistung__titel .elementor-heading-title a {
  color: var(--yl-ink);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

body.yk .yr4-leistung__titel .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-leistung:hover .yr4-leistung__titel .elementor-heading-title a {
    color: var(--yl-brand);
    text-decoration-line: underline;
  }
}

body.yk .yr4-leistung__titel .elementor-heading-title a:focus-visible {
  outline: none !important;
}

body.yk .yr4-leistung:has(a:focus-visible) {
  outline: 3px solid var(--yl-brand);
  outline-offset: 6px;
}

body.yk .yr4-leistung__wann .elementor-heading-title {
  margin: 14px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

body.yk .yr4-leistung__wann .elementor-heading-title::before {
  display: inline-block;
  width: 30px;
  margin: 0 12px 0 0;
  vertical-align: middle;
}

body.yk .yr4-leistung__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
}

body.yk .yr4-leistung--gross .yr4-leistung__text {
  max-width: 54ch;
  font-size: 16px;
}

/* Mobil: weitere Leistungen als Zeile mit kleinem Vorschaubild links. */
@media (max-width: 639px) {
  body.yk .yr4-leistung--klein {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  body.yk .yr4-leistung--klein .yr4-leistung__bild img {
    aspect-ratio: 1;
  }
  body.yk .yr4-leistung--klein .yr4-leistung__inhalt {
    padding-top: 0;
  }
  body.yk .yr4-leistung--klein .yr4-leistung__titel .elementor-heading-title {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------ Startseite: Materialband */

body.yk .yl-sec.yr4-materialband {
  padding: 0 0 var(--yr4-luft);
  background: var(--yl-white);
}

body.yk .yr4-materialband__bild {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--yl-grey);
}

body.yk .yr4-materialband__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 40% 50%;
}

@media (min-width: 768px) {
  body.yk .yr4-materialband__img img {
    aspect-ratio: auto;
    height: clamp(380px, 44vw, 640px);
  }
}

body.yk .yr4-materialband__text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--yl-container);
  margin-inline: auto;
  padding: 40px var(--yl-gutter) 0;
  background: var(--yl-white);
}

@media (min-width: 1024px) {
  /* Textflaeche ragt aus dem Bild nach unten, links buendig mit dem Raster. */
  body.yk .yr4-materialband__text {
    width: min(880px, calc(100% - 2 * var(--yl-gutter)));
    max-width: none;
    margin: -168px 0 0 max(var(--yl-gutter), calc((100% - var(--yl-container)) / 2));
    padding: 56px 64px 0 0;
  }
  body.yk .yr4-materialband__text::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -64px;
    z-index: -1;
    background: var(--yl-white);
  }
}

body.yk .yr4-materialband__text .yl-title .elementor-heading-title {
  max-width: 16em;
}

body.yk .yr4-materialband__text > .yl-text {
  max-width: 60ch;
}

body.yk .yr4-fakten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  body.yk .yr4-fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

body.yk .yr4-fakt__titel .elementor-heading-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-fakt__text {
  font-size: 15px;
  line-height: 1.65;
}

body.yk .yr4-materialband__fuss {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

body.yk .yr4-materialband__fuss .yr4-illu-hinweis .elementor-heading-title {
  margin: 0;
}

/* ------------------------------------------------------------ Startseite: Erfahrung */

body.yk .yl-sec.yr4-erfahrung {
  padding: 0 0 var(--yr4-luft);
  background: var(--yl-white);
}

body.yk .yr4-erfahrung__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  width: 100%;
  padding: 64px var(--yl-gutter) 72px;
  background-color: var(--yl-brand);
  background-image: var(--yl-bricks);
  background-size: 160px 64px;
  color: var(--yl-on-dark);
}

@media (min-width: 1024px) {
  body.yk .yr4-erfahrung__band {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: 'seit zahlen';
    column-gap: clamp(40px, 5vw, 96px);
    row-gap: 18px;
    padding: 72px max(var(--yl-gutter), calc((100% - var(--yl-container)) / 2)) 168px;
  }
  body.yk .yr4-erfahrung__seit { grid-area: seit; }
  body.yk .yr4-zahlen { grid-area: zahlen; }
}

body.yk .yr4-seit .elementor-heading-title {
  margin: 0;
  color: var(--yl-sand);
  font-family: var(--yl-font-title);
  font-size: clamp(40px, 3vw + 20px, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.yk .yr4-erfahrung__titel .elementor-heading-title {
  margin: 16px 0 0;
  color: var(--yl-white);
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 14em;
}

body.yk .yr4-zahlen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 600px) {
  body.yk .yr4-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.yk .yr4-zahl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 600px) {
  body.yk .yr4-zahl {
    padding: 4px 0 4px clamp(20px, 2.4vw, 36px);
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

body.yk .yr4-zahl__wert .elementor-heading-title {
  margin: 0;
  color: var(--yl-white);
  font-family: var(--yl-font-title);
  font-size: clamp(44px, 3.4vw + 22px, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

body.yk .yr4-zahl__label .elementor-heading-title {
  margin: 0;
  color: var(--yl-on-dark);
  font-family: var(--yl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

body.yk .yr4-erfahrung__inhalt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  width: 100%;
  max-width: var(--yl-container);
  margin: 0 auto;
  padding: 0 var(--yl-gutter);
}

@media (min-width: 1024px) {
  body.yk .yr4-erfahrung__inhalt {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 5vw, 88px);
    align-items: start;
    margin-top: -112px;
    padding: 0;
    width: calc(100% - 2 * var(--yl-gutter));
  }
  /* Nur das Bild ragt ins Band; der Text beginnt unter dem Band. */
  body.yk .yr4-erfahrung__body { padding-top: calc(112px + 40px); }
}

body.yk .yr4-erfahrung__media {
  position: relative;
}

@media (max-width: 1023px) {
  body.yk .yr4-erfahrung__media { margin-top: -36px; }
}

body.yk .yr4-erfahrung__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 55%;
}

body.yk .yr4-erfahrung__body {
  padding-bottom: 8px;
}

body.yk .yr4-regeln {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
}

/* ------------------------------------------------------------ Startseite: Prozesskreise */

body.yk .yr4-prozessabschnitt .yl-head {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.yk .yl-steps__row.yr4-prozess {
  gap: 64px;
}

@media (min-width: 900px) {
  body.yk .yl-steps__row.yr4-prozess {
    gap: clamp(24px, 3vw, 48px);
  }
  /* Verbindungslinie auf Hoehe der Kreismitte. */
  body.yk .yl-steps__row.yr4-prozess::before {
    top: calc(var(--yr4-kreis) / 2 - 1px);
    opacity: 1;
    background: var(--yl-ink);
    height: 2px;
  }
}

/* Alte Ziffer aus dem CSS-Zaehler (R3) gilt nicht fuer die neuen Kreise. Nur ausgeblendet,
   nicht geleert: live.js (R3) erkennt am Zaehlerinhalt eine eigene Nummer und setzt dann
   keine zweite Phasenmarke unter den Kreis. */
body.yk .yl-steps__row > .yl-step.yl-step--r4::before {
  display: none;
}

body.yk .yr4-orbit {
  --yr4-orbit-groesse: var(--yr4-kreis);
  position: relative;
  width: var(--yr4-orbit-groesse);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
}

body.yk .yr4-orbit > .yl-step__img {
  width: 100% !important;
  height: 100%;
  margin: 0;
  padding: 14px;
  border: var(--yr4-ring) solid var(--yl-ink);
  border-radius: 50%;
  background: var(--yl-white);
}

@media (min-width: 900px) {
  body.yk .yr4-orbit > .yl-step__img { padding: 18px; }
}

body.yk .yr4-orbit > .yl-step__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

body.yk .yl-step__img--kelle img { object-position: 10% 50%; }

/* Traeger und Ziffer in Ruhelage (ohne Stil von B): deckt den Kreis ab, Ziffer bei 9 Uhr auf
   dem Ring. Rolle B (r4-interaktionen.css) gestaltet Traeger und Ziffer vollstaendig und bewegt
   sie; deshalb hier niedrige Spezifitaet (:where) und keine !important-Angaben zu Groesse oder
   Lage, damit B immer gewinnt. Transform gehoert B. */
:where(body.yk) .yr4-orbit__badge {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

:where(body.yk) .yr4-orbit__badge .elementor-heading-title {
  position: static;
  margin: 0;
  line-height: 1;
}

:where(body.yk) .yr4-orbit__number {
  position: absolute;
  left: calc(var(--yr4-ring) / 2 - var(--yr4-ziffer) / 2);
  top: calc(50% - var(--yr4-ziffer) / 2);
  display: grid;
  place-items: center;
  width: var(--yr4-ziffer);
  height: var(--yr4-ziffer);
  border-radius: 50%;
  background: var(--yl-brand);
  box-shadow: 0 0 0 6px var(--yl-white);
  color: var(--yl-white);
  font: 700 16px/1 var(--yl-font-title);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

body.yk .yr4-prozess .yl-step__title .elementor-heading-title {
  margin-top: 32px;
  font-size: 24px;
}

body.yk .yr4-prozessabschnitt .yl-actions {
  justify-content: center;
  margin-top: clamp(40px, 4vw, 56px);
}

/* ------------------------------------------------------------ Startseite: Projektbeleg */

body.yk .yl-sec.yr4-beleg {
  padding-block: var(--yr4-luft);
  background: var(--yl-smoke);
}

body.yk .yr4-beleg__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1024px) {
  body.yk .yr4-beleg__row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: center;
  }
}

body.yk .yr4-beleg__fakten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 560px) {
  body.yk .yr4-beleg__fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

body.yk .yr4-beleg__bilder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
}

/* Versatz wie ein Laeuferverband: das zweite Bild sitzt tiefer. */
@media (min-width: 768px) {
  body.yk .yr4-beleg__bild--nachher { margin-top: 64px; }
}

body.yk .yr4-beleg__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 62%;
}

body.yk .yr4-beleg__label .elementor-heading-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-beleg__label .elementor-heading-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--yl-brand);
}

/* ------------------------------------------------------------ TikTok-Buehne volle Breite */

body.yk .yl-einblicke__buehne.yr4-buehne {
  --yr2-tiktok-max: var(--yl-container);
  max-width: var(--yl-container);
}

body.yk .yl-sec.yr4-einblicke {
  padding-block: var(--yr4-luft);
}

/* ------------------------------------------------------------ Startseite: Fragen */

body.yk .yr4-faq__media {
  padding: 0;
}

body.yk .yr4-faq__media::before {
  content: none;
}

@media (min-width: 1024px) {
  body.yk .yr4-faq__media {
    position: sticky;
    top: calc(var(--yl-header-h) + 32px);
  }
}

body.yk .yr4-faq__img img,
body.yk .yl-faq__img.yr4-faq__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 38% 50%;
}

/* ------------------------------------------------------------ Seitenkopf der Unterseiten */

/* Ruhige Flaeche ohne Rautenmuster, Bild ohne Versatzrahmen, kompakt (kein grosser Einstieg
   fuer dieselben Informationen). Gilt fuer Seitenkoepfe mit Klasse yr4-kopf. */
body.yk .yl-pagehead.yr4-kopf {
  padding-block: clamp(40px, 5vw, 80px);
  background: var(--yl-smoke);
}

body.yk .yr4-kopf .yl-pagehead__media {
  padding: 0;
}

body.yk .yr4-kopf .yl-pagehead__media::after {
  content: none;
}

body.yk .yr4-kopf .yl-pagehead__img img {
  aspect-ratio: 16 / 10;
  border-radius: var(--yr4-bildradius);
  box-shadow: none;
}

@media (min-width: 1024px) {
  body.yk .yr4-kopf .yl-row { align-items: center; }
  body.yk .yr4-kopf .yl-row > .yl-pagehead__media { flex: 1 1 0; }
  body.yk .yr4-kopf .yl-pagehead__img img { aspect-ratio: 5 / 4; max-height: 520px; }
}

body.yk .yr4-kopf .yl-head .yl-text {
  max-width: 52ch;
  font-size: 17px;
}

/* ------------------------------------------------------------ Fugenfarbe als Illustration */

body.yk .yl-sec.yr4-fugenfarbe {
  padding-block: var(--yr4-luft);
  background: var(--yl-smoke);
}

body.yk .yr4-material {
  /* Farbschicht je Wahl (multiply ueber den Fugen des Musterbilds). Hellgrau ist das
     unveraenderte Bild. Swatches zeigen den gemessenen Ergebniston. */
  --yr4-fuge: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  body.yk .yr4-material {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
}

body.yk .yr4-material:has(.yr4-material-choice--sandton:target),
body.yk .yr4-material[data-yr4-material-wahl='sandton'] { --yr4-fuge: #e8d3a8; }
body.yk .yr4-material:has(.yr4-material-choice--zementgrau:target),
body.yk .yr4-material[data-yr4-material-wahl='zementgrau'] { --yr4-fuge: #a29d97; }
body.yk .yr4-material:has(.yr4-material-choice--anthrazit:target),
body.yk .yr4-material[data-yr4-material-wahl='anthrazit'] { --yr4-fuge: #55504b; }
body.yk .yr4-material[data-yr4-material-wahl='hellgrau'] { --yr4-fuge: transparent; }

body.yk .yr4-material__buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  background: #7b4a3a;
}

body.yk .yr4-material__bild,
body.yk .yr4-material__bild img {
  display: block;
  width: 100%;
  height: 100%;
}

body.yk .yr4-material__bild img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Die Maske ist aus demselben Bild gewonnen (Fugen hell, Steine transparent) und liegt
   deckungsgleich, weil Bild und Buehne quadratisch sind. */
body.yk .yr4-material__buehne::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--yr4-fuge);
  mix-blend-mode: multiply;
  -webkit-mask: url('../img/r4/fugenmaske-r4.webp') 0 0 / 100% 100% no-repeat;
  mask: url('../img/r4/fugenmaske-r4.webp') 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  transition: background-color 320ms var(--yl-ease);
}

body.yk .yr4-material__wahl .yl-head .yl-text {
  max-width: 46ch;
}

body.yk .yr4-material__frage .elementor-heading-title {
  margin: 28px 0 12px;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.yk .yr4-material__optionen {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

body.yk .yr4-material__optionen > .elementor-widget {
  width: auto;
  flex: none;
}

body.yk .yr4-material-choice .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--yl-line-strong);
  border-radius: 999px;
  background: var(--yl-white);
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 160ms var(--yl-ease), box-shadow 160ms var(--yl-ease);
}

body.yk .yr4-material-choice .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.yk .yr4-material-choice .elementor-button-content-wrapper::before {
  content: '';
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--yr4-swatch, #b3a396);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 34, 0.18);
}

body.yk .yr4-material-choice--hellgrau { --yr4-swatch: #b3a396; }
body.yk .yr4-material-choice--sandton { --yr4-swatch: #a38763; }
body.yk .yr4-material-choice--zementgrau { --yr4-swatch: #72645a; }
body.yk .yr4-material-choice--anthrazit { --yr4-swatch: #3c332c; }

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-material-choice .elementor-button:hover {
    border-color: var(--yl-ink);
    background: var(--yl-white);
    color: var(--yl-ink);
  }
}

/* Gewaehlt: ohne Skript per :target, mit Skript per aria-pressed oder Datenattribut von B.
   Ohne Wahl gilt das unveraenderte Bild, also Hellgrau. */
body.yk .yr4-material-choice:target .elementor-button,
body.yk .yr4-material-choice .elementor-button[aria-pressed='true'],
body.yk .yr4-material[data-yr4-material-wahl='hellgrau'] .yr4-material-choice--hellgrau .elementor-button,
body.yk .yr4-material[data-yr4-material-wahl='sandton'] .yr4-material-choice--sandton .elementor-button,
body.yk .yr4-material[data-yr4-material-wahl='zementgrau'] .yr4-material-choice--zementgrau .elementor-button,
body.yk .yr4-material[data-yr4-material-wahl='anthrazit'] .yr4-material-choice--anthrazit .elementor-button,
body.yk .yr4-material:not([data-yr4-material-wahl]):not(:has(.yr4-material-choice:target)) .yr4-material-choice--hellgrau .elementor-button {
  border-color: var(--yl-brand);
  box-shadow: inset 0 0 0 1px var(--yl-brand);
  font-weight: 700;
}

body.yk .yr4-material-choice .elementor-button:focus-visible {
  outline: 3px solid var(--yl-brand) !important;
  outline-offset: 3px !important;
}

body.yk .yr4-material__hinweis {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--yl-body);
  font-size: 14px;
  line-height: 1.6;
}

/* Fugenprofile als kleine Schnittzeichnung: Stein, Fuge, Steinkante links. */
body.yk .yr4-profile {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--yr4-linie);
}

body.yk .yr4-profile__titel .elementor-heading-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

body.yk .yr4-profile__text {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
}

body.yk .yr4-profile__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  max-width: 420px;
}

body.yk .yr4-profil {
  --yr4-stein: #8e3d2c;
  --yr4-moertel: #b3a396;
  --yr4-grund: var(--yl-smoke);
  --yr4-tiefe: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Zeichnung am Titel statt am Container: Elementor belegt .e-con::before selbst (Overlay).
   Schnitt quer zur Wand: links die Steinkante (feine Linie), oben und unten Stein, dazwischen
   die Fuge. Bündig: Fuge auf Kante. Vertieft: Fuge hinter der Kante. Gerundet: Fuge mit
   hohler Rundung an der Kante. */
body.yk .yr4-profil__titel .elementor-heading-title::before {
  content: '';
  display: block;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 3 / 2;
  margin-bottom: 10px;
  background:
    linear-gradient(rgba(20, 20, 34, 0.28), rgba(20, 20, 34, 0.28)) 18% 0 / 1px 100% no-repeat,
    linear-gradient(var(--yr4-stein), var(--yr4-stein)) 100% 0 / 82% 41% no-repeat,
    linear-gradient(var(--yr4-stein), var(--yr4-stein)) 100% 100% / 82% 41% no-repeat,
    var(--yr4-fugenbild, linear-gradient(var(--yr4-moertel), var(--yr4-moertel))) 100% 50% / calc(82% - var(--yr4-tiefe)) 18% no-repeat;
}

body.yk .yr4-profil--vertieft { --yr4-tiefe: 12%; }

body.yk .yr4-profil--gerundet {
  --yr4-fugenbild: radial-gradient(ellipse 14% 50% at 0 50%, transparent 97%, var(--yr4-moertel) 100%);
}

body.yk .yr4-profil__titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------------------------------------ Kurze Ablaufstationen */

body.yk .yl-sec.yr4-stationen-abschnitt {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-stationen__kopf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

@media (min-width: 900px) {
  body.yk .yr4-stationen__kopf {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  body.yk .yr4-stationen__kopf > .yl-head { max-width: 640px; }
}

body.yk .yr4-stationen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  counter-reset: yr4-station;
}

/* Linie: mobil senkrecht links, am Desktop waagerecht durch die Nummern. */
body.yk .yr4-stationen::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--yl-line-strong);
}

@media (min-width: 900px) {
  body.yk .yr4-stationen {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: clamp(20px, 2.4vw, 40px);
  }
  body.yk .yr4-stationen::before {
    left: 0;
    right: 0;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

body.yk .yr4-station {
  position: relative;
  padding-left: 72px;
  counter-increment: yr4-station;
}

@media (min-width: 900px) {
  body.yk .yr4-station { padding-left: 0; padding-top: 72px; }
}

body.yk .yr4-station::before {
  content: counter(yr4-station, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yl-ink);
  box-shadow: 0 0 0 8px var(--yl-white);
  color: var(--yl-white);
  font: 700 15px/1 var(--yl-font-title);
  font-variant-numeric: tabular-nums;
}

body.yk .yr4-station.is-aktiv::before,
body.yk .yr4-station.is-yr3-aktiv::before {
  background: var(--yl-brand);
}

body.yk .yr4-station__titel .elementor-heading-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-station__text {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ Praxisfall */

body.yk .yl-sec.yr4-praxis {
  padding-block: var(--yr4-luft);
  background: var(--yl-smoke);
}

body.yk .yr4-praxis__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  body.yk .yr4-praxis__row {
    grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
}

body.yk .yr4-praxis__img img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.yk .yr4-praxis__meta .elementor-heading-title {
  margin: 14px 0 0;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body.yk .yr4-praxis__text {
  max-width: 52ch;
}

/* ------------------------------------------------------------ Abstaende der Startseite */

body.yk .yl-sec.yr4-prozessabschnitt,
body.yk .yl-sec.yr4-faq,
body.yk .yl-sec.yr4-region {
  padding-block: var(--yr4-luft);
}

body.yk .yl-voices.yl-sec--smoke {
  padding-block: var(--yr4-luft);
}

/* ------------------------------------------------------------ Bilddetails mit Markierungen */

body.yk .yl-sec.yr4-hotspot-abschnitt {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-hotspot__kopf {
  max-width: 760px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

body.yk .yr4-hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  counter-reset: yr4-punkt;
}

@media (min-width: 1024px) {
  body.yk .yr4-hotspot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  body.yk .yr4-hotspot--anschluss {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* Bildflaeche in der Proportion des Fotos, damit die Marken auf dem Motiv bleiben. */
body.yk .yr4-hotspot__bild {
  position: relative;
  align-self: start;
  width: 100%;
}

body.yk .yr4-hotspot--fugensanierung .yr4-hotspot__bild { aspect-ratio: 720 / 680; }
body.yk .yr4-hotspot--anschluss .yr4-hotspot__bild { aspect-ratio: 720 / 1136; max-width: 560px; }
body.yk .yr4-hotspot--schutz .yr4-hotspot__bild { aspect-ratio: 3 / 2; }

body.yk .yr4-hotspot__img,
body.yk .yr4-hotspot__img img {
  display: block;
  width: 100%;
  height: 100%;
}

body.yk .yr4-hotspot__img img {
  object-fit: cover;
}

/* Marke: Kreis mit Nummer, Mitte genau auf dem Punkt (Ausgleich per Rand, nicht per
   transform, damit Bedienzustaende von B frei bleiben). */
body.yk .yr4-hotspot__marke {
  --yr4-marke: 44px;
  position: absolute !important;
  z-index: 2;
  width: var(--yr4-marke) !important;
  height: var(--yr4-marke);
  margin: calc(var(--yr4-marke) / -2) 0 0 calc(var(--yr4-marke) / -2) !important;
  border-radius: 50%;
  background: var(--yl-white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 6px 18px rgba(10, 10, 24, 0.28);
  color: var(--yl-brand);
}

body.yk .yr4-hotspot__marke .elementor-heading-title {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  color: inherit;
  font: 700 17px/1 var(--yl-font-title);
}

body.yk .yr4-hotspot__marke.is-aktiv {
  background: var(--yl-brand);
  color: var(--yl-white);
  box-shadow: 0 0 0 4px rgba(240, 228, 185, 0.9), 0 6px 18px rgba(10, 10, 24, 0.32);
}

body.yk .yr4-hotspot--fugensanierung .yr4-hotspot__marke--1 { left: 69%; top: 41%; }
body.yk .yr4-hotspot--fugensanierung .yr4-hotspot__marke--2 { left: 83.5%; top: 35.5%; }
body.yk .yr4-hotspot--fugensanierung .yr4-hotspot__marke--3 { left: 25%; top: 70%; }
body.yk .yr4-hotspot--anschluss .yr4-hotspot__marke--1 { left: 51.4%; top: 29%; }
body.yk .yr4-hotspot--anschluss .yr4-hotspot__marke--2 { left: 63.9%; top: 72.6%; }
body.yk .yr4-hotspot--anschluss .yr4-hotspot__marke--3 { left: 92.4%; top: 57.6%; }
body.yk .yr4-hotspot--schutz .yr4-hotspot__marke--1 { left: 33%; top: 57%; }
body.yk .yr4-hotspot--schutz .yr4-hotspot__marke--2 { left: 76%; top: 47%; }
body.yk .yr4-hotspot--schutz .yr4-hotspot__marke--3 { left: 22%; top: 75%; }

body.yk .yr4-hotspot__liste {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.yk .yr4-hotspot__punkt {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--yr4-linie);
  counter-increment: yr4-punkt;
  transition: background-color 200ms var(--yl-ease);
}

body.yk .yr4-hotspot__punkt:last-of-type {
  border-bottom: 1px solid var(--yr4-linie);
}

body.yk .yr4-hotspot__punkt::after {
  content: counter(yr4-punkt);
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--yl-brand);
  border-radius: 50%;
  color: var(--yl-brand);
  font: 700 15px/1 var(--yl-font-title);
}

body.yk .yr4-hotspot__punkt.is-aktiv::after {
  background: var(--yl-brand);
  color: var(--yl-white);
}

body.yk .yr4-hotspot__titel .elementor-heading-title {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-hotspot__punkt.is-aktiv .yr4-hotspot__titel .elementor-heading-title {
  color: var(--yl-brand);
}

body.yk .yr4-hotspot__text {
  font-size: 15px;
  line-height: 1.65;
}

body.yk .yr4-hotspot__hinweis {
  margin-top: 18px;
  color: var(--yl-body);
  font-size: 14px;
  line-height: 1.6;
}

body.yk .yr4-hotspot__zusatz {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

body.yk .yr4-hotspot__zusatzbild img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 30%;
}

body.yk .yr4-hotspot__zusatztext .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ------------------------------------------------------------ Verschmutzung erkennen */

body.yk .yl-sec.yr4-befund {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-befund__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 1024px) {
  body.yk .yr4-befund__row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
}

body.yk .yr4-befund__gross img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.yk .yr4-befund__ausschnitte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
  margin-top: clamp(12px, 1.6vw, 20px);
}

/* Ausschnitt aus dem echten Foto: quadratisch, vergroessert auf die Stelle mit der Verschmutzung. */
body.yk .yr4-ausschnitt__img {
  overflow: hidden;
  aspect-ratio: 1;
}

body.yk .yr4-ausschnitt__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--yr4-fokus, 50% 50%);
  object-position: var(--yr4-fokus, 50% 50%);
  transform: scale(var(--yr4-zoom, 1.6));
}

body.yk .yr4-ausschnitt--gruen { --yr4-fokus: 12% 96%; --yr4-zoom: 2.4; }
body.yk .yr4-ausschnitt--dunkel { --yr4-fokus: 10% 30%; --yr4-zoom: 2.2; }
body.yk .yr4-ausschnitt--reste { --yr4-fokus: 40% 52%; --yr4-zoom: 1.7; }

body.yk .yr4-ausschnitt__text .elementor-heading-title {
  margin: 8px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.yk .yr4-befund__hinweis {
  margin-top: 12px;
  color: var(--yl-body);
  font-size: 13px;
  line-height: 1.5;
}

body.yk .yr4-befund__arten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 28px;
}

@media (min-width: 560px) and (max-width: 1023px) {
  body.yk .yr4-befund__arten { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

body.yk .yr4-art {
  padding: 14px 0;
  border-top: 1px solid var(--yr4-linie);
}

body.yk .yr4-art__titel .elementor-heading-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

body.yk .yr4-art__text {
  font-size: 15px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ Strahlmittel als Tafel */

body.yk .yl-sec.yr4-strahlmittel {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-strahlmittel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 1024px) {
  body.yk .yr4-strahlmittel__row {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}

body.yk .yr4-strahlmittel__zusatz {
  max-width: 60ch;
}

body.yk .yr4-strahlmittel__tafel {
  padding: clamp(28px, 3vw, 44px);
  background-color: var(--yl-brand);
  background-image: var(--yl-bricks);
  background-size: 160px 64px;
  color: var(--yl-on-dark);
}

body.yk .yr4-tafel__titel .elementor-heading-title {
  margin: 0 0 14px;
  color: var(--yl-sand);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body.yk .yr4-tafel__liste {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

body.yk .yr4-tafel__liste--verfahren {
  margin-bottom: 0;
}

body.yk .yr4-tafel__eintrag .elementor-heading-title {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--yl-white);
  font-family: var(--yl-font-title);
  font-size: clamp(22px, 1.2vw + 14px, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.yk .yr4-tafel__liste--verfahren .yr4-tafel__eintrag .elementor-heading-title {
  font-size: 18px;
}

/* ------------------------------------------------------------ Musterflaeche mit Bild */

body.yk .yl-sec.yr4-probe {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-probe__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  body.yk .yr4-probe__row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
}

body.yk .yr4-probe__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.yk .yr4-probe__liste {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

/* ------------------------------------------------------------ Handwerk in Bildern */

body.yk .yr4-handwerk {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
}

body.yk .yr4-handwerk__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

body.yk .yr4-handwerk__text .elementor-heading-title {
  margin: 8px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* ------------------------------------------------------------ Bild und Text ohne Versatzrahmen */

body.yk .yr4-bildtext .yl-about__media::before,
body.yk .yr4-bildtext .yl-about__media::after {
  content: none;
}

body.yk .yr4-bildtext .yl-about__media {
  padding: 0;
}

body.yk .yr4-bildtext .yl-about__img img {
  aspect-ratio: 4 / 3;
}

/* ------------------------------------------------------------ Fragen als Zeilenliste */

/* Leistungs-, Ablauf-, Projekt- und Ueber-uns-Seiten: weisse Flaeche, Fragen durch Linien
   getrennt statt weisser Karten auf Grau (Codex-Sichtpruefung: keine Kachelwiederholung). */
body.yk .yl-sec.yl-faq.yr4-fragen {
  padding-block: var(--yr4-luft);
  background: var(--yl-white);
}

body.yk .yr4-fragen .yk-faq {
  border-top: 1px solid var(--yl-line-strong);
}

body.yk .yr4-fragen .yk-faq__item {
  margin: 0;
  border-bottom: 1px solid var(--yl-line-strong);
  background: transparent;
}

body.yk .yr4-fragen .yk-faq__button {
  min-height: 68px;
  padding: 20px 0;
}

body.yk .yr4-fragen .yk-faq__question .elementor-heading-title {
  padding: 20px 0;
  font-family: var(--yl-font-title);
  font-size: clamp(17px, 0.3vw + 15px, 19px);
  font-weight: 700;
  line-height: 1.4;
}

body.yk .yr4-fragen .yk-faq__item--collapsible .yk-faq__question .elementor-heading-title {
  padding: 0;
}

body.yk .yr4-fragen .yk-faq__answer {
  padding-inline: 0;
  max-width: 68ch;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-fragen .yk-faq__button:hover {
    color: var(--yl-brand);
  }
}

@media (min-width: 1024px) {
  body.yk .yr4-fragen .yl-faq__aside {
    position: sticky;
    top: calc(var(--yl-header-h) + 32px);
  }
}

/* ------------------------------------------------------------ Passend dazu als Verweisleiste */

body.yk .yl-sec.yr4-weiterlesen {
  padding-block: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--yr4-linie);
}

body.yk .yr4-weiterlesen .yl-head {
  margin-bottom: 20px;
}

body.yk .yr4-weiterlesen .yl-kicker {
  display: none;
}

body.yk .yr4-weiterlesen .yl-title .elementor-heading-title {
  font-size: clamp(20px, 0.6vw + 16px, 24px);
}

body.yk .yr4-weiterlesen .yl-links {
  gap: 0;
}

body.yk .yr4-weiterlesen .yl-linkcard {
  min-height: 0;
  padding: 6px 48px 6px 20px;
  border-bottom: 0;
  border-left: 2px solid var(--yl-line-strong);
  background: transparent;
}

body.yk .yl-sec--smoke.yr4-weiterlesen .yl-linkcard {
  background: transparent;
}

body.yk .yr4-weiterlesen .yl-linkcard::before {
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
}

body.yk .yr4-weiterlesen .yl-linkcard::after {
  top: 13px;
  right: 15px;
  width: 16px;
  height: 16px;
}

@media (max-width: 699px) {
  body.yk .yr4-weiterlesen .yl-links { row-gap: 16px; }
}

@media (min-width: 700px) {
  body.yk .yr4-weiterlesen .yl-links { row-gap: 20px; }
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-weiterlesen .yl-linkcard:hover {
    border-left-color: var(--yl-brand);
    background: transparent;
    box-shadow: none;
  }
}

body.yk .yr4-weiterlesen .yl-linkcard__title .elementor-heading-title {
  margin-bottom: 2px;
  font-size: 17px;
}

body.yk .yr4-weiterlesen .yl-linkcard__text {
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ Leistungsuebersicht */

body.yk .yl-sec.yr4-entscheidung {
  padding-block: var(--yr4-luft) clamp(24px, 3vw, 40px);
}

body.yk .yr4-entscheidung .yl-head {
  max-width: 820px;
  margin-bottom: 28px;
}

/* Sprungleiste zu den drei Paaren: Verweise mit Fugenlinie, keine Pillen. */
body.yk .yr4-sprungleiste {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--yr4-linie);
}

body.yk .yr4-sprungleiste > .elementor-widget {
  width: auto;
}

body.yk .yr4-sprung .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-sprung .elementor-heading-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--yl-ink);
  text-decoration: none;
}

body.yk .yr4-sprung .elementor-heading-title a::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--yl-brand);
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-sprung .elementor-heading-title a:hover { color: var(--yl-brand); }
}

body.yk .yl-sec.yr4-gruppe {
  padding-block: clamp(40px, 5vw, 80px);
  scroll-margin-top: calc(var(--yl-header-h) + 16px);
}

body.yk .yr4-gruppe__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 760px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

body.yk .yr4-gruppe__titel .elementor-heading-title {
  margin: 0;
}

body.yk .yr4-gruppe__text {
  margin-top: 0;
}

body.yk .yr4-gruppe__paar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  body.yk .yr4-gruppe__paar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 56px);
  }
}

/* Ganze Leistung klickbar ueber den Titel; Zwischenebenen ohne eigene Lage. */
body.yk .yr4-angebot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.yk .yr4-angebot .elementor-widget,
body.yk .yr4-angebot .yr4-angebot__inhalt {
  position: static;
}

body.yk .yr4-angebot__bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.yk .yr4-angebot--klinker .yr4-angebot__bild img { object-position: 60% 58%; }
body.yk .yr4-angebot--sanierung .yr4-angebot__bild img { object-position: 62% 30%; }
body.yk .yr4-angebot--reinigung .yr4-angebot__bild img { object-position: 45% 50%; }
body.yk .yr4-angebot--strahlen .yr4-angebot__bild img { object-position: 42% 50%; }
body.yk .yr4-angebot--schutz .yr4-angebot__bild img { object-position: 50% 50%; }
body.yk .yr4-angebot--anschluss .yr4-angebot__bild img { object-position: 22% 50%; }

body.yk .yr4-angebot__inhalt {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}

/* Die Lage, in der die Leistung passt, fuehrt: fett und vor dem Leistungsnamen. */
body.yk .yr4-angebot__wenn .elementor-heading-title {
  margin: 0 0 10px;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

body.yk .yr4-angebot__titel .elementor-heading-title {
  margin: 0;
  font-size: clamp(24px, 0.9vw + 17px, 30px);
  font-weight: 700;
  line-height: 1.2;
}

body.yk .yr4-angebot__titel .elementor-heading-title a {
  color: var(--yl-brand);
  text-decoration: none;
}

body.yk .yr4-angebot__titel .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.yk .yr4-angebot__titel .elementor-heading-title a:focus-visible {
  outline: none !important;
}

body.yk .yr4-angebot:has(a:focus-visible) {
  outline: 3px solid var(--yl-brand);
  outline-offset: 6px;
}

body.yk .yr4-angebot__text {
  margin-top: 10px;
  max-width: 52ch;
}

body.yk .yr4-angebot__mehr {
  margin-top: 8px;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-angebot:hover .yr4-angebot__titel .elementor-heading-title a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}

/* Zweite Gruppe quer: Bild links, Text rechts je Leistung (ab 1100 px). */
@media (min-width: 1100px) {
  body.yk .yr4-gruppe--quer .yr4-angebot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  body.yk .yr4-gruppe--quer .yr4-angebot__bild img {
    aspect-ratio: 4 / 5;
  }
  body.yk .yr4-gruppe--quer .yr4-angebot__inhalt {
    padding-top: 4px;
  }
  body.yk .yr4-gruppe--quer .yr4-angebot__titel .elementor-heading-title {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------ Ablauf: fotografische Kapitel */

body.yk .yl-sec.yr4-kapitel-abschnitt {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-kapitel-abschnitt > .e-con-inner > .yl-head {
  max-width: 760px;
}

/* Linie links durch alle Kapitel; Fuellung nach --yr4-fortschritt (Rolle B), ohne Wert voll. */
body.yk .yr4-timeline {
  --yr4-schiene: 23px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: yr4-kapitel;
}

body.yk .yr4-timeline::before,
body.yk .yr4-timeline::after {
  content: '';
  position: absolute;
  left: var(--yr4-schiene);
  top: 24px;
  bottom: 24px;
  width: 2px;
  pointer-events: none;
}

body.yk .yr4-timeline::before {
  background: var(--yl-line-strong);
}

body.yk .yr4-timeline::after {
  background: var(--yl-brand);
  transform: scaleY(var(--yr4-fortschritt, 1));
  transform-origin: top center;
  transition: transform 240ms var(--yl-ease);
}

body.yk .yr4-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 clamp(40px, 5vw, 72px) 72px;
}

body.yk .yr4-step:last-child {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  body.yk .yr4-step--bild {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
}

/* Kapitelmarke auf der Linie (natives Ueberschriftenfeld mit der Nummer). */
body.yk .yr4-step__marke {
  position: absolute !important;
  left: 0;
  top: 0;
  z-index: 1;
  width: 48px !important;
  margin: 0 !important;
}

body.yk .yr4-step__marke .elementor-heading-title {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  background: var(--yl-ink);
  box-shadow: 0 0 0 8px var(--yl-white);
  color: var(--yl-white);
  font: 700 15px/1 var(--yl-font-title);
  font-variant-numeric: tabular-nums;
}

body.yk .yr4-step.is-aktiv .yr4-step__marke .elementor-heading-title,
body.yk .yr4-step.is-yr4-complete .yr4-step__marke .elementor-heading-title {
  background: var(--yl-brand);
}

body.yk .yr4-step__titel .elementor-heading-title {
  margin: 8px 0 10px;
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  font-weight: 700;
  line-height: 1.25;
}

body.yk .yr4-step__text {
  max-width: 56ch;
}

body.yk .yr4-step__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.yk .yr4-step--2 .yr4-step__img img { object-position: 60% 35%; }
body.yk .yr4-step--4 .yr4-step__img img { object-position: 50% 40%; }

/* Kontaktwege im ersten Kapitel: Symbol und Beschriftung, als Zeile. */
body.yk .yr4-step__wege {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
}

body.yk .yr4-step__wege > .e-con {
  width: auto;
}

body.yk .yr4-weg__titel .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

body.yk .yr4-weg__titel .elementor-heading-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--yl-ink);
  text-decoration: none;
}

body.yk .yr4-weg__titel .elementor-heading-title a::before {
  content: '';
  width: 20px;
  height: 20px;
  flex: none;
  background-color: var(--yl-brand);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-weg__titel .elementor-heading-title a:hover { color: var(--yl-brand); }
}

/* ------------------------------------------------------------ Ablauf: Vorbereitungshilfe */

body.yk .yl-sec.yr4-vorbereitung {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-vorbereitung__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  body.yk .yr4-vorbereitung__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}

body.yk .yr4-vorbereitung__liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 640px) {
  body.yk .yr4-vorbereitung__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

body.yk .yr4-vorb {
  position: relative;
  padding: 20px 0 20px 64px;
  border-top: 1px solid var(--yr4-linie);
}

/* Symbol im Kreis am Titel (die Containerpseudoelemente belegt Elementor): ::before ist der
   Kreis, ::after das Symbol als Maske in Weiss (Tabler-Striche folgen sonst nicht der Farbe). */
body.yk .yr4-vorb__titel .elementor-heading-title::before,
body.yk .yr4-vorb__titel .elementor-heading-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 44px;
  height: 44px;
}

body.yk .yr4-vorb__titel .elementor-heading-title::before {
  border-radius: 50%;
  background: var(--yl-brand);
}

body.yk .yr4-vorb__titel .elementor-heading-title::after {
  background-color: var(--yl-white);
  -webkit-mask: var(--yl-icon) center / 22px 22px no-repeat;
  mask: var(--yl-icon) center / 22px 22px no-repeat;
}

body.yk .yr4-vorb .yr4-vorb__titel {
  position: static;
}

body.yk .yr4-vorb__titel .elementor-heading-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

body.yk .yr4-vorb__text {
  font-size: 15px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ Zwei verwandte Texte */

body.yk .yl-sec.yr4-paar {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-paar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  body.yk .yr4-paar__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
}

body.yk .yr4-paar__teil {
  padding-top: 24px;
  border-top: 2px solid var(--yl-ink);
}

body.yk .yr4-paar__teil .yl-title .elementor-heading-title {
  margin: 0;
}

/* ------------------------------------------------------------ Ueber uns: Grundsaetze */

body.yk .yl-sec.yr4-grundsaetze {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-grundsaetze__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 1024px) {
  body.yk .yr4-grundsaetze__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(48px, 6vw, 96px);
  }
}

body.yk .yr4-grundsatz {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--yl-line-strong);
}

@media (min-width: 700px) {
  body.yk .yr4-grundsatz { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; }
}

body.yk .yr4-grundsatz:last-child {
  border-bottom: 1px solid var(--yl-line-strong);
}

body.yk .yr4-grundsatz__titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ------------------------------------------------------------ Ueber uns: Ergebnisse */

body.yk .yl-sec.yr4-ergebnisse {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-ergebnisse__kopf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

@media (min-width: 900px) {
  body.yk .yr4-ergebnisse__kopf {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  body.yk .yr4-ergebnisse__kopf > .yl-head { max-width: 640px; }
}

body.yk .yr4-ergebnisse__reihe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
}

@media (min-width: 1024px) {
  body.yk .yr4-ergebnisse__reihe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Wechselnde Hoehe wie Steine im Verband: zweites und viertes Bild tiefer. */
  body.yk .yr4-ergebnis--2,
  body.yk .yr4-ergebnis--4 { margin-top: 56px; }
}

body.yk .yr4-ergebnis__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

body.yk .yr4-ergebnis__titel .elementor-heading-title {
  margin: 10px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* ------------------------------------------------------------ Fragenseite: Themen */

body.yk .yl-sec.yr4-themen {
  padding-block: var(--yr4-luft) clamp(32px, 4vw, 56px);
}

body.yk .yr4-themen__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 1024px) {
  body.yk .yr4-themen__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(48px, 6vw, 96px);
  }
}

body.yk .yr4-themen__liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 640px) {
  body.yk .yr4-themen__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

body.yk .yr4-thema {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid var(--yr4-linie);
}

body.yk .yr4-thema > .elementor-widget {
  position: static;
}

body.yk .yr4-thema__titel .elementor-heading-title {
  margin: 0 0 2px;
  font-family: var(--yl-font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

body.yk .yr4-thema__titel .elementor-heading-title a {
  color: var(--yl-ink);
  text-decoration: none;
}

body.yk .yr4-thema__titel .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-thema:hover .yr4-thema__titel .elementor-heading-title a { color: var(--yl-brand); }
}

body.yk .yr4-thema__text {
  font-size: 15px;
  line-height: 1.55;
}

/* Fragenseite: Themengruppen durch eine Linie getrennt, alle auf Weiss. */
body.yk .yl-sec.yl-faq.yr4-fragen--themen {
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--yr4-linie);
  scroll-margin-top: calc(var(--yl-header-h) + 16px);
}

/* ------------------------------------------------------------ Projekte: Filter und Karten */

body.yk .yl-sec.yr4-sammlung {
  padding-block: var(--yr4-luft);
}

body.yk .yr4-sammlung__kopf {
  max-width: 760px;
  margin-bottom: 24px;
}

/* Filter: ruhige Schaltflaechen in einer Zeile, am Desktop klebend unter dem Kopf. */
body.yk .yr4-project-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding: 14px 0;
  border-top: 1px solid var(--yr4-linie);
  border-bottom: 1px solid var(--yr4-linie);
}

body.yk .yr4-project-filter > .elementor-widget {
  width: auto;
  flex: none;
}

body.yk .yr4-project-filter__wahl .elementor-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--yl-line-strong);
  border-radius: 999px;
  background: var(--yl-white);
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr4-project-filter__wahl .elementor-button:hover {
    border-color: var(--yl-ink);
    background: var(--yl-white);
    color: var(--yl-ink);
  }
}

body.yk .yr4-project-filter__wahl .elementor-button[aria-pressed='true'],
body.yk .yr4-project-filter__wahl.is-aktiv .elementor-button {
  border-color: var(--yl-brand);
  background: var(--yl-brand);
  color: var(--yl-white);
  box-shadow: none;
}

body.yk .yr4-project-filter__wahl .elementor-button:focus-visible {
  outline: 3px solid var(--yl-brand) !important;
  outline-offset: 3px !important;
}

/* Bereiche ohne sichtbare Karte (nach Filter) samt Ueberschrift ausblenden. */
body.yk .yr4-einsaetze:not(:has(.yr4-project-card:not([hidden]))),
body.yk .yr4-vergleich:not(:has(.yr4-project-card:not([hidden]))) {
  display: none;
}

body.yk .yr4-teiltitel .elementor-heading-title {
  margin: 0 0 24px;
}

body.yk .yr4-einsaetze,
body.yk .yr4-vergleich {
  scroll-margin-top: calc(var(--yl-header-h) + 24px);
}

body.yk .yr4-vergleich {
  margin-top: clamp(48px, 6vw, 88px);
}

body.yk .yr4-einsaetze__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

@media (min-width: 900px) {
  body.yk .yr4-einsaetze__raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 4vw, 64px) clamp(28px, 3.5vw, 56px);
  }
}

body.yk .yr4-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-margin-top: calc(var(--yl-header-h) + 24px);
}

body.yk .yr4-story__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.yk .yr4-story__inhalt {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}

body.yk .yr4-story__leistung .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--yl-brand);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr4-story__leistung .elementor-heading-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
}

body.yk .yr4-story__titel .elementor-heading-title {
  margin: 0;
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  font-weight: 700;
  line-height: 1.25;
}

body.yk .yr4-story__meta .elementor-heading-title {
  margin: 6px 0 10px;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body.yk .yr4-story__text {
  max-width: 56ch;
}

body.yk .yr4-story__weitere {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 360px;
  margin-top: 16px;
}

body.yk .yr4-story__klein img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
}

body.yk .yr4-story__kleintext .elementor-heading-title {
  margin: 6px 0 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body.yk .yr4-vergleich__kopf {
  max-width: 760px;
}

body.yk .yr4-vergleich__kopf .yl-text {
  margin-top: 0;
  margin-bottom: 8px;
}

body.yk .yr4-vergleich .yl-pairs__switchwrap {
  justify-content: flex-start;
}

/* Abstand zwischen Bildpaar-Karten im Raster (Elementor-Container bringt keinen eigenen). */
body.yk .yr4-vergleich__raster {
  margin-top: 8px;
}

/* ------------------------------------------------------------ Schmale Bildschirme */

/* Lange Komposita (Klinkerimpraegnierung, Rundbogenfenstern) trennen statt hart zu brechen. */
@media (max-width: 479px) {
  body.yk [class*='yr4-'] .yl-title .elementor-heading-title,
  body.yk .yr4-leistung__titel .elementor-heading-title,
  body.yk .yr4-angebot__titel .elementor-heading-title,
  body.yk .yr4-story__titel .elementor-heading-title,
  body.yk .yr4-hotspot__titel .elementor-heading-title,
  body.yk .yr4-step__titel .elementor-heading-title {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  body.yk .yr4-beleg .yl-title .elementor-heading-title {
    font-size: 26px;
  }
}

@media (max-width: 399px) {
  body.yk .yr4-leistung--klein {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  body.yk .yr4-leistung--klein .yr4-leistung__titel .elementor-heading-title {
    font-size: 17px;
  }
}

/* ------------------------------------------------------------ Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  body.yk .yr4-material__buehne::after,
  body.yk .yr4-timeline::after,
  body.yk .yr4-hotspot__punkt,
  body.yk .yr4-material-choice .elementor-button {
    transition: none;
  }
}

/* R4 S0: mobiler Randkontakt verdeckte Ablauftext; Menue/Formular bleiben erreichbar. */
[data-yk-dock] { display: none !important; }
