/* Bestattungen Netz — Unterseiten (bn-sub-*).
 *
 * Spacing (eyebrow→title→text, gaps, padding): NATIVE Elementor only
 * (`_margin`, `flex_gap`, `grid_gaps`, container padding) — see skill
 * self-qa-live.md / from-design-layout.md / dynamic-effects §1.
 *
 * This file is ONLY for things Elementor cannot express natively:
 * aspect-ratio images, absolute badge, chip shrink-wrap, grid 1fr→auto,
 * button hover, kit-widget-spacing kill (so `_margin` is not +20).
 */
.bn-sub-chip,
.bn-sub-chip .elementor-button {
  width: auto !important;
  max-width: max-content;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  pointer-events: none;
  cursor: default;
}
.bn-sub-chip .elementor-button:hover {
  background-color: transparent !important;
  color: #fff !important;
}
.bn-sub-chip--accent .elementor-button {
  background-color: #b28c6233 !important;
  border-color: #b28c6299 !important;
}

.bn-sub-img-stage {
  position: relative;
  overflow: visible;
}
.bn-sub-img-stage .elementor-widget-image img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}
/* Ausschnitt nach rechts (Im Trauerfall, Friedhof Brohl: Baum links, Kirche rechts sichtbar).
 * Elementors object-position kennt nur „center right“ = 100 % – dann fiele der Stamm heraus. */
.bn-sub-img-stage--focus-right .elementor-widget-image img {
  object-position: 85% 50%;
}
/* Tablet/Handy: Bild schmaler -> Hinweisbox nach links, damit sie den Kirchturm nicht verdeckt */
@media (max-width: 1024px) {
  .bn-sub-img-stage--focus-right .bn-sub-img-note {
    right: auto;
    left: -16px;
  }
}
@media (max-width: 767px) {
  .bn-sub-img-stage--focus-right .bn-sub-img-note {
    left: 12px;
  }
}
/* responsive-fix 2026-10-20 */
/* Tablet: Raster einspaltig -> 4:5-Bild über volle Breite wäre bis ~1200 px hoch. Querformat wie Original (3:2), Handy bleibt 4:5. */
@media (max-width: 1024px) {
  .bn-sub-img-stage .elementor-widget-image img {
    aspect-ratio: 3 / 2;
  }
}
/* responsive-fix 2026-10-20 */
@media (max-width: 767px) {
  .bn-sub-img-stage .elementor-widget-image img {
    aspect-ratio: 4 / 5;
  }
}
.bn-sub-img-note {
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: 2;
  width: auto !important;
  max-width: 250px;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
}
@media (max-width: 767px) {
  .bn-sub-img-note {
    right: 12px;
    bottom: 12px;
    max-width: 220px;
  }
}

.bn-sub-img-43 .elementor-widget-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.bn-sub-img-43-r16 .elementor-widget-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.bn-sub-img-32 .elementor-widget-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
}
.bn-sub-img-32-bottom .elementor-widget-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center bottom;
}
.bn-sub-portrait .elementor-widget-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}
.bn-sub-artcard {
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(30, 98, 125, 0.04), 0 8px 24px rgba(30, 98, 125, 0.06);
  height: 100%;
}
.bn-sub-artcard > .e-con-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bn-sub-artcard__media {
  position: relative;
  overflow: hidden;
}
.bn-sub-artcard__media .elementor-widget-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  height: auto !important;
  border-radius: 0 !important;
  display: block;
}
.bn-sub-badge-wrap {
  position: relative;
}
.bn-sub-badge {
  position: absolute !important;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: auto !important;
  max-width: max-content;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
}

.bn-sub-motif-thumb .elementor-widget-image img,
.bn-sub-choice__img .elementor-widget-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.bn-sub-seal {
  width: 190px;
  height: 190px;
  max-width: 190px;
  border-radius: 50%;
  border: 1px solid #ffffff8c;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.bn-sub-preview {
  position: sticky;
  top: 110px;
}
@media (max-width: 1024px) {
  .bn-sub-preview {
    position: static;
  }
}

.bn-sub-map .elementor-widget-google_maps,
.bn-sub-map iframe {
  border-radius: 18px;
  overflow: hidden;
}

.bn-sub-form .elementor-field-type-radio .elementor-field-option,
.bn-sub-form .elementor-field-group-symbol .elementor-field-option,
.bn-sub-form .elementor-field-group-motiv_quelle .elementor-field-option {
  display: block;
  margin: 0 0 10px;
}
.bn-sub-form .elementor-field-type-radio .elementor-field-option label {
  display: block;
  background: #f7f2ea;
  border: 1px solid #b28c624d;
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
}
.bn-sub-form .elementor-field-type-radio input:checked + label,
.bn-sub-form .elementor-field-type-radio .elementor-field-option:has(input:checked) label {
  border-color: #b28c62;
  box-shadow: 0 0 0 1px #b28c62;
}

.bn-sub-btn--primary .elementor-button:hover {
  background-color: #8f6d47 !important;
}
.bn-sub-btn--outline .elementor-button:hover {
  background-color: #1e627d12 !important;
}
.bn-sub-btn--ghost .elementor-button:hover {
  background-color: #ffffff26 !important;
}
.bn-sub-btn--white .elementor-button:hover {
  background-color: #f7f2ea !important;
}

/* Kit default 20px would ADD to Elementor `_margin` (calc). Zero the var only. */
.bn-sub-hero .elementor-widget:not(:last-child),
.bn-sub-section .elementor-widget:not(:last-child),
.bn-sub-section .e-con > .e-con-inner > .elementor-widget:not(:last-child),
.bn-sub-cta .elementor-widget:not(:last-child),
.bn-sub-head .elementor-widget:not(:last-child),
.bn-sub-artcard .elementor-widget:not(:last-child),
.bn-sub-infobox .elementor-widget:not(:last-child),
.bn-sub-card .elementor-widget:not(:last-child) {
  --kit-widget-spacing: 0px !important;
}

/* production-lessons §2: Elementor default grid-template-rows: repeat(N, 1fr) */
.bn-sub-grid-auto.e-grid,
.bn-sub-grid-auto.e-grid > .e-con-inner {
  --e-con-grid-template-rows: none !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
}

.bn-sub-cta .elementor-widget-button {
  width: auto !important;
}

/* CI: Elementor-Trennlinie „Berge“ liegt nativ am Container (shape_divider).
 * Keine zusätzlichen CSS-Wellen auf Hero/Blau — sonst Doppelung. */
.bn-wave-divider {
  position: relative;
  overflow: hidden;
}
.bn-wave-divider::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 60px;
  pointer-events: none;
  z-index: 2;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 60' preserveAspectRatio='none'><path d='M0,10 C400,35 1200,-10 1600,15' fill='none' stroke='%231E627D' stroke-opacity='0.5' stroke-width='1.5'/><path d='M0,18 C400,43 1200,-2 1600,23' fill='none' stroke='%23B28C62' stroke-opacity='0.7' stroke-width='1.5'/><path d='M0,26 C400,51 1200,6 1600,31' fill='none' stroke='%231E627D' stroke-opacity='0.5' stroke-width='1.5'/></svg>");
}

/* CI-Haarzlinie oben (Startseite Abschnitts-Trennlinie / CTA) */
.bn-sub-section,
.bn-sub-section--sand,
.bn-sub-cta {
  border-top: 1px solid #b28c6238;
}
.bn-sub-hero,
.bn-sub-section--blue,
.bn-sub-callbar,
.bn-sub-map {
  border-top: none;
}

/* Gewölbter Bildrand (optional) */
.bn-wave-divider__img img,
.bn-sub-wave-img .elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: ellipse(75% 100% at 50% 0%);
  -webkit-clip-path: ellipse(75% 100% at 50% 0%);
}
