/* Mobile experience, 28.09.2026 (Bastian: "Mobile finde ich noch nicht so geil").
 * Loaded last on every page. Only phone and small-tablet widths are touched here. */

/* ---------- Menu: full-screen sheet instead of a list hanging under the header ---------- */
/* 29.09.2026: the hamburger takes over below 1240px (v5.css), so the sheet must too -
 * between 941 and 1239px tablets got an unstyled list, a native triangle and a left-stuck button. */
@media (max-width: 1239px) {
  .header .header-inner > nav {
    display: none !important;
  }
  .header .mobile-nav {
    display: block;
  }
  .header .nav-cta {
    margin-left: auto;
  }
  .header .mobile-nav > summary {
    list-style: none;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .header .mobile-nav > summary::-webkit-details-marker {
    display: none;
  }
  html.mnav-open,
  html.mnav-open body {
    overflow: hidden;
  }

  .header .mobile-nav > summary {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    transition: background-color 0.2s ease;
  }
  .header .mobile-nav[open] > summary {
    background: #111;
    color: #fff;
  }
  .header .mobile-nav[open] > summary > svg {
    opacity: 0;
  }
  .header .mobile-nav[open] > summary::before,
  .header .mobile-nav[open] > summary::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .header .mobile-nav[open] > summary::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .header .mobile-nav[open] > summary::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .header .mobile-nav > nav {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    z-index: -1;
    max-height: none !important;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 108px 24px 0 !important;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fbfaf7 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .header .mobile-nav > nav > a,
  .header .mobile-nav .hotbar-mobile-group > summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 27px !important;
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.1;
    color: #111;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
  }
  .header .mobile-nav .hotbar-mobile-group > summary svg {
    width: 22px;
    height: 22px;
    color: #111;
  }
  .header .mobile-nav .hotbar-mobile-group[open] > summary {
    color: var(--ga-brand, #ee671f);
    border-bottom-color: transparent !important;
  }
  .header .mobile-nav .hotbar-mobile-group > div {
    display: grid;
    gap: 2px;
    padding: 4px 0 18px !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }
  .header .mobile-nav .hotbar-mobile-group a {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 17px !important;
    font-weight: 500;
    color: #262626;
    background: transparent;
  }
  .header .mobile-nav .hotbar-mobile-group a svg,
  .header .mobile-nav .hotbar-mobile-group a[aria-current="page"],
  .header .mobile-nav .hotbar-mobile-group a.hotbar-mobile-primary {
    color: var(--ga-brand, #ee671f) !important;
  }
  .header .mobile-nav .hotbar-mobile-group a:active {
    background: rgba(238, 103, 31, 0.08);
  }

  /* The action block stays at the thumb's reach while the list scrolls. */
  .mnav-foot {
    position: sticky;
    bottom: 0;
    margin: auto -24px 0;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    display: grid;
    gap: 12px;
    background: linear-gradient(to bottom, rgba(251, 250, 247, 0), #fbfaf7 22%);
  }
  .mnav-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    border-radius: 999px;
    background: var(--ga-brand, #ee671f);
    color: #fff !important;
    font-size: 18px;
    font-weight: 650;
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(238, 103, 31, 0.28);
  }
  .mnav-cta svg {
    width: 20px;
    height: 20px;
  }
  .mnav-note {
    margin: -2px 0 2px;
    text-align: center;
    font-size: 13px;
    color: #5f6368;
  }
  .mnav-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mnav-contact a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.14) !important;
    background: #fff;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 600;
  }
  .mnav-contact svg {
    width: 18px;
    height: 18px;
    color: var(--ga-brand, #ee671f);
  }

  @media (prefers-reduced-motion: no-preference) {
    .header .mobile-nav[open] > nav {
      animation: mnav-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .header .mobile-nav[open] > nav > a,
    .header .mobile-nav[open] > nav > details {
      animation: mnav-item 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .header .mobile-nav[open] > nav > :nth-child(2) { animation-delay: 0.04s; }
    .header .mobile-nav[open] > nav > :nth-child(3) { animation-delay: 0.08s; }
    .header .mobile-nav[open] > nav > :nth-child(4) { animation-delay: 0.12s; }
    .header .mobile-nav[open] > nav > :nth-child(5) { animation-delay: 0.16s; }
  }
  @keyframes mnav-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes mnav-item {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  html.mnav-open .sticky-cta {
    display: none !important;
  }
}
@media (min-width: 1240px) {
  .mnav-foot {
    display: none;
  }
}

/* ---------- Home hero on phones: big three-line statement, house in frame, thumb CTA ---------- */
.v20-br-m,
.v20-cta-note {
  display: none;
}
@media (max-width: 760px) {
  .v20-br-m {
    display: inline;
  }
  /* The photo sits in the lower part; the sky continues above it, so the statement stands on
     light ground and the whole house including the heat pump stays in frame. */
  .g-home .v20-hero .v20-pin {
    background: linear-gradient(to bottom, #eef2f7 0%, #c9d7e8 30%, #8eadd1 52%, #7fa2ca 60%);
  }
  .g-home .v20-hero .v20-still {
    top: auto !important;
    bottom: 0;
    height: 62% !important;
    object-position: 86% 100% !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  }
  .g-home .v20-hero .v20-pin::after {
    content: "" !important;
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 14, 18, 0), rgba(10, 14, 18, 0.55));
  }
  .g-home .v20-hero .v20-copy {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    width: auto !important;
    /* The hero starts 72px above the viewport (under the floating header), so the copy starts
       below the header pill: 72px hidden + 98px header zone. */
    padding: 170px 20px calc(30px + env(safe-area-inset-bottom)) !important;
  }
  .g-home .v20-hero h1 {
    /* Sized so the longest rolling word (Energiekosten.) fits 360-430px wide phones. */
    font-size: clamp(42px, 12.8vw, 58px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.045em !important;
    margin: 0 !important;
  }
  .g-home .v20-hero h1 .v20-line > span {
    white-space: normal !important;
  }
  .g-home .v20-hero .v20-desc {
    font-size: 17px !important;
    line-height: 1.4;
    max-width: none !important;
    color: #1a1a1a;
  }
  .g-home .v20-hero .v20-copy .button {
    order: 10;
    margin-top: auto !important;
    align-self: stretch;
    justify-content: center;
    min-height: 58px;
    font-size: 18px !important;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  }
  .g-home .v20-hero .v20-cta-note {
    order: 11;
    display: block;
    margin: -2px 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }
  .g-home .v20-hero .v20-proof {
    display: none !important;
  }
  /* 29.09.2026: with the calmer two-line headline the sky has room again - the sentence returns under it. */
  .g-home .v20-hero .v20-desc {
    display: block !important;
    margin-top: 4px !important;
    font-size: 17px !important;
    line-height: 1.42 !important;
  }
  .g-home .v20-hero .v20-marker-ebene {
    display: block !important;
    z-index: 6;
  }
}

/* ---------- Pinch hint on touch surfaces (map, image world, review wall) ---------- */
.pinch-hint {
  display: none;
}
@media (pointer: coarse) {
  .pinch-hint {
    position: absolute;
    left: 50%;
    top: 14px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .pinch-hint svg {
    width: 20px;
    height: 20px;
    color: var(--ga-brand, #ee671f);
  }
  [data-pinched] .pinch-hint {
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .pinch-hint svg {
      animation: pinch-hint 1.8s ease-in-out infinite;
    }
  }
}
@keyframes pinch-hint {
  0%, 100% { transform: scale(0.86); }
  50% { transform: scale(1.12); }
}

/* ---------- Energie-Check on phones: question 1 of 3 right under the header ---------- */
@media (max-width: 760px) {
  .fs-check .fs-check-stage {
    padding-top: 92px !important;
    gap: 16px !important;
  }
  .fs-check .fs-check-form {
    order: -1;
    padding: 20px 18px 22px !important;
    scroll-margin-top: 88px;
  }
  .fs-check .fs-check-stage aside {
    order: 1;
  }
  /* Heading stays for search engines and screen readers, the picture and brief go. */
  .fs-check .fs-check-intro {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .fs-check .fs-check-visual {
    display: none !important;
  }
  .fs-check .fs-check-stage aside > .fs-link {
    display: inline-flex !important;
  }
  .fs-check .fs-check-progress {
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
  }
  .fs-check .fs-check-form h2 {
    font-size: 26px;
    line-height: 1.12;
  }
  .fs-check .fs-check-form fieldset label {
    min-height: 64px;
  }
}

/* ---------- Subpage heroes on phones: the picture belongs in the header, like on desktop ---------- */
/* Six hero builds pushed their picture below the first screen; on phones it now sits edge to edge
 * right under the floating header and fades into the page, the statement follows directly. */
@media (max-width: 760px) {
  :is(.wp26-hero, .ip-hero, .pv26-hero, .tcp-hero, .co-hero, .fs-hero, .fd26-hero) {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  :is(.wp26-hero > .wp26-hero-image, .ip-hero > .ip-hero-image, .pv26-hero > .pv26-hero-image, .tcp-hero > img, .fd26-hero > img),
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) {
    order: -1 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100vw !important;
    max-width: none !important;
    height: min(50svh, 430px) !important;
    margin: 0 calc(50% - 50vw) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) :is(img, video) {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 0 !important;
  }
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) > div {
    height: 100%;
    border-radius: 0 !important;
  }
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) figcaption:not([data-ki]) {
    display: none;
  }
  :is(.wp26-hero > .wp26-wrap, .ip-hero > .ip-wrap, .pv26-hero > .pv26-wrap, .tcp-hero > .wrap, .co-hero > .co-wrap, .fs-hero > div:not(.fs-picture), .fd26-hero > .fd26-hero-inhalt) {
    position: relative !important;
    z-index: 2;
    margin-top: -34px !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 760px) {
  /* The desktop text veil of the PV hero would cover the whole picture on phones. */
  .pv26-hero::after {
    display: none !important;
  }
  /* wp26 wraps its copy with display: contents; the copy itself carried the desktop offset. */
  .wp26-hero .wp26-hero-copy {
    position: relative;
    z-index: 2;
    margin-top: -30px !important;
  }
}

/* ---------- Readability floor on phones: labels in graphics were 6-9px ---------- */
@media (max-width: 760px) {
  .gk-kicker,
  .wp26-kicker,
  main .eyebrow {
    font-size: 11px !important;
  }
  /* Location map: hub names readable, the repeated "Installations-Hub" line goes. */
  .gl-location .gl-hub-label small {
    display: none !important;
  }
  .gl-location .gl-pin-label strong,
  .gl-location .gl-pin-label small {
    font-size: 11px !important;
    line-height: 1.15;
  }
  /* Fixed 11px, only where the text sits in running layout - labels pinned inside pictures
     keep their size, a larger one would collide with its neighbour. */
  .ip-ecosystem :is(small, figcaption),
  .ip-day :is(.id-task-heading, .id-cost-current),
  .pv-day-node-name,
  .wp26-range-ticks,
  .wp26-summary-total,
  .ic-economics .ic-input-line,
  .wp26-section small {
    font-size: 11px !important;
  }
}



/* ---------- Kundenstimmen on phones: the customer film first, like beside the headline on desktop ---------- */
@media (max-width: 760px) {
  .cs-scene.is-page .cs-scene-wrap {
    flex-direction: column !important;
  }
  .cs-scene.is-page .cs-scene-films {
    order: -1;
    margin-top: 0 !important;
  }
  .cs-scene.is-page .cs-scene-copy {
    margin-top: 22px !important;
  }
}

/* ---------- Touch devices: the fingers are the controls ---------- */
.gw-instruction-touch {
  display: none;
}
@media (pointer: coarse) {
  .gw-instruction-touch {
    display: inline;
  }
  .gw-instruction-pointer {
    display: none;
  }
  /* Project map: plus/minus only got in the way - pinch is shown by the hint. */
  .gm-map-tools {
    display: none !important;
  }
}

/* Phone menu: grouped solutions, main areas stronger than the building blocks. */
@media (max-width: 940px) {
  .header .mobile-nav .mnav-group {
    margin: 14px 0 4px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #6b6f76;
  }
  .header .mobile-nav .mnav-group:first-child {
    margin-top: 4px;
  }
  .header .mobile-nav .hotbar-mobile-group a.mnav-main {
    font-size: 19px !important;
    font-weight: 650;
    color: #111;
  }
  .mnav-foot {
    gap: 10px;
    padding-top: 26px;
  }
}
@media (max-width: 760px) {
  /* The floating header covered the roof line; the picture starts below it (28.09.2026). */
  :is(.wp26-hero > .wp26-hero-image, .ip-hero > .ip-hero-image, .pv26-hero > .pv26-hero-image, .tcp-hero > img, .fd26-hero > img),
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) {
    margin-top: 74px !important;
    height: min(44svh, 380px) !important;
  }
}

/* ---------- Instinct "Aus Daten werden bessere Entscheidungen" on phones ---------- */
/* Desktop draws data lines from the inputs into Instinct and out to the tasks. The phone had a
 * plain list; now the same flow runs top to bottom: inputs -> converging lines -> core -> tasks. */
@media (max-width: 760px) {
  .ip-engine .ip-engine-diagram > svg {
    display: none !important;
  }
  .ip-engine .ip-inputs,
  .ip-engine .ip-outputs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: relative;
  }
  .ip-engine .ip-inputs {
    padding-bottom: 86px;
  }
  .ip-engine .ip-outputs {
    padding-top: 86px;
  }
  .ip-engine :is(.ip-inputs, .ip-outputs) > .ip-label {
    grid-column: 1 / -1;
  }
  .ip-engine .ip-signal {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 11px !important;
  }
  .ip-engine .ip-inputs::after,
  .ip-engine .ip-outputs::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 78px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }
  .ip-engine .ip-inputs::after {
    bottom: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335 80' preserveAspectRatio='none'%3E%3Cpath d='M40 0 C40 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M98 0 C98 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M150 0 C150 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M185 0 C185 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M237 0 C237 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M295 0 C295 44 167.5 36 167.5 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  }
  .ip-engine .ip-outputs::before {
    top: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335 80' preserveAspectRatio='none'%3E%3Cpath d='M167.5 0 C167.5 44 60 36 60 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M167.5 0 C167.5 44 128 36 128 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M167.5 0 C167.5 44 207 36 207 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M167.5 0 C167.5 44 275 36 275 80' fill='none' stroke='%23ee671f' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 7'%3E%3Canimate attributeName='stroke-dashoffset' from='26' to='0' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  }
  .ip-engine .ip-engine-center {
    margin: 0 auto !important;
  }
}

/* Instinct day on phones: the price/PV/consumption chart sits right under the house, the task
 * plan follows (Bastian 28.09.2026 - house and curve belong together on a small screen). */
@media (max-width: 760px) {
  .id-unified-day .id-chart-bottom {
    order: 3 !important;
  }
  .id-unified-day .id-action-rail {
    order: 5 !important;
  }
}

/* Heat pump calculator on phones: floating result line + visible bar movement. */
.wp26-live-result {
  display: none;
}
@media (max-width: 760px) {
  .wp26-live-result {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: #111;
    color: #fff;
    text-align: left;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transform: translateY(140%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .wp26-live-result.is-on {
    transform: none;
  }
  .wp26-live-result .wp26-live-label {
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
  }
  .wp26-live-result strong {
    font-size: 20px;
    font-weight: 700;
    color: #ffb27a;
    white-space: nowrap;
  }
  .wp26-live-result .wp26-live-go {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ga-brand, #ee671f);
    font-size: 13px;
    font-weight: 650;
  }
  .wp26-live-result.is-flash strong {
    animation: wp26-live-flash 0.7s ease-out;
  }
  .wp26-bar-space > *,
  .wp26-bar-column > strong {
    transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
}
@keyframes wp26-live-flash {
  0% { transform: scale(1.18); color: #fff; }
  100% { transform: none; }
}

/* ---------- Subpage heroes, second pass (28.09.2026, Bastian: "verzogen am iPhone") ---------- */
/* The statement no longer climbs into the picture - on ThermoCheck it sat on the people's
 * torsos. The picture fades later and shorter, the text starts right at its edge. The AI notice
 * becomes a small chip in the picture's corner instead of a loose line under the buttons. */
@media (max-width: 760px) {
  :is(.wp26-hero > .wp26-hero-image, .ip-hero > .ip-hero-image, .pv26-hero > .pv26-hero-image, .tcp-hero > img, .fd26-hero > img),
  :is(.co-hero > .co-picture, .fs-hero > .fs-picture) {
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent) !important;
    mask-image: linear-gradient(to bottom, #000 84%, transparent) !important;
  }
  :is(.ip-hero > .ip-wrap, .pv26-hero > .pv26-wrap, .tcp-hero > .wrap, .co-hero > .co-wrap, .fs-hero > div:not(.fs-picture), .fd26-hero > .fd26-hero-inhalt) {
    margin-top: -6px !important;
  }
  .wp26-hero .wp26-hero-copy {
    margin-top: -6px !important;
  }
  .tcp-hero {
    position: relative !important;
  }
  .tcp-hero > img {
    object-position: 50% 30% !important;
  }
  .tcp .tcp-hero-note {
    position: absolute !important;
    top: 86px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    order: 0 !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 10.5px !important;
    color: #292d33 !important;
  }
  .tcp-hero .tcp-hero-copy .tcp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Foerderung + Thermohydraulik (fd26) follow the same phone hero since 28.09.2026: the desktop
 * white veil goes, the picture sits under the header, the statement follows below it. */
@media (max-width: 760px) {
  .fd26-hero {
    position: relative !important;
    align-items: stretch !important;
  }
  .fd26-hero::after {
    display: none !important;
  }
  .fd26-hero > img {
    z-index: 0 !important;
  }
  .fd26-hero > .fd26-hero-inhalt {
    width: auto !important;
    margin-inline: 20px !important;
    padding: 0 0 40px !important;
  }
  .fd26-hero .fd26-hero-aktionen .wp26-button {
    width: 100%;
    justify-content: center;
  }
  /* Foerderung keeps its header in the page flow - no room to leave for a floating one. */
  :not(.original-page-content) + main.fd26 .fd26-hero > img {
    margin-top: 0 !important;
  }
  .fd26-hero .fd26-bildnachweis {
    position: absolute !important;
    top: 86px !important;
    right: 12px !important;
    bottom: auto !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
  }
}

/* ---------- ThermoCheck anatomy: the component buttons sit on the house (28.09.2026) ---------- */
/* Bastian: "kann man die Bauteilknoepfe nicht auf dieses Haus machen? passt von der Conversion".
 * On phones the eight buttons were a two-column list under the picture. They now become tappable
 * points at the spots the desktop lines point to (same coordinates as .tc4-callout-lines, % of
 * the 3:2 picture), nudged apart where two would touch. The name opens in the existing popover. */
@media (max-width: 760px) {
  .tc4-anatomy-scene {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .tc4-anatomy-scene > img {
    width: 100% !important;
    border-radius: 0 !important;
  }
  .tc4-anatomy-scene .tc4-callouts {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    display: block !important;
    margin: 0 !important;
  }
  .tc4-anatomy-scene .tc4-callout {
    position: absolute !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 2px solid #ee671f !important;
    background: #fff !important;
    color: #ee671f !important;
    box-shadow: 0 4px 12px rgba(24, 16, 8, 0.28) !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
  }
  .tc4-anatomy-scene .tc4-callout .icon {
    width: 17px !important;
    height: 17px !important;
  }
  .tc4-anatomy-scene .tc4-callout > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }
  .tc4-anatomy-scene .tc4-callout::after {
    content: "" !important;
    position: absolute;
    inset: -2px;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50%;
    border: 2px solid #ee671f;
    background: none !important;
    animation: tc-point-pulse 2.4s ease-out infinite;
  }
  .tc4-anatomy-scene .callout-1 { left: 27% !important; top: 51% !important; }
  .tc4-anatomy-scene .callout-2 { left: 37.5% !important; top: 63% !important; }
  .tc4-anatomy-scene .callout-3 { left: 49% !important; top: 77% !important; }
  .tc4-anatomy-scene .callout-4 { left: 36% !important; top: 87% !important; }
  .tc4-anatomy-scene .callout-5 { left: 55% !important; top: 31% !important; }
  .tc4-anatomy-scene .callout-6 { left: 48% !important; top: 47% !important; }
  .tc4-anatomy-scene .callout-7 { left: 66% !important; top: 68% !important; }
  .tc4-anatomy-scene .callout-8 { left: 67% !important; top: 43.5% !important; }
  .tc4-anatomy-scene .callout-2::after { animation-delay: .3s; }
  .tc4-anatomy-scene .callout-3::after { animation-delay: .6s; }
  .tc4-anatomy-scene .callout-4::after { animation-delay: .9s; }
  .tc4-anatomy-scene .callout-5::after { animation-delay: 1.2s; }
  .tc4-anatomy-scene .callout-6::after { animation-delay: 1.5s; }
  .tc4-anatomy-scene .callout-7::after { animation-delay: 1.8s; }
  .tc4-anatomy-scene .callout-8::after { animation-delay: 2.1s; }
}
@keyframes tc-point-pulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .tc4-anatomy-scene .tc4-callout::after { animation: none; opacity: 0; }
}

/* ---------- Heat pump year comparison on phones: bars under the switches (28.09.2026) ---------- */
@media (max-width: 760px) {
  .wp26 .wp26-mobile-live {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box;
    gap: 9px;
    padding: 14px !important;
    background: #fff !important;
    border: 1px solid #e3e7e9 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(20, 24, 28, 0.06);
  }
  .wp26-mobile-live-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 650;
  }
  .wp26 .wp26-mobile-live-head strong {
    font-size: 20px;
    color: #176444 !important;
    transition: color .3s;
  }
  .wp26 .wp26-mobile-live-head strong[data-outcome="cost"] {
    color: #a1342d !important;
  }
  .wp26-mobile-live-head small {
    display: inline !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  .wp26-mini-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    font-size: 11.5px;
    color: #3a4148;
  }
  .wp26-mini-row b {
    text-align: right;
    font-weight: 650;
    color: #1c2425;
  }
  .wp26-mini-row b {
    grid-column: 2;
    grid-row: 1;
  }
  .wp26-mini-track {
    grid-column: 1 / -1;
    height: 10px;
    border-radius: 99px;
    background: #f0f1f2;
    overflow: hidden;
  }
  .wp26-mini-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #b9c0c6;
    transition: width .55s cubic-bezier(.22, 1, .36, 1);
  }
  .wp26-mini-row.mini-1 .wp26-mini-track i { background: #f3a26b; }
  .wp26-mini-row.mini-2 .wp26-mini-track i { background: #ee671f; }
}

/* ---------- Home hero on short phone screens (Safari with address bar, iPhone SE) ---------- */
/* At 393x659 the photo shrank to 62% of a short screen and the three labels had no room - one
 * had to hide or flip below the roof (Bastian 28.09.). Short screens get a slightly smaller
 * statement and a taller photo, so all three labels fit above and beside the house. */
@media (max-width: 760px) and (max-height: 760px) {
  .g-home .v20-hero h1 {
    font-size: clamp(36px, 10.6vw, 46px) !important;
  }
  .g-home .v20-hero .v20-copy {
    padding-top: 150px !important;
    gap: 10px !important;
  }
  .g-home .v20-hero .v20-still {
    height: 70% !important;
  }
}
@media (max-width: 760px) and (max-height: 600px) {
  .g-home .v20-hero h1 {
    font-size: clamp(32px, 9.4vw, 40px) !important;
  }
  .g-home .v20-hero .v20-copy {
    padding-top: 140px !important;
  }
  .g-home .v20-hero .v20-still {
    height: 74% !important;
  }
}

/* 29.09.2026: the PV hero copy kept its desktop frame on phones (min-height 880px + 380px bottom
 * padding) - 480px of white under the buttons. */
@media (max-width: 760px) {
  .pv26-hero > .pv26-hero-inner {
    min-height: 0 !important;
    padding-bottom: 44px !important;
  }
}
