/* Shared section rhythm. Full-bleed media, heroes and form interiors stay independent. */
body[data-preview-page]{--rp-section-space:96px;--rp-content-space:48px}
@media(max-width:1100px){body[data-preview-page]{--rp-section-space:72px;--rp-content-space:40px}}
@media(max-width:700px){body[data-preview-page]{--rp-section-space:56px;--rp-content-space:32px}}

body[data-preview-page] :is(
  #termine-direkt,#was-uns-besonders-macht,#ueber-uns,#reiseformate,
  #termine,#warteliste,#dein-reiseweg,#dein-elevation-effekt,#faq,
  section:has([data-format-quiz]),section:has(+footer)
){padding-block:var(--rp-section-space)!important}

/* The carousel needs 12px for its shadow; count that inside the section gutter. */
body[data-preview-page] section:has(>.strip){padding-block:var(--rp-section-space)!important;padding-bottom:calc(var(--rp-section-space) - 12px)!important}
body[data-preview-page] .quote-grid>div:not(.quote-media){padding-block:var(--rp-section-space)!important}
@media(min-width:961px){body[data-preview-page] .quote-grid>.quote-media{height:100%;min-height:460px}}

body[data-preview-page] :is(.rp-benefit-grid,.rp-benefit-stats,.rp-effect-grid,.rp-habit,.rp-three-trips){margin-top:var(--rp-content-space)!important}
body[data-preview-page] .rp-near-head{margin-bottom:var(--rp-content-space)}
body[data-preview-page="workation"] #termine div:has(>article[data-planned-offer]){margin-top:var(--rp-content-space)!important}

/* Avoid counting empty edge space twice in the illustrated journey. */
body[data-preview-page] .rp-journey-intro{padding-top:0}
body[data-preview-page] .rp-journey-stop:first-of-type{padding-top:0;min-height:0}
body[data-preview-page] .rp-journey-stop:first-of-type .rp-journey-copy{padding-top:0}
body[data-preview-page] .rp-journey-stop:last-child{padding-bottom:0;min-height:0}
body[data-preview-page] .rp-journey-stop:last-child .rp-journey-copy{padding-bottom:0}
