/*
 * R5-Muster (Rolle A, 01.10.2026): drei Abschnitte der Startseite nach
 * R5/CODEX/ART_DIRECTION.md. Leistungsfenster (.yr5-leistungen), Erprobte Fugentechnik
 * (.yr5-technik) und Ablauf (.yr5-ablauf).
 *
 * Grenzen: nur diese drei Abschnitte, dazu die Abstandskorrektur des Erfahrungsbands
 * (.yr4-erfahrung.yr5-erfahrung), dessen Bildteil in den Abschnitt Fugentechnik gewandert ist.
 * Keine Regeln fuer Kopf, Fuss, Navigation, Mobilmenue, Einstieg (.yl-hero) oder Formular.
 * Keine Doppelstriche, Rauten, Verlaeufe oder Zierrahmen. Symbole sind unveraenderte Tabler-
 * Dateien (live-icons.css, --yl-icon) als Maske an Ueberschriftenfeldern, nie an .e-con::before.
 * Die Kreisbewegung bleibt bei r4-interaktionen.js; hier stehen nur Groesse, Ruhelage und Takt.
 * Laden nach r4-interaktionen.css.
 */

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

body.yk {
  /* Inhaltsbreite = bestehendes Raster (--yl-container, 1290 px): buendig mit Logo, Einstieg und
     dem Erfahrungsband direkt darueber. Die Art Direction nennt 1248 px; deren Proportionen
     (744:504, 704:64:480, 3 x 368 + 2 x 72) gelten hier als Verhaeltnisse. */
  --yr5-inhalt: var(--yl-container);
  /* Seitenrand wie alle Abschnitte (--yl-gutter: 20, ab 768 px 32, ab 1200 px 40). */
  --yr5-rand: var(--yl-gutter);
  --yr5-luft: 48px;
  --yr5-warm: #f6f3ed;
  --yr5-warm-tief: #eee8dc;
  --yr5-stein: #ded8ce;
  --yr5-text: #55545d;
  --yr5-linie: #e2dbcd;
  --yr5-hell: rgba(255, 255, 255, 0.84);
  --yr5-hell-linie: rgba(255, 255, 255, 0.18);
  --yr5-icon: 32px;
  --yr5-dauer: 180ms;
  --yr5-kurve: cubic-bezier(0.23, 1, 0.32, 1);
  --yr5-fliess: 16px;
  --yr5-fliess-zeile: 25px;
  --yr5-kreis: 216px;
  --yr5-foto: 196px;
  --yr5-marke: 36px;
}

@media (min-width: 768px) {
  body.yk {
    --yr5-luft: 56px;
  }
}

@media (min-width: 1024px) {
  body.yk {
    --yr5-icon: 36px;
    --yr5-fliess: 17px;
    --yr5-fliess-zeile: 27px;
    --yr5-kreis: 260px;
    --yr5-foto: 240px;
    --yr5-marke: 40px;
  }
}

@media (min-width: 1200px) {
  body.yk {
    --yr5-luft: 72px;
  }
}

/* ------------------------------------------------------------ Gemeinsame Bausteine */

body.yk .yl-sec.yr5-leistungen > .e-con-inner,
body.yk .yl-sec.yr5-technik > .e-con-inner,
body.yk .yl-sec.yr5-ablauf > .e-con-inner {
  width: 100%;
  max-width: var(--yr5-inhalt);
  margin-inline: auto;
}

body.yk .yr5-kopf {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
}

body.yk .yr5-titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: clamp(30px, 1.15vw + 25.5px, 42px);
  font-weight: 750;
  line-height: calc(1em + 6px);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

body.yk .yr5-kopf__text {
  margin: 0;
  color: var(--yr5-text);
  font-size: var(--yr5-fliess);
  line-height: var(--yr5-fliess-zeile);
}

/* Kleine sachliche Zeile ueber einem Titel, ohne Doppelstrich. */
body.yk .yr5-zeile .elementor-heading-title {
  margin: 0;
  color: var(--yl-sand);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Eine ruhige Hinweiszeile je Bildgruppe (Illustrationen, R5/CODEX/MEDIEN_FREIGABE.md). */
body.yk .yr5-bildhinweis .elementor-heading-title {
  margin: 0;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* Textverweis mit Pfeil (Tabler arrow-right ueber yl-ico-pfeil). */
body.yk .yr5-textlink .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

body.yk .yr5-textlink .elementor-heading-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--yl-brand);
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

body.yk .yr5-textlink .elementor-heading-title a::after {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
  transition: transform var(--yr5-dauer) var(--yr5-kurve);
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr5-textlink .elementor-heading-title a:hover { text-decoration-line: underline; }
  body.yk .yr5-textlink .elementor-heading-title a:hover::after { transform: translateX(3px); }
}

body.yk .yr5-textlink .elementor-heading-title a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* ------------------------------------------------------------ Muster 1: Leistungsfenster */

/* Die Flaeche ueberlappt den Einstieg um denselben Wert wie zuvor (--yl-hero-ueberlappung,
   mobil 0); der Einstieg selbst bleibt unveraendert. Weiss ist nur die Innenflaeche. */
body.yk .yl-sec.yr5-leistungen {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--yl-hero-ueberlappung));
  padding: 0 var(--yr5-rand) var(--yr5-luft);
  background: transparent;
}

body.yk .yl-sec.yr5-leistungen > .e-con-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: clamp(28px, 3.5vw, 52px);
  background: var(--yl-white);
}

@media (min-width: 1024px) {
  /* Innenflaeche ragt seitlich ueber das Raster hinaus; .e-con-inner ist kein Elementor-
     Container mit eigener Ueberlagerung, das Pseudoelement ist hier frei. */
  body.yk .yl-sec.yr5-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 .yr5-kopf--zeile {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }

  body.yk .yr5-kopf--zeile > .yr5-titel {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.yk .yr5-kopf--zeile > .yr5-kopf__text {
    flex: 0 0 456px;
    max-width: 456px;
    padding-bottom: 4px;
  }
}

body.yk .yr5-fenster {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Drei Wahlfelder auf einer gemeinsamen Grundflaeche. */
body.yk .yr5-fenster__wahl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--yr5-warm);
}

body.yk .yr5-wahl {
  --yr5-wahl-ico: var(--yl-brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 12px 6px;
  color: var(--yl-ink);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--yr5-dauer) var(--yr5-kurve), color var(--yr5-dauer) var(--yr5-kurve);
}

body.yk .yr5-wahl + .yr5-wahl {
  border-left: 1px solid var(--yr5-linie);
}

/* Zwischenebenen ohne eigene Lage: Symbol und Klickflaeche beziehen sich auf das Wahlfeld. */
body.yk .yr5-wahl > .elementor-widget,
body.yk .yr5-wahl .elementor-heading-title {
  position: static;
}

body.yk .yr5-wahl__titel .elementor-heading-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: inherit;
  font-family: var(--yl-font-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
}

body.yk .yr5-wahl__titel .elementor-heading-title::before {
  content: '';
  flex: 0 0 auto;
  width: var(--yr5-icon);
  height: var(--yr5-icon);
  background-color: var(--yr5-wahl-ico);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
  transition: background-color var(--yr5-dauer) var(--yr5-kurve);
}

/* Ganzes Wahlfeld klickbar ueber den Bereichsverweis; die Leistungsverweise liegen darueber. */
body.yk .yr5-wahl__titel .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}

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

body.yk .yr5-wahl__titel .elementor-heading-title a:focus-visible {
  outline: none;
}

body.yk .yr5-wahl:has(.yr5-wahl__titel a:focus-visible) {
  outline: 3px solid var(--yl-brand);
  outline-offset: -3px;
}

body.yk .yr5-wahl__links {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr5-wahl:hover { background-color: var(--yr5-warm-tief); }
}

/* Aktives Wahlfeld: mit Skript per Klasse, ohne Skript das erste Feld oder das Sprungziel. */
body.yk .yr5-fenster.is-bereit .yr5-wahl.is-aktiv,
body.yk .yr5-fenster:not(.is-bereit):not(:has(.yr5-feld:target)) .yr5-wahl:first-child,
body.yk .yr5-fenster:not(.is-bereit):has(.yr5-feld--verfugen:target) .yr5-wahl--verfugen,
body.yk .yr5-fenster:not(.is-bereit):has(.yr5-feld--reinigen:target) .yr5-wahl--reinigen,
body.yk .yr5-fenster:not(.is-bereit):has(.yr5-feld--schuetzen:target) .yr5-wahl--schuetzen {
  --yr5-wahl-ico: var(--yl-sand);
  background-color: var(--yl-brand);
  color: var(--yl-white);
}

body.yk .yr5-fenster .yr5-wahl.is-aktiv:has(.yr5-wahl__titel a:focus-visible),
body.yk .yr5-fenster:not(.is-bereit) .yr5-wahl:has(.yr5-wahl__titel a:focus-visible) {
  outline-color: var(--yl-sand);
}

@media (min-width: 1024px) {
  body.yk .yr5-wahl {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 4px;
    min-height: 88px;
    padding: 14px 24px 14px calc(24px + var(--yr5-icon) + 16px);
    text-align: left;
  }

  body.yk .yr5-wahl__titel .elementor-heading-title {
    display: block;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.01em;
  }

  body.yk .yr5-wahl__titel .elementor-heading-title::before {
    position: absolute;
    left: 24px;
    top: calc(50% - var(--yr5-icon) / 2);
  }

  body.yk .yr5-wahl__links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 6px;
  }

  body.yk .yr5-wahl__link .elementor-heading-title {
    margin: 0;
    font-family: var(--yl-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
    color: inherit;
  }

  body.yk .yr5-wahl__link:not(:last-child) .elementor-heading-title::after {
    content: ',';
  }

  body.yk .yr5-wahl__link .elementor-heading-title a {
    color: inherit;
    opacity: 0.88;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--yr5-dauer) var(--yr5-kurve);
  }

  body.yk .yr5-wahl__link .elementor-heading-title a:hover {
    text-decoration-color: currentColor;
  }

  body.yk .yr5-wahl__link .elementor-heading-title a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

/* Bildfenster: alle Bereiche liegen in derselben Zelle; die Box bleibt beim Wechsel stabil. */
body.yk .yr5-fenster__flaeche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.yk .yr5-feld {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--yr5-warm);
  visibility: hidden;
  opacity: 0;
  scroll-margin-top: calc(var(--yl-header-h) + 120px);
  transition: opacity var(--yr5-dauer) var(--yr5-kurve), visibility 0s linear var(--yr5-dauer);
}

body.yk .yr5-fenster.is-bereit .yr5-feld.is-aktiv,
body.yk .yr5-fenster:not(.is-bereit) .yr5-feld:target,
body.yk .yr5-fenster:not(.is-bereit):not(:has(.yr5-feld:target)) .yr5-feld:first-child {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--yr5-dauer) var(--yr5-kurve), visibility 0s linear 0s;
}

body.yk .yr5-feld__bild {
  overflow: hidden;
  background: var(--yr5-stein);
}

body.yk .yr5-feld__bild img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
}

body.yk .yr5-feld__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 20px 22px;
}

body.yk .yr5-feld__titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

body.yk .yr5-feld__absatz {
  margin-top: 12px;
  color: var(--yr5-text);
  font-size: var(--yr5-fliess);
  line-height: var(--yr5-fliess-zeile);
}

body.yk .yr5-feld__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

body.yk .yr5-feld__link .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* Verweiszeile: Name, darunter die Lage, in der die Leistung passt; Pfeil rechts ueber beide. */
body.yk .yr5-feld__link .elementor-heading-title a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  min-height: 52px;
  padding: 12px 0;
  border-top: 1px solid var(--yr5-linie);
  color: var(--yl-ink);
  text-decoration: none;
  transition: color var(--yr5-dauer) var(--yr5-kurve);
}

body.yk .yr5-feld__link:last-child .elementor-heading-title a {
  border-bottom: 1px solid var(--yr5-linie);
}

body.yk .yr5-feld__wann {
  grid-column: 1;
  display: block;
  color: var(--yr5-text);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
}

body.yk .yr5-feld__link .elementor-heading-title a::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  background-color: var(--yl-brand);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
  transition: transform var(--yr5-dauer) var(--yr5-kurve);
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr5-feld__link .elementor-heading-title a:hover { color: var(--yl-brand); }
  body.yk .yr5-feld__link .elementor-heading-title a:hover::after { transform: translateX(4px); }
}

body.yk .yr5-feld__link .elementor-heading-title a:focus-visible {
  outline: 3px solid var(--yl-brand);
  outline-offset: 2px;
}

body.yk .yr5-leistungen > .e-con-inner > .yr5-bildhinweis {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  body.yk .yr5-feld {
    display: grid;
    grid-template-columns: minmax(0, 744fr) minmax(0, 504fr);
  }

  /* Titel, Absatz und Verweise bilden eine Gruppe, mittig zur Bildhoehe. */
  body.yk .yr5-feld__text {
    justify-content: center;
    padding: 36px;
  }

  body.yk .yr5-feld__links {
    margin-top: 28px;
  }

  body.yk .yr5-feld__titel .elementor-heading-title {
    font-size: 28px;
    line-height: 34px;
  }

  body.yk .yr5-feld__absatz {
    margin-top: 16px;
  }
}

/* Elementor-Editor: alle drei Bereiche untereinander sichtbar und bearbeitbar. */
body.elementor-editor-active .yr5-fenster__flaeche {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.elementor-editor-active .yr5-feld {
  visibility: visible;
  opacity: 1;
}

/* ------------------------------------------------------------ Erfahrungsband ohne Bildteil */

/* Der Bildteil (Erprobte Fugentechnik) ist ein eigener Abschnitt geworden; das Band braucht
   keine Ueberlappungsflaeche mehr. Inhalt und Gestaltung des Bandes bleiben sonst gleich. */
body.yk .yl-sec.yr4-erfahrung.yr5-erfahrung {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  body.yk .yr5-erfahrung .yr4-erfahrung__band {
    padding-bottom: 64px;
  }
}

/* ------------------------------------------------------------ Muster 2: Erprobte Fugentechnik */

body.yk .yl-sec.yr5-technik {
  padding: 48px var(--yr5-rand);
  background: var(--yl-brand);
  color: var(--yr5-hell);
}

/* Folgt der Abschnitt direkt auf das Erfahrungsband, trennt eine feine Linie die beiden
   Bordeauxflaechen (ein Kapitel, zwei Teile). */
body.yk .yr5-erfahrung + .yl-sec.yr5-technik {
  border-top: 1px solid var(--yr5-hell-linie);
}

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

body.yk .yr5-technik__bild {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--yr5-stein);
}

body.yk .yr5-technik__foto,
body.yk .yr5-technik__foto img {
  display: block;
  width: 100%;
}

body.yk .yr5-technik__foto img {
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Handlung liegt zwischen 12 und 83 Prozent der Bildbreite (Brett, Fugeisen, beide Haende). */
  object-position: 46% 52%;
}

body.yk .yr5-technik__inhalt {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

body.yk .yr5-technik .yr5-titel .elementor-heading-title {
  margin-top: 12px;
  color: var(--yl-white);
  font-size: clamp(30px, 0.95vw + 26.3px, 40px);
  line-height: calc(1em + 6px);
}

/* Helle Schrift auf Bordeaux: etwas mehr Zeilenabstand und Laufweite (impeccable typeset). */
body.yk .yr5-technik__text {
  margin-top: 16px;
  color: var(--yr5-hell);
  font-size: var(--yr5-fliess);
  line-height: calc(var(--yr5-fliess-zeile) + 1px);
  letter-spacing: 0.01em;
}

/* Drei Aussagen: Symbol und kurzes Wort, mobil als Zeilen, ab Tablet auf einer Grundlinie. */
body.yk .yr5-aussagen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--yr5-hell-linie);
}

body.yk .yr5-aussage .elementor-heading-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin: 0;
  border-bottom: 1px solid var(--yr5-hell-linie);
  color: var(--yl-white);
  font-family: var(--yl-font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
}

body.yk .yr5-aussage .elementor-heading-title::before {
  content: '';
  flex: 0 0 auto;
  width: var(--yr5-icon);
  height: var(--yr5-icon);
  background-color: var(--yr5-stein);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
}

@media (min-width: 600px) {
  body.yk .yr5-aussagen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 20px;
  }

  body.yk .yr5-aussage .elementor-heading-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    border-bottom: 0;
  }
}

/* Fugendetail im Raster: kleines Foto und ein Satz zu Farbton und Profil. */
body.yk .yr5-technik__detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

body.yk .yr5-technik__detailbild img {
  display: block;
  width: 112px;
  height: 88px;
  max-width: none;
  object-fit: cover;
}

body.yk .yr5-technik__detailtext {
  margin: 0;
  color: var(--yr5-hell);
  font-size: 15px;
  line-height: 23px;
  letter-spacing: 0.01em;
}

body.yk .yr5-technik__fuss {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
}

body.yk .yr5-technik .yr5-textlink .elementor-heading-title a {
  color: var(--yl-white);
}

body.yk .yr5-technik .yr5-bildhinweis .elementor-heading-title {
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 1024px) {
  body.yk .yl-sec.yr5-technik {
    padding-block: 56px;
  }

  body.yk .yr5-technik__raster {
    grid-template-columns: minmax(0, 704fr) minmax(0, 480fr);
    column-gap: 64px;
    align-items: stretch;
  }

  /* Foto fuellt die Zeilenhoehe (mindestens 470 px); Ausschnitt bleibt innerhalb der Handlung. */
  body.yk .yr5-technik__bild > .elementor-widget-image,
  body.yk .yr5-technik__foto {
    height: 100%;
  }

  body.yk .yr5-technik__foto img {
    height: 100%;
    min-height: 470px;
    aspect-ratio: auto;
  }

  body.yk .yr5-technik__detail {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  body.yk .yr5-technik__detailbild img {
    width: 144px;
    height: 112px;
  }
}

/* ------------------------------------------------------------ Muster 3: Ablauf */

body.yk .yl-sec.yr5-ablauf {
  padding: var(--yr5-luft) var(--yr5-rand);
  background: var(--yl-white);
}

body.yk .yr5-kopf--mitte {
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
}

body.yk .yr5-kopf--mitte .yr5-titel .elementor-heading-title {
  max-width: 18em;
}

body.yk .yr5-schritte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 36px;
}

body.yk .yr5-schritt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 368px;
  text-align: center;
}

/* Kreisfeld: weisse Scheibe mit 1-px-Ring in Bordeaux, das Foto mit Abstand darin. Der Ring
   ist ein innerer Schatten, damit die Masse von .yr4-orbit fuer die Bahn exakt bleiben. */
body.yk .yr5-ablauf .yr5-schritt__kreis.yr4-orbit {
  --yr4-ring: 1px;
  --yr4-orbit-start: 210;
  --yr4-orbit-dauer: 18;
  display: grid;
  place-items: center;
  width: var(--yr5-kreis);
  height: var(--yr5-kreis);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--yl-white);
  box-shadow: inset 0 0 0 1px var(--yl-brand);
}

body.yk .yr5-ablauf .yr5-schritt--2 .yr4-orbit { --yr4-orbit-phase: 0.0833; }
body.yk .yr5-ablauf .yr5-schritt--3 .yr4-orbit { --yr4-orbit-phase: 0.1667; }

body.yk .yr5-schritt__foto {
  grid-area: 1 / 1;
  width: var(--yr5-foto);
  height: var(--yr5-foto);
}

body.yk .yr5-schritt__foto img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

/* Zahlmarke: Lage ohne Skript bei etwa 10 Uhr; mit Skript setzt r4-interaktionen.js Lage und
   Bewegung inline. Masse hier, Rolle B gibt sie sonst mit !important vor. */
body.yk .yr5-ablauf .yr4-orbit .yr4-orbit__badge {
  left: 6.7%;
  top: 25%;
  width: var(--yr5-marke) !important;
  height: var(--yr5-marke) !important;
  border: 0;
  background: var(--yl-brand);
  box-shadow: 0 0 0 4px var(--yl-white);
  color: var(--yl-white);
}

body.yk .yr5-ablauf .yr4-orbit .yr4-orbit__badge .elementor-heading-title,
body.yk .yr5-ablauf .yr4-orbit .yr4-orbit__number {
  font-family: var(--yl-font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: inherit;
}

body.yk .yr5-schritt__titel .elementor-heading-title {
  margin: 24px 0 0;
  color: var(--yl-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.01em;
}

body.yk .yr5-schritt__text {
  max-width: 30ch;
  margin-top: 8px;
  color: var(--yr5-text);
  font-size: 16px;
  line-height: 25px;
}

body.yk .yr5-ablauf__fuss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  /* Feine Linie nur zwischen den Kreisen: Hintergrund der Reihe von der ersten zur letzten
     Kreismitte (Laenge 2/3 der Breite plus 2/3 des Spaltabstands); die weissen Kreisscheiben
     decken sie, sie laeuft nie durch ein Foto. Spaltabstand bei 1440 px: 72 px. */
  body.yk .yr5-schritte {
    --yr5-spalt: clamp(24px, 5vw, 72px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--yr5-spalt);
    background-image: linear-gradient(rgba(49, 0, 1, 0.42), rgba(49, 0, 1, 0.42));
    background-repeat: no-repeat;
    background-size: calc(200% / 3 + var(--yr5-spalt) * 2 / 3) 1px;
    background-position: 50% calc(var(--yr5-kreis) / 2);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  body.yk .yr5-wahl,
  body.yk .yr5-wahl__titel .elementor-heading-title::before,
  body.yk .yr5-feld,
  body.yk .yr5-feld__link .elementor-heading-title a,
  body.yk .yr5-feld__link .elementor-heading-title a::after,
  body.yk .yr5-textlink .elementor-heading-title a::after {
    transition: none !important;
  }
}

html.yr3-ruhig body.yk .yr5-feld,
html.yr3-ruhig body.yk .yr5-wahl {
  transition: none !important;
}
