/*
 * Module der weiteren Seitentypen (Designkorrektur S0-K, Paket 2):
 * Leistungsdetails, Projekte, Ueber uns, Kontakt, Ablauf, Fragen,
 * Einsatzgebiet und Rechtstexte. Baut auf live.css auf.
 */

/* Zweispalter: Ueberschrift links, Text rechts. */
@media (min-width: 1024px) {
  body.yk .yl-duo > .yl-col--narrow { flex: 0.85 1 0; }
  body.yk .yl-duo > .yl-col--wide { flex: 1.25 1 0; }
  body.yk .yl-duo .yl-text { margin-top: 0; }
}


/* Einstiegskarten mit Haken (Entscheidungshilfe, Zustaende, Themen). */
body.yk .yl-checkcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}

@media (min-width: 700px) {
  body.yk .yl-checkcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  body.yk .yl-checkcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

body.yk .yl-checkcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 28px 28px 76px;
  border: 1px solid var(--yl-line-strong);
  background: var(--yl-white);
  transition: border-color 200ms var(--yl-ease), box-shadow 200ms var(--yl-ease);
}

body.yk .yl-checkcard::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yl-brand);
}

body.yk .yl-checkcard::after {
  content: '';
  position: absolute;
  left: 32px;
  top: 36px;
  width: 16px;
  height: 16px;
  background-color: var(--yl-white);
  -webkit-mask: var(--yl-i-haken) center / contain no-repeat;
  mask: var(--yl-i-haken) center / contain no-repeat;
}

body.yk .yl-checkcard > .yl-checkcard__title,
body.yk .yl-checkcard > .yl-checkcard__text { position: static; }

body.yk .yl-checkcard__title .elementor-heading-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

body.yk .yl-checkcard__title .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}

body.yk .yl-checkcard--link .yl-checkcard__title .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

body.yk .yl-checkcard__text {
  font-size: 15px;
  line-height: 1.7;
}

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

body.yk .yl-checkcard--link .elementor-heading-title a:focus-visible { outline: none !important; }

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-checkcard--link:hover {
    border-color: var(--yl-brand);
    box-shadow: var(--yl-shadow);
  }
}

/* Merkmale als statische Hauskarten. */
body.yk .yl-featgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 24px;
  padding-top: 40px;
}

@media (min-width: 760px) {
  body.yk .yl-featgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

body.yk .yl-svc--static {
  box-shadow: none;
  border: 1px solid var(--yl-line);
}

body.yk .yl-sec--smoke .yl-svc--static { border-color: transparent; }

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-svc--static:hover {
    background-color: var(--yl-white);
    box-shadow: var(--yl-shadow);
  }
  body.yk .yl-svc--static:hover .yl-svc__title .elementor-heading-title { color: var(--yl-ink); }
  body.yk .yl-svc--static:hover .yl-svc__text { color: var(--yl-body); }
  body.yk .yl-svc--static:hover::after { background-image: var(--yl-dots); }
}

/* Einzelner Praxisbeleg. */
body.yk .yl-case__media {
  position: relative;
  isolation: isolate;
  padding: 0 0 32px 32px;
}

body.yk .yl-case__media::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  top: auto;
  width: 64%;
  height: 72%;
  z-index: -1;
  background-color: var(--yl-brand);
  background-image: var(--yl-lattice);
  background-size: 90px 90px;
}

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

/* Verweiskarten. */
body.yk .yl-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  body.yk .yl-links--2,
  body.yk .yl-links--3,
  body.yk .yl-links--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

body.yk .yl-links--stack { grid-template-columns: 1fr !important; }

body.yk .yl-linkcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 28px 72px 28px 28px;
  background: var(--yl-smoke);
  border-bottom: 3px solid transparent;
  transition: border-color 200ms var(--yl-ease), background-color 200ms var(--yl-ease), box-shadow 200ms var(--yl-ease);
}

body.yk .yl-sec--smoke .yl-linkcard { background: var(--yl-white); }

body.yk .yl-linkcard::before {
  content: '';
  position: absolute;
  right: 24px;
  left: auto;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--yl-line-strong);
  background: transparent;
}

body.yk .yl-linkcard::after {
  content: '';
  position: absolute;
  right: 33px;
  top: 33px;
  width: 18px;
  height: 18px;
  background-color: var(--yl-ink);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
}

body.yk .yl-linkcard > .yl-linkcard__title,
body.yk .yl-linkcard > .yl-linkcard__text { position: static; }

body.yk .yl-linkcard__title .elementor-heading-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

body.yk .yl-linkcard__title .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}

body.yk .yl-linkcard__title .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

body.yk .yl-linkcard__text {
  font-size: 15px;
  line-height: 1.65;
}

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

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

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-linkcard:hover {
    border-bottom-color: var(--yl-brand);
    box-shadow: var(--yl-shadow);
  }
  body.yk .yl-linkcard:hover::before {
    background: var(--yl-brand);
    border-color: var(--yl-brand);
  }
  body.yk .yl-linkcard:hover::after { background-color: var(--yl-white); }
}

/* Schritte mit Bildern im Wechsel (Ablauf). */
body.yk .yl-zigzag {
  display: flex;
  flex-direction: column;
  gap: 64px;
  counter-reset: yl-zig;
}

body.yk .yl-zig {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  counter-increment: yl-zig;
}

@media (min-width: 900px) {
  body.yk .yl-zig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  body.yk .yl-zig:nth-child(even) > .yl-zig__img { order: 2; }
}

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

body.yk .yl-zig__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 84px;
}

body.yk .yl-zig__body::before {
  content: counter(yl-zig, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  font-family: var(--yl-font-title);
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--yl-brand);
}

body.yk .yl-zig__title .elementor-heading-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  font-weight: 700;
}

body.yk .yl-zig .yl-more { margin-top: 16px; }

/* Fragen auf Unterseiten: Kopf links haftend. */
@media (min-width: 1024px) {
  body.yk .yl-faq__aside { position: sticky; top: 120px; }
}


/* Bildpaare mit Umschalter. */
body.yk .yl-pairs__switchwrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

body.yk .yl-pairs__switch {
  display: inline-flex;
  gap: 0;
  padding: 6px;
  background: var(--yl-white);
  box-shadow: var(--yl-shadow);
}

body.yk .yl-pairs__switch button {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  background: transparent;
  color: var(--yl-ink);
  font: 700 15px/1 var(--yl-font-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

body.yk .yl-pairs__switch button[aria-pressed='true'] {
  background: var(--yl-brand);
  color: var(--yl-white);
}

body.yk .yl-pairs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 700px) {
  body.yk .yl-pairs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

body.yk .yl-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 6px 0;
  background: var(--yl-white);
}

body.yk .yl-pair > .yl-pair__img {
  position: relative;
  width: auto;
  margin: 0;
}

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

body.yk .yl-pair__img::before {
  content: 'Vorher';
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 6px 10px;
  background: rgba(20, 20, 34, 0.82);
  color: var(--yl-white);
  font: 700 12px/1 var(--yl-font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.yk .yl-pair__img--nachher::before {
  content: 'Nachher';
  background: var(--yl-brand);
}

body.yk .yl-pair--zwischen .yl-pair__img--nachher::before {
  content: 'Während der Arbeit';
}

body.yk .yl-pair > .yl-pair__caption {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  padding: 18px 16px 22px;
}

body.yk .yl-pair__title .elementor-heading-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
}

body.yk .yl-pair__text { font-size: 14px; line-height: 1.6; }

/* Mit Skript: ein Bild je Paar, Umschalter wechselt die Ansicht. */
body.yk .yl-pairs.is-switchable .yl-pair { grid-template-columns: 1fr; }

body.yk .yl-pairs.is-switchable .yl-pair > .yl-pair__img {
  grid-area: 1 / 1;
  transition: opacity 360ms var(--yl-ease);
}

body.yk .yl-pairs.is-switchable .yl-pair__img img { aspect-ratio: 4 / 5; }

body.yk .yl-pairs.is-switchable .yl-pair > .yl-pair__caption { grid-row: 2; }

body.yk .yl-pairs.is-switchable .yl-pair:not(.show-vorher) > .yl-pair__img--vorher,
body.yk .yl-pairs.is-switchable .yl-pair.show-vorher > .yl-pair__img--nachher {
  opacity: 0;
  pointer-events: none;
}

body.yk .yl-pair__toggle {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: var(--yl-white);
  color: var(--yl-ink);
  font: 700 13px/1 var(--yl-font-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(20, 20, 34, 0.18);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-pair__toggle:hover { background: var(--yl-brand); color: var(--yl-white); }
}

@media (prefers-reduced-motion: reduce) {
  body.yk .yl-pairs.is-switchable .yl-pair > .yl-pair__img { transition: none; }
}

/* Ergebnisbilder. */
body.yk .yl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 1024px) {
  body.yk .yl-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  body.yk .yl-gallery__item:nth-child(even) { margin-top: 48px; }
}

body.yk .yl-gallery__item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

body.yk .yl-gallery__title .elementor-heading-title {
  margin: 12px 0 0;
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--yl-ink);
}

/* Kontaktkacheln. */
body.yk .yl-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  body.yk .yl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  body.yk .yl-sec .yl-tiles:not(.yl-tiles--dark) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.yk .yl-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 88px 24px 26px;
  background: var(--yl-smoke);
}

body.yk .yl-tile::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yl-brand);
}

body.yk .yl-tile::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 36px;
  width: 24px;
  height: 24px;
  background-color: var(--yl-white);
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
}

body.yk .yl-tile > .elementor-element { position: static; }

body.yk .yl-tile__label .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yl-brand);
}

body.yk .yl-tile__value .elementor-heading-title {
  margin: 0;
  font-family: var(--yl-font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--yl-ink);
  overflow-wrap: anywhere;
}

body.yk .yl-tile__value .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}

body.yk .yl-tile__value .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

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

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

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-tile:has(a):hover { background: var(--yl-white); box-shadow: var(--yl-shadow); }
}

/* Kacheln auf dunklem Abschluss. */
body.yk .yl-tiles--dark { grid-template-columns: 1fr; }

@media (min-width: 700px) {
  body.yk .yl-tiles--dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.yk .yl-tiles--dark .yl-tile {
  padding: 22px 20px 22px 84px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.yk .yl-tiles--dark .yl-tile::before { left: 20px; top: 22px; }
body.yk .yl-tiles--dark .yl-tile::after { left: 32px; top: 34px; }

body.yk .yl-tiles--dark .yl-tile__label .elementor-heading-title { color: var(--yl-sand); }
body.yk .yl-tiles--dark .yl-tile__value .elementor-heading-title { color: var(--yl-white); font-size: 16px; }

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-tiles--dark .yl-tile:has(a):hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
}

body.yk .yl-request .yl-tiles--dark .yl-tile:has(a:focus-visible) { outline-color: var(--yl-sand); }

/* Rechtstexte: Inhaltsverzeichnis und gut lesbare Spalte. */
body.yk .yl-pagehead--compact {
  padding-block: calc(var(--yl-seitenkopf-y) * 0.75);
}

body.yk .yl-legal__row {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  body.yk .yl-legal--toc .yl-legal__row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
  body.yk .yl-legal__toc { position: sticky; top: 120px; }
}

body.yk .yl-legal__toc {
  padding: 26px 26px 20px;
  background: var(--yl-smoke);
  border-top: 3px solid var(--yl-brand);
}

body.yk .yl-legal__toc-title .elementor-heading-title {
  margin: 0 0 10px;
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yl-brand);
}

body.yk .yl-legal__toc-list ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.5;
}

body.yk .yl-legal__toc-list li { margin: 0 0 8px; }

body.yk .yl-legal__toc-list a { color: var(--yl-ink); }

body.yk .yl-legal__article {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 820px;
}

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

body.yk .yl-legal__text {
  color: var(--yl-body);
  overflow-wrap: anywhere;
}

body.yk .yl-legal__text h3,
body.yk .yl-legal__text h4 {
  margin: 1.4em 0 0.5em;
  font-size: 19px;
}

body.yk .yl-legal__text a { color: var(--yl-brand); }

body.yk .yl-legal__links { padding-left: 1.2em; }

/* Ablaufkarten: vier nebeneinander, bei fuenf oder sechs mittig umbrechend. */
body.yk .yl-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1180px;
}

body.yk .yl-process > .yl-pcard {
  flex: 1 1 100%;
  width: auto;
}

@media (min-width: 700px) {
  body.yk .yl-process > .yl-pcard { flex: 0 1 calc((100% - 30px) / 2); }
}

@media (min-width: 1100px) {
  body.yk .yl-process > .yl-pcard { flex: 0 1 calc((100% - 60px) / 3); }
  body.yk .yl-process--4 { max-width: none; }
  body.yk .yl-process--4 > .yl-pcard { flex: 0 1 calc((100% - 90px) / 4); }
}

/* Mobil: Text und Bild im Seitenkopf enger; der Innenabstand kommt aus --yl-seitenkopf-y. */
@media (max-width: 767px) {
  body.yk .yl-pagehead .yl-row { gap: 36px; }
}

/* Mobil: Kontaktkacheln als Zeilen mit Symbol links. */
@media (max-width: 699px) {
  body.yk .yl-tile {
    padding: 20px 20px 20px 84px;
    min-height: 88px;
    justify-content: center;
  }
  body.yk .yl-tile::before { left: 20px; top: 50%; margin-top: -24px; }
  body.yk .yl-tile::after { left: 32px; top: 50%; margin-top: -12px; }
}

/* Fokus bei Karten mit gestrecktem Verweis: Markierung am Verweis selbst zusaetzlich zum Kartenrahmen. */
body.yk .yl-checkcard__title .elementor-heading-title a:focus-visible,
body.yk .yl-linkcard__title .elementor-heading-title a:focus-visible,
body.yk .yl-tile__value .elementor-heading-title a:focus-visible {
  outline: none !important;
  box-shadow: 0 3px 0 0 currentColor !important;
}

/* Kontaktseite: Formular im Seitenkopf wie auf der Live-Seite, Kontaktwege darunter kompakt. */

@media (min-width: 1024px) {
  body.yk .yl-pagehead--kontakt .yl-row > .yl-formcard { flex: 1.05 1 0; }
}

body.yk .yl-tiles--kompakt {
  margin-top: 40px;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

@media (min-width: 700px) {
  body.yk .yl-tiles--kompakt { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

body.yk .yl-tiles--kompakt .yl-tile {
  padding: 18px 18px 18px 78px;
  min-height: 84px;
  justify-content: center;
  background: var(--yl-white);
}

body.yk .yl-tiles--kompakt .yl-tile::before { left: 18px; top: 50%; margin-top: -22px; width: 44px; height: 44px; }
body.yk .yl-tiles--kompakt .yl-tile::after { left: 29px; top: 50%; margin-top: -11px; width: 22px; height: 22px; }
body.yk .yl-tiles--kompakt .yl-tile__value .elementor-heading-title { font-size: 15px; }

/* ------------------------------------------------------------ Einsatzgebiet OWL (Feinschliff S0-K) */
/*
 * Karte der sieben Regionen (BKG VG250, lokal eingebettet) neben Auswahlliste und
 * Regionsabschnitt. Ohne Skript stehen alle Regionen untereinander; live.js setzt
 * is-bereit und blendet nur die gewaehlte Region ein.
 */

body.yk .yl-owl__buehne {
  display: grid;
  gap: 28px;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  body.yk .yl-owl__buehne {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 56px;
  }
}

body.yk .yl-owl-karte {
  margin: 0;
}

body.yk .yl-owl-karte__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 720px);
  margin-inline: auto;
  overflow: visible;
}

body.yk .yl-owl-karte__flaeche {
  fill: #e3d8ce;
  stroke: var(--yl-white);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 260ms var(--yl-ease);
}

body.yk .yl-owl.is-bereit .yl-owl-karte__flaeche {
  cursor: pointer;
}

body.yk .yl-owl-karte__flaeche.is-zeiger {
  fill: #d3c0b1;
}

body.yk .yl-owl-karte__flaeche.is-aktiv {
  fill: var(--yl-brand);
}

body.yk .yl-owl-karte__flaeche.is-aktiv.is-zeiger {
  fill: var(--yl-brand-2);
}

body.yk .yl-owl-karte__name {
  fill: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: 19px;
  font-weight: 700;
  pointer-events: none;
  transition: fill 260ms var(--yl-ease);
}

body.yk .yl-owl-karte__name.is-aktiv {
  fill: var(--yl-white);
}

/* Mobil wird die Karte kleiner gezeichnet; die Namen bleiben lesbar. */
@media (max-width: 767px) {
  body.yk .yl-owl-karte__name {
    font-size: 27px;
  }
}

body.yk .yl-owl__quelle p {
  margin: 14px 0 0;
  color: var(--yl-body);
  font-size: 13px;
  line-height: 1.55;
}

body.yk .yl-owl__quelle a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Auswahl */
body.yk .yl-owl__panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.yk .yl-owl__wahl-titel .elementor-heading-title {
  margin: 0 0 12px;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.yk .yl-owl__wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.yk .yl-owl__wahl li {
  margin: 0;
}

body.yk .yl-owl__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--yl-line-strong);
  border-radius: var(--yl-radius);
  background: var(--yl-white);
  color: var(--yl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

body.yk .yl-owl__chip.is-zeiger {
  border-color: var(--yl-brand);
  color: var(--yl-brand);
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-owl__chip:hover {
    border-color: var(--yl-brand);
    color: var(--yl-brand);
    text-decoration: none;
  }
}

body.yk .yl-owl__chip.is-aktiv,
body.yk .yl-owl__chip.is-aktiv:hover {
  border-color: var(--yl-brand);
  background: var(--yl-brand);
  color: var(--yl-white);
}

body.yk .yl-owl__chip:focus-visible {
  outline: 3px solid var(--yl-brand);
  outline-offset: 2px;
}

/* Regionen */
body.yk .yl-owl__regionen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.yk .yl-owl__region {
  gap: 14px;
  padding: 28px 28px 30px;
  border-top: 3px solid var(--yl-brand);
  background: var(--yl-white);
  box-shadow: var(--yl-shadow);
}

body.yk .yl-owl__region[hidden] {
  display: none !important;
}

body.yk .yl-owl__region-title .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: clamp(22px, 1vw + 16px, 28px);
  font-weight: 700;
  line-height: 1.25;
}

body.yk .yl-owl__orte-titel {
  margin: 0 0 8px;
  color: var(--yl-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.yk .yl-owl__orte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.yk .yl-owl__orte li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px 6px 10px;
  background: var(--yl-smoke);
  color: var(--yl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

body.yk .yl-owl__orte li::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: none;
  background-color: var(--yl-brand);
  -webkit-mask: var(--yl-i-pin) center / contain no-repeat;
  mask: var(--yl-i-pin) center / contain no-repeat;
}

body.yk .yl-owl__region-text p {
  margin: 0;
}

body.yk .yl-owl__region .yl-actions {
  margin-top: 6px;
}

body.yk .yl-owl__unterschrift p {
  margin: 0;
  color: var(--yl-body);
  font-size: 15px;
}

@keyframes yl-owl-ein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

body.yk .yl-owl.is-bereit .yl-owl__region:not([hidden]) {
  animation: yl-owl-ein 320ms var(--yl-ease);
}

@media (prefers-reduced-motion: reduce) {
  body.yk .yl-owl-karte__flaeche,
  body.yk .yl-owl-karte__name,
  body.yk .yl-owl__chip {
    transition: none;
  }

  body.yk .yl-owl.is-bereit .yl-owl__region:not([hidden]) {
    animation: none;
  }
}

/* Auswahl- und Ortslisten stehen in Textbausteinen; die Listenregel fuer
   Redaktionstext (base.css: Einzug, Abstand, Textbreite) gilt hier nicht. */
body.yk .yl-owl .elementor-widget-text-editor .yl-owl__wahl,
body.yk .yl-owl .elementor-widget-text-editor .yl-owl__orte {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.yk .yl-owl .elementor-widget-text-editor .yl-owl__wahl li,
body.yk .yl-owl .elementor-widget-text-editor .yl-owl__orte li {
  margin: 0;
}

body.yk .yl-owl .yl-owl__wahl li {
  display: flex;
}

/* Die Stadt Bielefeld ist eine kleine Flaeche; der Name bleibt darin. */
body.yk .yl-owl-karte__name[data-owl-region="bielefeld"] {
  font-size: 16px;
}

@media (max-width: 767px) {
  body.yk .yl-owl-karte__name[data-owl-region="bielefeld"] {
    font-size: 23px;
  }
}

/* ------------------------------------------------------------ Einsatzgebiet: angrenzendes Niedersachsen (R2/A) */
/*
 * Die neun Orte stehen als amtliche Gemeindegebiete mit Lagepunkt neben OWL.
 * Niedersachsen selbst wird nicht eingefaerbt. Gewaehlt wird wie bei OWL ueber
 * die Liste; Zeiger und Tastaturfokus heben Liste und Karte gemeinsam hervor.
 */

body.yk .yl-owl-karte__gemeinde {
  fill: var(--yl-white);
  stroke: #b9a393;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 260ms var(--yl-ease), stroke 260ms var(--yl-ease);
}

body.yk .yl-owl.is-bereit .yl-owl-karte__gemeinde,
body.yk .yl-owl.is-bereit .yl-owl-karte__punkt {
  cursor: pointer;
}

body.yk .yl-owl-karte__gemeinde.is-zeiger {
  fill: #f1e6dc;
  stroke: var(--yl-brand);
}

body.yk .yl-owl-karte__gemeinde.is-aktiv {
  fill: var(--yl-brand);
  stroke: var(--yl-white);
}

body.yk .yl-owl-karte__gemeinde.is-aktiv.is-zeiger {
  fill: var(--yl-brand-2);
}

/* Lagepunkt: Einsatzort, bewusst kein Standortsymbol. */
body.yk .yl-owl-karte__punkt {
  fill: var(--yl-brand);
  stroke: var(--yl-white);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 260ms var(--yl-ease), fill 260ms var(--yl-ease);
}

body.yk .yl-owl-karte__punkt.is-aktiv {
  fill: var(--yl-white);
  stroke: var(--yl-brand);
  stroke-width: 2;
  transform: scale(1.35);
}

body.yk .yl-owl-karte__punkt.is-zeiger {
  transform: scale(1.35);
}

/* Orts- und Gruppennamen mit Hof in Seitenfarbe, damit sie ueber Flaechen lesbar bleiben. */
body.yk .yl-owl-karte__ortsname,
body.yk .yl-owl-karte__gruppe {
  paint-order: stroke;
  stroke: var(--yl-smoke);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: opacity 260ms var(--yl-ease), fill 260ms var(--yl-ease);
}

body.yk .yl-owl-karte__ortsname {
  fill: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 15px;
  font-weight: 600;
}

body.yk .yl-owl-karte__gruppe {
  fill: var(--yl-brand);
  font-family: var(--yl-font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Unter 1024 px: Karte kleiner, Ortsnamen groesser gezeichnet und nur fuer die
   gewaehlte oder ueberfahrene Gruppe; Gruppennamen entfallen, sie stehen in der
   Auswahl darunter. Die Orte stehen immer als Text in der Liste. */
@media (max-width: 1023px) {
  body.yk .yl-owl-karte__ortsname { font-size: 21px; stroke-width: 5px; }
  body.yk .yl-owl-karte__gruppe { display: none; }
  body.yk .yl-owl.is-bereit .yl-owl-karte__ortsname { opacity: 0; }
  body.yk .yl-owl.is-bereit .yl-owl-karte__ortsname.is-aktiv,
  body.yk .yl-owl.is-bereit .yl-owl-karte__ortsname.is-zeiger { opacity: 1; }
}

/* Legende unter der Karte, aus derselben Datenquelle. */
body.yk .yl-owl .elementor-widget-text-editor .yl-owl__legende,
body.yk .yl-owl__legende {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body.yk .yl-owl .elementor-widget-text-editor .yl-owl__legende li,
body.yk .yl-owl__legende li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--yl-ink);
  font-size: 14px;
  line-height: 1.45;
}

body.yk .yl-owl__legende li::before {
  content: '';
  width: 20px;
  height: 14px;
  flex: none;
  background: #e3d8ce;
  box-shadow: inset 0 0 0 1px #d3c0b1;
}

body.yk .yl-owl__legende .yl-owl__legende-ort::before {
  background: radial-gradient(circle at center, var(--yl-brand) 0 3.5px, var(--yl-white) 4px 5px, transparent 5.5px), var(--yl-white);
  box-shadow: inset 0 0 0 1px #b9a393;
}

/* Auswahl in zwei Gruppen: OWL und angrenzendes Niedersachsen. */
body.yk .yl-owl .yl-owl__wahl-gruppe {
  margin: 0 0 8px;
  color: var(--yl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body.yk .yl-owl .yl-owl__wahl + .yl-owl__wahl-gruppe {
  margin-top: 16px;
}

/* Abschnitt einer Nachbargruppe: Kreis und Land als ruhige Zeile unter dem Titel. */
body.yk .yl-owl__region-meta p {
  margin: -6px 0 0;
  color: var(--yl-body);
  font-size: 14px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  body.yk .yl-owl-karte__gemeinde,
  body.yk .yl-owl-karte__punkt,
  body.yk .yl-owl-karte__ortsname,
  body.yk .yl-owl-karte__gruppe {
    transition: none;
  }
}

/* ------------------------------------------------------------ Social-Abschnitt (R2/A) */
/*
 * Aussenraum fuer [yakobs_tiktok] auf /projekte/. Die Komponente von B (aeusserste Klasse
 * .yr2-tiktok) gestaltet Karten, Zustaende, Einwilligung und Profilverweis selbst. Hier nur
 * Abstand, Breite und Typografie; die Variablen stehen der Komponente zur Verfuegung:
 *   --yr2-tiktok-max     Buehnenbreite fuer bis zu drei 9:16-Karten (3 x 325 px plus Abstaende)
 *   --yr2-tiktok-karte   empfohlene Kartenbreite; 325 px ist die kleinste Breite des
 *                        offiziellen TikTok-Einbettungsplayers
 *   --yr2-tiktok-gap     Abstand zwischen Karten (Takt Gruppe)
 *   --yr2-tiktok-radius  Kantenradius wie Knoepfe
 *   --yr2-tiktok-akzent  Markenfarbe fuer Handlung und Fokus
 *   --yr2-tiktok-linie   feine Linie wie auf hellen Karten
 */
body.yk .yl-einblicke__buehne {
  --yr2-tiktok-max: 1023px;
  --yr2-tiktok-karte: 325px;
  --yr2-tiktok-gap: var(--yl-takt-gruppe);
  --yr2-tiktok-radius: var(--yl-radius);
  --yr2-tiktok-akzent: var(--yl-brand);
  --yr2-tiktok-linie: var(--yl-line-strong);
  width: 100%;
  max-width: var(--yr2-tiktok-max);
  margin: 0 auto;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 16px;
  line-height: 1.7;
}

body.yk .yl-einblicke__buehne .yr2-tiktok {
  width: 100%;
}

body.yk .yl-einblicke__buehne .yr2-tiktok :is(h2, h3, h4) {
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
}

/* Ablaufkarten nebeneinander: Elementor-Container stehen von Haus aus in
   Spaltenrichtung, dadurch lagen die Karten bisher untereinander. */
body.yk .yl-process {
  flex-direction: row;
  gap: 40px 30px;
  margin-inline: auto;
}

/* Gleicher Hintergrund hintereinander: knapper Anschluss statt doppelter
   Leerflaeche (Klasse aus A/scripts/s0k/seiten.mjs). */
body.yk .yl-sec.yl-sec--anschluss {
  padding-top: calc(var(--yl-space) * 0.3);
}

/* ------------------------------------------------------------ Formular Feinschliff (S0-K) */

/* Hilfetexte in voller Zeilenbreite: text-wrap pretty aus base.css machte kurze
   Hinweise schmal und flatternd. */
body.yk .yl-formcard .wpcf7 p,
body.yk .yl-formcard .wpcf7 .yk-form__hint {
  text-wrap: wrap;
}

body.yk .yl-formcard .yk-form__hinweis {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
}

body.yk .yl-formcard .yk-form__hint {
  display: block;
  margin-top: 8px;
  color: var(--yl-body);
  font-size: 14px;
  line-height: 1.55;
}

body.yk .yl-formcard__lead {
  margin: 0 0 18px;
}

body.yk .yl-formcard__lead p {
  margin: 0;
  color: var(--yl-body);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: wrap;
}

/* Gruppen (Rueckkanal, Fotos) buendig mit den uebrigen Feldern. */
body.yk .yl-formcard .yk-form__gruppe {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

body.yk .yl-formcard .yk-form__gruppe > legend {
  padding: 0;
}

body.yk .yl-formcard .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 6px;
}

body.yk .yl-formcard .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

body.yk .yl-formcard .wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-weight: 400;
  cursor: pointer;
}

body.yk .yl-formcard .wpcf7-radio input[type='radio'],
body.yk .yl-formcard .wpcf7-acceptance input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--yl-brand);
}

body.yk .yl-formcard .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

body.yk .yl-formcard .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  cursor: pointer;
}

body.yk .yl-formcard .wpcf7-acceptance input[type='checkbox'] {
  margin-top: 3px;
}

/* Fotos: gestaltete Dateiauswahl. Das native Feld bleibt das Bedienelement
   (Tastatur, Screenreader, Upload von Contact Form 7 unveraendert); live.js
   ergaenzt nach einer Auswahl "Entfernen". */
body.yk .yl-formcard .yk-form__gruppe .yk-form__feld {
  margin-bottom: 12px;
}

body.yk .yl-formcard .yk-form__gruppe .yk-form__label[for^='yk-foto'] {
  margin-bottom: 6px;
  color: var(--yl-ink);
  font-size: 14px;
  font-weight: 600;
}

body.yk .yl-datei {
  display: block;
}

body.yk .yl-formcard .wpcf7 input[type='file'] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 7px;
  border: 1px dashed var(--yl-line-strong);
  border-radius: var(--yl-radius);
  background: var(--yl-smoke);
  color: var(--yl-body);
  font: 400 15px/1.4 var(--yl-font-body);
  cursor: pointer;
}

body.yk .yl-formcard .wpcf7 input[type='file']::file-selector-button {
  min-height: 40px;
  margin-right: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--yl-radius);
  background: var(--yl-ink);
  color: var(--yl-white);
  font: 700 13px/1 var(--yl-font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-formcard .wpcf7 input[type='file']:hover::file-selector-button {
    background: var(--yl-brand);
  }
}

body.yk .yl-formcard .wpcf7 input[type='file']:focus-visible {
  border-color: var(--yl-brand);
  outline: 3px solid rgba(49, 0, 1, 0.25) !important;
  outline-offset: 0;
}

body.yk .yl-datei.is-gewaehlt input[type='file'] {
  border-style: solid;
  border-color: var(--yl-brand);
  background: var(--yl-white);
  color: var(--yl-ink);
}

/* Zeile unter dem Feld: gewaehlte Datei mit Groesse und Entfernen. */
body.yk .yl-datei__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  margin-top: 6px;
}

body.yk .yl-datei__info[hidden] {
  display: none;
}

body.yk .yl-datei__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--yl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.yk .yl-datei__name::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  background-color: var(--yl-brand);
  -webkit-mask: var(--yl-i-haken) center / contain no-repeat;
  mask: var(--yl-i-haken) center / contain no-repeat;
}

body.yk .yl-datei__weg {
  min-height: 40px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--yl-brand);
  font: 600 14px/1 var(--yl-font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yl-datei__weg:hover {
    color: var(--yl-ink);
  }
}

body.yk .yl-datei__weg:focus-visible {
  outline: 3px solid var(--yl-brand);
  outline-offset: 2px;
}

/* Kontakt am Desktop: Einleitung und Kontaktwege bleiben neben dem langen
   Formular im Blick, statt eine leere Spalte zu hinterlassen. */
@media (min-width: 1024px) {
  body.yk .yl-pagehead--kontakt .yl-row {
    align-items: flex-start;
  }

  body.yk .yl-pagehead--kontakt .yl-row > .yl-col:first-child {
    position: sticky;
    top: calc(var(--yl-kopf-h) + 32px);
    align-self: flex-start;
  }
}

/* ============================================================ R3/A Leistungsseiten
   Nutzerauftrag R3, Punkt 7: je Leistung eigene Bildsignatur, kurze Abschnitte, Ablauf als
   Zeitleiste, Hinweise statt Textwand. Bausteine aus A/scripts/s0k/seiten.mjs (Feld layout). */

/* ------------------------------------------------------------ Seitenkopf der Leistungen */

/* Groesseres Handwerksbild im Kopf: Bildspalte fast halb, Bild etwas hoeher. */
@media (min-width: 1024px) {
  body.yk .yl-pagehead--leistung .yl-row > .yl-pagehead__media { flex: 1 1 0; }
  body.yk .yl-pagehead--leistung .yl-row > .yl-col--wide { flex: 1.05 1 0; }
  body.yk .yl-pagehead--leistung .yl-pagehead__img img { aspect-ratio: 5 / 4; }
}

/* ------------------------------------------------------------ Typische Aufgaben */

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

@media (min-width: 640px) {
  body.yk .yl-aufgaben__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  body.yk .yl-aufgaben__raster--6,
  body.yk .yl-aufgaben__raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.yk .yl-aufgabe {
  position: relative;
  padding-top: 18px;
}

/* Fugenlinie als Merkmal (lange und versetzte kurze Linie wie die Vorzeile). */
body.yk .yl-aufgabe::before,
body.yk .yl-ort::before,
body.yk .yl-pruefpunkt::before,
body.yk .yl-verfahren__weg::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 9px;
  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;
}

body.yk .yl-aufgabe__titel .elementor-heading-title,
body.yk .yl-ort__titel .elementor-heading-title,
body.yk .yl-pruefpunkt__titel .elementor-heading-title,
body.yk .yl-hinweis__titel .elementor-heading-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

body.yk .yl-aufgabe__text,
body.yk .yl-ort__text,
body.yk .yl-pruefpunkt__text,
body.yk .yl-hinweis__text {
  font-size: 15px;
  line-height: 1.65;
}

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

/* ------------------------------------------------------------ Bild und Text */

body.yk .yl-bildtext .yl-about__img img {
  aspect-ratio: 5 / 4;
  object-position: 45% 50%;
}

@media (min-width: 1024px) {
  body.yk .yl-bildtext .yl-row > .yl-about__media { flex: 0.95 1 0; }
}

/* Symbolbild 5896: linker Bildteil mit Hand und Kelle (wie auf der Startseite). */
body.yk .yl-bildtext .wp-image-5896 { object-position: 8% 50%; }

/* ------------------------------------------------------------ Ablauf als Zeitleiste */

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

body.yk .yl-zeitleiste__kopf .yl-more { margin-top: 20px; }

body.yk .yl-zeitleiste__liste {
  position: relative;
  counter-reset: yl-zeit;
}

/* Senkrechte Fuge hinter den Nummern. */
body.yk .yl-zeitleiste__liste::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--yl-line-strong);
}

body.yk .yl-zeit {
  position: relative;
  min-height: 48px;
  padding: 0 0 36px 76px;
  counter-increment: yl-zeit;
}

body.yk .yl-zeit:last-child { padding-bottom: 0; }

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

/* Aktueller Schritt, falls das Skript von B ihn markiert (is-aktiv oder aria-current). */
body.yk .yl-zeit.is-aktiv::before,
body.yk .yl-zeit[aria-current]::before {
  background: var(--yl-brand);
}

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

body.yk .yl-zeit__text {
  max-width: 56ch;
}

/* ------------------------------------------------------------ Hinweise */

body.yk .yl-hinweise__flaeche {
  width: 100%;
  padding: 36px 24px;
  border-left: 4px solid var(--yl-brand);
  background: var(--yl-white);
}

@media (min-width: 768px) {
  body.yk .yl-hinweise__flaeche { padding: 44px 48px; }
}

body.yk .yl-hinweise__kopf .elementor-heading-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 1vw + 17px, 30px);
  font-weight: 700;
}

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

@media (min-width: 768px) {
  body.yk .yl-hinweise__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  body.yk .yl-hinweise__raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.yk .yl-hinweise__raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
}

/* ------------------------------------------------------------ Verfahren */

body.yk .yl-verfahren__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  body.yk .yl-verfahren__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

body.yk .yl-verfahren__weg {
  position: relative;
  padding: 44px 28px 32px;
  background: var(--yl-white);
}

body.yk .yl-verfahren__weg::before {
  left: 28px;
  top: 24px;
}

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

body.yk .yl-verfahren__weg__text {
  font-size: 15px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ Vergleich */

body.yk .yl-vergleich__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  body.yk .yl-vergleich__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

body.yk .yl-vergleich__spalte {
  padding: 32px 28px;
  border-top: 4px solid var(--yl-brand);
  background: var(--yl-smoke);
}

body.yk .yl-vergleich__spalte--grenze {
  border-top-color: var(--yl-ink);
}

body.yk .yl-vergleich__titel .elementor-heading-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

body.yk .yl-vergleich__liste ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.yk .yl-vergleich__liste li {
  position: relative;
  padding-left: 34px;
  color: var(--yl-ink);
  line-height: 1.6;
}

body.yk .yl-vergleich__liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--yl-brand);
  -webkit-mask: var(--yl-i-haken) center / contain no-repeat;
  mask: var(--yl-i-haken) center / contain no-repeat;
}

body.yk .yl-vergleich__spalte--grenze li::before {
  background-color: var(--yl-ink);
  -webkit-mask-image: var(--yl-i-minus);
  mask-image: var(--yl-i-minus);
}

/* ------------------------------------------------------------ Orte (Anschlussfugen) */

body.yk .yl-orte__img img {
  display: block;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: 50% 45%;
}

body.yk .yl-orte__liste {
  display: grid;
  gap: 24px;
  margin-top: var(--yl-takt-aktion);
}

body.yk .yl-ort,
body.yk .yl-pruefpunkt {
  position: relative;
  padding-top: 18px;
}

/* ------------------------------------------------------------ Pruefliste (Sandstrahlen) */

body.yk .yl-pruefliste__liste {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  body.yk .yl-pruefliste__liste { padding-top: 8px; }
}

/* ------------------------------------------------------------ Bildpaare auf Leistungsseiten */

/* Zwei Paare je Leistung: zweispaltig und mittig statt einer halb leeren Dreierreihe. */
@media (min-width: 700px) {
  body.yk .yl-pairs--leistung .yl-pairs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin-inline: auto;
  }
}

/* Schmale Bildschirme: lange Komposita im Seitentitel (Klinkerimpraegnierung) trennen
   sauber nach Silben statt vor dem Doppelpunkt umzubrechen. */
@media (max-width: 479px) {
  body.yk .yl-pagehead .yl-title .elementor-heading-title {
    font-size: 28px;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
