/* Bildbasierte Innenansicht mit an das Bild gebundenen Einbauorten. */
#hero.mc-hero { --story-travel: clamp(950px, 135svh, 1250px); }
.mc-story__visual { transform: translateY(var(--vp-visual-shift, 0px)); }
.mc-device--vaillant { position: relative; isolation: isolate; width: 100%; border: 1px solid transparent; border-radius: 0; overflow: hidden; background: transparent; }
.mc-device--vaillant::before, .mc-device--vaillant::after { display: none; }
.mc-vp__scene { position: relative; }
.mc-vp__machine { display: block; width: 100%; height: auto; }
.mc-vp__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mc-vp__panel, .mc-vp__opened, .mc-vp__parts { display: none; }
.mc-device--vaillant .mc-device__topics { background: transparent; }
.mc-vp__credit { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin: 9px 3px 0; color: #56616e; font-size: .68rem; line-height: 1.45; }
.mc-vp__credit a { display: inline-flex; align-items: center; min-height: 28px; color: var(--mc-green-hover); font-weight: 700; text-underline-offset: 3px; }
.is-vaillant-story.mc-device--vaillant { aspect-ratio: 900 / 760; }
.is-vaillant-story .mc-vp__scene { position: absolute; z-index: 1; pointer-events: none; }
.is-vaillant-story .mc-vp__machine, .is-vaillant-story .mc-vp__panel { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.is-vaillant-story .mc-vp__machine { opacity: var(--vp-photo, 1); }
.is-vaillant-story .mc-vp__panel { opacity: var(--vp-panels, 0); }
.is-vaillant-story .mc-vp__opened { display: block; position: absolute; object-fit: contain; opacity: var(--vp-inside,0); }
.mc-vp__panel--front { clip-path: polygon(28.2% 31.2%, 33.2% 23.8%, 60.3% 28.5%, 60.4% 72.4%, 34.4% 73.3%, 28.2% 71.4%); transform: translateX(calc(var(--vp-open, 0) * -108px)) rotate(calc(var(--vp-open, 0) * -3deg)); }
.mc-vp__panel--side { clip-path: polygon(60.3% 28.5%, 76.9% 32.5%, 76.9% 71.1%, 60.4% 72.4%); transform: translateX(calc(var(--vp-open, 0) * 108px)) rotate(calc(var(--vp-open, 0) * 3deg)); }
.is-vaillant-story .mc-vp__parts, .is-vaillant-story .mc-device__topics { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 9px 15px; padding: 19px 15px 57px; background: transparent; margin: 0; list-style: none; }
.is-vaillant-story .mc-device__topics { z-index: 3; }
.is-vaillant-story .mc-vp__parts { z-index: 2; pointer-events: none; }
.mc-vp__part { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; padding: 0 6px 28px; opacity: 0; }
.mc-vp__part img { display: block; width: 100%; height: 100%; max-height: 130px; object-fit: contain; filter: drop-shadow(0 5px 7px #102f501a); }
.is-vaillant-story .mc-topic { opacity: var(--vp-topic-opacity,0); }
.is-vaillant-story .mc-topic__image { width: 100%; height: 100%; max-height: 125px; object-fit: contain; }
.is-vaillant-story .mc-topic__image--original { filter: none; }
.is-vaillant-story .mc-topic__image--scene { object-fit: cover; max-width: 160px; border-radius: 7px; }
.is-vaillant-story .mc-topic__image--montage { max-width: 190px; max-height: 120px; border: 1px solid #e1e8e3; border-radius: 8px; object-position: center; box-shadow: 0 4px 12px #143e3212; }
.is-vaillant-story .mc-topic__image--cutout { max-width: 220px; max-height: 135px; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 9px #1b2d3c24); }
.is-vaillant-story .mc-topic__image--sanitaer { object-position: 50% 78%; }
.is-vaillant-story .mc-topic__image--rohr { display: block; overflow: hidden; }
.mc-topic__image--rohr img { display: block; width: 125%; max-width: none; height: 100%; margin-left: -12.5%; object-fit: cover; object-position: 50% 36%; }
.is-vaillant-story .mc-topic__label { opacity: var(--vp-label-opacity,0); font-size: clamp(.82rem,1.32vw,1.12rem); }
.mc-device--vaillant .mc-device__overlay { left: 10px; right: 10px; bottom: 8px; z-index: 5; align-items: center; }
.mc-device--vaillant .mc-device__state { color: var(--mc-ink); background: var(--mc-paper); font-size: .67rem; padding: .35rem .45rem; }
.mc-device--vaillant .mc-device__motion { color: var(--mc-ink); background: var(--mc-paper); border: 1px solid #b2c5b8; min-height: 38px; font-size: .67rem; }
.mc-device--vaillant .mc-device__motion:focus-visible { outline: 3px solid #d4a400; outline-offset: 2px; }
.is-motion-static .mc-vp__scene, .is-motion-static .mc-vp__parts { display: none; }
.mc-card__image--pressarbeit { width: 125%; max-width: none; margin-left: -12.5%; object-position: 50% 36%; }
.mc-card__image--produktfoto { object-position: center; }
.mc-card__image--foto17 { object-position: center; }
@media (min-width: 768px) {
  .is-vaillant-story.mc-device--vaillant { max-height: max(280px, calc(100svh - var(--mc-nav-h, 82px) - 100px)); }
}
@media (max-width: 640px) {
  #hero.mc-hero { --story-travel: clamp(900px, 115svh, 1150px); }
  .is-vaillant-story.mc-device--vaillant { aspect-ratio: .90; }
  .is-vaillant-story .mc-vp__parts, .is-vaillant-story .mc-device__topics { gap: 7px 8px; padding: 12px 8px 58px; }
  .mc-vp__part { padding: 0 4px 23px; }
  .mc-vp__part img { max-height: 105px; }
  .is-vaillant-story .mc-topic__image { max-height: 100px; }
  .is-vaillant-story .mc-topic__image--montage { max-width: 132px; max-height: 88px; border-radius: 6px; }
  .is-vaillant-story .mc-topic__image--cutout { max-width: 168px; max-height: 105px; filter: drop-shadow(0 5px 6px #1b2d3c24); }
  .is-vaillant-story .mc-topic__label { font-size: clamp(.76rem,3.2vw,.96rem); }
  .mc-device--vaillant .mc-device__state { font-size: .58rem; max-width: 46%; }
  .mc-device--vaillant .mc-device__motion { font-size: .6rem; padding-inline: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-vp__panel, .mc-vp__part, .mc-topic { transition: none; }
}
/* Stand 20: Die Bühne klebt unter der Kopfzeile. Ist sie höher als der sichtbare
   Bereich, rückt ihr oberer Teil unter die Kopfzeile und die erste Bildreihe
   verschwindet dahinter. Die Gerätefläche bekommt deshalb auf Mobilgeräten eine
   Höhengrenze, die den Platz unterhalb der Fläche mitrechnet.
   Abzug: Kopfzeile + unterer Abstand der Bühne (--story-bottom-gap)
   + 101px Quellenzeile samt Abständen unter der Gerätefläche + 10px Reserve. */
@media (max-width: 767px) {
  .is-vaillant-story.mc-device--vaillant {
    /* Stand 21: Abzug von 111px auf 137px erhöht. Die Quellenzeile unter der
       Gerätefläche wurde größer und besser antippbar gemacht; sie braucht
       jetzt 108px (bei 390px Breite) bzw. 127px (bei 320px, dort bricht sie
       um) statt zuvor 101px. 127 + 10px Reserve = 137px. */
    max-height: max(220px, calc(100svh - var(--mc-nav-h, 72px) - var(--story-bottom-gap, 70px) - 137px));
  }
}
/* Stand 20: Sehr niedrige Fenster – etwa ein quer gehaltenes Handy – bieten selbst
   für die kleinste Gerätefläche (220px) zuzüglich Kopfzeile, Quellenzeile und
   unterem Abstand keinen Platz. Dort klebt die Bühne gar nicht erst, sondern
   scrollt normal mit. So kann keine Bildreihe hinter der Kopfzeile festhängen. */
@media (max-width: 767px) and (max-height: 474px) {
  .has-scroll-animation .mc-story__stage { position: static; }
  #hero.mc-hero.has-scroll-animation { min-height: 0; }
}
