/* Abstand oben fuer Seiten, die ohne Hero-Bereich starten */
.hb-top-abstand {
    padding-top: 72px;
}
@media (max-width: 767px) {
    .hb-top-abstand {
        padding-top: 40px;
    }
}

/* Bestaetigungsmeldung nach dem Absenden eines Formulars */
.gform_confirmation_message,
.gform_confirmation_wrapper .gform_confirmation_message,
div[id^="gform_confirmation_message_"] {
    background-color: #F7F2F6 !important;
    color: #1A1A1A !important;
    border-left: 4px solid #831F82;
    padding: 20px 24px;
    border-radius: 4px;
    line-height: 1.5;
}
.gform_confirmation_message p,
.gform_confirmation_wrapper p,
div[id^="gform_confirmation_message_"] p {
    color: #1A1A1A !important;
    margin: 0;
}

/* Cookie-Dialog: dritten Button ausblenden, der Textlink "Praeferenzen" darunter fuehrt zu denselben Einstellungen */
.brlbs-cmpnt-container .brlbs-cmpnt-btn-preferences {
    display: none !important;
}

/* LeaveGreen aus dem Fuss genommen, 25.11.2026, Sicherung liegt bei NextFrame */
footer a.leavegreen {
    display: none !important;
}

/* Fuss neu sortiert, 25.11.2026
   Vier Spalten oben, darunter ein eigenes Band fuer die Siegel.
   Social-Icons rechts davon abgesetzt. Kein Eingriff ins Theme. */
.site-footer .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
}
.site-footer .footer-col--brand {
    display: contents;
}
.site-footer .footer-grid > a {
    order: 1;
    align-self: start;
}
.site-footer .footer-grid > .footer-col:not(.footer-col--brand) {
    order: 2;
}
.site-footer .footer-brand-row {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 26px;
    border-top: 1px solid rgba(242, 242, 242, 0.14);
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.site-footer .footer-brand-row > a:not(.footer-social__link) {
    order: 1;
    display: inline-flex;
    align-items: center;
    height: 64px;
}
.site-footer .footer-brand-row > a:not(.footer-social__link) img {
    height: 100%;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}
.site-footer .footer-brand-row::after {
    content: "";
    order: 1;
    align-self: center;
    width: 88px;
    height: 88px;
    background-image: url("/wp-content/uploads/2026/11/mitgliedssiegel-bestatterinnung-bw-weiss.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.site-footer .footer-brand-row > a.footer-social__link {
    order: 2;
}
.site-footer .footer-brand-row > a.footer-social__link:nth-child(2) {
    margin-left: auto;
    position: relative;
}
.site-footer .footer-brand-row > a.footer-social__link {
    align-self: center;
    padding: 0;
}
.site-footer .footer-brand-row > a.footer-social__link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
@media (max-width: 860px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; }
    .site-footer .footer-brand-row > a.footer-social__link:nth-child(2) { margin-left: 0; }
    .site-footer .footer-brand-row > a.footer-social__link:nth-child(2)::before { display: none; }
}

/* Siegel groesser, Beschriftung darueber, Social-Icons mittig und deutlicher */
.site-footer .footer-brand-row {
    gap: 32px;
    padding-top: 30px;
}
.site-footer .footer-brand-row::before {
    content: "Mitglied und ausgezeichnet";
    order: 0;
    flex: 0 0 auto;
    align-self: center;
    max-width: 15ch;
    line-height: 1.4;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.5);
    margin-bottom: 0;
}
.site-footer .footer-brand-row > a:not(.footer-social__link) {
    height: 88px;
}
.site-footer .footer-brand-row > a:not(.footer-social__link) img {
    max-width: 170px;
}
.site-footer .footer-social__link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(242, 242, 242, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}
.site-footer .footer-social__link svg {
    width: 18px;
    height: 18px;
    display: block;
}
.site-footer .footer-social__link:hover {
    color: #FFFFFF;
    border-color: rgba(242, 242, 242, 0.55);
}
.site-footer .footer-bottom .footer-link {
    transition: color .2s;
}
.site-footer .footer-bottom .footer-link:hover,
.site-footer .footer-bottom .footer-link:focus-visible {
    color: #FFFFFF;
}

/* Footer Siegelzeile mobil */
@media (max-width: 860px) {
    .site-footer .footer-brand-row::before {
        flex-basis: 100%;
        max-width: none;
        margin-bottom: 4px;
    }
}

/* Platz fuer die mobile Leiste */
@media (max-width: 1024px) {
    .site-footer {
        padding-bottom: calc(79px + env(safe-area-inset-bottom, 0px));
    }
}

/* Formular-Button Markenfarbe */
.gform_wrapper .gform-footer button.gform_button,
.gform_wrapper .gform_footer button.gform_button,
.gform_wrapper .gform_footer input[type="submit"] {
    width: 100% !important;
    background-color: #7B1A75 !important;
    color: #FFFFFF !important;
}
.gform_wrapper .gform-footer button.gform_button:hover,
.gform_wrapper .gform_footer button.gform_button:hover,
.gform_wrapper .gform_footer input[type="submit"]:hover {
    background-color: #6A1664 !important;
}



/* Kopfbereich aufhellen, nur wo das Bild unruhig ist */
body.page-id-956 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-953 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-951 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-1068 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-949 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-958 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-950 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-1064 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-2447 .hb-hero-bg .hb-hero-bg__overlay {
    background: radial-gradient(ellipse 60% 62% at 50% 50%,
        rgba(255, 255, 255, 0.86) 0%,
        rgba(255, 255, 255, 0.70) 40%,
        rgba(255, 255, 255, 0.14) 100%) !important;
}


/* Rechtstexte: Ueberlauf auf dem Handy */
.impression_code .max-w-3xl {
    width: 100%;
    max-width: 84rem;
}
.impression_code {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.impression_code img,
.impression_code table {
    max-width: 100%;
    height: auto;
}
.impression_code table {
    display: block;
    overflow-x: auto;
}


/* Mobile Ueberlaeufe */
@media (max-width: 767px) {
    .hb-features-cards__subtitle,
    .hb-leistungen-liste__desc,
    .hb-downloads__list,
    .hb-downloads__item,
    .hb-standort-seo__intro-content,
    .wysiwyg-content {
        width: auto !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }
}
iframe, video, embed, object {
    max-width: 100%;
}


/* Sicherheitsnetz gegen seitliches Scrollen */
@media (max-width: 767px) {
    .site-main p,
    .site-main ul,
    .site-main ol,
    .site-main div,
    .site-main section,
    .site-main table,
    .site-main img,
    .site-main iframe,
    .site-main h1,
    .site-main h2,
    .site-main h3 {
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .naturnahe_first_sec {
        flex-wrap: wrap;
    }
}


/* FAQ klappbar */
.hb-faq--klappbar .hb-faq__question {
    cursor: pointer;
    position: relative;
    padding-right: 36px;
    margin-bottom: 0;
}
.hb-faq--klappbar .hb-faq__question::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 300;
    color: #7B1A75;
}
.hb-faq--klappbar .hb-faq__question[aria-expanded="true"]::after {
    content: "\2013";
}
.hb-faq--klappbar .hb-faq__answer {
    margin-top: 12px;
}
.hb-faq--klappbar .hb-faq__question:focus-visible {
    outline: 2px solid #7B1A75;
    outline-offset: 4px;
}


/* === Vorsorgeseite, Feinschliff 25.11.2026 === */

/* 1. Rueckrufformular: gleicher Abstand nach oben wie die anderen Abschnitte */
.hb-vorsorge-form {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* 2. Formularfelder weiss, die Umrandung markiert das Feld schon */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="date"],
.gform_wrapper textarea,
.gform_wrapper select {
    background-color: #FFFFFF !important;
}

/* 3. Ablauf-Schritte als Kacheln */
.hb-steps-timeline.bg-white,
.hb-steps-timeline {
    background-color: transparent !important;
}
.hb-steps-timeline__inner,
.hb-steps-timeline__list {
    max-width: 1100px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.hb-steps-timeline__list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.hb-steps-timeline__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    padding: 32px 20px;
}
.hb-steps-timeline__num { margin: 0 auto; }
.hb-steps-timeline__body { width: 100%; }

@media (max-width: 1023px) {
    .hb-steps-timeline__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 599px) {
    .hb-steps-timeline__list { grid-template-columns: 1fr; gap: 20px; }
}

/* 4. Zitatabschnitt */
.hb-text-wysiwyg.hb-zitat,
.hb-zitat {
    padding: 88px 0 !important;
    background-color: #7B1A75 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}
.hb-zitat .hb-text-wysiwyg__content::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 0 auto 28px;
    background-color: rgba(255, 255, 255, 0.45);
}
.hb-zitat .hb-text-wysiwyg__content p {
    max-width: 44rem;
    margin: 0 auto;
    color: #FFFFFF;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.55;
    font-style: italic;
}
.hb-zitat .hb-text-wysiwyg__content p.hb-zitat__quelle {
    margin: 28px auto 0;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* helle Variante, bei Bedarf Klasse hb-zitat--hell ergaenzen */
.hb-zitat--hell { background-color: #F3E7F2 !important; }
.hb-zitat--hell .hb-text-wysiwyg__content p { color: #3A2338; }
.hb-zitat--hell .hb-text-wysiwyg__content::before { background-color: rgba(123, 26, 117, 0.4); }
.hb-zitat--hell .hb-text-wysiwyg__content p.hb-zitat__quelle { color: rgba(58, 35, 56, 0.65); }

@media (max-width: 767px) {
    .hb-zitat { padding: 64px 0 !important; }
}

/* 5. Mobil immer erst Bild, dann Text (Theme dreht das bei Bild rechts) */
@media (max-width: 767px) {
    body.page-id-2447 .hb-split-image-text__grid > *,
    body.page-id-2478 .hb-split-image-text__grid > *,
    body.page-id-2479 .hb-split-image-text__grid > *,
    body.page-id-2480 .hb-split-image-text__grid > * {
        order: 0 !important;
    }
}

/* 6. Terminkarten */
.hb-termine .hb-benefits-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px;
}
.hb-termine .hb-benefits-cards__card {
    padding: 26px 16px;
}
.hb-termine .hb-benefits-cards__icon-wrap { display: none !important; }
.hb-termine .hb-benefits-cards__title {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: #7B1A75 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em;
}
.hb-termine .hb-benefits-cards__desc p,
.hb-termine .hb-benefits-cards__description p,
.hb-termine .hb-benefits-cards__card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}
.hb-termine .hb-benefits-cards__subtitle,
.hb-termine .hb-benefits-cards__subheading {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1023px) {
    .hb-termine .hb-benefits-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 479px) {
    .hb-termine .hb-benefits-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
    .hb-termine .hb-benefits-cards__title { font-size: 1.15rem !important; }
}

/* 7. Mehr Luft um das Anmeldeformular */
body.page-id-2479 .hb-vorsorge-form,
body.page-id-2480 .hb-vorsorge-form {
    padding-top: 104px !important;
    padding-bottom: 104px !important;
}

/* 8. Hinweiszeile unter den Terminkarten */
.hb-termine { padding-bottom: 28px !important; }
.hb-text-wysiwyg.hb-termine-hinweis,
.hb-termine-hinweis,
body.page-id-2479 .hb-text-wysiwyg,
body.page-id-2480 .hb-text-wysiwyg {
    padding: 0 0 80px 0 !important;
    background-color: transparent !important;
}
.hb-termine-hinweis .hb-text-wysiwyg__content,
body.page-id-2479 .hb-text-wysiwyg__content,
body.page-id-2480 .hb-text-wysiwyg__content {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}
.hb-termine-hinweis .hb-text-wysiwyg__content p,
body.page-id-2479 .hb-text-wysiwyg__content p,
body.page-id-2480 .hb-text-wysiwyg__content p {
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0;
}


/* === Kopfbilder, Aufhellung hinter dem Text 26.11.2026 === */
body.page-id-2478 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-2479 .hb-hero-bg .hb-hero-bg__overlay,
body.page-id-2480 .hb-hero-bg .hb-hero-bg__overlay {
    background: radial-gradient(ellipse 72% 78% at 50% 46%, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.72) 42%, rgba(255,255,255,0.30) 75%, rgba(255,255,255,0.10) 100%) !important;
}


/* === Auswahlfelder vertikal mittig wie die Textfelder 26.11.2026 === */
.gform_wrapper select {
    line-height: 36px !important;
    height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* === Eckdatenzeile in den Veranstaltungs-Sektionen 26.11.2026 === */
body.page-id-2478 .hb-split-image-text__desc > p:last-of-type:not(:only-of-type) {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(123, 26, 117, 0.20);
    font-size: 0.92rem;
    line-height: 1.5;
    color: #7B1A75;
    font-weight: 500;
}


/* === Kontaktseite, Reihenfolge der Abschnitte 27.11.2026 === */
body.page-id-969 #main-content main {
    display: flex;
    flex-direction: column;
}
body.page-id-969 #main-content main > .hb-kontakt__form { order: 1; }
body.page-id-969 #main-content main > .hb-cta-phone { order: 2; }
body.page-id-969 #main-content main > .hb-kontakt__maps { order: 3; }


/* === Kopfbilder, einheitliche Hoehe 500 Pixel 27.11.2026 === */
/* Sieben Seiten standen auf 400 Pixel, alle anderen auf 500. Mobil unveraendert. */
@media (min-width: 768px) {
    body.page-id-949 .hb-hero-bg,
    body.page-id-950 .hb-hero-bg,
    body.page-id-951 .hb-hero-bg,
    body.page-id-952 .hb-hero-bg,
    body.page-id-953 .hb-hero-bg,
    body.page-id-958 .hb-hero-bg,
    body.page-id-1064 .hb-hero-bg {
        min-height: 500px !important;
    }
}


/* === Mobiles Menue, Gruppen klappbar 29.11.2026 === */
/* Gehoert zum Snippet "Mobiles Menue klappbar". Snippet aus, Menue wieder offen. */
.mobile-nav-group .mobile-nav-link {
    display: none;
}
.mobile-nav-group.hb-mnav-auf .mobile-nav-link {
    display: block;
}
.mobile-nav-group .mobile-nav-label[data-hb-klapp="1"] {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mobile-nav-group .mobile-nav-label[data-hb-klapp="1"]::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
    flex: 0 0 auto;
    opacity: 0.55;
}
.mobile-nav-group.hb-mnav-auf .mobile-nav-label[data-hb-klapp="1"]::after {
    transform: rotate(225deg) translateY(-2px);
}


/* === Infoabend Vollmacht, langer Text neben Bild 01.12.2026 === */
/* Der freigegebene Text ist deutlich hoeher als das Bild. Bild auf Texthoehe strecken. */
@media (min-width: 900px) {
    body.page-id-2479 .hb-split-image-text__grid {
        align-items: stretch;
    }
    body.page-id-2479 .hb-split-image-text__image-col,
    body.page-id-2479 .hb-split-image-text__image-col > * {
        height: 100%;
    }
    body.page-id-2479 .hb-split-image-text__image-col img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center 30%;
    }
}

/* ===== Ortsseiten und Startseite, Designsprache, 02.12.2026 ===== */

/* Hero-Subline halbfett, Vorbild ist die Trauerfall-Seite */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__desc,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__inner > p {
  font-weight: 500 !important;
}
/* Gilt fuer page-id-2129 (Schiltach), page-id-971 (Wolfach), page-id-946 (Startseite) */

/* Inhaltsbreite */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-standort-seo__intro-content,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__header,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__grid,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-text-wysiwyg__inner,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__header,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__cards {
  max-width: 1248px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Sektionskopf: Headline, Subline, Strich, mittig */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__header h2,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-text-wysiwyg h2,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__header h2,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__heading {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 300;
  color: #111111;
  text-align: center;
  margin: 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-kopf-subline .hb-features-cards__header p {
  font-size: 17px;
  color: #5b5b5b;
  text-align: center;
  max-width: 68ch;
  margin: 12px auto 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__header p {
  font-size: 17px;
  color: #111111;
  text-align: center;
  max-width: 72ch;
  margin: 24px auto 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__header .hb-divider,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-text-wysiwyg .hb-divider,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__header .hb-divider,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone .hb-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Hintergruende im Wechsel statt Trennlinien */
/* Das Theme setzt bg-white mit !important, deshalb hier ebenfalls */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-intro { background-color: #ffffff !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-leistungen { background-color: #f7f7f7 !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende { background-color: #ffffff !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten { background-color: #f7f7f7 !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gebiet { background-color: #ffffff !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq { background-color: #f7f7f7 !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone { background-color: #831F82 !important; }

/* Strich auch in den Kachelbloecken, dort fehlt er im Theme */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-leistungen .hb-features-cards__header::after,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: #831F82;
  margin: 20px auto 0;
}

/* Einleitung zweispaltig */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-standort-seo__intro-content {
  columns: 2;
  column-gap: 56px;
  text-align: left;
}

/* Leistungskarten linksbuendig, weiss auf grau */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-leistungen .hb-features-cards__card {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-leistungen .hb-features-cards__icon-wrap {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Luft zwischen Kopf und Kacheln */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-leistungen .hb-features-cards__header { margin-bottom: 48px; }

/* Ortskacheln eckig und mit mehr Innenabstand */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gebiet li,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gebiet .hb-text-wysiwyg__content li {
  border-radius: 0 !important;
  padding: 10px 20px !important;
}

/* Hero: Bild in der Mitte aufhellen, damit die Unterzeile sicher lesbar ist */
/* Aufhellung nur auf den Ortsseiten; die Startseiten-Hero hat den Text zwischen den Personen und bleibt unangetastet */
:is(.page-id-2129, .page-id-971) .hb-hero-bg__overlay {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.62) 55%, rgba(255,255,255,0.18) 100%) !important;
}

/* Vier Merkmale als Band ohne Box */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 48px auto 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__card {
  background: transparent;
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 4px 22px;
  box-shadow: none;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__card:first-child {
  border-left: 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 12px 0 0;
}

/* Abschlussblock in Lila als einziger Akzent */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone { background: #831F82; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__heading,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__desc,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone a:not(.hb-cta-phone__btn) { color: #ffffff !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone .hb-divider { background-color: #ffffff !important; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn {
  background: #ffffff;
  color: #831F82;
  border: 1px solid #ffffff;
  border-radius: 0;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn {
  transition: background-color .15s, color .15s, border-color .15s;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn:hover {
  background-color: #5B21B6 !important;
  color: #ffffff !important;
  border-color: #5B21B6 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn:hover svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Zweiter Button im Abschluss als Umrissvariante */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn--outline {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn--outline:hover {
  background-color: #ffffff !important;
  color: #831F82 !important;
  border-color: #ffffff !important;
}

/* Abstand Text zu Button */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-text-wysiwyg__content + * ,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten .btn {
  margin-top: 40px;
}

/* Alles eckig, ein Lila, Hover dunkler */
:is(.page-id-2129, .page-id-971, .page-id-946) .btn,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__card,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__card { border-radius: 0; }
/* Hero-Buttons: Groesse wie Abschluss, Hover invertiert */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn {
  font-size: 16px !important;
  transition: background-color .15s, color .15s, border-color .15s;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn--primary {
  border: 2px solid #831F82 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn--primary:hover {
  background-color: #5B21B6 !important;
  border-color: #5B21B6 !important;
  color: #ffffff !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn--primary:hover svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn--outline {
  background-color: transparent !important;
  color: #831F82 !important;
  border: 2px solid #831F82 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg__btn--outline:hover {
  background-color: #ffffff !important;
  color: #831F82 !important;
  border-color: #831F82 !important;
}
/* Buttons wechseln beim Ueberfahren die Flaeche, Textlinks nur die Schrift */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__button {
  color: #831F82;
  transition: background-color .15s, color .15s, border-color .15s;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__button:hover {
  background-color: #5B21B6 !important;
  color: #ffffff !important;
  border-color: #5B21B6 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten a.inline-flex {
  transition: background-color .15s;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten a.inline-flex {
  border: 1px solid #831F82 !important;
  border-radius: 0 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten a.inline-flex:hover {
  background-color: #5B21B6 !important;
  border-color: #5B21B6 !important;
  color: #ffffff !important;
}

/* Kostenblock mittig, Button mittig, Luft zum Button */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten .hb-text-wysiwyg__content { text-align: center; }
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten .hb-text-wysiwyg__content p {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten .hb-text-wysiwyg__content > div:last-child { margin-top: 40px; }

/* Textlinks wechseln beim Ueberfahren die Farbe */
:is(.page-id-2129, .page-id-971, .page-id-946) .text-primary { transition: color .15s; }
:is(.page-id-2129, .page-id-971, .page-id-946) .text-primary:hover { color: #5B21B6; }

/* Strich auch in den Textbloecken, das Theme blendet ihn dort aus */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten .hb-text-wysiwyg__inner > .hb-divider,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gebiet .hb-text-wysiwyg__inner > .hb-divider {
  display: block !important;
  width: 56px !important;
  height: 2px !important;
  margin: 20px auto 0 !important;
  background-color: #831F82 !important;
}

/* Subline etwas praesenter, sie war bereits auf Fliesstextgroesse */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__subtitle {
  font-size: 18px !important;
  color: #4a4a4a !important;
}

/* Luft zwischen Icon und Ueberschrift in den Kacheln */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__icon-wrap { margin-bottom: 18px !important; }

/* Symbole in den Abschluss-Buttons sichtbar machen */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn svg {
  stroke: #831F82 !important;
  color: #831F82 !important;
}
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn--outline svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Buttons: nur Farbwechsel, keine Unterstreichung. Unterstrichen wird nur im Fliesstext */
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__button,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__button:hover,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__button:focus,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten a.inline-flex,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-kosten a.inline-flex:hover,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__btn:hover,
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg a[class*="btn"],
:is(.page-id-2129, .page-id-971, .page-id-946) .hb-hero-bg a[class*="btn"]:hover {
  text-decoration: none !important;
}

/* Haltepunkt Mobil */
@media (max-width: 860px) {
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-standort-seo__intro-content { columns: 1; }
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 0;
  }
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-abschnitt-gruende .hb-features-cards__card {
    border-left: 0;
    padding: 0 12px;
  }
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-features-cards__header h2,
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-text-wysiwyg h2,
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-faq__header h2,
  :is(.page-id-2129, .page-id-971, .page-id-946) .hb-cta-phone__heading { font-size: 28px; }
}
/* ===== Ende Ortsseiten ===== */

/* ===== Startseite, eigene Sektionen, 02.12.2026 ===== */
/* Eine Ueberschriftgroesse und -farbe fuer alle Sektionen */
.page-id-946 .hb-trauerfall-2col__heading,
.page-id-946 .hb-gedenkportal-cta h2,
.page-id-946 .hb-split-image-text h2,
.page-id-946 .hb-about-image-text h2,
.page-id-946 .hb-services-cards h2 {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  color: #111111 !important;
}

/* Strich im Trauerfall-Kopf, fehlt im Markup */
.page-id-946 .hb-trauerfall-2col__header::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: #831F82;
  margin: 20px auto 0;
}

/* Hintergrund-Takt grau, weiss, grau, weiss, grau, weiss, lila */
.page-id-946 .hb-features-cards { background-color: #f7f7f7 !important; }
.page-id-946 .hb-trauerfall-2col { background-color: #ffffff !important; }
.page-id-946 .hb-gedenkportal-cta { background-color: #f7f7f7 !important; }
.page-id-946 .hb-split-image-text { background-color: #ffffff !important; }
.page-id-946 .hb-about-image-text { background-color: #f7f7f7 !important; }
.page-id-946 .hb-services-cards { background-color: #ffffff !important; }

/* Service-Karten auf weissem Grund mit Rahmen */
.page-id-946 .hb-services-cards__card {
  border: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
}

/* Trauerfall-Karten und Hinweiskasten eckig */
.page-id-946 .hb-trauerfall-2col__card,
.page-id-946 .hb-trauerfall-2col__note { border-radius: 0 !important; }

/* Definierte Ausnahme: freistehende Fotos neben Text behalten 8px */
.page-id-946 .hb-split-image-text img,
.page-id-946 .hb-about-image-text img { border-radius: 8px !important; }

/* Gefuellte lila Buttons der Startseite ins Hover-System */
.page-id-946 .hb-gedenkportal-cta__btn,
.page-id-946 .hb-split-image-text__btn,
.page-id-946 .btn--primary {
  border-radius: 0 !important;
  transition: background-color .15s, border-color .15s, color .15s;
}
.page-id-946 .hb-gedenkportal-cta__btn:hover,
.page-id-946 .hb-split-image-text__btn:hover,
.page-id-946 .btn--primary:hover {
  background-color: #5B21B6 !important;
  border-color: #5B21B6 !important;
  color: #ffffff !important;
}

@media (max-width: 860px) {
  .page-id-946 .hb-trauerfall-2col__heading,
  .page-id-946 .hb-gedenkportal-cta h2,
  .page-id-946 .hb-split-image-text h2,
  .page-id-946 .hb-about-image-text h2,
  .page-id-946 .hb-services-cards h2 { font-size: 28px !important; }
}
/* Abschlussblock lila, setzt sich gegen die alte trauerfall_cta-Altlast durch */
body.page-id-946 .hb-cta-phone.bg-white,
body.page-id-946 .hb-cta-phone {
  background-color: #831F82 !important;
}

/* Inhalts-Buttons der Startseite auf ein Mass: Schrift, Polster, Hoehe */
.page-id-946 .hb-gedenkportal-cta__btn,
.page-id-946 .hb-split-image-text__btn,
.page-id-946 .hb-about-image-text .btn--primary,
.page-id-946 .hb-trauerfall-2col a[class*="btn"] {
  font-size: 15px !important;
  font-weight: 500 !important;
  height: 48px !important;
  padding: 0 28px !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}
.page-id-946 .hb-about-image-text .btn--primary .arrow_icon,
.page-id-946 .hb-about-image-text .btn--primary span:not(.phone_icon) {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  height: auto !important;
}

/* Pfeil im Mehr-ueber-uns-Button: SVG hatte keine feste Groesse und ragte nach oben */
.page-id-946 .hb-about-image-text .btn--primary svg,
.page-id-946 .hb-gedenkportal-cta__btn svg,
.page-id-946 .hb-split-image-text__btn svg,
.page-id-946 .hb-trauerfall-2col a[class*="btn"] svg {
  width: 18px !important;
  height: 18px !important;
  display: inline-block !important;
  flex: none !important;
  margin: 0 !important;
}

/* Bild-Text-Sektionen zeigen auf dem Handy zuerst das Bild */
@media (max-width: 767px) {
  .page-id-946 .hb-split-image-text__image-col { order: -1 !important; }
  .page-id-946 .hb-split-image-text__text-col { order: 2 !important; }
  .page-id-946 .hb-about-image-text__image-col { order: -1 !important; }
  .page-id-946 .hb-about-image-text__text-col { order: 2 !important; }
}

/* ===== Ende Startseite ===== */

/* ===== Willkommensseite, page-id-1062, 02.12.2026 ===== */
/* Videoblock: Sektionskopf nach Designsprache, Video in 16 zu 9 */
.page-id-1062 .video_sec .hb-videokopf { text-align: center; margin-bottom: 40px; }
.page-id-1062 .video_sec .hb-videokopf h2 {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  color: #111111 !important;
  margin: 0 !important;
}
.page-id-1062 .video_sec .hb-videokopf p {
  font-size: 17px;
  color: #5b5b5b;
  margin: 12px 0 0;
}
.page-id-1062 .video_sec .hb-videokopf__strich {
  width: 56px;
  height: 2px;
  background: #831F82;
  margin: 20px auto 0;
}
.page-id-1062 .video_sec iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

/* Ueberschriften der uebrigen Sektionen auf Regelwerk */
.page-id-1062 .hb-values-cards h2,
.page-id-1062 .hb-reviews h2,
.page-id-1062 .hb-cta-phone__heading {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  color: #111111 !important;
}

/* Hintergrund-Takt weiss, grau, weiss, grau, weiss */
.page-id-1062 .hb-about-image-text { background-color: #ffffff !important; }
.page-id-1062 .video_sec { background-color: #f7f7f7 !important; }
.page-id-1062 .hb-values-cards { background-color: #ffffff !important; }
.page-id-1062 .hb-reviews { background-color: #f7f7f7 !important; }
.page-id-1062 .hb-cta-phone { background-color: #ffffff !important; }

/* Buttons ins Hover-System: gefuellt wechselt auf 5B21B6, Umriss fuellt sich voll lila */
.page-id-1062 a[class*="btn"],
.page-id-1062 .btn { border-radius: 0 !important; transition: background-color .15s, border-color .15s, color .15s; }
.page-id-1062 .hb-cta-phone__btn--primary:hover,
.page-id-1062 .btn--primary:hover {
  background-color: #5B21B6 !important;
  border-color: #5B21B6 !important;
  color: #ffffff !important;
}
.page-id-1062 .hb-cta-phone__btn--outline {
  border: 1px solid #831F82 !important;
  color: #831F82 !important;
}
.page-id-1062 .hb-cta-phone__btn--outline:hover {
  background-color: #831F82 !important;
  color: #ffffff !important;
}
.page-id-1062 .text-primary { transition: color .15s; }
.page-id-1062 .text-primary:hover { color: #5B21B6; }

/* Bild-Text-Sektion zeigt mobil zuerst das Bild */
@media (max-width: 767px) {
  .page-id-1062 .hb-about-image-text__image-col { order: -1 !important; }
  .page-id-1062 .hb-about-image-text__text-col { order: 2 !important; }
}
@media (max-width: 860px) {
  .page-id-1062 .video_sec .hb-videokopf h2,
  .page-id-1062 .hb-values-cards h2,
  .page-id-1062 .hb-reviews h2,
  .page-id-1062 .hb-cta-phone__heading { font-size: 28px !important; }
}
/* ===== Ende Willkommensseite ===== */

/* ===== Was tun im Trauerfall, page-id-1064, 02.12.2026 ===== */
/* Ueberschriften auf Regelwerk, der Notfallblock oben bleibt weiss beschriftet */
.page-id-1064 .hb-features-cards__header h2,
.page-id-1064 .hb-redenformate h2,
.page-id-1064 .hb-checklist-accordion h2,
.page-id-1064 .documents-section h2,
.page-id-1064 .hb-abschluss-hell .hb-cta-phone__heading {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  color: #111111 !important;
  text-align: center;
}
.page-id-1064 .hb-notfall-cta .hb-cta-phone__heading {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  color: #ffffff !important;
}

/* Ein Lilaton fuer Flaechen und Striche */
body.page-id-1064 section.hb-cta-phone.hb-notfall-cta.bg-white,
body.page-id-1064 section.hb-cta-phone.hb-notfall-cta,
.page-id-1064 .hb-notfall-cta { background-color: #831F82 !important; }
.page-id-1064 .hb-notfall-cta .hb-cta-phone__desc { color: #ffffff !important; }
.page-id-1064 .hb-notfall-cta .hb-divider { display: none !important; }
.page-id-1064 .documents-section .hb-divider,
.page-id-1064 [class*="divider"] {
  background-color: #831F82 !important;
  width: 56px !important;
  height: 2px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-id-1064 .hb-notfall-cta [class*="divider"] { display: none !important; }

/* Kachelblock bekommt seinen fehlenden Strich */
.page-id-1064 .hb-features-cards__header::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: #831F82;
  margin: 20px auto 0;
}
.page-id-1064 .hb-features-cards__header { margin-bottom: 48px; }

/* Hintergrund-Takt nach dem Notfallblock: grau, weiss, grau, weiss, grau */
.page-id-1064 .hb-features-cards { background-color: #f7f7f7 !important; }
.page-id-1064 .hb-redenformate { background-color: #ffffff !important; }
.page-id-1064 .hb-checklist-accordion { background-color: #f7f7f7 !important; }
.page-id-1064 .documents-section { background-color: #ffffff !important; }
body.page-id-1064 .hb-cta-phone.hb-abschluss-hell,
body.page-id-1064 .hb-abschluss-hell { background-color: #f7f7f7 !important; }
.page-id-1064 .documents-section h2 { color: #111111 !important; }

/* Alles eckig ausser Icon-Kreisen */
.page-id-1064 .hb-checklist-accordion__phone-link,
.page-id-1064 .hb-checklist-accordion .container,
.page-id-1064 .container { border-radius: 0 !important; }

/* Buttons ins Hover-System */
.page-id-1064 a[class*="btn"] { border-radius: 0 !important; transition: background-color .15s, border-color .15s, color .15s; }
.page-id-1064 .hb-abschluss-hell .hb-cta-phone__btn--primary {
  background-color: #831F82 !important;
  color: #ffffff !important;
  border-color: #831F82 !important;
}
.page-id-1064 .hb-abschluss-hell .hb-cta-phone__btn--primary:hover {
  background-color: #5B21B6 !important;
  border-color: #5B21B6 !important;
}
.page-id-1064 .hb-abschluss-hell .hb-cta-phone__btn--outline {
  background-color: transparent !important;
  border: 1px solid #831F82 !important;
  color: #831F82 !important;
}
.page-id-1064 .hb-abschluss-hell .hb-cta-phone__btn--outline:hover {
  background-color: #831F82 !important;
  color: #ffffff !important;
}
.page-id-1064 .hb-notfall-cta .hb-cta-phone__btn {
  background-color: #ffffff !important;
  color: #831F82 !important;
  border-color: #ffffff !important;
}
.page-id-1064 .hb-notfall-cta .hb-cta-phone__btn:hover {
  background-color: #5B21B6 !important;
  color: #ffffff !important;
  border-color: #5B21B6 !important;
}
.page-id-1064 .text-primary { transition: color .15s; }
.page-id-1064 .text-primary:hover { color: #5B21B6; }

@media (max-width: 860px) {
  .page-id-1064 .hb-features-cards__header h2,
  .page-id-1064 .hb-redenformate h2,
  .page-id-1064 .hb-checklist-accordion h2,
  .page-id-1064 .documents-section h2,
  .page-id-1064 .hb-cta-phone__heading { font-size: 28px !important; }
}
/* Fortschrittsblock gehoert optisch zur Checkliste darueber */
.page-id-1064 .checklist_sec,
body.page-id-1064 section.checklist_sec.bg-secondary-50 { background-color: #f7f7f7 !important; }

/* Strich der Unterlagen-Sektion mit denselben Abstaenden wie ueberall */
.page-id-1064 .documents-section [class*="divider"] {
  margin: 20px auto 48px !important;
}

/* Telefonsymbol im weissen Notfall-Button lila, beim Hover weiss */
.page-id-1064 .hb-notfall-cta .hb-cta-phone__btn svg {
  stroke: #831F82 !important;
  color: #831F82 !important;
}
.page-id-1064 .hb-notfall-cta .hb-cta-phone__btn:hover svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* ===== Ende Was tun im Trauerfall ===== */