/* V1 Custom Made adapted to native Elementor wrappers.
 * The CMS remains the content source; these rules do not depend on page IDs.
 * Keep the shared wide page frame, but give text, controls and media their own
 * appropriate widths. No minimum-height placeholder is needed for this hero.
 */
:where(.saddleworld-wp) .e-con.custom-made-hero {
  min-height:0;
  justify-content:center;
  align-items:stretch;
  padding-bottom:clamp(36px,5vh,60px);
}
:where(.saddleworld-wp) .custom-made-hero > .e-con.wrap {
  align-items:flex-start;
}
/* Match Elementor's four-class reset only for default-width widgets. Any
 * explicit desktop or responsive Elementor width remains editor-controlled. */
:where(.saddleworld-wp) .e-con.custom-made-hero .elementor-widget.display {
  margin-top:26px;
}
:where(.saddleworld-wp) .e-con.custom-made-hero .elementor-widget.display:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  max-width:min(100%,18ch);
}
:where(.saddleworld-wp) .e-con.custom-made-hero .elementor-widget.lede {
  margin-top:clamp(24px,3vh,36px);
  font-size:clamp(1rem,1.45vw,1.18rem);
  line-height:1.65;
}
:where(.saddleworld-wp) .e-con.custom-made-hero .elementor-widget.lede:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  width:min(100%,57rem);
  max-width:min(100%,57rem);
}

/* The native section navigation uses real anchors supplied by the renderer.
 * The container fallback stays legible in the editor before its next render.
 */
:where(.saddleworld-wp) .e-con.custom-chapter-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  width:min(100%,920px);
  margin-top:clamp(28px,4vh,44px);
}
:where(.saddleworld-wp) .custom-chapter-nav > :is(a,.e-con) {
  display:grid;
  grid-template-columns:29px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-width:0;
  min-height:50px;
  padding:9px 16px 9px 10px;
  border:1px solid var(--gold-dim);
  border-radius:999px;
  background:rgba(12,10,7,.46);
  color:var(--ink-soft);
  font:600 10px/1.4 var(--sans);
  letter-spacing:.1em;
  text-transform:uppercase;
  text-align:left;
}
:where(.saddleworld-wp) .custom-chapter-nav > :is(a,.e-con) > .elementor-widget {
  width:auto;
  margin:0;
  font:inherit;
  color:inherit;
}
:where(.saddleworld-wp) .custom-chapter-nav > :is(a,.e-con) > .elementor-widget:first-child {
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border:1px solid rgba(225,195,132,.35);
  border-radius:50%;
  color:var(--gold-hi);
  font-size:9px;
  letter-spacing:.08em;
}
/* V1's broad "a span" selector must not frame Elementor's inner text spans. */
:where(.saddleworld-wp) .custom-chapter-nav > a .elementor-widget span {
  display:inline;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  font:inherit;
  letter-spacing:inherit;
  color:inherit;
}
:where(.saddleworld-wp) .custom-chapter-nav p { margin:0; }
:where(.saddleworld-wp) .e-con.sw-configurator-entry {
  align-items:flex-start;
  padding-block:24px 16px;
}
:where(.saddleworld-wp) .custom-made-hero .e-con.sw-configurator-entry {
  width:100%;
  max-width:100%;
  margin:0;
  padding:24px 0 0;
}
:where(.saddleworld-wp) .sw-configurator-entry > .elementor-widget-button {
  align-self:flex-start;
  flex:0 1 auto;
  width:fit-content;
  max-width:100%;
}

/* Material: readable copy alongside the full, uncropped original samples. */
:where(.saddleworld-wp) #material .e-con.split-2 {
  display:grid;
  grid-template-columns:minmax(260px,.78fr) minmax(0,1.42fr);
  align-items:start;
  gap:clamp(32px,4.5vw,72px);
  margin-top:clamp(30px,4vh,48px);
}
:where(.saddleworld-wp) #material .split-2 > .e-con:first-child {
  padding:clamp(24px,3vw,38px);
  gap:0;
  align-items:stretch;
}
:where(.saddleworld-wp) #material .split-2 > .e-con:first-child > .body-copy:first-child {
  margin-top:0;
}
:where(.saddleworld-wp) #material .e-con.leder-list {
  margin-top:20px;
}
:where(.saddleworld-wp) #material .leder-list > .e-con.sw-source-li {
  flex-direction:column;
  gap:4px;
  padding-block:12px;
  border-bottom:1px solid var(--hairline-2);
  font:14px/1.7 var(--sans);
}
:where(.saddleworld-wp) #material .leder-list .elementor-widget {
  font:inherit;
  color:inherit;
}
:where(.saddleworld-wp) #material .elementor-widget.note-box {
  margin-top:24px;
  max-width:none;
}
:where(.saddleworld-wp) .e-con.custom-material-media { gap:0; }
:where(.saddleworld-wp) .e-con.custom-material-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:14px;
}
:where(.saddleworld-wp) .elementor-widget.custom-material-feature {
  display:block;
  min-height:0;
  margin-top:14px;
}
:where(.saddleworld-wp) .custom-material-feature .wp-caption {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(160px,.65fr);
  align-items:stretch;
  width:100%;
  margin:0;
}
:where(.saddleworld-wp) .custom-material-feature img {
  width:100%;
  height:310px;
  min-height:0;
  max-height:360px;
  padding:24px;
  object-fit:contain;
}
:where(.saddleworld-wp) .custom-material-feature .widget-image-caption {
  margin:0;
  padding:clamp(24px,3vw,38px);
  align-items:flex-end;
  text-align:left;
  font-family:var(--sans);
  font-size:clamp(.68rem,1vw,.8rem);
  line-height:1.6;
}

/* Preserve the four selection chips without duplicating their inner borders. */
:where(.saddleworld-wp) #veredelung .e-con.badge-list {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
  margin-top:clamp(24px,3vh,36px);
}
:where(.saddleworld-wp) #veredelung .badge-list > .elementor-widget.pill {
  width:fit-content;
  max-width:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
}
:where(.saddleworld-wp) #veredelung .badge-list > .elementor-widget.pill .pill {
  max-width:100%;
  line-height:1.5;
  overflow-wrap:anywhere;
}

/* Six option cards: restore padding, asymmetric columns and text rhythm. */
:where(.saddleworld-wp) .e-con.custom-options {
  display:grid;
  gap:clamp(24px,3vw,40px);
  margin-top:clamp(32px,4vh,52px);
  counter-reset:custom-option;
}
:where(.saddleworld-wp) .e-con.custom-option {
  display:grid;
  grid-template-columns:minmax(230px,.62fr) minmax(0,1.58fr);
  align-items:center;
  gap:clamp(28px,4vw,64px);
  min-height:0;
  padding:clamp(26px,3.3vw,48px);
  counter-increment:custom-option;
}
:where(.saddleworld-wp) .custom-option:not([data-custom-step])::before {
  content:counter(custom-option,decimal-leading-zero);
  pointer-events:none;
}
:where(.saddleworld-wp) .e-con.custom-option-copy {
  align-items:flex-start;
  gap:0;
}
:where(.saddleworld-wp) .custom-option-copy > .elementor-widget.kicker {
  margin:0 0 16px;
}
:where(.saddleworld-wp) .custom-option-copy .elementor-widget-heading {
  max-width:100%;
  font-size:clamp(1.75rem,2.4vw,2.6rem);
  line-height:1.12;
}
:where(.saddleworld-wp) .custom-option-copy .elementor-heading-title {
  font:500 1em/1.12 var(--serif);
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
  hyphens:auto;
}
:where(.saddleworld-wp) .custom-option-copy .elementor-widget-heading:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) .elementor-heading-title {
  max-width:15ch;
}
:where(.saddleworld-wp) .custom-option-copy .elementor-widget-heading:where([class*="__width-initial"],[class*="__width-inherit"],[class*="__width-auto"]) .elementor-heading-title {
  max-width:none;
}
:where(.saddleworld-wp) .e-con.custom-option-copy > .elementor-widget-text-editor:not(.kicker) {
  margin-top:14px;
  color:var(--muted);
  font-size:.96rem;
  line-height:1.7;
}
:where(.saddleworld-wp) .e-con.custom-option-copy > .elementor-widget-text-editor:not(.kicker):where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  max-width:min(100%,30rem);
}
:where(.saddleworld-wp) .custom-option-copy > .elementor-widget.custom-option-note {
  margin-top:22px;
  padding:0 0 0 16px;
  color:var(--ink-soft);
  font-size:.9rem;
}
:where(.saddleworld-wp) .e-con.custom-gallery {
  display:grid;
  gap:12px;
  align-self:center;
  align-items:stretch;
}
:where(.saddleworld-wp) .e-con:is(.custom-gallery-border,.custom-gallery-basket) {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
:where(.saddleworld-wp) .e-con:is(.custom-gallery-silver,.custom-gallery-am) {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
:where(.saddleworld-wp) .elementor-widget.custom-media-card {
  display:grid;
  place-items:center;
  width:100%;
  min-width:0;
  min-height:0;
  margin:0;
}
/* Supports optimized Elementor output and the optional widget-container. */
:where(.saddleworld-wp) .custom-media-card > .elementor-widget-container,
:where(.saddleworld-wp) .custom-media-card :is(a,.wp-caption) {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  margin:0;
}
:where(.saddleworld-wp) .custom-media-card img {
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:auto;
  object-fit:contain;
  border:0;
  background:none;
}

/* AM SaddleWorld Pro and the advisory order chapter use the same text rhythm. */
:where(.saddleworld-wp) .custom-am-section .e-con.custom-am-head {
  display:grid;
  grid-template-columns:minmax(150px,.42fr) minmax(0,1fr);
  align-items:start;
  gap:18px clamp(28px,4vw,72px);
  max-width:66rem;
}
:where(.saddleworld-wp) .custom-am-head > .elementor-widget.kicker {
  grid-row:1 / span 2;
  margin-top:16px;
}
:where(.saddleworld-wp) .e-con.custom-am-head > .elementor-widget-text-editor:not(.kicker) {
  margin:0;
  color:var(--muted);
  font-size:clamp(1rem,1.5vw,1.15rem);
  line-height:1.75;
}
:where(.saddleworld-wp) .e-con.custom-am-head > .elementor-widget-text-editor:not(.kicker):where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  max-width:min(100%,48rem);
}
:where(.saddleworld-wp) .e-con.custom-order-intro {
  display:grid;
  grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);
  align-items:start;
  gap:clamp(28px,4vw,72px);
  margin-top:clamp(30px,4vh,48px);
}
:where(.saddleworld-wp) .custom-order-intro > .elementor-widget:is(.lede,.note-box) {
  margin-top:0;
}
:where(.saddleworld-wp) .custom-order-intro > .elementor-widget:is(.lede,.note-box):where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  max-width:none;
}
:where(.saddleworld-wp) #bestellung .e-con.cta-box {
  align-items:center;
  padding:clamp(32px,5vw,64px) clamp(24px,4vw,56px);
}
:where(.saddleworld-wp) #bestellung .cta-box > .elementor-widget-text-editor {
  margin:20px auto 0;
  color:var(--muted);
  font:14.5px/1.7 var(--sans);
}
:where(.saddleworld-wp) #bestellung .cta-box > .elementor-widget-text-editor:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  max-width:38em;
}
:where(.saddleworld-wp) #bestellung .cta-box .e-con.btn-row {
  justify-content:center;
  gap:16px;
  margin-top:28px;
}
:where(.saddleworld-wp) #bestellung .btn-row > .elementor-widget-button:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) {
  flex:0 1 auto;
  width:fit-content;
  max-width:100%;
}

@media (max-width:1080px) {
  :where(.saddleworld-wp) #material .e-con.split-2,
  :where(.saddleworld-wp) .e-con.custom-option {
    grid-template-columns:minmax(0,1fr);
    gap:28px;
  }
  :where(.saddleworld-wp) #material .split-2 > .e-con:first-child { position:static; }
  :where(.saddleworld-wp) .custom-option-copy .elementor-widget-heading:where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) .elementor-heading-title { max-width:none; }
  :where(.saddleworld-wp) .e-con.custom-option-copy > .elementor-widget-text-editor:not(.kicker):where(:not([class*="__width-initial"]):not([class*="__width-inherit"]):not([class*="__width-auto"])) { max-width:min(100%,48rem); }
}
@media (max-width:820px) {
  :where(.saddleworld-wp) .e-con.custom-made-hero .elementor-widget.display {
    font-size:clamp(2.6rem,6.3vw,3.8rem);
  }
  :where(.saddleworld-wp) .e-con.custom-chapter-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :where(.saddleworld-wp) .e-con.custom-option { padding:26px 22px; }
  :where(.saddleworld-wp) .e-con:is(.custom-gallery-border,.custom-gallery-basket,.custom-gallery-silver,.custom-gallery-am) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  :where(.saddleworld-wp) .custom-gallery-basket .custom-media-card:last-child:nth-child(3n + 2) { grid-column:auto; }
  :where(.saddleworld-wp) .custom-am-section .e-con.custom-am-head,
  :where(.saddleworld-wp) .e-con.custom-order-intro { grid-template-columns:minmax(0,1fr); }
  :where(.saddleworld-wp) .custom-am-head > .elementor-widget.kicker { grid-row:auto; margin-top:0; }
  :where(.saddleworld-wp) .custom-am-section .custom-am-head .title { margin-top:0; }
}
@media (max-width:540px) {
  :where(.saddleworld-wp) .e-con.custom-made-hero { padding-bottom:32px; }
  :where(.saddleworld-wp) .e-con.custom-chapter-nav { gap:8px; }
  :where(.saddleworld-wp) .custom-chapter-nav > :is(a,.e-con) {
    gap:8px;
    min-height:56px;
    padding:9px 10px;
    font-size:9px;
    letter-spacing:.05em;
  }
  :where(.saddleworld-wp) .custom-material-feature .wp-caption { grid-template-columns:minmax(0,1fr); }
  :where(.saddleworld-wp) .custom-material-feature img { height:280px; }
  :where(.saddleworld-wp) .custom-material-feature .widget-image-caption {
    padding:20px 24px;
    border-left:0;
    border-top:1px solid var(--hairline-2);
  }
  :where(.saddleworld-wp) .e-con.custom-option { padding:24px 20px; }
}
@media (max-width:440px) {
  :where(.saddleworld-wp) .e-con.custom-material-grid,
  :where(.saddleworld-wp) .e-con:is(.custom-gallery-border,.custom-gallery-basket,.custom-gallery-silver,.custom-gallery-am) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.saddleworld-wp) .custom-gallery .elementor-widget.custom-media-card { aspect-ratio:1.55 / 1; }
  :where(.saddleworld-wp) .sw-configurator-entry > .elementor-widget-button .elementor-button {
    padding-inline:20px;
    line-height:1.5;
  }
}
@media (prefers-reduced-motion:reduce) {
  :where(.saddleworld-wp) .custom-chapter-nav > :is(a,.e-con),
  :where(.saddleworld-wp) .custom-media-card,
  :where(.saddleworld-wp) .custom-media-card img { transition:none; }
}
