/*
 * R6/A (Rolle A, 01.10.2026): Startseite und Leistungsuebersicht nach der angenommenen
 * R5-Richtung (koordination/R6/A_AUFTRAG.md) und Einsatzgebiete im Hauptmenue.
 *
 * Grenzen: Klassen .yr6-* der Startseite und der Leistungsuebersicht, das Leistungsfenster
 * ausserhalb der Startseite (.yr6-fenster--seite) und die Gruppen im Untermenue des Kopfs
 * (.yk-nav__gruppe*). Keine Regeln fuer Einstieg, Logo, Stickygroesse, den Grundaufbau des
 * Mobil-Drawers, Fuss oder Formular. Baut auf r5-muster.css auf (Werte --yr5-*, Titel
 * .yr5-titel, Textverweis .yr5-textlink); Laden nach r5-muster.css. Symbole sind die
 * unveraenderten Tabler-Dateien aus live-icons.css (--yl-icon), als Maske an Ueberschriften,
 * nie an .e-con::before (Elementor nutzt es fuer Hintergruende).
 */

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

body.yk {
  --yr6-hell-linie: rgba(255, 255, 255, 0.16);
  --yr6-ziel: 44px;
  --yr6-nr: 40px;
}

/* Innenbreite der neuen Abschnitte wie die R5-Muster (Raster 1290 px). */
body.yk .yl-sec.yr6-ergebnis > .e-con-inner,
body.yk .yl-sec.yr6-gebiet > .e-con-inner,
body.yk .yl-sec.yr6-zustand-abschnitt > .e-con-inner,
body.yk .yl-sec.yr6-verbindet > .e-con-inner {
  width: 100%;
  max-width: var(--yr5-inhalt);
  margin-inline: auto;
}

/* Absaetze in Textwidgets ohne eigene Aussenabstaende; den Takt setzt das Raster. */
body.yk .elementor-widget-text-editor[class*='yr6-'] p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------ Startseite: Erfahrung und Betrieb */

/* Bordeauxkapitel Teil 1. Die Zahlen bleiben unveraendert (R4); darunter steht der Satz zum
   Betrieb aus dem entfallenen Materialband mit dem Verweis Ueber uns. Mobil untereinander. */
body.yk .yr6-erfahrung__betrieb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--yr6-hell-linie);
}

body.yk .yr6-erfahrung__text {
  max-width: 54ch;
  margin: 0;
  color: var(--yr5-hell);
  font-size: var(--yr5-fliess);
  line-height: calc(var(--yr5-fliess-zeile) + 1px);
  letter-spacing: 0.01em;
}

body.yk .yr6-erfahrung__text p {
  margin: 0;
}

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

body.yk .yr6-erfahrung .yr5-textlink .elementor-heading-title a:focus-visible {
  outline-color: var(--yl-sand);
}

@media (min-width: 1024px) {
  body.yk .yr6-erfahrung .yr4-erfahrung__band {
    grid-template-areas:
      'seit zahlen'
      'seit betrieb';
    align-items: start;
    row-gap: 36px;
  }

  body.yk .yr6-erfahrung__betrieb {
    grid-area: betrieb;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-top: 28px;
  }

  body.yk .yr6-erfahrung__betrieb > .yr5-textlink {
    flex: 0 0 auto;
  }
}

/* ------------------------------------------------------------ Startseite: Erprobte Fugentechnik */

/* Ohne das kleine Fugendetail bilden Zeile, Titel, Absatz, Aussagen und Verweis eine Gruppe
   mittig zur Bildhoehe; die Aussagen tragen die Werkstattleiste zwischen zwei feinen Linien. */
@media (min-width: 1024px) {
  body.yk .yr6-technik .yr5-technik__inhalt {
    justify-content: center;
    padding-block: 8px;
  }

  body.yk .yr6-technik .yr5-aussagen {
    margin-top: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--yr5-hell-linie);
  }

  body.yk .yr6-technik .yr5-technik__fuss {
    margin-top: 20px;
  }
}

@media (min-width: 1200px) {
  body.yk .yr6-technik .yr5-technik__foto img {
    min-height: 520px;
  }
}

/* ------------------------------------------------------------ Startseite: Ergebnis (echtes Paar) */

body.yk .yl-sec.yr6-ergebnis {
  padding: var(--yr5-luft) var(--yr5-rand);
  background: var(--yl-smoke);
}

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

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

body.yk .yr6-ergebnis__absatz {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--yr5-text);
  font-size: var(--yr5-fliess);
  line-height: var(--yr5-fliess-zeile);
}

body.yk .yr6-vergleich {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--yr5-linie);
}

body.yk .yr6-vergleich__zeile {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--yr5-linie);
}

body.yk .yr6-vergleich__titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

body.yk .yr6-vergleich__zeile--nachher .yr6-vergleich__titel .elementor-heading-title {
  color: var(--yl-brand);
}

body.yk .yr6-vergleich__text {
  margin: 0;
  color: var(--yr5-text);
  font-size: 16px;
  line-height: 25px;
}

body.yk .yr6-ergebnis__text > .yr5-textlink {
  margin-top: 20px;
}

/* Zwei Aufnahmen derselben Flaeche auf gleicher Hoehe, Bezeichnung darunter. */
body.yk .yr6-paar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

body.yk .yr6-paar__bild {
  min-width: 0;
}

body.yk .yr6-paar__img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 62%;
  background: var(--yr5-stein);
}

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

body.yk .yr6-paar__bild--nachher .yr6-paar__label .elementor-heading-title {
  color: var(--yl-brand);
}

@media (min-width: 1024px) {
  body.yk .yr6-ergebnis__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: center;
  }
}

/* ------------------------------------------------------------ Startseite: Einsatzgebiet */

/* Kopf, Karte und Ortsgruppen. Mobil in Dokumentreihenfolge untereinander, am Desktop die
   Karte links ueber die Hoehe von Kopf und Gruppen (Wechsel zu den Stimmen davor, Text links).
   Dieselbe Karte wie /einsatzgebiet/; Grundfarben aus live-seiten.css, hier nur Groesse und
   Hervorhebung. Ortsgruppen nach der Referenzstruktur: Gruppenname, darunter Ortsverweise. */
body.yk .yl-sec.yr6-gebiet {
  padding: var(--yr5-luft) var(--yr5-rand);
  background: var(--yl-white);
}

body.yk .yr6-gebiet__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'kopf'
    'karte'
    'auswahl';
  gap: 28px;
}

body.yk .yr6-gebiet__kopf { grid-area: kopf; min-width: 0; }
body.yk .yr6-gebiet__karte { grid-area: karte; min-width: 0; }
body.yk .yr6-gebiet__auswahl { grid-area: auswahl; min-width: 0; }

body.yk .yr6-gebiet__lead {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--yr5-text);
  font-size: var(--yr5-fliess);
  line-height: var(--yr5-fliess-zeile);
}

body.yk .yr6-gebiet__karte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 16px 16px 14px;
  background: var(--yr5-warm);
}

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

body.yk .yr6-gebiet__karte .yl-owl-karte__svg {
  max-height: 440px;
}

/* Kleine Darstellung: Ortsnamen in Niedersachsen entfallen, die Liste nennt alle Gebiete. */
@media (max-width: 1023px) {
  body.yk .yr6-gebiet .yl-owl-karte__ortsname {
    display: none;
  }
}

body.yk .yr6-gebiet__quelle {
  margin: 12px 0 0;
  color: var(--yl-body);
  font-size: 13px;
  line-height: 1.5;
}

body.yk .yr6-gebiet__quelle a {
  color: inherit;
  text-underline-offset: 3px;
}

body.yk .yr6-gebiet__auswahl {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.yk .yr6-gebiet__gruppenbox {
  --yl-icon: var(--yl-i-pfeil);
  margin: 0;
}

body.yk .yr6-gebiet__gruppe {
  margin: 0 0 8px;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

/* Gegen die allgemeinen Listenregeln der Textwidgets (Einzug 20 px, 8 px je Eintrag). */
body.yk .yr6-gebiet .yr6-gebiet__liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--yr5-linie);
}

body.yk .yr6-gebiet .yr6-gebiet__gruppenbox--nds .yr6-gebiet__liste {
  grid-template-columns: minmax(0, 1fr);
}

body.yk .yr6-gebiet .yr6-gebiet__liste > li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--yr5-linie);
}

body.yk .yr6-gebiet .yr6-gebiet__liste > li::before {
  content: none;
}

body.yk .yr6-gebiet__liste a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--yr6-ziel);
  padding: 10px 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: color var(--yr5-dauer) var(--yr5-kurve);
}

body.yk .yr6-gebiet__liste a::after {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  opacity: 0.35;
  -webkit-mask: var(--yl-icon) center / contain no-repeat;
  mask: var(--yl-icon) center / contain no-repeat;
  transition: opacity var(--yr5-dauer) var(--yr5-kurve), transform var(--yr5-dauer) var(--yr5-kurve);
}

/* Zeiger, Fokus und die Kopplung aus der Karte (is-zeiger, r6-a.js) sehen gleich aus. */
body.yk .yr6-gebiet__liste a.is-zeiger,
body.yk .yr6-gebiet__liste a:focus-visible {
  color: var(--yl-brand);
}

body.yk .yr6-gebiet__liste a.is-zeiger::after,
body.yk .yr6-gebiet__liste a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px);
}

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

@media (hover: hover) and (pointer: fine) {
  body.yk .yr6-gebiet__liste a:hover { color: var(--yl-brand); }
  body.yk .yr6-gebiet__liste a:hover::after { opacity: 1; transform: translateX(3px); }
}

body.yk .yr6-gebiet__auswahl > .yr5-textlink {
  margin-top: 4px;
}

/* Hervorhebung in der Karte: dieselbe Bordeauxflaeche wie die gewaehlte Region auf der
   Gebietsseite. Klickbar sind die Flaechen erst mit Skript (is-bereit). */
body.yk .yr6-gebiet .yl-owl-karte__flaeche.is-zeiger,
body.yk .yr6-gebiet .yl-owl-karte__gemeinde.is-zeiger {
  fill: var(--yl-brand);
  stroke: var(--yl-white);
}

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

body.yk .yr6-gebiet .yl-owl-karte__punkt.is-zeiger {
  fill: var(--yl-white);
  stroke: var(--yl-brand);
}

body.yk .yr6-gebiet .yl-owl-karte__ortsname.is-zeiger {
  fill: var(--yl-brand);
}

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

@media (min-width: 1024px) {
  body.yk .yr6-gebiet__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'karte kopf'
      'karte auswahl';
    column-gap: 72px;
    row-gap: 32px;
  }

  body.yk .yr6-gebiet__karte {
    padding: 24px 24px 16px;
  }
}

@media (min-width: 1200px) {
  /* Ostwestfalen-Lippe in zwei Spalten, daneben das angrenzende Niedersachsen (Gruppenname
     einzeilig, damit beide Listen auf derselben Linie beginnen). Darunter untereinander. */
  body.yk .yr6-gebiet__auswahl {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-content: start;
    column-gap: 32px;
    row-gap: 24px;
  }

  body.yk .yr6-gebiet__auswahl > .yr5-textlink {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

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

/* Neues Beratungsmotiv (zwei Fugenmuster, zeigende Hand): Ausschnitt so, dass beide Muster
   und die Hand im 4:5-Bild bleiben. */
body.yk .yr6-fragen .yr4-faq__img img {
  object-position: 40% 55%;
}

/* ------------------------------------------------------------ Leistungen: Seitenkopf */

body.yk .yr6-kopf .yl-pagehead__img img {
  object-position: 45% 55%;
}

/* ------------------------------------------------------------ Leistungen: Leistungsfenster */

/* Auf der Leistungsuebersicht folgt das Fenster dem Seitenkopf: keine Ueberlappung, keine
   seitliche Verbreiterung der weissen Flaeche. Aufbau und Bedienung wie auf der Startseite. */
body.yk .yl-sec.yr5-leistungen.yr6-fenster--seite {
  margin-top: 0;
  padding: var(--yr5-luft) var(--yr5-rand);
  background: var(--yl-white);
}

body.yk .yl-sec.yr5-leistungen.yr6-fenster--seite > .e-con-inner {
  padding-top: 0;
}

@media (min-width: 1024px) {
  body.yk .yl-sec.yr5-leistungen.yr6-fenster--seite > .e-con-inner::before {
    content: none;
  }
}

/* ------------------------------------------------------------ Leistungen: Zustandsliste */

/* Sechs Befunde in drei Bereichen. Je Zeile Befund, Leistung und ein Satz; der Verweis auf
   die Leistung ist die Klickflaeche der ganzen Zeile. Keine Karten, feine Linien. */
body.yk .yl-sec.yr6-zustand-abschnitt {
  padding: var(--yr5-luft) var(--yr5-rand);
  background: var(--yr5-warm);
}

body.yk .yr6-zustaende {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--yr5-stein);
}

body.yk .yr6-zustand-gruppe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--yr5-stein);
}

body.yk .yr6-zustand-gruppe__titel .elementor-heading-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

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

body.yk .yr6-zustand-gruppe__zeilen {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.yk .yr6-zustand {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'befund'
    'leistung'
    'satz';
  row-gap: 4px;
  padding: 14px 0;
  transition: background-color var(--yr5-dauer) var(--yr5-kurve);
}

body.yk .yr6-zustand + .yr6-zustand {
  border-top: 1px solid var(--yr5-linie);
}

/* Zwischenebenen ohne eigene Lage: die Klickflaeche des Verweises bezieht sich auf die Zeile. */
body.yk .yr6-zustand > .elementor-widget,
body.yk .yr6-zustand .elementor-heading-title {
  position: static;
}

body.yk .yr6-zustand__befund { grid-area: befund; }
body.yk .yr6-zustand__leistung { grid-area: leistung; }
body.yk .yr6-zustand__satz { grid-area: satz; }

body.yk .yr6-zustand__befund .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
}

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

body.yk .yr6-zustand__leistung .elementor-heading-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--yl-brand);
  text-decoration: none;
}

body.yk .yr6-zustand__leistung .elementor-heading-title a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.yk .yr6-zustand__leistung .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);
}

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

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

body.yk .yr6-zustand__satz {
  margin: 0;
  color: var(--yr5-text);
  font-size: 15px;
  line-height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  body.yk .yr6-zustand:hover { background-color: var(--yl-white); }
  body.yk .yr6-zustand:hover .yr6-zustand__leistung a::after { transform: translateX(3px); }
}

@media (min-width: 768px) {
  body.yk .yr6-zustand {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    grid-template-areas:
      'befund leistung'
      'befund satz';
    align-items: center;
    column-gap: 32px;
    padding: 16px 20px;
  }
}

@media (min-width: 1024px) {
  body.yk .yr6-zustand-gruppe {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    align-items: start;
    column-gap: 40px;
    padding: 24px 0;
  }

  body.yk .yr6-zustand-gruppe__titel {
    padding-top: 14px;
  }
}

/* ------------------------------------------------------------ Leistungen: Arbeitsweise und Ablauf */

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

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

body.yk .yr6-verbindet__bild {
  min-width: 0;
}

body.yk .yr6-verbindet__foto img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
  background: var(--yr5-stein);
}

body.yk .yr6-verbindet__foto .wp-caption {
  max-width: 100%;
  margin: 0;
}

body.yk .yr6-verbindet__foto .wp-caption-text,
body.yk .yr6-kopf .wp-caption-text {
  margin: 10px 0 0;
  color: var(--yl-body);
  font-family: var(--yl-font-body);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

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

body.yk .yr6-verbindet__text {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--yr5-text);
  font-size: var(--yr5-fliess);
  line-height: var(--yr5-fliess-zeile);
}

/* Drei Stationen: echte Reihenfolge, deshalb Nummern (CSS-Zaehler, kein eigenes Widget). */
body.yk .yr6-stationen {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--yr5-linie);
  counter-reset: yr6-station;
}

body.yk .yr6-station {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: calc(var(--yr6-nr) + 36px);
  padding: 18px 0 18px calc(var(--yr6-nr) + 20px);
  border-bottom: 1px solid var(--yr5-linie);
}

body.yk .yr6-station > .elementor-widget,
body.yk .yr6-station .elementor-heading-title {
  position: static;
}

body.yk .yr6-station__titel .elementor-heading-title {
  margin: 0;
  color: var(--yl-ink);
  font-family: var(--yl-font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

/* Nummer im 1-px-Bordeauxkreis wie die Zahlmarken des Ablaufs auf der Startseite. */
body.yk .yr6-station__titel .elementor-heading-title::before {
  counter-increment: yr6-station;
  content: counter(yr6-station, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: var(--yr6-nr);
  height: var(--yr6-nr);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--yl-brand);
  color: var(--yl-brand);
  font-family: var(--yl-font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

body.yk .yr6-station__text {
  margin: 0;
  color: var(--yr5-text);
  font-size: 16px;
  line-height: 25px;
}

body.yk .yr6-verbindet__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  body.yk .yr6-verbindet__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: center;
  }

  body.yk .yr6-verbindet__foto img {
    aspect-ratio: 4 / 5;
  }
}

/* ------------------------------------------------------------ Kopf: Platz fuer Einsatzgebiete */

/* Gemessen (R6/A/nachweise/kopf): mit sieben Hauptpunkten ragten Startseite unter das Logo und
   Kontakt unter die Hauptaktion (1440 px je 21 px, 1200 px je 71 px). Logo, Schrift und
   Hauptaktion bleiben unveraendert; am Desktop fuehrt das Logo zur Startseite (Alternativtext
   "zur Startseite"), der Punkt Startseite bleibt im Mobil-Drawer (Klasse aus inc/nav.php). */
@media (min-width: 1200px) {
  body.yk .yk-header .yk-nav__list > .yk-nav__item--start {
    display: none;
  }

  /* Erster sichtbarer Punkt ohne Abstand nach links (spezifischer als die Abstandsregeln). */
  body.yk .yk-header .yk-nav__list > .yk-nav__item.yk-nav__item--start + .yk-nav__item {
    margin-left: 0;
  }
}

/* Abstand zwischen den Hauptpunkten: wie bisher clamp(18px, 2.1vw, 34px), unter 1440 px aber
   hoechstens so breit, dass die sechs Punkte auch neben dem Markenwinkel der Unterseiten frei
   stehen (gemessen 1280 px: sonst 7 px unter der Hauptaktion). Ab 1440 px unveraendert. */
@media (min-width: 1280px) {
  body.yk .yk-header .yk-nav__list > .yk-nav__item + .yk-nav__item {
    margin-left: min(clamp(18px, 2.1vw, 34px), max(14px, calc(11.6vw - 133px)));
  }
}

/* 1200 bis 1279 px: geschuetzte 16-px-Schrift und Logogroesse erhalten.
   Nur Zwischenraeume kompakter setzen; bei 1200/1279 px auf Home und Unterseite gemessen. */
@media (min-width: 1200px) and (max-width: 1279px) {
  body.yk .yk-header .yk-nav__list > .yk-nav__item + .yk-nav__item {
    margin-left: 8px;
  }

  body.yk .yk-header .yk-nav__list > .yk-nav__item > .yk-nav__link {
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  body.yk .yk-header .yk-nav__list > .yk-nav__item > .yk-nav__sub-toggle {
    min-width: 24px;
  }

  body.yk .yk-header .yk-header__bar {
    gap: 16px;
  }

  body.yk:not(.home) .yk-header .yk-header__brand {
    padding-right: 46px;
  }
}

/* ------------------------------------------------------------ Kopf: Einsatzgebiete im Untermenue */

/* Gruppen im Untermenue (inc/nav.php, R6/A): Ueberschrift und Liste, keine dritte Klappebene.
   Desktop: zwei Spalten (Ostwestfalen-Lippe, angrenzendes Niedersachsen), der Abschluss
   "Alle Einsatzgebiete ansehen" ueber beide Spalten. Oeffnen, Schliessen, Zeigerbruecke,
   Escape und Pfeiltasten bleiben die des bestehenden Untermenues (nav.js, live-chrome.css). */
body.yk .yk-nav__gruppe-liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.yk .yk-nav__gruppe-titel {
  display: block;
  color: var(--yl-brand);
  font-family: var(--yl-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-transform: none;
}

@media (min-width: 1200px) {
  html.yk-js body.yk .yk-header .yk-nav__sub:has(> .yk-nav__gruppe),
  html:not(.yk-js) body.yk .yk-header .yk-nav__item--parent:hover > .yk-nav__sub:has(> .yk-nav__gruppe),
  html:not(.yk-js) body.yk .yk-header .yk-nav__item--parent:focus-within > .yk-nav__sub:has(> .yk-nav__gruppe) {
    display: grid;
  }

  body.yk .yk-header .yk-nav__sub:has(> .yk-nav__gruppe) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    width: 460px;
    min-width: 0;
    padding: 18px 10px 10px;
  }

  body.yk .yk-header .yk-nav__sub > .yk-nav__gruppe {
    display: block;
    min-width: 0;
  }

  body.yk .yk-header .yk-nav__sub > .yk-nav__gruppe > .yk-nav__gruppe-titel {
    padding: 0 14px 6px;
  }

  body.yk .yk-header .yk-nav__gruppe-liste > .yk-nav__item {
    margin: 0;
  }

  /* Abschluss ueber beide Spalten, abgesetzt durch eine feine Linie. */
  body.yk .yk-header .yk-nav__sub:has(> .yk-nav__gruppe) > .yk-nav__item:not(.yk-nav__gruppe) {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--yl-line);
  }

  body.yk .yk-header .yk-nav__sub:has(> .yk-nav__gruppe) > .yk-nav__item:not(.yk-nav__gruppe) > .yk-nav__link {
    gap: 10px;
    color: var(--yl-brand);
    font-weight: 700;
  }

  body.yk .yk-header .yk-nav__sub:has(> .yk-nav__gruppe) > .yk-nav__item:not(.yk-nav__gruppe) > .yk-nav__link::after {
    content: '';
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--yl-i-pfeil) center / contain no-repeat;
    mask: var(--yl-i-pfeil) center / contain no-repeat;
  }

  /* Der Punkt steht rechts im Menue: die breitere Liste oeffnet nach links, buendig mit dem
     rechten Rand des Hauptpunkts, damit sie nicht in die Hauptaktion ragt. */
  body.yk .yk-header .yk-nav__item--parent:has(> .yk-nav__sub > .yk-nav__gruppe) > .yk-nav__sub {
    left: auto;
    right: -24px;
  }
}

/* Mobil-Drawer: Gruppen untereinander in der bestehenden Unterliste. */
@media (max-width: 1199px) {
  body.yk .yk-header .yk-nav__panel .yk-nav__item.yk-nav__gruppe {
    display: block;
    border-bottom: 0;
  }

  body.yk .yk-header .yk-nav__panel .yk-nav__gruppe-titel {
    padding: 12px 0 2px;
  }

  body.yk .yk-header .yk-nav__panel .yk-nav__gruppe + .yk-nav__gruppe .yk-nav__gruppe-titel {
    padding-top: 16px;
  }

  body.yk .yk-header .yk-nav__panel .yk-nav__sub:has(> .yk-nav__gruppe) > .yk-nav__item:not(.yk-nav__gruppe) > .yk-nav__link {
    margin-top: 6px;
    color: var(--yl-brand);
    font-weight: 700;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  body.yk .yr6-gebiet__liste a,
  body.yk .yr6-gebiet__liste a::after,
  body.yk .yr6-zustand,
  body.yk .yr6-zustand__leistung .elementor-heading-title a::after {
    transition: none !important;
  }

  body.yk .yr6-gebiet__liste a.is-zeiger::after,
  body.yk .yr6-gebiet__liste a:focus-visible::after {
    transform: none;
  }
}

html.yr3-ruhig body.yk .yr6-gebiet__liste a::after,
html.yr3-ruhig body.yk .yr6-zustand__leistung .elementor-heading-title a::after {
  transition: none !important;
}

/* Elementor-Editor: alles sichtbar und bearbeitbar. */
body.elementor-editor-active .yr6-zustand__leistung .elementor-heading-title a::before {
  content: none;
}
