/* ============================================================
   Moderne H-Ueberschriften in redaktionellen Unterseiten-Inhalten
   ============================================================ */
body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(h2, h3, h4, h5, h6) {
  font-family: var(--schrift-display, "Open Sans", Arial, sans-serif);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(h2, h3, h4, h6) {
  font-weight: 600;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) h5 {
  font-weight: 700;
}

body:not(.home):not(.front-page) .eintrag-inhalt h2:not(.wp-block-accordion-heading) {
  position: relative;
  padding-bottom: 16px;
}

body:not(.home):not(.front-page) .eintrag-inhalt h2:not(.wp-block-accordion-heading)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(64px, 4.5vw, 88px);
  height: 5px;
  border-radius: 999px;
  background: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) a:not(.wp-block-button__link):not(.wp-block-file__button):not(.wp-element-button) {
  color: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) a:not(.wp-block-button__link):not(.wp-block-file__button):not(.wp-element-button):hover,
body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) a:not(.wp-block-button__link):not(.wp-block-file__button):not(.wp-element-button):focus-visible {
  color: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  text-decoration-thickness: 2px;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  border-radius: 999px;
  background-color: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  color: #fff;
  font-family: var(--schrift-text, "Open Sans", Arial, sans-serif);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: 0 8px 20px rgba(var(--kachel-content-akzent-rgb, 247, 148, 29), 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):hover,
body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):focus-visible {
  border-color: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  background-color: var(--kachel-content-akzent, var(--kachel-orange, #f49c00));
  color: #fff;
  text-decoration: none !important;
  text-decoration-line: none !important;
  filter: brightness(0.94) saturate(1.05);
  box-shadow: 0 13px 28px rgba(var(--kachel-content-akzent-rgb, 247, 148, 29), 0.26);
  transform: translateY(-2px);
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):focus-visible {
  outline: 3px solid rgba(var(--kachel-content-akzent-rgb, 247, 148, 29), 0.32);
  outline-offset: 4px;
}

body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):active {
  filter: brightness(0.9);
  box-shadow: 0 6px 14px rgba(var(--kachel-content-akzent-rgb, 247, 148, 29), 0.2);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button) {
    transition: none;
  }

  body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):hover,
  body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):focus-visible,
  body:not(.home):not(.front-page) :is(.eintrag-inhalt, .kachel-editorial-content, .kachel-baustein-content) :is(.wp-block-button__link, .wp-block-file__button, a.wp-element-button):active {
    transform: none;
  }
}
