/* Custom Made: freigegebene Kapitelstruktur als eigenständige, luxuriöse Auswahlstrecke. */
.custom-made-hero {
  min-height: min(860px, 92vh);
  display: flex;
  align-items: center;
  padding-bottom: clamp(70px, 10vh, 120px);
  border-bottom: 1px solid var(--hairline-2);
  background:
    radial-gradient(52% 70% at 86% 38%, rgba(201, 167, 101, .18), transparent 68%),
    radial-gradient(24% 45% at 69% 44%, rgba(150, 88, 37, .12), transparent 72%),
    linear-gradient(118deg, #181208 0%, #131009 58%, #090806 100%);
}

.custom-made-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 61%;
  pointer-events: none;
  opacity: .16;
  background:
    repeating-linear-gradient(126deg, transparent 0 22px, rgba(225, 195, 132, .16) 23px, transparent 24px),
    repeating-linear-gradient(54deg, transparent 0 33px, rgba(225, 195, 132, .1) 34px, transparent 35px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000);
}

.custom-made-hero .wrap {
  position: relative;
  z-index: 1;
}

.custom-made-hero .display {
  max-width: 13ch;
  text-wrap: balance;
}

.custom-made-hero .lede {
  max-width: 57rem;
  margin-top: clamp(24px, 4vh, 40px);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.custom-chapter {
  scroll-margin-top: 96px;
  overflow: hidden;
  overflow: clip;
}

.custom-chapter .wrap {
  position: relative;
}

.custom-chapter-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 920px);
  margin-top: clamp(36px, 6vh, 64px);
}

.custom-chapter-nav a {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  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-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.custom-chapter-nav a span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(225, 195, 132, .35);
  border-radius: 50%;
  color: var(--gold-hi);
  font-size: 9px;
  letter-spacing: .08em;
}

.custom-chapter-nav a:hover {
  border-color: var(--gold);
  background: rgba(201, 167, 101, .11);
  color: var(--ink);
  transform: translateY(-2px);
}

.custom-chapter-nav a:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

#material .split-2 {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.42fr);
  gap: clamp(42px, 6vw, 104px);
  margin-top: clamp(34px, 5vh, 58px);
}

#material .split-2 > div:first-child {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--hairline-2);
  border-top-color: var(--gold-dim);
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(201, 167, 101, .03));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .18);
}

#material .leder-list li {
  padding-block: .8rem !important;
}

#material .note-box {
  max-width: none;
}

.custom-material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.custom-media-card {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(201, 167, 101, .22);
  isolation: isolate;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .16);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}

.custom-media-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  border: 1px solid rgba(98, 64, 30, .15);
  pointer-events: none;
}

.custom-media-card-light {
  background: linear-gradient(145deg, #f4eee4, #e6dccb);
}

.custom-media-card-dark {
  background:
    radial-gradient(circle at 50% 44%, rgba(201, 167, 101, .14), transparent 68%),
    #080807;
}

.custom-media-card img,
.custom-material-grid .custom-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  transform: none;
  transition: transform .65s var(--ease), filter .65s var(--ease);
}

.custom-media-card-light img {
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(.94);
}

.custom-media-card-dark img {
  filter: contrast(1.06) saturate(.88);
}

.custom-media-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .26), 0 0 0 1px rgba(201, 167, 101, .08);
  transform: translateY(-3px);
}

.custom-media-card:hover img,
.custom-material-grid .custom-media-card:hover img {
  transform: scale(1.018);
}

.custom-material-grid .custom-media-card {
  aspect-ratio: 1.52 / 1;
}

.custom-material-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(180px, .48fr);
  min-height: 310px;
  margin-top: 14px;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(201, 167, 101, .27);
  background:
    radial-gradient(circle at 34% 46%, rgba(201, 167, 101, .17), transparent 57%),
    linear-gradient(145deg, #18130c, #0b0a08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
}

.custom-material-feature::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 167, 101, .14);
  pointer-events: none;
}

.custom-material-feature img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 310px;
  padding: 24px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .42));
}

.custom-material-feature figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 38px);
  border-top: 0;
  border-left: 1px solid var(--hairline-2);
  color: var(--gold-hi);
  font-size: clamp(.68rem, 1vw, .8rem);
  line-height: 1.6;
}

#veredelung {
  background:
    radial-gradient(46% 25% at 90% 4%, rgba(201, 167, 101, .08), transparent 74%),
    var(--bg-2);
}

#veredelung > .thread,
.custom-am-section > .thread {
  opacity: .65;
}

#veredelung > .wrap > .lede {
  max-width: 48rem;
}

#veredelung .badge-list {
  gap: 8px;
}

#veredelung .pill {
  background: rgba(201, 167, 101, .055);
}

.custom-options {
  gap: clamp(28px, 4vw, 46px);
  margin-top: clamp(42px, 6vh, 72px);
}

.custom-option {
  grid-template-columns: minmax(230px, .58fr) minmax(0, 1.62fr);
  gap: clamp(30px, 5vw, 72px);
  min-height: 310px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border-color: rgba(201, 167, 101, .25);
  background:
    linear-gradient(90deg, rgba(201, 167, 101, .065), transparent 37%),
    linear-gradient(145deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .2);
}

.custom-option::before {
  content: attr(data-custom-step);
  position: absolute;
  top: -24px;
  right: 18px;
  z-index: 0;
  color: rgba(201, 167, 101, .08);
  font-family: var(--serif);
  font-size: clamp(8rem, 14vw, 13rem);
  font-style: italic;
  line-height: 1;
}

.custom-option::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 28%, var(--gold) 72%, transparent);
  opacity: .78;
}

.custom-option-copy {
  position: relative;
  z-index: 2;
}

.custom-option-copy h3 {
  max-width: 12ch;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.03;
}

.custom-option-copy > p:not(.kicker) {
  max-width: 30rem;
  font-size: .96rem;
}

.custom-option-copy .custom-option-note {
  padding-left: 16px;
  border-top: 0;
  border-left: 1px solid var(--gold-dim);
}

.custom-gallery {
  position: relative;
  z-index: 1;
  gap: 12px;
  align-self: stretch;
}

.custom-gallery .custom-media-card {
  min-height: 138px;
}

.custom-gallery-border {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-gallery-border .custom-media-card {
  aspect-ratio: 1.22 / 1;
}

.custom-gallery-basket {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-gallery-basket .custom-media-card {
  aspect-ratio: 1.35 / 1;
}

.custom-gallery-basket .custom-media-card:last-child:nth-child(3n + 2) {
  grid-column: 2;
}

.custom-gallery-silver,
.custom-gallery-am {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-gallery-silver .custom-media-card,
.custom-gallery-am .custom-media-card {
  aspect-ratio: 1.48 / 1;
}

.custom-am-section {
  border-block: 1px solid rgba(201, 167, 101, .16);
  background:
    radial-gradient(55% 36% at 78% 13%, rgba(201, 167, 101, .14), transparent 72%),
    radial-gradient(35% 35% at 12% 80%, rgba(112, 64, 27, .1), transparent 72%),
    linear-gradient(150deg, #171108, var(--bg) 52%, #0a0907);
}

.custom-am-section .custom-am-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 86px);
  max-width: 66rem;
  align-items: end;
}

.custom-am-section .custom-am-head .kicker {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 16px;
}

.custom-am-section .custom-am-head .title {
  margin-top: 0;
}

.custom-am-section .custom-am-head > p:last-child {
  max-width: 48rem;
}

.custom-am-section .custom-option {
  background:
    linear-gradient(90deg, rgba(201, 167, 101, .085), transparent 34%),
    rgba(8, 7, 5, .42);
}

.custom-order-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 92px);
  margin-top: clamp(34px, 5vh, 58px);
  align-items: start;
}

.custom-order-intro .lede,
.custom-order-intro .note-box {
  margin-top: 0;
  max-width: none;
}

.custom-order-intro .lede {
  color: var(--ink-soft);
}

#bestellung .cta-box {
  border-color: rgba(201, 167, 101, .28);
  box-shadow: 0 38px 100px rgba(0, 0, 0, .25);
}

@media (min-width: 1081px) {
  #material .split-2 > div:first-child {
    position: sticky;
    top: 112px;
  }
}

@media (max-width: 1080px) {
  .custom-made-hero {
    min-height: 0;
  }

  #material .split-2,
  .custom-option {
    grid-template-columns: 1fr;
  }

  .custom-option-copy h3 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .custom-made-hero::after {
    left: 42%;
    opacity: .1;
  }

  .custom-chapter {
    scroll-margin-top: 82px;
  }

  .custom-chapter-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-option {
    min-height: 0;
    padding: 26px 22px;
  }

  .custom-gallery-border,
  .custom-gallery-basket,
  .custom-gallery-silver,
  .custom-gallery-am {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-gallery-basket .custom-media-card:last-child:nth-child(3n + 2) {
    grid-column: auto;
  }

  .custom-am-section .custom-am-head,
  .custom-order-intro {
    grid-template-columns: 1fr;
  }

  .custom-am-section .custom-am-head .kicker {
    grid-row: auto;
    margin-top: 0;
  }

  .custom-am-section .custom-am-head .title {
    margin-top: 18px;
  }
}

@media (max-width: 540px) {
  .custom-made-hero {
    padding-bottom: 64px;
  }

  .custom-chapter-nav {
    gap: 8px;
  }

  .custom-chapter-nav a {
    min-width: 0;
    padding-right: 10px;
    font-size: 9px;
    letter-spacing: .07em;
  }

  .custom-material-feature {
    grid-template-columns: 1fr;
  }

  .custom-material-feature figcaption {
    border-top: 1px solid var(--hairline-2);
    border-left: 0;
  }
}

@media (max-width: 440px) {
  .custom-material-grid,
  .custom-gallery-border,
  .custom-gallery-basket,
  .custom-gallery-silver,
  .custom-gallery-am {
    grid-template-columns: 1fr;
  }

  .custom-gallery .custom-media-card,
  .custom-gallery-border .custom-media-card,
  .custom-gallery-basket .custom-media-card,
  .custom-gallery-silver .custom-media-card,
  .custom-gallery-am .custom-media-card {
    min-height: 0;
    aspect-ratio: 1.55 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-chapter-nav a,
  .custom-media-card,
  .custom-media-card img {
    transition: none;
  }

  .custom-chapter-nav a:hover,
  .custom-media-card:hover,
  .custom-media-card:hover img {
    transform: none;
  }
}
