/* German home: visual hero and service cards, scoped to this page. */
.home-hero .home-hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3vw, 56px);
}
.home-hero .home-hero__grid > div { max-width: 100%; }
.home-hero .hero-meta { flex-wrap: nowrap; align-items: flex-start; }
.home-hero .hero-meta__check { flex: 0 0 16px; margin-top: .18em; }
.home-hero .hero-meta > span:last-child { min-width: 0; }
.home-hero__feature { display: block; width: 100%; min-width: 0; pointer-events: none; }
.home-hero__feature img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 32%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent);
  mask-composite: intersect;
}
.home-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.home-visual-grid .triad-card {
  position: relative; display: block; min-height: 0; padding: 0; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-visual-grid .triad-card__copy {
  position: relative; z-index: 2; width: 62%; padding: clamp(24px, 2.3vw, 38px);
  pointer-events: none;
}
.home-visual-grid .triad-card__copy h3 { margin-top: 0; }
.home-visual-grid .triad-card__copy p:last-child { margin-bottom: 0; }
.home-visual-grid .triad-card__copy .card-action-stack a { pointer-events: auto; }
.home-visual-grid .triad-card__media {
  position: absolute; inset: 0 0 0 auto; width: 40%; pointer-events: none;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.home-visual-grid .triad-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-visual-grid .triad-card--china .triad-card__media img { object-position: 58% center; }
.home-visual-grid .triad-card--ai .triad-card__media img { object-position: 50% center; }
.home-visual-grid .triad-card--web .triad-card__media img { object-position: 57% center; }
.home-visual-grid .triad-card--project .triad-card__media img { object-position: 55% center; }
@media (hover: hover) {
  .home-visual-grid .triad-card--clickable:hover { transform: translateY(-3px); }
}
@media (max-width: 1024px) {
  .home-visual-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .home-hero .home-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-hero__feature { max-width: 700px; justify-self: center; }
}
@media (max-width: 1100px) {
  .home-hero { padding-top: 100px; }
}
@media (max-width: 640px) {
  .home-visual-grid .triad-card__copy { width: 100%; }
  .home-visual-grid .triad-card__media { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-visual-grid .triad-card { transition: none; }
  .home-visual-grid .triad-card--clickable:hover { transform: none; }
}

/* Align homepage kit prices with the card text. */
.dp-products__compact .dp-product-card__media .sp-product-price { margin-inline: 26px; }
@media (max-width: 660px) {
  .dp-products__compact .dp-product-card__media .sp-product-price { margin-inline: 22px; }
}

/* Compact mobile hero: keep the visual next to the heading without duplicate content. */
@media (max-width: 767px) {
  .home-hero .home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-hero .home-hero__grid > div { display: contents; }
  .home-hero .home-hero__grid > div > .eyebrow { order: 0; margin-bottom: 0; }
  .home-hero .home-hero__grid > div > h1 { order: 1; margin-bottom: 0; }
  .home-hero__feature { order: 2; max-width: 100%; }
  .home-hero__feature img { width: 100%; height: clamp(170px, 50vw, 220px); object-fit: cover; object-position: 72% center; }
  .home-hero .home-hero__grid > div > .hero-lead { order: 3; margin-bottom: 0; }
  .home-hero .home-hero__grid > div > .button-row { order: 4; margin-top: 4px; }
  .home-hero .home-hero__grid > div > .hero-meta { order: 5; margin-top: 4px; }
}

/* On mobile, use the same inset visual treatment as the Web/IT service cards. */
@media (max-width: 767px) {
  .home-visual-grid .triad-card {
    display: flex; flex-direction: column; padding: 25px;
    border: 1px solid #c8dee4; border-radius: 16px;
    background: linear-gradient(155deg, #fff 52%, #f2f8f9);
    box-shadow: 0 2px 3px rgba(18,59,78,.06), 0 16px 32px rgba(18,59,78,.12), inset 0 1px 0 rgba(255,255,255,.95);
  }
  .home-visual-grid .triad-card__copy { display: contents; }
  .home-visual-grid .triad-card__copy h3 { order: 0; margin: 0 0 20px; }
  .home-visual-grid .triad-card__media {
    order: 1; position: relative; inset: auto; width: 100%; height: auto;
    aspect-ratio: 16 / 9; margin-bottom: 20px; clip-path: none;
    border-radius: 10px; overflow: hidden;
  }
  .home-visual-grid .triad-card__copy p { order: 2; margin: 0 0 14px; }
  .home-visual-grid .triad-card__copy p:last-of-type { margin-bottom: 0; }
  .home-visual-grid .triad-card__copy .card-action-stack { order: 3; }
}
