/* Kept separate so the home page, errors and existing navigation stay intact. */
.hero-illustrated {
  position: relative;
  isolation: isolate;
  background: var(--night);
}
.hero-illustrated .hero-layout {
  display: flex;
  min-height: clamp(410px, 34vw, 520px);
  padding-block: clamp(30px, 4.2vw, 61px);
}
.hero-illustrated .hero-copy { width: 100%; max-width: min(54%, 640px); }
.hero-illustrated h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.62rem);
  text-wrap: balance;
  hyphens: manual;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--motif-position, 50% 46%);
}
.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  /* Keep the copy zone dark; leave the right-hand subject in its natural light. */
  background: linear-gradient(90deg, var(--night), #0b1c2fed 28%, #0b1c2fdc 45%, #0b1c2fca 55%, #0b1c2f60 65%, #0b1c2f12 77%, transparent 87%),
              linear-gradient(0deg, #0b1c2f29, transparent 24%);
}
.hero-art[data-motif="rueckenkomfort"] { --motif-position: 53% 22%; }
.hero-art[data-motif="rueckenlage"] img { transform: scaleX(-1); }
.hero-art[data-motif="matratze-lattenrost"] { --motif-position: 60% 32%; }
.hero-art[data-motif="bettrahmen"] { --motif-position: 57% 68%; }
.hero-art-credit {
  position: absolute;
  z-index: 1;
  inset: auto clamp(12px, 2vw, 28px) clamp(10px, 1.6vw, 21px) auto;
  max-width: calc(100% - 24px);
  padding: .17rem .49rem;
  border: 1px solid #fff2;
  border-radius: 999px;
  color: #fffdfa;
  background: #071525bf;
  font-size: .68rem;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: .025em;
}
.hero-document .hero-layout { min-height: clamp(254px, 24vw, 322px); }
.hero-document .hero-art { --motif-position: 60% 55%; }
.hero-document .hero-lead { margin-bottom: 0; }
.hero-document + .document .legal-document { margin-top: 0; }
.compare-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(15px, 3vw, 40px);
  margin-bottom: clamp(18px, 2.2vw, 26px);
}
.compare-intro h2 { margin-bottom: 0; }
.comparison-visual { flex: 0 1 260px; min-width: 172px; margin: 0; }
.comparison-visual img { border: 1px solid #dcd3c1; border-radius: 8px; }
.comparison-visual figcaption { margin-top: .3rem; color: var(--muted); font-size: .72rem; text-align: right; }

@media (max-width: 760px) {
  .hero-illustrated {
    --scene-height: clamp(188px, 63vw, 330px);
    --scene-overlap: clamp(40px, 11vw, 62px);
  }
  .hero-illustrated .hero-layout { min-height: 0; padding-block: 24px calc(var(--scene-height) - var(--scene-overlap)); }
  .hero-illustrated .hero-copy { max-width: none; }
  .hero-illustrated h1 { font-size: clamp(2rem, 7.2vw, 2.85rem); text-wrap: pretty; hyphens: auto; }
  .hero-illustrated .hero-art { inset: auto 0 0; width: 100%; height: var(--scene-height); }
  .hero-art::after {
    background: linear-gradient(180deg, var(--night), #0b1c2fdf var(--scene-overlap), #0b1c2f38 calc(var(--scene-overlap) + 38px), transparent 64%),
                linear-gradient(0deg, #0b1c2f38, transparent 30%);
  }
  .hero-document { --scene-height: clamp(160px, 49vw, 252px); }
  .hero-art[data-motif="matratze-lattenrost"] { --motif-position: 67% 54%; }
}
@media (max-width: 560px) {
  .compare-intro { flex-direction: column; align-items: flex-start; }
  .comparison-visual { flex: none; width: min(100%, 246px); min-width: 0; }
}
