/* ═══════════════════════════════════════════════════════════
   BMH – Mobile-Version (/m/)
   Touch-first, große Ziele, einhändige Nutzung
   ═══════════════════════════════════════════════════════════ */

:root {
  --m-gold: #c5a46e;
  --m-gold-soft: #a88f5f;
  --m-text: #f1e9df;
  --m-muted: #b8a78a;
  --m-bg: #0a0b10;
  --m-card: rgba(22, 24, 32, 0.92);
  --m-border: rgba(255, 255, 255, 0.08);
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
  --m-safe-top: env(safe-area-inset-top, 0px);
  --m-dock-h: 4.5rem;
  --m-header-h: 3.5rem;
  --m-radius: 1rem;
  --m-touch: 48px;
}

html[data-theme="light"] {
  --m-text: #1a1612;
  --m-muted: #5c5348;
  --m-bg: #f7f3ec;
  --m-card: rgba(255, 252, 247, 0.95);
  --m-border: rgba(42, 36, 28, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.m-body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: transparent;
  color: var(--m-text);
  padding-bottom: calc(var(--m-dock-h) + var(--m-safe-bottom) + 0.75rem);
  overflow-x: hidden;
}

/* Park-Hintergrund im 9:16-Hochformat — füllt den Handybildschirm ohne seitlichen Beschnitt des 16:9-Fotos */
body.m-body::before {
  background-image: image-set(
    url("../images/sections/hero-atmosphere-mobile.webp") type("image/webp"),
    url("../images/sections/hero-atmosphere-mobile.jpg") type("image/jpeg")
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: none;
}

.m-page {
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────── */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: var(--m-header-h);
  padding: calc(0.45rem + var(--m-safe-top)) 0.7rem 0.45rem;
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--m-border);
}

html[data-theme="light"] .m-header {
  background: rgba(247, 243, 236, 0.92);
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.m-brand img {
  width: 36px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.m-brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--m-gold);
  line-height: 1;
}

@media (max-width: 360px) {
  .m-brand-text {
    display: none;
  }
}

.m-header-tagline {
  display: none;
  margin: 0;
  padding: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  font-style: italic;
  color: var(--m-gold, #c5a46e);
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
}

@media (min-width: 480px) {
  .m-header-tagline {
    display: block;
    position: absolute;
    left: 5.6rem;
    top: calc(50% + var(--m-safe-top) / 2);
    transform: translateY(-50%);
    z-index: 1;
    max-width: calc(50vw - 8.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.m-header-phone {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--m-safe-top) / 2);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: calc(100% - 9.5rem);
  z-index: 2;
  padding: 0;
  pointer-events: none;
}

.m-header-phone > * {
  pointer-events: auto;
}

.m-header-sofort.navbar-sofort-phone,
#soforthilfe-side.m-header-sofort {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  min-height: 2.55rem;
  padding: 0.32rem 0.85rem 0.32rem 0.45rem;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
}

#soforthilfe-side.m-header-sofort .sofort-side-icon {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0.24rem;
}

@media (max-width: 380px) {
  .m-header-sofort .sofort-label-only {
    display: none;
  }
}

.m-header-checkliste {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--m-safe-top) / 2);
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 12.5rem);
  min-height: 2.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 164, 110, 0.55);
  background: linear-gradient(160deg, rgba(197, 164, 110, 0.22), rgba(168, 137, 74, 0.12));
  color: var(--m-gold);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.m-header-checkliste svg {
  flex-shrink: 0;
}

.m-header-checkliste-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.m-header-checkliste-text span:first-child {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
}

.m-header-checkliste-text span:last-child {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
}

.m-header-checkliste:active {
  transform: translate(-50%, -50%) scale(0.97);
  background: linear-gradient(160deg, rgba(197, 164, 110, 0.34), rgba(168, 137, 74, 0.18));
}

body.termin-page .m-header {
  justify-content: flex-end;
}

body.termin-page .m-header .m-brand {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--m-safe-top) / 2);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

body.termin-page .m-header .m-brand-text {
  display: none;
}

.m-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-inline-start: 0.1rem;
}

.m-header .lang-switcher {
  gap: 0.12rem;
  padding: 0.1rem 0.15rem;
  background: rgba(20, 21, 28, 0.35);
}

.m-header .lang-flag {
  width: 1.65rem;
  height: 1.15rem;
}

.m-header .lang-flag-svg {
  width: 1.2rem;
  height: 0.8rem;
}

html[data-theme="light"] .m-header .lang-switcher {
  background: rgba(255, 255, 255, 0.4);
}

.m-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--m-touch);
  height: var(--m-touch);
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--m-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-icon-btn:active {
  background: rgba(197, 164, 110, 0.12);
  color: var(--m-gold);
}

.m-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--m-touch);
  height: var(--m-touch);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #c5a46e, #a8894a);
  color: #0a0b10;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(197, 164, 110, 0.35);
}

.m-header-call:active {
  transform: scale(0.96);
}

/* ── Drawer / Menü ──────────────────────────────────────── */
.m-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.m-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.m-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(20rem, 88vw);
  height: 100dvh;
  /* Extra unten: Dock / Telefon-Button verdeckt keine Menüpunkte */
  padding:
    calc(1rem + var(--m-safe-top))
    1.1rem
    calc(var(--m-dock-h) + var(--m-safe-bottom) + 1.75rem);
  background: var(--m-bg);
  border-left: 1px solid var(--m-border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.m-drawer.is-open {
  transform: translateX(0);
}

.m-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.m-drawer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--m-gold);
  margin: 0;
}

.m-drawer a,
.m-drawer button.m-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--m-touch);
  padding: 0.85rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--m-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.m-drawer a:active,
.m-drawer button.m-drawer-link:active {
  background: rgba(197, 164, 110, 0.12);
}

.m-drawer-divider {
  height: 1px;
  background: var(--m-border);
  margin: 0.85rem 0;
  flex-shrink: 0;
}

.m-drawer-meta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--m-muted);
  text-align: center;
  flex-shrink: 0;
}

.m-drawer-static {
  display: flex;
  align-items: center;
  min-height: var(--m-touch);
  padding: 0.85rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--m-muted);
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.7;
}

.m-drawer-phone {
  justify-content: center !important;
  color: var(--m-gold) !important;
  font-weight: 700 !important;
}

/* ── Hero ───────────────────────────────────────────────── */
.m-hero {
  position: relative;
  min-height: calc(100dvh - var(--m-header-h) - var(--m-dock-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0 1.5rem;
  text-align: center;
  overflow: visible;
  background: transparent;
}

.m-hero-layout.hero-layout {
  width: 100%;
  min-height: 0;
  padding: 0.25rem 1rem 1.25rem;
}

body.m-body .hero-brand {
  width: min(13.5rem, 58vw);
  margin-top: 0.15rem;
}

body.m-body .hero-help-panel {
  max-width: 100%;
  width: 100%;
  padding: 0.7rem 0.55rem 0.85rem;
  border-radius: 1rem;
  background: rgba(10, 11, 16, 0.1);
  background-color: rgba(10, 11, 16, 0.1);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] body.m-body .hero-help-panel {
  background: rgba(255, 252, 247, 0.1);
  background-color: rgba(255, 252, 247, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

body.m-body .hero-help-question,
body.m-body .hero-help-sub {
  font-size: var(--hero-help-size, 1.55rem);
  max-width: none;
}

body.m-body .hero-help-question,
body.m-body .hero-help-sub__line {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

body.m-body .hero-help-sub {
  margin-top: 0.2rem;
}

body.m-body .hero-help-sub__line {
  display: block;
}

body.m-body .hero-consultation-phone {
  font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  margin-bottom: 0.75rem;
  max-width: 22rem;
  padding: 0.55rem 0.95rem 0.6rem;
  background-color: rgba(13, 40, 64, 0.10);
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.10) 0%,
      rgba(12, 36, 56, 0.10) 48%,
      rgba(8, 22, 36, 0.10) 100%
    ),
    url("../images/bg-side-digital.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.2),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

html[data-theme="light"] body.m-body .hero-consultation-phone {
  background-color: #0d2840;
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.72) 0%,
      rgba(12, 36, 56, 0.55) 48%,
      rgba(8, 22, 36, 0.68) 100%
    ),
    url("../images/bg-side-digital.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.28),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
}

body.m-body .hero-consultation-phone,
body.m-body .hero-consultation-phone .hero-phone-copy,
body.m-body .hero-consultation-phone a,
body.m-body .hero-consultation-phone span,
html[data-theme="light"] body.m-body .hero-consultation-phone,
html[data-theme="light"] body.m-body .hero-consultation-phone .hero-phone-copy,
html[data-theme="light"] body.m-body .hero-consultation-phone a,
html[data-theme="light"] body.m-body .hero-consultation-phone span {
  color: #fff !important;
  -webkit-text-stroke: 0;
}

body.m-body .hero-consultation-phone .hero-phone-copy {
  white-space: normal;
}

body.m-body .hero-consultation-phone {
  margin-top: 0.75rem;
  margin-bottom: 0.45rem;
}

body.m-body .hero-below-logo .auszeichnet-tagline {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.4rem 0.95rem 0.45rem;
  border-radius: 999px;
  background-color: rgba(10, 11, 16, 0.32);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border: 0;
  box-shadow: none;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

html[data-theme="light"] body.m-body .hero-below-logo .auszeichnet-tagline {
  background-color: rgba(255, 252, 247, 0.38);
  border: 0;
}

body.m-body .m-hero-options.hero-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: min(36rem, 96vw);
  margin: 0 auto;
  width: 100%;
}

body.m-body .m-hero-options .hero-option-wide,
body.m-body .m-hero-options a.hero-option-wide {
  grid-column: auto;
  min-width: 0;
  width: auto;
}

body.m-body .m-hero-options .hero-option,
body.m-body .m-hero-options a.hero-option {
  white-space: normal;
  min-width: 0;
  min-height: 3.6rem;
  padding: 0.7rem 0.55rem;
  font-size: 0.88rem;
  line-height: 1.25;
}

body.m-body .m-hero-options .hero-option-wide > span:first-child {
  white-space: normal;
}

.m-hero-welcome {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--m-muted);
  max-width: 22rem;
}

.m-hero-question {
  margin: 0.15rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--m-text);
}

.m-hero-phone-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0.15rem 0 0.5rem;
}

.m-hero-availability {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 700;
  color: #000;
  -webkit-text-stroke: 0.55px var(--m-gold);
  paint-order: stroke fill;
}

html[data-theme="light"] .m-hero-availability {
  color: #000;
}

.m-hero-phone {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000;
  text-decoration: none;
  -webkit-text-stroke: 0.55px var(--m-gold);
  paint-order: stroke fill;
  padding: 0.35rem 0.75rem;
  min-height: var(--m-touch);
  display: inline-flex;
  align-items: center;
}

/* Telefonnummern: ein Tipp öffnet das Wählfeld (kein Text-Select, kein 300ms-Delay) */
body.m-body a[href^="tel:"] {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: default;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(197, 164, 110, 0.28);
}

/* ── Action cards ───────────────────────────────────────── */
.m-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.m-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--m-radius);
  text-decoration: none;
  color: var(--m-text);
  background: var(--m-card);
  border: 1px solid var(--m-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.m-action:active {
  transform: scale(0.985);
  border-color: rgba(197, 164, 110, 0.45);
}

.m-action--primary {
  background: linear-gradient(145deg, rgba(197, 164, 110, 0.28), rgba(197, 164, 110, 0.12));
  border-color: rgba(197, 164, 110, 0.45);
}

.m-action--call {
  background: linear-gradient(145deg, #c5a46e, #a8894a);
  color: #0a0b10;
  border-color: transparent;
  font-weight: 700;
}

.m-action--call .m-action-icon {
  background: rgba(10, 11, 16, 0.15);
  color: #0a0b10;
}

.m-action-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 164, 110, 0.15);
  color: var(--m-gold);
}

.m-action-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.m-action-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
}

.m-action-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--m-muted);
  font-weight: 400;
}

.m-action--call .m-action-sub {
  color: rgba(10, 11, 16, 0.72);
}

.m-action-chevron {
  flex-shrink: 0;
  color: var(--m-gold-soft);
  opacity: 0.7;
}

/* ── Sections (Desktop-Inhalt, mobil gestapelt) ─────────── */
body.m-body .home-teaser-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  body.m-body .home-teaser-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.m-section {
  padding: 2rem 1rem 2.25rem;
}

.m-section--desktop {
  border-top: none;
}

.m-section-head {
  margin-bottom: 1.25rem;
}

body.m-body .text-center {
  text-align: center;
}

.m-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 6.4vw, 2.15rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--m-text);
}

.m-section-lead {
  text-align: center;
  color: var(--m-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.85rem auto 0;
  max-width: 26rem;
}

.m-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

body.m-body .ablauf-card > div:not(.ablauf-card-photo) {
  padding: 1.15rem 1.1rem 1.25rem !important;
}

body.m-body .step-number {
  margin-bottom: 0.75rem;
}

body.m-body .ablauf-card .font-semibold {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--m-text);
}

body.m-body .leistungen-card-body {
  padding: 1.15rem 1.1rem 1.25rem !important;
}

body.m-body .bestattungsart-heading {
  margin-bottom: 0.55rem;
}

body.m-body .bestattungsart-title {
  font-size: 1.15rem;
}

body.m-body .konfigurator-btn {
  min-height: var(--m-touch);
  margin-top: 0.9rem;
}

body.m-body .konfigurator-btn--premium {
  min-height: 3.1rem;
}

body.m-body .bmh-premium-overlay {
  padding: 0.85rem;
}

body.m-body .bmh-premium-title {
  max-width: 16ch;
}

body.m-body .leistungen-features {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.m-team-logo {
  width: 4.5rem;
  height: auto;
  margin: 0;
  display: block;
}

body.m-body #unser-team .team-header-logo,
body.m-body #unser-team .m-team-logo {
  display: none !important;
}

body.m-body #unser-team .m-team-heading,
body.m-body #unser-team .team-title-row {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  line-height: 1.2;
}

body.m-body .m-team-heading-text {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.38em;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

body.m-body .team-intro {
  margin: 0.85rem auto 0;
  max-width: 24rem;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.5;
}

.m-team-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto;
}

.m-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 1.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

html[data-theme="light"] .m-team-card {
  background: transparent;
}

.m-team-portrait {
  width: 8rem;
  height: 8rem;
  cursor: default;
  background: #1c1f28;
}

body.m-body .m-team-portrait .team-member-portrait-visual {
  background: linear-gradient(145deg, #2a2d38 0%, #161820 100%);
}

html[data-theme="light"] .m-team-portrait {
  background: #efe8dc;
}

html[data-theme="light"] body.m-body .m-team-portrait .team-member-portrait-visual {
  background: linear-gradient(145deg, #f4eee4 0%, #e7dfd2 100%);
}

.m-team-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--m-text);
}

.m-team-role {
  margin-top: -0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--m-gold);
}

body.m-body .m-team-portrait .team-member-portrait-visual {
  background: #1c1f28;
}

body.m-body .m-team-portrait .team-member-portrait-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

body.m-body .m-team-portrait .team-member-portrait-visual img.team-portrait--full-head {
  object-fit: contain;
  object-position: center center;
}

body.m-body .m-team-carousel-wrap {
  position: relative;
  overflow: visible;
  margin: 0.35rem auto 0;
  max-width: 100%;
  padding-bottom: 1.15rem;
}

body.m-body .m-team-carousel-wrap .team-ki-hint {
  right: 0.55rem;
  bottom: 0.2rem;
  font-size: 0.58rem;
}

body.m-body #unser-team .team-carousel {
  margin-top: 0;
  padding: 0;
  border-top: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

body.m-body .team-carousel-nav,
body.m-body .team-carousel-hint {
  display: none !important;
}

body.m-body #unser-team .team-carousel-viewport {
  height: 24.5rem;
  perspective: 820px;
}

body.m-body #unser-team .team-carousel-item {
  width: 13.5rem;
  margin-left: -6.75rem;
  margin-top: -7rem;
}

body.m-body #unser-team .team-carousel-item .team-member-portrait {
  width: 11rem;
  height: 11rem;
}

body.m-body #unser-team .team-member-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.35rem;
}

body.m-body #unser-team .team-member-card:hover .team-member-caption,
body.m-body #unser-team .team-member-portrait:hover ~ .team-member-caption,
body.m-body #unser-team .team-member-portrait:focus-visible ~ .team-member-caption,
body.m-body #unser-team .team-carousel-item.is-front .team-member-caption {
  opacity: 0;
  visibility: hidden;
}

body.m-body #unser-team .team-carousel-item.is-caption-open .team-member-caption {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.m-body #unser-team .team-carousel.is-dragging .team-member-caption {
  opacity: 0 !important;
  visibility: hidden !important;
}

html[data-theme="light"] body.m-body #unser-team .team-member-caption {
  background: rgba(255, 252, 247, 0.96);
}

html[data-theme="light"] body.m-body #unser-team .team-member-name {
  color: #1a140c;
}

html[data-theme="light"] body.m-body #unser-team .team-member-role {
  color: #8a6c3c;
}

.m-ratgeber-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 28rem;
  margin: 0 auto;
}

.m-ratgeber-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--m-touch);
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--m-text);
}

.m-ratgeber-btn svg {
  flex-shrink: 0;
  color: var(--m-gold);
}

.m-ratgeber-answer {
  display: none;
  max-height: none !important;
  padding: 0 1rem 1rem;
  color: var(--m-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ratgeber-item.is-open .m-ratgeber-answer {
  display: block;
}

body.m-body .ablauf-card,
body.m-body .leistungen-card,
body.m-body .ratgeber-item {
  overflow: hidden;
  border-radius: 1.35rem;
}

.m-ratgeber-answer a {
  color: var(--m-gold);
}

.m-ratgeber-disclaimer {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
}

body.m-body .kontakt-section-header {
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem 1rem;
}

body.m-body .kontakt-section-title {
  font-size: clamp(1.7rem, 6.4vw, 2.15rem);
}

body.m-body .kontakt-location-label {
  font-size: 1.35rem;
}

body.m-body .kontakt-location-row {
  gap: 1.5rem;
}

.m-kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.m-kontakt-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--m-gold);
  margin-bottom: 0.25rem;
}

.m-kontakt-details a {
  color: var(--m-text);
  text-decoration: none;
  font-weight: 600;
}

.m-kontakt-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--m-gold-soft);
}

body.m-body #scroll-to-top {
  display: none !important;
}

body.m-body .ablauf-card > div:not(.ablauf-card-photo),
body.m-body .ratgeber-item.card-dark,
body.m-body .kontakt-section-header,
body.m-body .kontakt-location-label,
body.m-body .kontakt-location-address,
html[data-theme="light"] body.m-body .ablauf-card > div:not(.ablauf-card-photo),
html[data-theme="light"] body.m-body .ratgeber-item.card-dark {
  background: rgba(255, 252, 247, 0.82) !important;
}

html[data-theme="dark"] body.m-body .ablauf-card > div:not(.ablauf-card-photo),
html[data-theme="dark"] body.m-body .ratgeber-item.card-dark,
html[data-theme="dark"] body.m-body .kontakt-section-header {
  background: rgba(10, 11, 16, 0.72) !important;
}

body.m-body .m-team-card,
html[data-theme="light"] body.m-body .m-team-card,
html[data-theme="dark"] body.m-body .m-team-card {
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.m-body .m-team-card .team-carousel-badge,
html[data-theme="light"] body.m-body .m-team-card .team-carousel-badge {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

body.m-body .ablauf-card > div:not(.ablauf-card-photo),
html[data-theme="light"] body.m-body .ablauf-card > div:not(.ablauf-card-photo) {
  background: rgba(255, 252, 247, 0.1) !important;
  background-color: rgba(255, 252, 247, 0.1) !important;
}

html[data-theme="dark"] body.m-body .ablauf-card > div:not(.ablauf-card-photo) {
  background: rgba(10, 11, 16, 0.1) !important;
  background-color: rgba(10, 11, 16, 0.1) !important;
}

/* Bestattungen (Kosten): gleiche Glas-Transparenz wie die Überschrift (30 %) */
body.m-body #leistungen .leistungen-card,
body.m-body #leistungen .leistungen-card.card-dark {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body.m-body #leistungen .leistungen-card-photo,
body.m-body #leistungen .leistungen-card-photo img {
  background: transparent;
}

body.m-body #leistungen .leistungen-card-body,
body.m-body #leistungen .leistungen-card.m-glass-alpha .leistungen-card-body,
html[data-theme="dark"] body.m-body #leistungen .leistungen-card-body,
html[data-theme="dark"] body.m-body #leistungen .leistungen-card.m-glass-alpha .leistungen-card-body {
  background: rgba(10, 11, 16, 0.3) !important;
  background-color: rgba(10, 11, 16, 0.3) !important;
  backdrop-filter: blur(7px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] body.m-body #leistungen .leistungen-card-body,
html[data-theme="light"] body.m-body #leistungen .leistungen-card.m-glass-alpha .leistungen-card-body {
  background: rgba(255, 252, 247, 0.3) !important;
  background-color: rgba(255, 252, 247, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 16px rgba(40, 32, 20, 0.08) !important;
}

body.m-body .kontakt-location-address,
body.m-body .kontakt-location-address:link,
body.m-body .kontakt-location-address:visited,
body.m-body .m-kontakt-details a,
body.m-body .m-kontakt-details a:visited {
  color: var(--m-text) !important;
  text-decoration: none;
}

body.m-body #unser-team .m-team-logo,
body.m-body #unser-team .team-header-logo {
  width: 4.5rem;
}

body.m-body #unser-team .team-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.7rem 0.95rem;
  color: #000 !important;
}

body.m-body section {
  scroll-margin-top: calc(var(--m-header-h) + 0.6rem);
}

body.m-body .leistungen-card-photo img,
body.m-body .ablauf-card-photo img {
  background: #e8dfd2;
}

.m-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 28rem;
  margin: 0 auto;
}

.m-step {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--m-radius);
  background: var(--m-card);
  border: 1px solid var(--m-border);
}

.m-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--m-gold);
  border: 1px solid rgba(197, 164, 110, 0.4);
  background: rgba(197, 164, 110, 0.1);
}

.m-step-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.m-step-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--m-muted);
}

.m-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 28rem;
  margin: 0 auto;
}

.m-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--m-touch);
  padding: 0.85rem 1rem;
  border-radius: var(--m-radius);
  background: var(--m-card);
  border: 1px solid var(--m-border);
  text-decoration: none;
  color: var(--m-text);
}

.m-list-item:active {
  border-color: rgba(197, 164, 110, 0.4);
}

.m-list-item span {
  font-weight: 600;
  font-size: 1rem;
}

.m-list-item small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--m-muted);
}

.m-contact-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.15rem;
  border-radius: var(--m-radius);
  background: var(--m-card);
  border: 1px solid var(--m-border);
  text-align: center;
}

.m-contact-card a {
  color: var(--m-gold);
  text-decoration: none;
  font-weight: 600;
}

.m-contact-row {
  margin: 0.65rem 0;
  font-size: 0.95rem;
  color: var(--m-muted);
  line-height: 1.45;
}

.m-contact-row strong {
  display: block;
  color: var(--m-gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.m-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--m-touch);
  padding: 0.65rem 1.15rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(197, 164, 110, 0.15);
  border: 1px solid rgba(197, 164, 110, 0.35);
  color: var(--m-gold) !important;
  font-weight: 600;
  text-decoration: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.m-footer {
  padding: 1.5rem 1rem calc(1rem + var(--m-safe-bottom));
  text-align: center;
  border-top: 1px solid var(--m-border);
}

.m-footer-tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--m-gold);
  margin: 0.5rem 0 1rem;
}

.m-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
  font-size: 0.85rem;
}

.m-footer-links a {
  color: var(--m-muted);
  text-decoration: none;
}

.m-footer-links a:active {
  color: var(--m-gold);
}

.m-desktop-switch {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--m-gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Sticky bottom dock ─────────────────────────────────── */
.m-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  min-height: var(--m-dock-h);
  padding: 0.45rem 0.55rem calc(0.45rem + var(--m-safe-bottom));
  background: rgba(10, 11, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--m-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .m-dock {
  background: rgba(247, 243, 236, 0.96);
}

.m-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.35rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--m-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.m-dock a:active {
  background: rgba(197, 164, 110, 0.12);
  color: var(--m-gold);
}

.m-dock a.m-dock-call {
  color: #fff;
}

.m-dock svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.m-dock-trauerfall,
.m-dock a.m-dock-call {
  color: #fff;
  background-color: rgba(13, 40, 64, 0.10);
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.10) 0%,
      rgba(12, 36, 56, 0.10) 48%,
      rgba(8, 22, 36, 0.10) 100%
    ),
    url("../images/bg-side-digital.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.2),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
}

.m-dock-trauerfall {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  font-size: 0.62rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

html[data-theme="light"] .m-dock-trauerfall,
html[data-theme="light"] .m-dock a.m-dock-call {
  background-color: #0d2840;
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.72) 0%,
      rgba(12, 36, 56, 0.55) 48%,
      rgba(8, 22, 36, 0.68) 100%
    ),
    url("../images/bg-side-digital.svg");
  color: #fff;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.28),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
}

.m-dock-trauerfall,
.m-dock-trauerfall span,
.m-dock a.m-dock-call,
html[data-theme="light"] .m-dock-trauerfall,
html[data-theme="light"] .m-dock-trauerfall span,
html[data-theme="light"] .m-dock a.m-dock-call {
  color: #fff !important;
}

.m-dock a.m-dock-trauerfall:active,
.m-dock a.m-dock-call:active {
  background-color: #0d2840;
  color: #fff;
}

/* Angebot: Telefon links / Teams rechts — Gold-Tasten wie „Anrufen“ auf der Startseite */
.m-corner-dock {
  pointer-events: none;
}

.m-corner-dock__btn {
  pointer-events: auto;
  position: fixed;
  z-index: 160;
  bottom: calc(0.45rem + var(--m-safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.35rem;
  width: 7.6rem;
  max-width: 36vw;
  padding: 0.4rem 0.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  color: #0a0b10;
  background: linear-gradient(145deg, #c5a46e, #a8894a);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.m-corner-dock__btn:active {
  transform: scale(0.97);
  color: #0a0b10;
}

.m-corner-dock__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.m-corner-dock__btn--left {
  left: 0.55rem;
}

.m-corner-dock__btn--right {
  right: 0.55rem;
}

/* Theme toggle in mobile header: compact */
.m-header .theme-toggle-wrap {
  position: static !important;
  width: var(--m-touch);
  height: var(--m-touch);
  min-width: var(--m-touch);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.m-header .theme-toggle-label {
  display: none;
}

.m-header .theme-toggle-face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Unterseiten Angebot / Termin ───────────────────────── */
.m-subpage-main {
  padding: 1.15rem 1rem 1.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.m-subpage-main > .text-center {
  margin-bottom: 1.15rem;
}

body.m-body.m-subpage .heading-serif {
  font-size: clamp(1.55rem, 6vw, 2rem);
}

body.m-body.m-subpage input,
body.m-body.m-subpage select,
body.m-body.m-subpage textarea {
  min-height: 3rem;
  font-size: 16px;
  border-radius: 0.9rem;
}

body.m-body.m-subpage .gold-button,
body.m-body.m-subpage .angebot-wizard-btn {
  min-height: 3rem;
}

body.m-body.m-subpage .termin-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

body.m-body.m-subpage .termin-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

/* Mobil: Fortschrittsübersicht nicht anzeigen */
html body.m-body .angebot-wizard-progress,
html body.m-body .angebot-wizard-progress--with-titles,
html body.m-body.m-subpage .angebot-wizard-progress,
html body.m-body.m-subpage .angebot-wizard-progress--with-titles,
html body.m-body > .angebot-wizard-progress,
html body.m-body.m-subpage > .angebot-wizard-progress,
html body.m-body.m-subpage #angebot-form .angebot-wizard-progress,
html body.m-body.angebot-page .angebot-wizard-progress,
html body.m-body.angebot-page.m-subpage #angebot-form .angebot-wizard-progress,
html body.m-body.angebot-wizard-progress-visible .angebot-wizard-progress,
html body.m-body.angebot-page.angebot-wizard-progress-visible .angebot-wizard-progress,
html body.m-body.angebot-page.angebot-wizard-progress-visible #angebot-form .angebot-wizard-progress {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

html[data-theme="light"] body.m-body > .angebot-wizard-progress,
html[data-theme="light"] body.m-body.m-subpage .angebot-wizard-progress,
html[data-theme="light"] body.m-body .angebot-wizard-progress--with-titles {
  background: rgba(247, 243, 236, 0.92) !important;
}

body.m-body .angebot-wizard-progress-heading {
  display: none !important;
}

body.m-body .angebot-wizard-step-label {
  display: block !important;
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0;
  color: var(--m-gold);
  text-shadow: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] body.m-body .angebot-wizard-step-label {
  color: #8a6a38;
  text-shadow: none;
}

/* Nur den aktuellen Schritt-Titel in der Leiste, nicht die ganze Kapitel-Liste */
body.m-body .angebot-wizard-steps,
body.m-body #angebot-wizard-steps {
  display: flex !important;
  grid-column: 2;
  grid-row: 1;
  flex-direction: row !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  list-style: none !important;
}

body.m-body .angebot-wizard-steps > li {
  display: none !important;
  min-width: 0;
  width: 100%;
}

body.m-body .angebot-wizard-steps > li:has(.is-active) {
  display: block !important;
}

body.m-body .angebot-wizard-step,
body.m-body .angebot-wizard-progress--with-titles .angebot-wizard-step,
body.m-body .angebot-wizard-step:has(.angebot-wizard-step-title) {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--m-text) !important;
  pointer-events: none;
}

body.m-body .angebot-wizard-step-num {
  display: none !important;
}

body.m-body .angebot-wizard-step-title {
  display: block !important;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--m-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.m-body .angebot-wizard-step-title {
  color: #1a1612;
}

body.m-body .angebot-wizard-progress::after {
  content: '';
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--m-gold) 0,
    var(--m-gold) var(--m-wizard-progress, 20%),
    rgba(197, 164, 110, 0.22) var(--m-wizard-progress, 20%),
    rgba(197, 164, 110, 0.22) 100%
  );
}



body.m-body.m-subpage .sofort-side-fixed,
body.m-body.m-subpage .sterbefall-soforthilfe-fixed,
body.m-body.m-subpage #scroll-to-top {
  display: none !important;
}

body.m-body.m-subpage .angebot-total-rail,
body.m-body.m-subpage body > .angebot-total-rail,
html body.m-body.m-subpage .angebot-total-rail {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 1rem !important;
  padding: 0.7rem 1rem;
  pointer-events: auto;
}

/* Gesamtpreis fest in der oberen Leiste (sticky Header) */
body.m-body .m-header {
  gap: 0.4rem;
}

body.m-body .m-header .m-brand-text {
  flex-shrink: 0;
}

body.m-body .m-header .angebot-total-rail,
body.m-body .m-header .konfig-total-rail,
body.m-body.m-subpage .m-header .angebot-total-rail,
html body.m-body.m-subpage .m-header .angebot-total-rail,
html body.m-body.m-subpage .m-header .konfig-total-rail,
body.m-body.angebot-total-rail-visible .m-header .angebot-total-rail {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  inset: auto !important;
  inset-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end;
  justify-content: center;
  gap: 0.05rem;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  max-height: none;
  margin: 0 0.15rem 0 auto !important;
  padding: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  pointer-events: none;
  text-align: right;
}

body.m-body .m-header .angebot-total-rail[hidden],
body.m-body .m-header .konfig-total-rail[hidden] {
  display: none !important;
}

body.m-body .m-header .konfig-total-rail-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--m-muted);
}

body.m-body .m-header .konfig-total-rail-value {
  font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  line-height: 1.15;
  color: var(--price-color);
}

html[data-theme="light"] body.m-body .m-header .konfig-total-rail-label {
  color: var(--m-muted);
}

html[data-theme="light"] body.m-body .m-header .angebot-total-rail,
html[data-theme="light"] body.m-body .m-header .konfig-total-rail {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

body.m-body.m-subpage .card-dark {
  background: rgba(255, 252, 247, 0.82);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

/* Angebot: eigene Smartphone-Ansicht — drei getrennte Zonen, nichts überlappt */
html:has(body.m-body.angebot-page) {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.m-body.angebot-page {
  --m-corner-h: 0px;
  --m-corner-clearance: 0px;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

body.m-body.angebot-page .m-angebot-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.m-body.angebot-page .m-header {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 20;
}

body.m-body.angebot-page .m-page {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

body.m-body.angebot-page .m-angebot-chrome {
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem calc(0.5rem + var(--m-safe-bottom));
  background: #f7f3ec;
  border-top: 1px solid var(--m-border);
  box-shadow: 0 -8px 20px rgba(20, 16, 10, 0.08);
}

html[data-theme="dark"] body.m-body.angebot-page .m-angebot-chrome {
  background: #0a0b10;
}

body.m-body.angebot-page .m-angebot-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
}

body.m-body.angebot-page:has(#angebot-form.hidden) .m-angebot-wizard-nav {
  display: none;
}

body.m-body.angebot-page .m-angebot-wizard-nav .angebot-wizard-btn--back,
body.m-body.angebot-page .m-angebot-wizard-nav .angebot-wizard-btn--next {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.7rem 0.65rem;
  font-size: 0.95rem;
}

body.m-body.bmh-diamant-marble .angebot-wizard-btn.angebot-wizard-btn--next:not(.angebot-wizard-btn--confirm-email),
body.m-body.bmh-diamant-marble #konfig-wizard-next.angebot-wizard-btn--next {
  flex: 1 1 100%;
  min-width: 100%;
  min-height: 3.1rem;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

body.m-body .bmh-premium-shield,
body.m-body.angebot-page .bmh-premium-shield {
  top: calc(0.5rem + env(safe-area-inset-top, 0px));
  left: calc(0.45rem + env(safe-area-inset-left, 0px));
  width: min(13.2rem, calc(100vw - 5.25rem));
  z-index: 160;
}

body.m-body .bmh-premium-shield-plate {
  min-height: 0;
  padding: 0.55rem 0.75rem 0.6rem;
  clip-path: none;
  border-radius: 0;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.4rem;
  border: 1px solid rgba(166, 124, 45, 0.55);
}

body.m-body .bmh-premium-shield-mark {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: #0a2548;
}

body.m-body .bmh-premium-shield-text {
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.22;
  text-align: left;
  color: #0a2548;
}

body.m-body.angebot-page .m-angebot-wizard-nav .angebot-wizard-btn--submit,
body.m-body.angebot-page .m-angebot-wizard-nav .angebot-wizard-btn--confirm-email,
body.m-body .angebot-wizard-btn--confirm-email {
  flex: 1 1 100%;
  min-width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.65rem;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: normal;
}

body.m-body.angebot-page .m-angebot-wizard-nav:has(.angebot-wizard-btn--confirm-email) .angebot-wizard-btn--back,
body.m-body .angebot-wizard-nav:has(.angebot-wizard-btn--confirm-email) .angebot-wizard-btn--back {
  display: none;
}

body.m-body.angebot-page .m-angebot-bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  border: none;
}

body.m-body.angebot-page .m-angebot-bottom__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background-color: rgba(13, 40, 64, 0.10);
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.10) 0%,
      rgba(12, 36, 56, 0.10) 48%,
      rgba(8, 22, 36, 0.10) 100%
    ),
    url("../images/bg-side-digital.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.2),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: normal;
  -webkit-tap-highlight-color: transparent;
}

html[data-theme="light"] body.m-body.angebot-page .m-angebot-bottom__btn {
  background-color: #0d2840;
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 22, 36, 0.72) 0%,
      rgba(12, 36, 56, 0.55) 48%,
      rgba(8, 22, 36, 0.68) 100%
    ),
    url("../images/bg-side-digital.svg");
  color: #fff;
  border: 1px solid rgba(110, 200, 255, 0.45);
  box-shadow:
    0 2px 14px rgba(20, 90, 140, 0.28),
    inset 0 0 0 1px rgba(140, 220, 255, 0.12);
}

body.m-body.angebot-page .m-angebot-bottom__btn,
body.m-body.angebot-page .m-angebot-bottom__btn span,
html[data-theme="light"] body.m-body.angebot-page .m-angebot-bottom__btn,
html[data-theme="light"] body.m-body.angebot-page .m-angebot-bottom__btn span {
  color: #fff !important;
}

body.m-body.angebot-page .m-angebot-bottom__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.m-body.angebot-page .m-angebot-bottom__btn:active {
  transform: scale(0.98);
  background-color: #0d2840;
  color: #fff;
}

body.m-body.angebot-page .m-corner-dock,
body.m-body.angebot-page .m-corner-dock__btn,
body.m-body.angebot-page .m-dock {
  display: none !important;
}

body.m-body.angebot-page .m-subpage-main,
body.m-body.angebot-page #angebot-panel {
  min-width: 0;
  max-width: 100%;
}

body.m-body.angebot-page .m-subpage-main {
  padding: 0.55rem 0.9rem 1.1rem;
}

body.m-body.angebot-page .m-subpage-main > .text-center {
  margin-bottom: 0.55rem !important;
}

body.m-body.angebot-page h1.heading-serif {
  font-size: clamp(1.22rem, 5.2vw, 1.55rem);
  line-height: 1.16;
}

body.m-body.angebot-page .angebot-intro-field {
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem !important;
  padding: 0.45rem 0.75rem;
}

body.m-body.angebot-page .angebot-intro-field__text {
  line-height: 1.38;
  font-size: 0.84rem;
  color: #000 !important;
}

body.m-body.angebot-page .angebot-intro-field__text--sm,
body.m-body.angebot-page .angebot-intro-field .form-timeout-hint {
  font-size: 0.74rem;
  line-height: 1.32;
  color: #000 !important;
}

@media (max-height: 780px) {
  body.m-body.angebot-page .m-subpage-main > .text-center {
    margin-bottom: 0.35rem !important;
  }

  body.m-body.angebot-page h1.heading-serif {
    font-size: 1.22rem;
  }

  body.m-body.angebot-page .angebot-intro-field {
    padding: 0.38rem 0.7rem;
  }

  body.m-body.angebot-page .angebot-intro-field__text {
    font-size: 0.78rem;
    line-height: 1.32;
  }

  body.m-body.angebot-page .angebot-intro-field__text--sm,
  body.m-body.angebot-page .angebot-intro-field .form-timeout-hint {
    font-size: 0.7rem;
  }

  body.m-body.angebot-page .m-subpage-main {
    padding: 0.4rem 0.8rem 0.75rem;
  }
}

body.m-body.angebot-page .angebot-intro-field__text + .angebot-intro-field__text {
  margin-top: 0.35rem;
}

body.m-body.angebot-page #angebot-form.angebot-form--wizard,
body.m-body.angebot-page #angebot-form {
  padding: 0.9rem 0.85rem 1rem !important;
  gap: 0.75rem;
  overflow: visible;
}

body.m-body.angebot-page #angebot-form.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

body.m-body.angebot-page #angebot-form .fragebogen-section {
  padding: 0.95rem 0.9rem 1.05rem;
  overflow: visible;
}

html body.m-body.angebot-page .angebot-wizard-progress,
html body.m-body.angebot-page .angebot-wizard-progress--with-titles,
html body.m-body.angebot-page #angebot-form .angebot-wizard-progress,
html body.m-body.angebot-page.angebot-wizard-progress-visible .angebot-wizard-progress,
html body.m-body.angebot-page.angebot-wizard-progress-visible #angebot-form .angebot-wizard-progress,
html body.m-body.angebot-page > .angebot-wizard-progress {
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  transform: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.m-body.angebot-page #angebot-form .fragebogen-section > .fragebogen-legend {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}

body.m-body.angebot-page #angebot-form .fragebogen-legend[data-i18n="angebot.section1"] {
  color: #fff !important;
}

body.m-body.angebot-page #angebot-form .fragebogen-legend,
body.m-body.angebot-page #angebot-form .angebot-subgroup-title,
body.m-body.angebot-page #angebot-form .angebot-leistung-title,
body.m-body.angebot-page #angebot-form .angebot-catering-title,
body.m-body.angebot-page #angebot-form .product-option-category {
  color: var(--price-color, #0a2f6b);
}

body.m-body.angebot-page #angebot-form .fragebogen-sub {
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

body.m-body.angebot-page .angebot-wizard-footer {
  margin-top: 0.5rem;
  padding: 0;
}

/* Optionen: Text, Preis und Medien untereinander statt nebeneinander */
body.m-body.angebot-page .fragebogen-check {
  flex-wrap: wrap;
  max-width: 100%;
}

body.m-body.angebot-page .fragebogen-check-content,
body.m-body.angebot-page .fragebogen-leistungsumfang-row,
body.m-body.angebot-page .fragebogen-leistungsumfang-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}

body.m-body.angebot-page .fragebogen-check-price,
body.m-body.angebot-page .fragebogen-check-price-wrap,
body.m-body.angebot-page .fragebogen-leistungsumfang-price {
  align-self: flex-start;
  white-space: normal;
}

body.m-body.angebot-page .product-option-media,
body.m-body.angebot-page .product-option-stack,
body.m-body.angebot-page .product-option-album {
  max-width: 100%;
  min-width: 0;
}

body.m-body.angebot-page .product-option-media--with-disclaimer {
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  height: auto;
}

body.m-body.angebot-page .product-option-media__disclaimer {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0.35rem 0 0;
}

body.m-body.angebot-page .fragebogen-check--with-media {
  align-items: flex-start;
}

body.m-body.angebot-page .product-option-stack {
  flex: 0 0 auto;
}

/* Särge: Vorschau im echten Querformat, Feldhöhe folgt dem Produkt */
body.m-body.angebot-page .angebot-sarge-group .fragebogen-check {
  padding: 0.65rem 0.75rem 0.45rem;
  gap: 0.4rem;
}

body.m-body.angebot-page .angebot-sarge-group .product-option-stack,
body.m-body.angebot-page .angebot-sarge-group .product-option-media {
  padding-left: 0;
  margin-top: 0.4rem;
}

body.m-body.angebot-page .angebot-sarge-group .product-option-media--with-disclaimer .product-option-album,
body.m-body.angebot-page .angebot-sarge-group .product-option-album {
  width: 100%;
  flex: 0 0 auto;
}

body.m-body.angebot-page .angebot-sarge-group .product-option-album__item {
  width: 100%;
  height: auto;
  aspect-ratio: 2.35 / 1;
  background: transparent;
}

body.m-body.angebot-page .angebot-sarge-group .product-option-album__item img,
body.m-body.angebot-page .angebot-sarge-group .product-option-album__preview-poster,
body.m-body.angebot-page .angebot-sarge-group .product-option-album__preview-video {
  object-fit: contain;
  background: transparent;
}

body.m-body.angebot-page .sarg-kachel-grid {
  --sarg-kachel-gap: 0.4rem;
}

body.m-body.angebot-page .sarg-kachel .fragebogen-check {
  padding: 0.35rem;
  gap: 0.3rem 0.35rem;
  font-size: 0.72rem;
}

body.m-body.angebot-page .sarg-kachel .fragebogen-check-title {
  font-size: 0.78rem;
  line-height: 1.25;
}

body.m-body.angebot-page .sarg-kachel .product-option-album__item {
  aspect-ratio: 16 / 9;
}

body.m-body.angebot-page .sarg-kachel .product-option-variant {
  font-size: 0.62rem;
  padding: 0.12rem 0.32rem;
}

body.m-body.angebot-page .sarg-kachel .product-option-variants__label {
  font-size: 0.62rem;
  margin-bottom: 0.2rem;
}

body.m-body.angebot-page .urne-kachel-grid {
  --sarg-kachel-gap: 0.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.m-body.angebot-page .urne-kachel.sarg-kachel .product-option-album__item {
  aspect-ratio: 1 / 1;
}

/* Gesamtpreis nur in der Kopfzeile — nie als schwebende Desktop-Leiste */
body.m-body.angebot-page > .angebot-total-rail,
body.m-body.angebot-page.angebot-total-rail-visible > .angebot-total-rail {
  display: none !important;
  position: static !important;
  transform: none !important;
}

html[data-theme="dark"] body.m-body.m-subpage .card-dark {
  background: rgba(10, 11, 16, 0.72);
}

/* Produktvideos (Särge/Urnen): Lightbox auf dem Smartphone bedienbar */
body.m-body .product-media-lightbox {
  width: 100vw;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0.65rem 0.45rem calc(0.85rem + var(--m-safe-bottom));
  background: rgba(10, 11, 16, 0.96);
  overflow: auto;
}

body.m-body .product-media-lightbox__stage {
  padding: 2.85rem 0.35rem 0.45rem;
}

body.m-body .product-media-lightbox__img,
body.m-body .product-media-lightbox__video {
  width: 100%;
  max-height: min(62dvh, calc(100dvh - 13rem));
  pointer-events: auto;
}

body.m-body .product-media-lightbox__video::-webkit-media-controls-fullscreen-button {
  display: flex !important;
}

body.m-body .product-media-lightbox__nav {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

body.m-body .product-media-lightbox__nav--prev {
  left: 0.1rem;
}

body.m-body .product-media-lightbox__nav--next {
  right: 0.1rem;
}

body.m-body .product-media-lightbox__close {
  top: 0.4rem;
  right: 0.4rem;
}

html body.m-body #unser-team p.team-intro,
html body.m-body #unser-team .m-team-intro,
html[data-theme="dark"] body.m-body #unser-team .team-intro {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: rgba(10, 11, 16, 0.5) !important;
  background-color: rgba(10, 11, 16, 0.5) !important;
}

html[data-theme="light"] body.m-body #unser-team .team-intro,
html[data-theme="light"] body.m-body #unser-team .m-team-intro {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: rgba(255, 252, 247, 0.5) !important;
  background-color: rgba(255, 252, 247, 0.5) !important;
}

body.m-body #trauerredner {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

body.m-body .trauerredner-title {
  font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
  padding: 0.55rem 1rem;
}

body.m-body .trauerredner-intro {
  font-size: 0.98rem;
  padding: 0.65rem 1rem;
}

body.m-body .trauerredner-grid {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

body.m-body .trauerredner-photo {
  aspect-ratio: 1 / 1;
}

body.m-body .trauerredner-body {
  padding: 1.2rem 1.1rem 1.3rem;
}

body.m-body .trauerredner-name {
  font-size: 1.7rem;
}

body.m-body .trauerredner-link {
  min-height: var(--m-touch);
  justify-content: center;
  width: 100%;
}

body.m-body .trauerredner-note {
  font-size: 0.95rem;
  padding: 0 0.25rem 0.5rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
