/* Blog reading layer, September 2026.
   Only pages explicitly marked ma-blog-reading opt in. Existing article text,
   media/consent controls, calculators, forms and tracking remain unchanged. */

body.ma-blog-reading #main [id^="custom-blog-"] {
  --reading-ink: #212121;
  --reading-line: rgba(33, 33, 33, .14);
}

/* A table of contents is a set of usable destinations, including on a phone. */
body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 28px 0 0 !important;
  margin: 28px 0 0 !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box h2 {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  color: #212121 !important;
  text-align: left !important;
  margin: 0 0 14px !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box h2::after {
  display: none !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 32px !important;
  columns: auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(33, 33, 33, .14);
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box li::before {
  display: none !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 14px 4px !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #333 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box a::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid #3a8490;
  border-bottom: 2px solid #3a8490;
  transform: rotate(-45deg);
  margin-right: 4px;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box a:hover {
  color: #3a8490 !important;
  text-decoration: underline !important;
  text-underline-offset: .22em;
}

/* Preserve full-width section bands and the site's established headings. */
body.ma-blog-reading #main [id^="custom-blog-"] .bf-section > p {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] :is(h2, h3, h4)[id] {
  scroll-margin-top: 96px;
}

body.ma-blog-reading #main .ma-reading-anchor {
  display: block;
  scroll-margin-top: 96px;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-inline-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Song descriptions are never truncated, collapsed or removed. */
body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-grid {
  align-items: start !important;
  gap: 28px !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  padding: 22px !important;
  border: 1px solid rgba(33, 33, 33, .12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transform: none !important;
  background: #fff !important;
  overflow: visible !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > :is(h3, h4) {
  order: -1;
  padding: 0 !important;
  margin: 0 0 18px !important;
  min-height: 0 !important;
  height: auto !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
  line-height: 1.5 !important;
  color: #212121 !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > .yt-facade {
  width: 100% !important;
  flex: none !important;
  aspect-ratio: 16 / 9;
  border-radius: 10px !important;
  margin: 0 0 18px !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  text-align: left !important;
  color: #333 !important;
  max-width: none !important;
}

body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > p:last-child {
  margin-bottom: 0 !important;
}

/* The newer articles retain their own visual components. */
body.ma-blog-reading #main .ueber-uns-teaser .ueber-uns-text {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

body.ma-blog-reading #main > section:not(.hero):not(.social-proof-bar):not(.cta-banner):not(.spoke-section) p:not([class]) {
  font-size: 1rem;
  line-height: 1.8;
}

body.ma-blog-reading #main [id^="custom-blog-"] :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid #3a8490 !important;
  outline-offset: 4px;
}

@media (min-width: 1100px) {
  /* Wide screens can put the full description beside its recording.
     Reading order and every word remain in the original HTML. */
  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card {
    display: grid !important;
    grid-template-columns: minmax(240px, .4fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    column-gap: 28px !important;
    row-gap: 0 !important;
    padding: 24px !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > .yt-facade {
    grid-column: 1;
    grid-row: 1 / span 8;
    margin: 0 !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > :is(h3, h4, p) {
    grid-column: 2;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > :is(h3, h4) {
    grid-row: 1;
    margin-bottom: 12px !important;
  }

  /* Some original song entries have no recording. Do not reserve an empty
     media column for those entries. */
  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card:not(:has(.yt-facade, iframe, video)) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card:not(:has(.yt-facade, iframe, video)) > :is(h3, h4, p) {
    grid-column: 1;
  }
}

@media (max-width: 767.98px) {
  /* Inline desktop column widths must not squeeze article text on phones. */
  body.ma-blog-reading #main .etappe-media {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-price-card {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  /* Text-only booking steps need space beside the number. The shared
     template otherwise positions it over an image that these blogs lack. */
  body.ma-blog-reading #main .ablauf-step:not(:has(img, picture, video, iframe)) {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  body.ma-blog-reading #main .ablauf-step:not(:has(img, picture, video, iframe)) > .step-number {
    position: static !important;
    flex: 0 0 36px !important;
    margin: 2px 0 0 !important;
  }

  body.ma-blog-reading #main .ablauf-step:not(:has(img, picture, video, iframe)) > .step-content {
    min-width: 0;
    width: auto !important;
    flex: 1;
  }

  body.ma-blog-reading #main .ablauf-step:not(:has(img, picture, video, iframe)) .step-content h3 {
    margin-top: 4px !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box ul {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-toc-box a {
    min-height: 52px;
    padding-block: 13px !important;
    font-size: .97rem !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card {
    padding: 18px !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-card > :is(h3, h4) {
    font-size: 1.15rem !important;
    margin-bottom: 14px !important;
  }

  body.ma-blog-reading #main [id^="custom-blog-"] .bf-song-grid {
    gap: 24px !important;
  }
}
