/* Startseite: Video und statisches Standbild teilen dieselbe Fläche. */
.homeHeroPoster, .homeHeroPoster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.homeHeroPoster { z-index:-2; }
body.homePage .hero.videoReady.heroRefinement .heroMedia video {
  filter: saturate(.96) brightness(1.13) contrast(.98) !important;
}

body.homePage .hero.heroRefinement .heroWash {
  background:
    linear-gradient(102deg, rgba(255,255,255,.97), rgba(241,250,255,.91) 37%, rgba(229,247,255,.67) 79%),
    linear-gradient(0deg, #eef9ff, rgba(244,251,255,.15) 52%, rgba(240,251,255,.48));
}

.heroRefinement .heroWash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 77% 24%, rgba(205,248,255,.78), transparent 62%);
}

.heroRefinement .homeHeadline {
  color: var(--primary-ink, #173b55);
  -webkit-text-fill-color: currentColor;
  max-inline-size: 15ch;
  margin: 12px 0;
  font-size: clamp(2.65rem, 4.55vw, 4.65rem);
  font-weight: 780;
  line-height: 1.09;
  letter-spacing: -.047em;
}
.homeHeadlineLine { display: block; }
.homeHeadlineWord { white-space: nowrap; }
@media (max-width: 760px) {
  .heroRefinement .homeHeadline {
    font-size: clamp(2rem, 9.7vw, 3.35rem);
    max-inline-size: 100%;
    margin-block: 10px 18px;
  }
  .homeHeadlineLine + .homeHeadlineLine { color: var(--color-link, #245d77); }
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media (min-width: 761px) and (hover: hover) and (pointer: fine) and (forced-colors: none) {
    .homeHeadlineLine {
      inline-size: fit-content;
      background: linear-gradient(90deg, #204e7a, #2877aa 54%, #48a6d2) 0 / 145% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    @media (prefers-reduced-motion: no-preference) {
      .homeHeadlineLine { transition: background-position var(--motion-fast, 230ms) var(--ease-ui, ease); }
      .homeHeadline:hover .homeHeadlineLine { background-position: 100% 50%; }
    }
  }
}

body.homePage .hero.heroRefinement .glass {
  color: #174f6d !important;
}

body.homePage .hero.heroRefinement .heroActions .glass:hover {
  background: linear-gradient(135deg, #9edff8, #d1f5ff) !important;
}

body.homePage .hero.heroRefinement .heroActions .ghost:hover {
  background: #fff !important;
  border-color: #94c7df !important;
}

body.homePage .hero.heroRefinement .heroGlassNote {
  background: var(--glass-achieved, var(--cloud-white)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 0px)) !important;
  backdrop-filter: blur(var(--glass-blur, 0px)) !important;
  border-color: var(--glass-rim) !important;
  box-shadow: var(--shadow-lens) !important;
  min-height: 0;
}

body.homePage .hero.heroRefinement .heroGlassTop {
  align-items: flex-start;
  flex-direction: row;
  gap: .6rem;
  margin-bottom: .65rem;
}

body.homePage .hero.heroRefinement .heroGlassTop strong {
  color: #000 !important;
  text-wrap: balance;
}

body.homePage .hero.heroRefinement .homeHeadline ::selection {
  background-color: #d6efff;
  color: #245e87;
  -webkit-text-fill-color: #245e87;
}

.heroQuickLinks {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .5rem;
  margin-block: .75rem .9rem;
}

.heroQuickLinks a {
  --tile-ink: #216583;
  --tile-tint: #dff4ff;
  --tile-edge: #9dcfe6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: .5rem .65rem;
  border: 1px solid color-mix(in srgb,var(--tile-edge) 78%,transparent);
  border-radius: .85rem;
  background: linear-gradient(148deg,rgba(255,255,255,.89),color-mix(in srgb,var(--tile-tint) 73%,transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 3px 12px color-mix(in srgb,var(--tile-edge) 28%,transparent);
  color: var(--tile-ink);
  line-height: 1.35;
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.heroQuickLinks a:nth-child(2) { --tile-ink: #22675c; --tile-tint: #dff6ed; --tile-edge: #9ed4c4; }
.heroQuickLinks a:nth-child(3) { --tile-ink: #565e9a; --tile-tint: #eaeaff; --tile-edge: #bdc3ec; }
.heroQuickLinks a:nth-child(4) { --tile-ink: #865238; --tile-tint: #fff0e5; --tile-edge: #e7bba4; }

body.homePage .hero.heroRefinement .heroQuickLinks a strong {
  color: var(--tile-ink) !important;
  font-size: .72rem !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.homePage .hero.heroRefinement .heroQuickLinks a span {
  font-size: .75rem;
  color: var(--tile-ink) !important;
  letter-spacing: normal;
}

.heroQuickLinks a:is(:hover,:focus-visible) {
  background: linear-gradient(145deg,#fff,var(--tile-tint));
  box-shadow: inset 0 1px 0 #fff,0 5px 15px color-mix(in srgb,var(--tile-edge) 52%,transparent);
}

body.homePage .hero.heroRefinement .heroGlassNote .heroBrandPath {
  position: relative;
  padding-block: .55rem .22rem;
  color: #557b96 !important;
  font-size: .6rem !important;
  font-weight: 750;
  letter-spacing: .1em;
}

body.homePage .hero.heroRefinement .heroBrandPath em { font-style: normal; }
body.homePage .hero.heroRefinement .heroBrandPath .heroBrandConnect { color: #3077a2; }
body.homePage .hero.heroRefinement .heroBrandPath .heroBrandProtect { color: #35786d; }
body.homePage .hero.heroRefinement .heroBrandPath .heroBrandGrow { color: #6964a0; }

.heroBrandPath::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg,#49b8e8,#53bfb1 52%,#9b87d1);
  transform-origin: left;
}

.heroRefinement .homeHeroMotion {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #226886;
  cursor: pointer;
}

.heroRefinement .homeHeroMotion::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(160,205,226,.74);
  border-radius: 50%;
  background: linear-gradient(145deg,rgba(255,255,255,.93),rgba(223,243,254,.64));
  box-shadow: inset 0 1px 0 #fff;
}

.heroRefinement .homeHeroMotion:hover::after { background: #fff; }

.heroRefinement .homeHeroMotion::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%,-50%);
  border-block: 5px solid transparent;
  border-inline-start: 8px solid currentColor;
}

.heroRefinement .homeHeroMotion[aria-label="Hintergrundvideo pausieren"]::before {
  width: 8px;
  height: 10px;
  border: 0;
  border-inline: 2px solid currentColor;
}

/* Mit vier Lösungswelten belegt auch Connect genau eine Rasterzelle. */
body.homePage #produktwelt .worldGrid > .connectCard {
  grid-column: auto;
}

@media (min-width:901px) {
  body.homePage #produktwelt .connectCard img {
    object-position: center 30% !important;
  }
}

body.homePage #produktwelt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg,#eef9ff 0%,#f8fcff 24%,#fff 82%,#f7fcff 100%);
}

body.homePage #produktwelt::before {
  content: "";
  position: absolute;
  inset: 0 -8% auto;
  height: clamp(16rem,38vw,34rem);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 28%,rgba(143,219,234,.25),transparent 42%),
    radial-gradient(ellipse at 76% 32%,rgba(252,190,144,.24),transparent 44%),
    radial-gradient(ellipse at 54% 64%,rgba(175,226,205,.22),transparent 48%);
}

body.homePage #produktwelt .productWorldTitle {
  color: #245e82;
  text-wrap: balance;
}

body.homePage #produktwelt .productWorldTitle span {
  display: block;
  color: #1d7581;
}

@supports (background-clip: text) {
  body.homePage #produktwelt .productWorldTitle span {
    background: linear-gradient(90deg,#286995,#247b95 52%,#277b70);
    background-clip: text;
    color: transparent;
  }
}

@media (max-width:760px) {
  body.homePage #produktwelt::before { inset-inline: -25%; }
  body.homePage .confidenceSection::before,
  body.homePage .confidenceSection::after {
    left: 0;
    width: min(78vw,19rem);
  }
  body.homePage .confidenceSection::before { animation-delay: -10s; }
  body.homePage .confidenceSection::after { animation-delay: -24s; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.homePage #produktwelt { view-timeline-name: --product-world; }
    body.homePage #produktwelt::before {
      animation: productWorldLightDrift linear both;
      animation-timeline: --product-world;
      animation-range: entry 0% contain 75%;
    }
  }

  @keyframes productWorldLightDrift {
    from { transform: translate3d(-3%,0,0); }
    to { transform: translate3d(5%,2rem,0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homePage .confidenceSection::before,
  body.homePage .confidenceSection::after { animation: none; }
}

body.homePage .appleHomeFeature {
  border-block-start: 1px solid rgba(115,179,211,.2);
}

body.homePage #produktwelt .worldCard::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 3px solid rgba(240,250,255,.24);
  border-block-start-color: rgba(255,255,255,.48);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(221,243,252,.28), inset 0 0 0 1px rgba(255,255,255,.16);
  pointer-events: none;
}

body.homePage #produktwelt .worldCard:focus-visible,
body.homePage .appleHomeCopy a:focus-visible {
  outline: 2px solid #17628c;
  outline-offset: 3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .heroQuickLinks a:hover { transform: translateY(-2px); }
  body.homePage .appleHomeCopy a { transition: background-color .22s ease, transform .22s ease; }
  body.homePage .appleHomeCopy a:hover { background-color: #fff; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  body.homePage #produktwelt .worldCard,
  body.homePage #produktwelt .worldCard img { transition: none !important; }
  body.homePage #produktwelt .worldCard:hover,
  body.homePage #produktwelt .worldCard:hover img { transform: none !important; }
}

.heroRefinement :is(a,button):focus-visible {
  outline: 2px solid #17628c;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body.homePage .hero.videoReady.heroRefinement .heroMedia .heroWash {
    background:
      linear-gradient(145deg,rgba(255,255,255,.94) 0%,rgba(237,249,255,.74) 34%,rgba(222,245,255,.50) 76%,rgba(218,242,255,.44)),
      linear-gradient(0deg,rgba(239,249,255,.56),transparent 42%) !important;
  }

  body.homePage .hero.videoReady.heroRefinement .heroGlassNote {
    background: linear-gradient(138deg,rgba(255,255,255,.42),rgba(243,251,255,.27) 57%,rgba(220,243,255,.17)) !important;
    -webkit-backdrop-filter: blur(5px) saturate(115%) !important;
    backdrop-filter: blur(5px) saturate(115%) !important;
  }

  .heroQuickLinks { gap: .45rem; }
}

@media (max-width: 350px) {
  body.homePage .hero.heroRefinement .heroActions { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .heroRefinement .heroWash::after { animation: heroLightIn 3s ease-out both; }
  .heroBrandPath::before { animation: heroBrandLineIn .9s ease-out both; }

  @keyframes heroLightIn {
    from { opacity: .25; transform: translateX(4%); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes heroBrandLineIn {
    from { transform: scaleX(.3); opacity: .45; }
    to { transform: scaleX(1); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homePage .hero.heroRefinement,
  body.homePage .hero.heroRefinement *,
  body.homePage .hero.heroRefinement *::before,
  body.homePage .hero.heroRefinement *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Startseite: Farbakzente für die fünf Hauptbereiche. */
.homePage .topbar .megaItem {
  --menu-accent: #85502f;
  --menu-tint: #fbecdf;
}
.homePage .topbar .megaItem:nth-child(2) { --menu-accent: #355185; --menu-tint: #edf2ff; }
.homePage .topbar .megaItem:nth-child(3) { --menu-accent: #5a4a91; --menu-tint: #eeeafb; }
.homePage .topbar .megaItem:nth-child(4) { --menu-accent: #086b73; --menu-tint: #dff4f5; }
.homePage .topbar .megaItem.shopNavItem { --menu-accent: #245a91; --menu-tint: #e4effb; }

@media (max-width: 1320px) {
  .homePage .topbar .navrow.mobile-open .megaItem > .navlink {
    border-inline-start: 3px solid color-mix(in srgb, var(--menu-accent) 58%, white);
  }
  .homePage .topbar .navrow.mobile-open .megaItem > .megaMobileToggle {
    color: var(--menu-accent);
    background: var(--menu-tint);
  }
  .homePage .topbar .dropdown.mega .megaIntro { padding: .85rem; }
  .homePage .topbar .dropdown.mega .megaIntro p { display: none; }
  .homePage .topbar .dropdown.mega .megaLinks { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .homePage .topbar .dropdown.mega .megaLinks > a + a {
    border-top-color: color-mix(in srgb, var(--menu-accent) 13%, white);
  }
}
