/* Editorial framing for two homepage sections only.
   Existing product cards, tabs, scenes and scroll behaviour keep their own styles. */
body.as-clean #auftritt {
  position: relative;
  isolation: isolate;
  padding-block: clamp(86px, 8.2vw, 126px) clamp(76px, 7vw, 110px);
  background: #fff;
  border-block: 1px solid #f6f6f6;
}
body.as-clean #leistungen {
  background: #fafbfd;
  border-block: 1px solid #f6f6f6;
}

/* Hairline rails sit outside the content, with no overlay on product scenes. */
body.as-clean #auftritt::before,
body.as-clean #auftritt::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #f6f6f6;
  pointer-events: none;
}
body.as-clean #auftritt::before { left: max(15px, calc((100% - 1264px) / 2)); }
body.as-clean #auftritt::after { right: max(15px, calc((100% - 1264px) / 2)); }

body.as-clean #auftritt > .as-story-wrap > .as-story-heading {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin-bottom: 57px;
  padding-bottom: 38px;
  border-bottom: 1px solid #f6f6f6;
  text-align: left;
}
body.as-clean #auftritt > .as-story-wrap > .as-story-heading > .as-overline,
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > .nx-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8d8d8d;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .1em;
  margin-bottom: 29px;
}
body.as-clean #auftritt > .as-story-wrap > .as-story-heading > .as-overline::before,
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > .nx-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border: 1px solid #c2c2c2;
  border-radius: 50%;
  background: #f6f6f6;
}
body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2,
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 {
  color: #1b3124;
  font-size: clamp(44px, 5.3vw, 74px);
  font-weight: 400;
  line-height: 1.035;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin: 0 0 31px;
}
body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2 > span,
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 > span {
  color: #909090;
  --as-heading-ink: #909090;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.047em;
}
body.as-clean #auftritt > .as-story-wrap > .as-story-heading > p {
  max-width: 660px;
  color: #8b8b8b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  margin: 0;
  text-wrap: pretty;
}

/* An original CSS dot landscape; decorative, static and without a loaded asset. */
body.as-clean #auftritt > .as-story-wrap > .as-story-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: 0;
  bottom: 11px;
  width: 40%;
  height: 140px;
  background-image: radial-gradient(circle, #a8a8a8 0 1px, transparent 1.2px);
  background-size: 11px 11px;
  opacity: .32;
  transform: perspective(420px) rotateX(43deg) rotateZ(-8deg);
  transform-origin: center;
  mask-image: radial-gradient(ellipse at 66% 55%, #000 10%, transparent 70%);
}

/* The scrolling service header stays shallower than the free-flowing opening. */
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .7fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid #f6f6f6;
}
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > .nx-kicker { margin-bottom: 17px; }
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 {
  font-size: clamp(38px, 4.25vw, 59px);
  line-height: 1.03;
  margin: 0;
}
body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > p {
  max-width: 295px;
  margin: 0 0 4px;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  text-wrap: pretty;
}

@media (max-width: 1000px) {
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading { margin-bottom: 43px; padding-bottom: 31px; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2 { font-size: clamp(42px, 5.7vw, 58px); }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > p { max-width: 610px; font-size: 14px; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading::after { opacity: .18; width: 32%; height: 115px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); gap: 30px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > p { font-size: 12px; line-height: 1.7; }
}

/* Respect the existing pinned service layout on shorter screens. */
@media (min-width: 741px) and (max-height: 820px) {
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head { margin-bottom: 18px; padding-bottom: 14px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > .nx-kicker { margin-bottom: 10px; font-size: 8px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 { font-size: 33px; line-height: 1.05; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > p { font-size: 12px; line-height: 1.6; }
}

@media (max-width: 740px) {
  body.as-clean #auftritt { padding-block: 68px 65px; }
  body.as-clean #auftritt::before,
  body.as-clean #auftritt::after { display: none; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading { margin-bottom: 33px; padding-bottom: 29px; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > .as-overline { font-size: 8px; gap: 10px; margin-bottom: 24px; letter-spacing: .07em; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2 { font-size: clamp(35px, 7.8vw, 52px); line-height: 1.09; letter-spacing: -.047em; margin-bottom: 23px; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2 br { display: none; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > h2 > span { display: block; margin-top: 4px; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading > p { max-width: 540px; font-size: 13px; line-height: 1.85; }
  body.as-clean #auftritt > .as-story-wrap > .as-story-heading::after { width: 49%; height: 115px; right: 0; bottom: -34px; opacity: .14; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head { display: block; margin-bottom: 19px; padding-bottom: 17px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > .nx-kicker { font-size: 8px; letter-spacing: .055em; margin-bottom: 11px; gap: 9px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 { font-size: clamp(29px, 7vw, 39px); line-height: 1.07; letter-spacing: -.045em; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > p { display: none; }
}
@media (max-width: 740px) and (max-height: 750px) {
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head { margin-bottom: 14px; padding-bottom: 12px; }
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head > div > h2 { font-size: 27px; }
}
@media (min-width: 741px) and (max-height: 580px) {
  body.as-clean #leistungen > .oc-solutions-pin > .nx-wrap > .nx-section-head { display: none; }
}
