/* ==========================================================================
   JVM — Editorial-Ebene: schwebende Navigation, Vollbild-Einstiege, Laufband,
   Manifest, Gebäude-Explorer, Scroll-Geschichte, roter Abschluss.
   Ergänzt css/style.css.
   ========================================================================== */

body.v {
  background: var(--paper);
}

/* Rasterlinien über die ganze Seite */
.v-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.v-grid i {
  border-left: 1px solid rgba(41, 49, 51, 0.06);
}

.v-grid i:last-child {
  border-right: 1px solid rgba(41, 49, 51, 0.06);
}

.v main,
.v footer {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Schwebende, gerahmte Navigation
   -------------------------------------------------------------------------- */

.v .site-header.v-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  border: 1px solid var(--ink);
  background: rgba(244, 244, 244, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: top 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.v .site-header.v-nav.scrolled {
  top: 8px;
  box-shadow: 0 10px 30px rgba(41, 49, 51, 0.12);
}

.v-nav .header-inner {
  max-width: none;
  height: 64px;
  padding: 0 0 0 12px;
  gap: 0;
}

.v-nav .nav {
  align-self: stretch;
  gap: 0;
}

.v-nav .nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v-nav .nav-link::after {
  left: 22px;
  right: 22px;
  bottom: 18px;
}

.v-nav .nav-phone {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.v-nav .btn {
  align-self: stretch;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Hero: Vollbild-Foto
   -------------------------------------------------------------------------- */

.v-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.v-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 35%;
  transform: scale(1.06);
  animation: v-zoom 2.4s var(--ease) forwards;
}

@keyframes v-zoom {
  to { transform: scale(1); }
}

.v-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(41, 49, 51, 0.15) 0%, rgba(41, 49, 51, 0) 30%, rgba(41, 49, 51, 0.75) 100%),
    linear-gradient(90deg, rgba(41, 49, 51, 0.55) 0%, rgba(41, 49, 51, 0) 60%);
}

.v-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 48px;
}

.v-hero .eyebrow {
  color: #fff;
  margin-bottom: 24px;
}

.v-hero h1 {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 9em;
}

.v-hero h1 em {
  font-style: normal;
  color: var(--red);
}

.v-hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.v-hero-bottom dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.v-hero-bottom dd {
  font-size: 15px;
}

.v-hero-bottom .scroll-cue {
  justify-self: end;
  align-self: end;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v-hero-bottom .scroll-cue span {
  display: inline-block;
  animation: v-bob 1.6s ease-in-out infinite;
}

@keyframes v-bob {
  50% { transform: translateY(4px); }
}

/* Montageplatte als Sticker (Rothpletz-Idee) */
.v-sticker {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: 180px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 190px;
  height: 95px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.05;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease);
}

.v-sticker:hover {
  transform: translateY(-2px);
}

.v-sticker small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   Laufband (Aebi-Idee)
   -------------------------------------------------------------------------- */

.v-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--red);
}

.v-ticker-track {
  display: flex;
  width: max-content;
  animation: v-marquee 70s linear infinite;
}

.v-ticker:hover .v-ticker-track {
  animation-play-state: paused;
}

.v-ticker ul {
  display: flex;
  flex-shrink: 0;
}

.v-ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 22px 28px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  white-space: nowrap;
}

.v-ticker li::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
}

@keyframes v-marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Manifest (Preisig / Imthurn)
   -------------------------------------------------------------------------- */

.v-manifest {
  padding: 160px 0 140px;
}

.v-manifest .statement {
  max-width: 17em;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.v-manifest .w {
  opacity: 0.16;
  transition: opacity 0.25s linear;
}

.v-manifest .w.on {
  opacity: 1;
}

.v-manifest .w.red.on {
  color: var(--red);
}

.v-manifest .eyebrow {
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Gebäude-Explorer (Lokaler Strom)
   -------------------------------------------------------------------------- */

.v-explorer {
  padding: 40px 0 140px;
}

.v-explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.iso {
  position: relative;
}

.iso svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.iso .slab-top { fill: #e6e6e6; }
.iso .slab-x, .iso .slab-y { fill: #cccccc; }
.iso .wall-a { fill: #ececec; stroke: var(--ink); stroke-width: 1; }
.iso .wall-b { fill: #e6e6e6; stroke: var(--ink); stroke-width: 1; }
.iso .cut { fill: var(--ink); }
.iso .joint { fill: var(--red); }
.iso .pipe-top { fill: #c6c6c6; }
.iso .pipe-x { fill: #a4a4a4; }
.iso .pipe-y { fill: #b4b4b4; }
.iso .tray-top { fill: #999999; }
.iso .tray-x, .iso .tray-y { fill: #767676; }
.iso .fw-top { fill: var(--ink); }
.iso .fw-x { fill: #f7f7f7; stroke: var(--ink); stroke-width: 1; }
.iso .fw-y { fill: #d6d6d6; stroke: var(--ink); stroke-width: 1; }
.iso .seal { fill: rgba(193, 18, 28, 0.85); }
.iso .cuff-top, .iso .cuff-x, .iso .cuff-y { fill: var(--red-dark); }
.iso .grid { stroke: var(--ink-3); stroke-width: 0.8; }
.iso .ceiling { fill: rgba(255, 255, 255, 0.35); stroke: var(--ink); stroke-width: 1; }
.iso .hanger { stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 3 3; }
.iso .clad-top { fill: #e8b3b6; }
.iso .clad-x { fill: #f3d0d2; stroke: var(--ink); stroke-width: 1; }
.iso .clad-y { fill: #e2a8ab; stroke: var(--ink); stroke-width: 1; }

/* Deckenszene (Untersicht) */
.iso .d-slab .st { fill: #d9d3c8; }
.iso .d-slab .sx, .iso .d-slab .sy { fill: #c7c0b3; }
.iso .z-tile .st { fill: #f7f4ee; stroke: var(--ink); stroke-width: 1; }
.iso .z-tile .sx, .iso .z-tile .sy { fill: #e9e3d8; stroke: var(--ink); stroke-width: 1; }
.iso .z-grid { stroke: var(--ink-3); stroke-width: 1.2; }
.iso .z-rev { fill: none; stroke: var(--red); stroke-width: 2.5; }
.iso .z-gips .st { fill: #ffffff; stroke: var(--ink); stroke-width: 1; }
.iso .z-gips .sx, .iso .z-gips .sy { fill: #ece7dd; stroke: var(--ink); stroke-width: 1; }
.iso .z-joint { stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 5; }
.iso .z-akustik .st { fill: #d8d2c6; stroke: var(--ink); stroke-width: 1; }
.iso .z-akustik .sx, .iso .z-akustik .sy { fill: #cbc4b6; stroke: var(--ink); stroke-width: 1; }
.iso .z-baffle .st { fill: #3a3835; }
.iso .z-baffle .sx { fill: #5c5851; }
.iso .z-baffle .sy { fill: #4a4741; }
.iso .z-void .st { fill: #cfc8bb; }
.iso .z-void .sx, .iso .z-void .sy { fill: #bfb8aa; }
.iso .z-metal .st { fill: #b9bcc0; stroke: #7d8186; stroke-width: 0.6; }
.iso .z-metal .sx, .iso .z-metal .sy { fill: #8f9399; }

.iso[data-active="abgehaengt"] svg [data-spot="abgehaengt"],
.iso[data-active="gips"] svg [data-spot="gips"],
.iso[data-active="akustik"] svg [data-spot="akustik"],
.iso[data-active="metall"] svg [data-spot="metall"] {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(208, 40, 30, 0.45));
}

/* Deckenbau-Explorer: Karte links, Szene rechts */
.v-explorer.is-decken .v-explorer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.v-explorer.is-decken .v-explorer-grid > .iso {
  order: 2;
}

.v-explorer.is-decken {
  padding-top: 0;
}

.iso [data-spot] {
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}

.iso[data-active] svg [data-spot] {
  opacity: 0.45;
}

.iso[data-active="abschottungen"] svg [data-spot="abschottungen"],
.iso[data-active="verkleidungen"] svg [data-spot="verkleidungen"],
.iso[data-active="waende"] svg [data-spot="waende"],
.iso[data-active="fugen"] svg [data-spot="fugen"],
.iso[data-active="deckenbau"] svg [data-spot="deckenbau"] {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(193, 18, 28, 0.45));
}

.pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  transform: translate(-15px, -50%);
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.pin::before {
  content: attr(data-num);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
}

.pin-label {
  display: block;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.4s var(--ease), padding 0.4s var(--ease);
}

.pin:hover,
.pin:focus-visible,
.pin[aria-pressed="true"] {
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
}

.pin:hover .pin-label,
.pin:focus-visible .pin-label,
.pin[aria-pressed="true"] .pin-label {
  max-width: 280px;
  padding: 0 8px 0 10px;
}

.pin.flip {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 15px), -50%);
}

.pin.flip:hover .pin-label,
.pin.flip:focus-visible .pin-label,
.pin.flip[aria-pressed="true"] .pin-label {
  padding: 0 10px 0 8px;
}

.pin .pulse {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 2px solid var(--red);
  opacity: 0;
  pointer-events: none;
}

.pin.flip .pulse {
  left: auto;
  right: 4px;
}

.pin[aria-pressed="true"] .pulse {
  animation: v-pulse 1.6s var(--ease) infinite;
}

@keyframes v-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}

.explorer-card {
  border-top: 4px solid var(--red);
  background: #fafafa;
  padding: 32px;
  box-shadow: 12px 12px 0 var(--panel);
}

.explorer-card .num {
  display: block;
  margin-bottom: 18px;
}

.explorer-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.explorer-card p {
  color: var(--ink-3);
}

.explorer-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 28px;
}

.explorer-card li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.explorer-card .btn {
  width: 100%;
}

.explorer-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Scroll-Geschichte (Rothpletz)
   -------------------------------------------------------------------------- */

.v-story {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
}

.v-story .section-head .eyebrow {
  color: var(--paper);
}

.v-story .section-head p {
  color: rgba(244, 244, 244, 0.65);
}

.v-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.v-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.4s var(--ease);
}

.v-step.active {
  opacity: 1;
}

.v-step .num {
  color: var(--red);
  margin-bottom: 16px;
}

.v-step h3 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.v-step p {
  max-width: 26em;
  color: rgba(244, 244, 244, 0.72);
  font-size: 1.1rem;
}

.v-media {
  position: sticky;
  top: 15vh;
  height: 70vh;
  align-self: start;
}

.v-media > * {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.v-media[data-step="1"] > :nth-child(1),
.v-media[data-step="2"] > :nth-child(2),
.v-media[data-step="3"] > :nth-child(3) {
  opacity: 1;
  transform: none;
}

.v-media .drawing {
  aspect-ratio: 1 / 0.92;
  width: 100%;
  height: auto;
  align-self: center;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.v-media[data-step="1"] > :nth-child(1).drawing,
.v-media[data-step="2"] > :nth-child(2).drawing {
  transform: translateY(-50%);
}

.v-media .plate-figure {
  top: 50%;
  bottom: auto;
  height: max-content;
  transform: translateY(-50%);
}

.v-media .plate-figure figcaption {
  color: rgba(244, 244, 244, 0.65);
}

/* --------------------------------------------------------------------------
   Vergleich, Abschluss
   -------------------------------------------------------------------------- */

.v-compare {
  padding: 140px 0;
}

.v-cta {
  position: relative;
  margin: 0 16px 16px;
  padding: 120px 0 96px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
}

.v-cta h2 {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 8em;
}

.v-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.v-cta-contact {
  display: grid;
  gap: 4px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
}

.v-cta-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.v-cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.v-cta .btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v footer.site-footer {
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   Unterseiten: Abstand unter der schwebenden Navigation
   -------------------------------------------------------------------------- */

.v .page-head {
  padding-top: 168px;
}

/* Vollbild-Seitenkopf mit Foto */
.v-pagehero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.v-pagehero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: v-zoom 2.4s var(--ease) forwards;
}

.v-pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(41, 49, 51, 0.35) 0%, rgba(41, 49, 51, 0) 35%, rgba(41, 49, 51, 0.8) 100%),
    linear-gradient(90deg, rgba(41, 49, 51, 0.5) 0%, rgba(41, 49, 51, 0) 65%);
}

.v-pagehero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 56px;
}

.v-pagehero .breadcrumb ol,
.v-pagehero .breadcrumb [aria-current] {
  color: rgba(255, 255, 255, 0.85);
}

.v-pagehero .breadcrumb a:hover {
  color: #fff;
}

.v-pagehero .display {
  max-width: 11em;
  color: #fff;
}

.v-pagehero .lead {
  margin-top: 28px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.85);
}

.v-imgtag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 6px 10px;
  background: rgba(41, 49, 51, 0.75);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Manifest auf Unterseiten etwas kompakter */
.v-manifest.compact {
  padding: 120px 0 100px;
}

/* --------------------------------------------------------------------------
   Referenzen: gerahmte, nummerierte Beschriftung (La Senda)
   -------------------------------------------------------------------------- */

.v .photo-grid .photo {
  position: relative;
  padding: 10px;
  border: 1px solid var(--ink);
  background: #fafafa;
}

.v .photo-grid .photo img {
  aspect-ratio: 4 / 3;
}

.v .photo-grid figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(41, 49, 51, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}

.v .photo-grid figcaption .ref-num {
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.v .photo-grid figcaption .ref-text {
  padding: 12px 16px;
}

.v .photo-grid figcaption strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v .photo-grid figcaption span.ref-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.v .photo-grid figcaption .ref-arrow {
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   Responsive & Bewegung
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .v-explorer.is-decken .v-explorer-grid,
  .v-explorer-grid,
  .v-story-grid {
    grid-template-columns: 1fr;
  }

  .v-explorer.is-decken .v-explorer-grid > .iso {
    order: 0;
  }

  .v-media {
    position: relative;
    top: 0;
    height: auto;
    aspect-ratio: 1 / 0.92;
    order: -1;
  }

  .v-step {
    min-height: auto;
    padding: 40px 0;
    opacity: 1;
  }

  .v-hero-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .v-hero-bottom .scroll-cue {
    display: none;
  }
}

@media (max-width: 900px) {
  .v .site-header.v-nav,
  .v .site-header.v-nav.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--paper);
  }

  .v .page-head {
    padding-top: 120px;
  }

  .v-pagehero-inner {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .v .site-header.v-nav {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .v-nav .header-inner {
    padding: 0 6px 0 10px;
  }

  .v-nav .nav {
    padding-top: 110px;
  }

  .v-nav .nav-link,
  .v-nav .nav-phone {
    height: auto;
    padding: 18px 0;
    border-left: 0;
    font-size: 1.6rem;
    text-transform: none;
    letter-spacing: -0.01em;
  }

  .v-nav .btn {
    border: 1px solid var(--ink);
  }

  .v-sticker {
    width: 150px;
    height: 76px;
    font-size: 17px;
    bottom: auto;
    top: 110px;
    right: 20px;
  }

  .pin[aria-pressed="true"] .pin-label,
  .pin:hover .pin-label {
    max-width: 0;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-hero > img,
  .v-ticker-track,
  .v-hero-bottom .scroll-cue span,
  .pin[aria-pressed="true"] .pulse {
    animation: none;
  }

  .v-hero > img {
    transform: none;
  }

  .v-manifest .w {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Hero: animierter Gebäudeschnitt statt Foto
   -------------------------------------------------------------------------- */

.v-hero .v-hero-drawing {
  position: absolute;
  top: 120px;
  right: 6vw;
  left: 34vw;
  height: calc(100svh - 580px);
  min-height: 280px;
  aspect-ratio: auto;
  background: none;
  border: 0;
}

.v-hero .v-hero-drawing svg {
  overflow: visible;
}

.v-hero:has(.v-hero-drawing)::after,
.v-hero:has(.v-hero-stage)::after {
  content: none;
}

.hb-line {
  fill: none;
  stroke: rgba(243, 239, 232, 0.7);
  stroke-width: 1.2;
}

.hb-strong {
  stroke: var(--paper);
  stroke-width: 1.8;
}

.hb-hatch-line {
  stroke: rgba(243, 239, 232, 0.18);
  stroke-width: 1;
}

.hb-pipe {
  fill: none;
  stroke: rgba(243, 239, 232, 0.55);
  stroke-width: 1.4;
}

.hb-tray {
  fill: none;
  stroke: rgba(243, 239, 232, 0.4);
  stroke-width: 1.2;
}

.hb-seal {
  fill: var(--red);
}

.hb-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.draw .hb-pulse {
  animation: hb-pulse 3.2s ease-out infinite;
  animation-delay: var(--delay, 2s);
}

@keyframes hb-pulse {
  0% { opacity: 0.9; transform: scale(0.6); }
  60%, 100% { opacity: 0; transform: scale(2.4); }
}

.hb-label {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: rgba(243, 239, 232, 0.6);
}

.hb-label-red {
  fill: var(--red);
}

.hb-leader {
  fill: none;
  stroke: var(--red);
  stroke-width: 1;
}

/* Vorher / Nachher als Zeichnung */

.compare-img .cmp-label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  fill: var(--ink);
}

.compare-img .cmp-red {
  fill: var(--red);
}

@media (max-width: 900px) {
  .v-hero .v-hero-drawing {
    top: 190px;
    left: 16px;
    right: 16px;
    height: 30svh;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw .hb-pulse {
    animation: none;
  }
}

/* Sprungziele der Landingpage nicht unter der schwebenden Navigation verstecken */
.v [id] {
  scroll-margin-top: 110px;
}

.v-hero-lead {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.v-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.v-cta-lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* Hero mit beschreibendem Titel: Text links, Gebäudeschnitt rechts */
.v-hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  max-width: min(46vw, 640px);
}

@media (max-width: 900px) {
  .v-hero h1 {
    max-width: none;
  }
}

.v-hero-inner > * {
  max-width: min(46vw, 640px);
}

.v-hero .v-hero-drawing {
  top: 140px;
  bottom: 140px;
  left: 54vw;
  right: 5vw;
  height: auto;
  min-height: 0;
}

@media (max-width: 900px) {
  .v-hero {
    flex-direction: column;
    justify-content: flex-start;
  }

  .v-hero .v-hero-drawing {
    position: relative;
    inset: auto;
    margin: 104px 16px 0;
    width: auto;
    height: auto;
    aspect-ratio: 1000 / 450;
  }

  .v-hero-inner {
    padding-top: 32px;
  }

  .v-hero-inner > * {
    max-width: none;
  }
}

/* Kennzahlen unter dem Hero */
.v-figures {
  padding: 72px 0 24px;
}

.v-figures ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.v-figures li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 8px 0;
}

.v-figures li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.v-fig-num {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.v-figures strong {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 500;
}

.v-figures span:last-child {
  font-size: 14.5px;
  color: var(--ink-3);
}

/* Über uns und Warum JVM */
.v-about-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 20px;
}

.v-sub {
  margin: 72px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.v-sub + .audiences {
  margin-top: 20px;
}

.deliverables.v-why {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .v-figures ul,
  .deliverables.v-why {
    grid-template-columns: 1fr 1fr;
  }

  .v-figures li:nth-child(odd),
  .deliverables.v-why li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .deliverables.v-why li:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .deliverables.v-why {
    grid-template-columns: 1fr;
  }

  .deliverables.v-why li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

.v-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.v-hero-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.steps.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.v-clients {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.v-clients li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .steps.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps.five {
    grid-template-columns: 1fr;
  }
}

/* Hero: wechselnde Detailzeichnungen pro Leistung */
.v-hero-stage {
  position: absolute;
  top: 120px;
  bottom: 120px;
  left: 54vw;
  right: 5vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-slides {
  position: relative;
  flex: 1;
  min-height: 0;
}

.v-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.v-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.v-slide .drawing {
  height: 100%;
  aspect-ratio: auto;
}

.v-slide .drawing-tag {
  display: none;
}

.v-hero-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v-hero-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.v-hero-nav button .num {
  font-size: 11px;
  color: inherit;
}

.v-hero-nav button:hover,
.v-hero-nav button[aria-current="true"] {
  color: #fff;
}

.v-hero-nav button i {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--red);
}

.v-hero-nav button[aria-current="true"] i {
  animation: v-slide-progress var(--slide-time, 6s) linear forwards;
}

@keyframes v-slide-progress {
  to { width: 100%; }
}

@media (max-width: 900px) {
  .v-hero-stage {
    position: relative;
    inset: auto;
    margin: 96px 16px 0;
  }

  .v-slides {
    flex: none;
    aspect-ratio: 1 / 0.92;
  }

  .v-hero-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-hero-nav button[aria-current="true"] i {
    animation: none;
    width: 100%;
  }
}

/* Deckenbau: einfacher Raumschnitt */
.iso .ds-slab { fill: #e6e6e6; stroke: var(--ink); stroke-width: 1.2; }
.iso .ds-hatch-line { stroke: #9b9b9b; stroke-width: 1; }
.iso .ds-hole { fill: #555555; }
.iso .ds-cap,
.iso .ds-label { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; fill: var(--ink-2); }
.iso .ds-floor { stroke: var(--ink); stroke-width: 1.2; }
.iso .ds-divider { stroke: #c8c8c8; stroke-width: 1; stroke-dasharray: 4 5; }
.iso .ds-hanger { stroke: var(--ink-3); stroke-width: 1.2; }
.iso .ds-duct { fill: #e6e6e6; stroke: var(--ink-3); stroke-width: 1.2; }
.iso .ds-tray { fill: #9b9b9b; }
.iso .ds-rail { stroke: var(--ink); stroke-width: 2; }
.iso .ds-rail-strong { stroke-width: 4; }
.iso .ds-tile { fill: #ffffff; stroke: var(--ink); stroke-width: 1; }
.iso .ds-rev { stroke: var(--red); stroke-width: 2; }
.iso .ds-board { fill: #ffffff; stroke: var(--ink); stroke-width: 1.2; }
.iso .ds-baffle { fill: var(--ink); }
.iso .ds-sound { fill: none; stroke: var(--red); stroke-width: 2; }
.iso .ds-metal { fill: #b9bcc0; stroke: #7d8186; stroke-width: 0.8; }

.iso .ds-cap,
.iso .ds-label { font-size: 14px; }
.iso .ds-hanger { stroke-width: 1.5; }

.v-cta h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  max-width: 14em;
}

/* Responsive Feinschliff */
.iso-inner {
  position: relative;
}

@media (max-width: 900px) {
  .v-hero {
    align-items: stretch;
  }

  .v-hero-inner {
    order: 1;
    padding-top: 120px;
  }

  .v-hero-stage {
    order: 2;
    align-self: stretch;
    margin: 8px 16px 40px;
  }

  .deliverables.v-why li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .v-explorer.is-decken .iso {
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .v-explorer.is-decken .iso::-webkit-scrollbar {
    display: none;
  }

  .v-explorer.is-decken .iso-inner {
    min-width: 620px;
  }
}

@media (max-width: 560px) {
  .v-hero-actions .btn {
    width: 100%;
  }

  .deliverables.v-why li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .v-hero-stage {
    width: min(100% - 32px, 560px);
    margin: 8px 24px 48px;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .v-hero-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-hero-stage {
    left: 52vw;
    right: 3vw;
  }
}

.v-hero-nav button {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Schmale Handys: Spalten nie breiter als der Bildschirm, lange Wörter trennen */
h1, h2, h3, .explorer-card h3, .v-clients li, .deliverables strong, .step h3 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

@media (max-width: 1100px) {
  .v-explorer.is-decken .v-explorer-grid,
  .v-explorer-grid,
  .v-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .two-col,
  .contact-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-card {
    min-width: 0;
  }

  .explorer-card li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 400px) {
  .v-hero-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-hero-nav li:nth-child(n + 2) button {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

h1, h2, .explorer-card h3 {
  -webkit-hyphens: manual;
  hyphens: manual;
}

@media (max-width: 480px) {
  .v-hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.6rem);
  }

  .explorer-card h3 {
    font-size: clamp(1.4rem, 6.6vw, 1.9rem);
  }

  .h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.4rem);
  }
}

.contact-form-only {
  max-width: 820px;
}
