/* Isolated content-edge adapter for the Supermarathon test copy.
 * Existing columns, colours, typography, images, text, links, heights and JS remain.
 * Only horizontal layout follows the new A/B/C geometry.
 * Photos and full-width background bands continue to the browser edge.
 */
@media (width > 767px) {
  body.page-id-11828 #content {
    --inhalt-start-links: var(--rl-test-content-side);
    --inhalt-start-links-tablet: var(--rl-test-content-side);
  }

  body.page-id-11828 .elementor-11828 .rl-strecken-textspalte {
    padding-inline-start: var(--rl-test-content-side) !important;
  }

  /* Full-width band/background, inset content. */
  body.page-id-11828 .elementor-11828 .rl-strecken-info-media,
  body.page-id-11828 .elementor-11828 .rl-strecken-karten-sponsoren {
    padding-inline-start: var(--rl-test-content-side) !important;
    padding-inline-end: var(--rl-test-content-side) !important;
  }

  body.page-id-11828 .elementor-11828 .rl-strecken-kartenfolge {
    width: 100%;
    max-width: 100%;
  }

  body.page-id-11828 .rl-strecken-sponsoren .rl-sponsoren-inhalt {
    width: calc(100% - 2 * var(--rl-test-content-side)) !important;
    max-inline-size: calc(100% - 2 * var(--rl-test-content-side)) !important;
    margin-inline-start: var(--rl-test-content-side) !important;
    margin-inline-end: var(--rl-test-content-side) !important;
  }
}

@media (width > 767px) and (max-width: 1024px) {
  body.page-id-11828 .elementor-11828 .rl-strecken-textspalte {
    padding-inline-end: var(--rl-test-content-side) !important;
  }

  /* Preserve the existing full-width image and vertical ordering. Only the
     banner and description receive the horizontal content boundaries. */
  body.page-id-11828 .elementor-11828 .rl-strecken-bildspalte {
    padding-inline: 0 !important;
  }
  body.page-id-11828 .elementor-11828 .rl-strecken-banner {
    width: min(520px, calc(100% - 2 * var(--rl-test-content-side)));
    max-width: calc(100% - 2 * var(--rl-test-content-side));
    margin-inline-start: var(--rl-test-content-side);
    margin-inline-end: var(--rl-test-content-side);
  }
  body.page-id-11828 .elementor-11828 .rl-strecken-bildspalte .rl-lesefenster {
    width: calc(100% - 2 * var(--rl-test-content-side));
    min-width: 0;
    max-width: calc(100% - 2 * var(--rl-test-content-side));
    margin-inline-start: var(--rl-test-content-side);
    margin-inline-end: var(--rl-test-content-side);
  }
}

@media (min-width: 1025px) {
  /* Keep the existing 9% reader inset and 50% / 17rem preferred sizing.
     The extra cap prevents the reader from extending into C. */
  body.page-id-11828 .elementor-11828 .rl-strecken-bildspalte .rl-lesefenster {
    width: min(50%, max(0px, calc(91% - var(--rl-test-content-side))));
    min-width: 0;
    max-width: min(17rem, max(0px, calc(91% - var(--rl-test-content-side))));
  }
  body.page-id-11828 .elementor-11828 .rl-strecken-banner {
    max-width: min(520px, max(0px, calc(100% - var(--rl-test-content-side) + 3.2vw)));
  }
}

@media (min-width: 1201px) {
  /* Existing download-column alignment to the photo start, accounting for
     the newly equal left and right content insets. Gap remains native 2rem. */
  body.page-id-11828 .elementor-11828 .rl-strecken-info-media {
    grid-template-columns: minmax(0, calc((100% + 2 * var(--rl-test-content-side)) * 0.604 - var(--rl-test-content-side) - 2rem)) minmax(0, 1fr);
  }
}
