/* Route-specific cinematic opening panels for the 37 public inner pages. */
.page-cinematic-hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: clamp(440px, 39vw, 610px) !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #07080b !important;
  border-bottom: 1px solid rgba(226, 32, 46, .34) !important;
}

.page-cinematic-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-cinematic-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  animation: page-hero-settle 2.2s cubic-bezier(.22, 1, .36, 1) both;
}

.page-cinematic-hero__media::before,
.page-cinematic-hero__media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.page-cinematic-hero__media::before {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, .98) 0%, rgba(4, 5, 7, .91) 31%, rgba(4, 5, 7, .62) 48%, rgba(4, 5, 7, .13) 73%, rgba(4, 5, 7, .08) 100%),
    linear-gradient(0deg, rgba(4, 5, 7, .68) 0%, transparent 28%, transparent 72%, rgba(4, 5, 7, .34) 100%);
}

.page-cinematic-hero__media::after {
  background: radial-gradient(ellipse at 76% 52%, transparent 30%, rgba(7, 8, 11, .12) 64%, rgba(7, 8, 11, .4) 100%);
}

.page-cinematic-hero > .page-cinematic-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: clamp(76px, 7vw, 108px) 40px;
}

.page-cinematic-hero__content > div:first-child,
.page-cinematic-hero__content > div:first-child span {
  color: #e2202e !important;
}

.page-cinematic-hero__content > div:first-child a,
.page-cinematic-hero__content > div:first-child a span {
  color: #c7c7ce !important;
}

.page-cinematic-hero h1,
.page-cinematic-hero h1 span {
  max-width: min(790px, 62%) !important;
  color: #f7f5f3 !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .34);
}

.page-cinematic-hero h1 {
  font-size: clamp(45px, 5.05vw, 76px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.045em;
}

.page-cinematic-hero__content > p {
  max-width: min(700px, 59%) !important;
  color: #c9c9cf !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.page-cinematic-hero__content > p[style*="italic"] {
  color: #d5c8c5 !important;
}

.setup-page-hero__content {
  display: block !important;
  padding-bottom: clamp(76px, 7vw, 108px) !important;
}

.setup-page-hero__content > div:first-child {
  max-width: 760px;
}

.setup-essentials-band {
  box-sizing: border-box;
  padding: 32px 40px 40px;
  background: #f6f6f8;
  border-bottom: 1px solid rgba(22, 23, 28, .12);
}

.setup-essentials-band__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.setup-essentials-card {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 34px 30px !important;
  box-shadow: 0 18px 42px rgba(10, 11, 15, .14);
}

.inner-page .setup-essentials-card > .inner-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.setup-essentials-card > .inner-layout > div {
  box-sizing: border-box;
  min-width: 0;
  padding: 18px 24px !important;
  border-right: 1px solid rgba(244, 244, 247, .14) !important;
}

.setup-essentials-card > .inner-layout > div > div {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.setup-essentials-card > .inner-layout > div:first-child {
  padding-left: 0 !important;
}

.setup-essentials-card > .inner-layout > div:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}

@keyframes page-hero-settle {
  from { opacity: .78; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1.012); }
}

@media (max-width: 720px) {
  .page-cinematic-hero {
    min-height: 540px !important;
  }

  .page-cinematic-hero__media img {
    object-position: 67% center;
  }

  .page-cinematic-hero__media::before {
    background:
      linear-gradient(90deg, rgba(4, 5, 7, .97) 0%, rgba(4, 5, 7, .87) 52%, rgba(4, 5, 7, .43) 100%),
      linear-gradient(0deg, rgba(4, 5, 7, .79) 0%, rgba(4, 5, 7, .15) 45%, rgba(4, 5, 7, .39) 100%);
  }

  .page-cinematic-hero > .page-cinematic-hero__content {
    padding: 68px 22px 62px;
  }

  .page-cinematic-hero h1,
  .page-cinematic-hero h1 span {
    max-width: 96% !important;
  }

  .page-cinematic-hero h1 {
    font-size: clamp(39px, 11.8vw, 50px) !important;
    line-height: 1.06 !important;
  }

  .page-cinematic-hero__content > p {
    max-width: 94% !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .setup-page-hero__content {
    padding-bottom: 62px !important;
  }

  .setup-essentials-band {
    padding: 22px 22px 30px;
  }

  .setup-essentials-card {
    padding: 24px 22px 26px !important;
  }

  .inner-page .setup-essentials-card > .inner-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .setup-essentials-card > .inner-layout > div {
    padding: 18px 16px !important;
  }

  .setup-essentials-card > .inner-layout > div > div:first-child {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.08 !important;
  }

  html[lang="de"] .setup-essentials-card > .inner-layout > div > div:first-child {
    font-size: 24px !important;
    overflow-wrap: normal;
  }

  html[lang="de"] .setup-essentials-card > .inner-layout > div > div:last-child {
    font-size: 10px !important;
    letter-spacing: .08em !important;
  }

  .setup-essentials-card > .inner-layout > div:nth-child(2) {
    border-right: 0 !important;
  }

  .setup-essentials-card > .inner-layout > div:nth-child(n + 3) {
    border-top: 1px solid rgba(244, 244, 247, .14);
  }

  .setup-essentials-card > .inner-layout > div:nth-child(odd) {
    padding-left: 0 !important;
  }

  .setup-essentials-card > .inner-layout > div:nth-child(even) {
    padding-right: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-cinematic-hero__media img { animation: none; }
}

/* Keep the contact form within easy reach on small screens. */
@media (max-width: 900px) {
  .inner-page :is(p,li) { overflow-wrap: anywhere; }
  html[lang="de"] .inner-page :is(p,li) { hyphens: auto; }
}
@media (max-width: 640px) {
  .page-cinematic-hero[data-page-hero-route="/contact"] { min-height: 0 !important; }
  .page-cinematic-hero[data-page-hero-route="/contact"] > .page-cinematic-hero__content { padding: 38px 22px 42px !important; }
  .page-cinematic-hero[data-page-hero-route="/contact"] h1 { font-size: clamp(32px, 8.5vw, 42px) !important; line-height: 1.12 !important; margin-bottom: 18px !important; }
  .page-cinematic-hero[data-page-hero-route="/contact"] p { font-size: 16px !important; line-height: 1.5 !important; }
}
