/* Canonical UI6 homepage hero: native horizontal scrolling + CSS scroll snap. */
#morgen-v6-root .mg6-hero[data-mg6-home-hero] {
  --mg6-hero-gap: 24px;
  --mg6-hero-gutter: 22px;
  --mg6-hero-peek: 7vw;
  --mg6-hero-ratio: 16 / 7;
  --mg6-hero-control-size: 44px;
  --mg6-hero-control-gap: 10px;
  --mg6-hero-control-inset: clamp(16px, 1.4vw, 20px);
  --mg6-hero-copy-bottom: clamp(64px, 7vw, 98px);
  --mg6-hero-slide-width: calc(100% - var(--mg6-hero-gap) - var(--mg6-hero-peek));
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--mg6-on-dark);
  box-shadow: none;
  isolation: isolate;
  contain: none;
}

#morgen-v6-root .mg6-hero[data-mg6-home-hero][data-mg6-hero-single="true"] {
  --mg6-hero-gap: 0px;
  --mg6-hero-peek: 0px;
  --mg6-hero-slide-width: 100%;
}

#morgen-v6-root .mg6-hero__viewport {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 var(--mg6-hero-gutter);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--mg6-hero-gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}

#morgen-v6-root .mg6-hero__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#morgen-v6-root .mg6-hero__viewport:focus-visible {
  outline: 2px solid var(--mg6-focus-ring, var(--mg6-amber, #2e7aa3));
  outline-offset: -2px;
}

/*
 * Native ownership boundary. Older V6 aggregate bundles used an absolute,
 * transform-driven hero track and positioned each control independently.
 * Reset those retired mechanics so only the native scroll-snap owner lays out
 * the track, slides, and grouped navigation regardless of stylesheet order.
 */
#morgen-v6-root .mg6-hero[data-mg6-home-hero] .mg6-hero__track {
  position: relative;
  inset: auto;
  height: auto;
  gap: var(--mg6-hero-gap);
  transform: none;
  transition: none;
  will-change: auto;
  backface-visibility: visible;
}

#morgen-v6-root .mg6-hero[data-mg6-home-hero] .mg6-hero__slide {
  flex: 0 0 var(--mg6-hero-slide-width);
  width: var(--mg6-hero-slide-width);
  min-width: var(--mg6-hero-slide-width);
  height: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}

#morgen-v6-root .mg6-hero[data-mg6-home-hero] .mg6-hero__control {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
}

#morgen-v6-root .mg6-hero__track {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  min-height: 0;
  align-items: stretch;
  gap: var(--mg6-hero-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

#morgen-v6-root .mg6-hero__track::after {
  content: "";
  display: block;
  flex: 0 0 calc(var(--mg6-hero-gap) + var(--mg6-hero-peek));
  width: calc(var(--mg6-hero-gap) + var(--mg6-hero-peek));
}

#morgen-v6-root .mg6-hero[data-mg6-home-hero][data-mg6-hero-single="true"] .mg6-hero__track::after {
  display: none;
}

#morgen-v6-root .mg6-hero__slide {
  position: relative;
  display: block;
  box-sizing: border-box;
  flex: 0 0 var(--mg6-hero-slide-width);
  width: var(--mg6-hero-slide-width);
  min-width: var(--mg6-hero-slide-width);
  aspect-ratio: var(--mg6-hero-ratio);
  min-height: clamp(520px, 43vw, 720px);
  overflow: hidden;
  border-radius: clamp(20px, 1.8vw, 24px);
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#morgen-v6-root .mg6-hero__media,
#morgen-v6-root .mg6-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

#morgen-v6-root .mg6-hero__media {
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: var(--mg6-ink, #0c1b26);
}

#morgen-v6-root .mg6-hero__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#morgen-v6-root .mg6-hero__media::after {
  content: "";
  position: absolute;
  inset: -22% -48%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 34%, rgba(255,255,255,.04) 42%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.08) 58%, transparent 66%);
  mix-blend-mode: screen;
  filter: blur(.4px);
  transform: translate3d(-62%, 0, 0) skewX(-8deg);
  opacity: 0;
  will-change: transform, opacity;
  animation: mg6-hero-shimmer 6.4s cubic-bezier(.4, 0, .2, 1) infinite;
}

#morgen-v6-root .mg6-hero__slide:nth-child(2) .mg6-hero__media::after { animation-delay: -2.1s; }
#morgen-v6-root .mg6-hero__slide:nth-child(3) .mg6-hero__media::after { animation-delay: -4.2s; }

@keyframes mg6-hero-shimmer {
  0% { transform: translate3d(-62%, 0, 0) skewX(-8deg); opacity: 0; }
  10% { opacity: .14; }
  38% { opacity: .62; }
  64% { transform: translate3d(62%, 0, 0) skewX(-8deg); opacity: .24; }
  76%, 100% { transform: translate3d(62%, 0, 0) skewX(-8deg); opacity: 0; }
}

#morgen-v6-root .mg6-hero__media--accent {
  background: linear-gradient(135deg, var(--mg6-ink, #0c1b26), var(--mg6-primary-deep, #174a66));
}

#morgen-v6-root .mg6-hero__overlay {
  z-index: 2;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(0deg, rgba(5, 16, 24, .82) 0%, rgba(5, 16, 24, .36) 58%, rgba(5, 16, 24, .08) 100%);
  pointer-events: none;
}

#morgen-v6-root .mg6-hero__overlay-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(28px, 4vw, 72px);
}

#morgen-v6-root .mg6-hero__copy {
  max-width: min(720px, 100%);
  padding-block: clamp(72px, 8vw, 118px) var(--mg6-hero-copy-bottom);
  pointer-events: auto;
}

#morgen-v6-root .mg6-hero__copy--center {
  margin-inline: auto;
  text-align: center;
}

#morgen-v6-root .mg6-hero__copy--right {
  margin-left: auto;
  text-align: right;
}

#morgen-v6-root .mg6-hero__eyebrow,
#morgen-v6-root .mg6-hero__subheading {
  max-width: 640px;
  margin: 0 0 12px;
  color: rgba(var(--mg6-on-dark-rgb), .9);
  font-size: var(--mg6-text-sm);
  font-weight: var(--mg6-weight-bold);
  letter-spacing: .09em;
  line-height: var(--mg6-leading-snug, 1.38);
  text-transform: uppercase;
}

#morgen-v6-root .mg6-hero__title {
  max-width: 700px;
  margin: 0 0 var(--mg6-space-md);
  color: var(--mg6-on-dark);
  font-family: var(--mg6-font-display);
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

#morgen-v6-root .mg6-hero__sub {
  max-width: 620px;
  margin: 0 0 var(--mg6-space-lg);
  color: rgba(var(--mg6-on-dark-rgb), .88);
  font-size: var(--mg6-text-md);
  line-height: 1.65;
}

#morgen-v6-root .mg6-hero__copy--center :is(.mg6-hero__title, .mg6-hero__sub, .mg6-hero__subheading) {
  margin-inline: auto;
}

#morgen-v6-root .mg6-hero__copy--right :is(.mg6-hero__title, .mg6-hero__sub, .mg6-hero__subheading) {
  margin-left: auto;
}

#morgen-v6-root .mg6-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#morgen-v6-root .mg6-hero__copy--center .mg6-hero__actions { justify-content: center; }
#morgen-v6-root .mg6-hero__copy--right .mg6-hero__actions { justify-content: flex-end; }

#morgen-v6-root .mg6-hero__arrows {
  display: none;
}

#morgen-v6-root .mg6-hero[data-mg6-hero-enhanced="true"]:not([data-mg6-hero-single="true"]) .mg6-hero__arrows {
  position: absolute;
  top: auto;
  right: max(8px, calc(var(--mg6-hero-peek) - 36px));
  bottom: var(--mg6-hero-copy-bottom);
  z-index: 7;
  display: flex;
  width: max-content;
  max-width: calc(100% - 44px);
  align-items: center;
  gap: var(--mg6-hero-control-gap);
  transform: none;
  pointer-events: auto;
}

#morgen-v6-root .mg6-hero__control {
  position: relative;
  display: grid;
  box-sizing: border-box;
  flex: 0 0 var(--mg6-hero-control-size);
  width: var(--mg6-hero-control-size);
  height: var(--mg6-hero-control-size);
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(var(--mg6-on-dark-rgb), .42);
  border-radius: var(--mg6-radius-control, 8px);
  background: rgba(var(--mg6-ink-rgb), .42);
  color: var(--mg6-on-dark);
  box-shadow: none;
  cursor: pointer;
  line-height: 0;
  opacity: 1;
  transition: background var(--mg6-duration-fast) var(--mg6-ease), border-color var(--mg6-duration-fast) var(--mg6-ease), opacity var(--mg6-duration-fast) var(--mg6-ease);
}

#morgen-v6-root .mg6-hero__control > .mg6-control-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

#morgen-v6-root .mg6-hero__control > .mg6-control-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#morgen-v6-root .mg6-hero__control:focus-visible {
  outline: 2px solid var(--mg6-focus-ring, var(--mg6-amber, #2e7aa3));
  outline-offset: 3px;
}

#morgen-v6-root .mg6-hero__control:disabled,
#morgen-v6-root .mg6-hero__control[aria-disabled="true"] {
  cursor: default;
  opacity: .42;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #morgen-v6-root .mg6-hero__control:not(:disabled):hover {
    border-color: rgba(var(--mg6-on-dark-rgb), .72);
    background: rgba(var(--mg6-ink-rgb), .72);
  }
}

@media (max-width: 1199px) {
  #morgen-v6-root .mg6-hero[data-mg6-home-hero] {
    --mg6-hero-gap: 20px;
    --mg6-hero-gutter: 18px;
    --mg6-hero-peek: 8vw;
    --mg6-hero-ratio: 16 / 8;
    --mg6-hero-control-inset: clamp(16px, 2vw, 20px);
  }
}

@media (max-width: 980px) {
  #morgen-v6-root .mg6-hero__slide {
    min-height: clamp(520px, 68vw, 680px);
  }
}

@media (max-width: 720px) {
  #morgen-v6-root .mg6-hero[data-mg6-home-hero] {
    --mg6-hero-gap: clamp(8px, 1.8vw, 10px);
    --mg6-hero-gutter: clamp(8px, 2vw, 10px);
    --mg6-hero-peek: clamp(10px, 3.5vw, 16px);
    --mg6-hero-ratio: 4 / 5;
    --mg6-hero-slide-width: calc(100% - var(--mg6-hero-gap) - var(--mg6-hero-peek));
    --mg6-hero-control-size: 44px;
    --mg6-hero-control-gap: 8px;
    --mg6-hero-control-inset: 0px;
    --mg6-hero-copy-bottom: clamp(36px, 10vw, 48px);
  }

  #morgen-v6-root .mg6-hero__slide {
    min-height: clamp(720px, 195vw, 800px);
    border-radius: 14px;
  }

  #morgen-v6-root .mg6-hero__overlay {
    align-items: flex-end;
  }

  #morgen-v6-root .mg6-hero__overlay-inner {
    width: 100%;
    padding-inline: clamp(22px, 6vw, 28px);
  }

  #morgen-v6-root .mg6-hero__copy {
    max-width: none;
    padding-block: clamp(24px, 6vw, 30px) var(--mg6-hero-copy-bottom);
  }

  #morgen-v6-root .mg6-hero__eyebrow,
  #morgen-v6-root .mg6-hero__subheading {
    margin-bottom: 8px;
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.3;
  }

  #morgen-v6-root .mg6-hero__title {
    margin-bottom: clamp(12px, 3vw, 16px);
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  #morgen-v6-root .mg6-hero__sub {
    margin-bottom: clamp(18px, 4.5vw, 24px);
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.55;
  }

  #morgen-v6-root .mg6-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  #morgen-v6-root .mg6-hero__actions .mg6-btn {
    width: 100%;
    min-width: 0;
  }

  #morgen-v6-root .mg6-hero[data-mg6-hero-enhanced="true"]:not([data-mg6-hero-single="true"]) .mg6-hero__arrows {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: none;
    margin: 14px var(--mg6-hero-gutter) 8px;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    gap: var(--mg6-hero-control-gap);
    box-sizing: border-box;
    background: transparent;
    transform: none;
  }

  #morgen-v6-root .mg6-hero[data-mg6-home-hero] .mg6-hero__control {
    border-color: var(--mg6-amber, #2e7aa3);
    background: var(--mg6-amber, #2e7aa3);
    color: var(--mg6-on-accent, #fff);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #morgen-v6-root .mg6-hero__viewport { scroll-behavior: auto; }
  #morgen-v6-root .mg6-hero__control { transition: none; }
  #morgen-v6-root .mg6-hero__media::after { animation: none; opacity: 0; }
}

@media print {
  #morgen-v6-root .mg6-hero[data-mg6-home-hero] {
    overflow: visible;
    background: #fff !important;
    color: #000;
  }

  #morgen-v6-root .mg6-hero__viewport,
  #morgen-v6-root .mg6-hero__track {
    position: static;
    display: block;
    width: auto;
    overflow: visible;
    padding: 0;
  }

  #morgen-v6-root .mg6-hero__track::after { display: none; }

  #morgen-v6-root .mg6-hero__slide {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  #morgen-v6-root .mg6-hero__slide:first-child { display: block; }
  #morgen-v6-root .mg6-hero__arrows { display: none !important; }
  #morgen-v6-root .mg6-hero__media,
  #morgen-v6-root .mg6-hero__overlay { position: static; }
  #morgen-v6-root .mg6-hero__media { min-height: 260px; }
  #morgen-v6-root .mg6-hero__media::after { display: none; }
  #morgen-v6-root .mg6-hero__overlay { background: #fff; }
  #morgen-v6-root .mg6-hero__copy { padding: 24px 0; }
  #morgen-v6-root :is(.mg6-hero__eyebrow, .mg6-hero__title, .mg6-hero__sub, .mg6-hero__subheading) { color: #000; }
}

@media (forced-colors: active) {
  #morgen-v6-root .mg6-hero[data-mg6-home-hero] { background: Canvas; }
  #morgen-v6-root .mg6-hero__control {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}