/* =========================================
   fritts — Home Page Styles (index.html)
   Loaded after design.css + main.css.
   ========================================= */

/* =========================================
   Hero — scroll runway + pinned wrapper
   ========================================= */
.hero-container {
    position: relative;
    height: 475vh;
    height: 475svh;
}

.animation-wrapper {
    position: relative;
    width: var(--frame-w);
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background-color: var(--color-brand-dark-teal);
}

/* =========================================
   Pulse App Runway — pinned wrapper for Phase 7–9
   ========================================= */

/* Prelude extends the pulse pin upward by this much. Tune to taste —
   bigger value = guy entrance happens earlier in the user's scroll. */
:root {
    --pulse-prelude-h: 1px;
}

.pulse-prelude {
    position: relative;
    width: var(--frame-w);
    height: var(--pulse-prelude-h);
}

.pulse-runway {
    position: relative;
}

.pulse-wrapper {
    position: relative;
    width: var(--frame-w);
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background-color: var(--color-brand-dark-teal);
}

/* Hero-style static background inside the pulse-wrapper — matches the
   orange circle and building from the hero, minus the pulse spots and text. */
.pulse-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--frame-w, 100svw) * 0.85);
    height: calc(var(--frame-w, 100svw) * 0.85);
    border-radius: 50%;
    background-color: var(--color-brand-red);
    z-index: 0;
    pointer-events: none;
}

.pulse-bg-building {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.pulse-bg-building img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   Phase 1 — Expanding red circle
   ========================================= */
.orange-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7.375em;
    height: 7.375em;
    border-radius: 50%;
    background-color: var(--color-brand-red);
    will-change: width, height;
}

/* =========================================
   Phase 2–4 — Headline + scroll icon
   ========================================= */
.home-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.home-headline {
    color: var(--color-brand-white);
    font-size: 3.125em;
    font-weight: var(--font-weight-bold);
    text-align: center;
    line-height: var(--leading-heading);
    letter-spacing: var(--tracking-display);
    opacity: 0;
    transform: translateY(3em);
}

.scroll-down-icon {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: scroll-icon-bounce var(--scroll-icon-bounce-duration) ease-in-out infinite;
}

@keyframes scroll-icon-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-0.75em); }
}

/* =========================================
   Phase 5 — Building image rises from bottom
   ========================================= */
.building-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Phase 5 — H2 text slides in from left
   ========================================= */
.hero-text-2 {
    position: absolute;
    bottom: 43svh;
    left: 15%;
    transform: translateY(-50%);
    z-index: 15;
    pointer-events: auto;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 3em;
    overflow: hidden;
}

.hero-subtitle {
    color: var(--color-brand-white);
    font-size: 2.25em;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    max-width: 19em;
    margin-bottom: 0.8em;
}

/* =========================================
   Glass pill button
   ========================================= */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 1em;
    background: var(--btn-glass-bg);
    color: var(--color-brand-white);
    text-decoration: none;
    padding: var(--btn-glass-padding-block) var(--btn-glass-padding-inline);
    border-radius: var(--btn-glass-radius);
    font-size: var(--btn-glass-font-size);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    backdrop-filter: blur(var(--btn-glass-blur));
    border: 1px solid var(--btn-glass-border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-glass:hover {
    background: var(--btn-glass-bg-hover);
}

/* Pulse App CTA — frameless variant (no white border ring) */
#pulse-app-btn {
    border: none;
}

/* Arrow variant — compact right padding for icon circle */
.btn-glass--arrow {
    padding: 0.25em 0.25em 0.25em var(--btn-glass-padding-inline);
}

.btn-glass .arrow-circle {
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-glass .arrow-circle img {
    width: 100%;
    height: 100%;
}

/* Download variant — red background */
.btn-glass--download {
    background: var(--color-brand-red);
    border-color: var(--color-brand-red);
}

.btn-glass--download:hover {
    background: var(--color-brand-red);
    opacity: 0.9;
}

/* =========================================
   Phase 6 — Pulsing hotspots on building
   ========================================= */
.pulse-spot {
    position: absolute;
    width: 10%;
    z-index: 6;
    cursor: pointer;
}

.pulse-spot-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease-out;
}

/* Each pulse-spot contains three concentric SVG circles that throb scale + opacity
   independently — base values match mock-pulse.html defaults (outer r=70 / 0.8→0.5
   / 1→1.08, mid r=55.365 / 0.5→0.3 / 1→1.12, inner r=39.164 / 0.3→0.15 / 1→1.18).
   Stagger 0.3s between rings within a spot. An additional per-spot offset keeps
   the three spots out of sync. Gated by .is-idle added by GSAP after Phase 6 — see home.js. */
.pulse-ring {
    transform-origin: 71.5px 71.5px;
    transform-box: view-box;
}

.pulse-spot.is-idle .pulse-ring--outer {
    animation: pulse-ring-outer var(--pulse-ring-duration) var(--pulse-ring-ease) infinite;
    animation-delay: calc(var(--pulse-spot-phase, 0s) + 0s);
}

.pulse-spot.is-idle .pulse-ring--mid {
    animation: pulse-ring-mid var(--pulse-ring-duration) var(--pulse-ring-ease) infinite;
    animation-delay: calc(var(--pulse-spot-phase, 0s) + var(--pulse-ring-stagger));
}

.pulse-spot.is-idle .pulse-ring--inner {
    animation: pulse-ring-inner var(--pulse-ring-duration) var(--pulse-ring-ease) infinite;
    animation-delay: calc(var(--pulse-spot-phase, 0s) + (var(--pulse-ring-stagger) * 2));
}

/* Hover: a little bigger, a little faster. Only animation-duration changes so the
   running pulse continues smoothly (swapping animation-name restarts from 0%
   and causes a visible freeze). "A little bigger" is applied to the <svg>
   container as a separate CSS transform — it doesn't fight the <circle>
   transforms in the keyframes, and fades in via a transition. */
.pulse-spot:hover .pulse-spot-svg {
    transform: scale(1.06);
}

.pulse-spot:hover .pulse-ring--outer,
.pulse-spot:hover .pulse-ring--mid,
.pulse-spot:hover .pulse-ring--inner {
    animation-duration: var(--pulse-ring-duration-hover);
}

@keyframes pulse-ring-outer {
    0%, 100% { transform: scale(1);    opacity: 0.8; }
    50%      { transform: scale(1.08); opacity: 0.5; }
}

@keyframes pulse-ring-mid {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%      { transform: scale(1.12); opacity: 0.3; }
}

@keyframes pulse-ring-inner {
    0%, 100% { transform: scale(1);    opacity: 0.3; }
    50%      { transform: scale(1.18); opacity: 0.15; }
}


.spot-ev {
    top: 70%;
    left: 8.5%;
    width: 15%;
    --pulse-spot-phase: 0s;
}

.spot-solar {
    top: 34%;
    left: 73%;
    width: 12%;
    --pulse-spot-phase: 0.4s;
}

.spot-heat-pump {
    top: 74%;
    left: 83%;
    width: 21%;
    --pulse-spot-phase: 0.8s;
}

/* =========================================
   Phase 7 — Green circle transition
   ========================================= */
.green-circle {
    opacity: 0;
    --gc-w: 0;
    --gc-h: 0;
    position: absolute;
    width: calc(var(--gc-w) * min(100vw, 200vh));
    height: calc(var(--gc-h) * min(100vw, 200vh));
    border-radius: 50%;
    background-color: #3D666A;
    z-index: 20;
    left: 25%;
    top: 48%;
    transform: translate(-50%, -50%);
    will-change: width, height;
    pointer-events: none;
}

/* =========================================
   Phase 7 — Pulse App guy + text
   ========================================= */
.pulse-app-guy {
    position: absolute;
    left: -145%;
    bottom: 0;
    z-index: 25;
}

.pulse-app-guy img {
    width: auto;
    max-width: calc(0.55 * var(--frame-w));
    display: block;
}

.pulse-app-text {
    position: absolute;
    left: 48%;
    top: 28%;
    z-index: 25;
    pointer-events: auto;
}

.pulse-app-h2 {
    color: var(--color-brand-white);
    font-family: var(--font-family-primary);
    font-size: 2.5em;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    transform: translateX(100vw);
}

.pulse-app-h2-sub {
    color: var(--color-brand-white);
    font-family: var(--font-family-primary);
    font-size: 2.5em;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin-top: 0.6em;
    margin-bottom: 1.2em;
    transform: translateX(100vw);
}

.pulse-app-buttons {
    display: flex;
    align-items: center;
    margin-top: 2em;
    transform: translateX(100vw);
}

/* =========================================
   Phase 9 — Pulse App Page overlay
   ========================================= */
.pulse-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}

.pulse-page-bg {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: calc(0.95 * var(--frame-w));
    height: calc(0.95 * var(--frame-w));
    border-radius: 50%;
}

.pulse-page-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-page-ring-1 {
    width: 100%;
    height: 100%;
    animation: page-ring-outer 4s var(--pulse-ring-ease) infinite;
    animation-delay: 0s;
}

.pulse-page-ring-2 {
    width: 82%;
    height: 82%;
    animation: page-ring-mid 4s var(--pulse-ring-ease) infinite;
    animation-delay: 0.5s;
}

.pulse-page-ring-3 {
    width: 64%;
    height: 64%;
    animation: page-ring-inner 4s var(--pulse-ring-ease) infinite;
    animation-delay: 1s;
}

@keyframes page-ring-outer {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 0.6; }
}

@keyframes page-ring-mid {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
    50%      { transform: translate(-50%, -50%) scale(1.10); opacity: 0.5; }
}

@keyframes page-ring-inner {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
    50%      { transform: translate(-50%, -50%) scale(1.14); opacity: 0.35; }
}

.pulse-page-title {
    position: absolute;
    top: 15%;
    left: 50%;
    color: var(--color-brand-white);
    font-family: var(--font-family-primary);
    font-size: 3em;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pulse-page-subtitle {
    position: absolute;
    top: 28%;
    left: 50%;
    width: 50em;
    color: var(--color-brand-white);
    font-family: var(--font-family-primary);
    font-size: 0.9em;
    font-weight: var(--font-weight-regular);
    text-align: center;
    line-height: 1.6;
    opacity: 0.85;
}

.pulse-page-phone {
    position: absolute;
    bottom: -2em;
    left: 50%;
}

.pulse-page-phone img {
    height: 62vh;
    width: auto;
    max-width: calc(0.45 * var(--frame-w));
    display: block;
}

/* =========================================
   Pulse Detail — PV-Anlage background + Termin CTA
   ========================================= */
.pulse-detail {
    position: relative;
    z-index: 2;
    width: var(--frame-w);
    /* background-image: url('/Assets/image-termin.jpeg'); */
    background-color: var(--color-brand-dark-teal);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Brand dark-teal @ 25% overlay on the PV background */
.pulse-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(34, 103, 107, 0.25);
    z-index: 1;
    pointer-events: none;
}

.pulse-detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
    gap: 2em;
    padding: 0 4em 6em;
}

/* Termin wizard wrapper — left 2/3 on desktop, full-width on mobile.
   The white card chrome comes from .termin-card itself (see termin.css), so this
   wrapper is purely structural. */
.pulse-detail-cta {
    width: 100%;
    display: flex;
    justify-content: stretch;
}

.pulse-detail-cta .termin-stage {
    width: 100%;
    padding: 0;
    min-height: 0;
}

/* Experts card — right column on desktop, stacks below wizard on mobile */
.pulse-experts {
    display: flex;
    flex-direction: column;
    background: var(--color-brand-dark-teal);
    border-radius: 2em;
    padding: 1em 1em 0.5em;
    color: #fff;
    font-family: var(--font-family-primary);
    gap: 0.75em;
    align-self: stretch;
}
.pulse-experts-card {
    background: #fff;
    color: #1a2c2e;
    border-radius: 2em;
    padding: 1.5em 1.25em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5em;
    flex: 1;
}
.pulse-experts-portraits {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pulse-experts-portrait {
    width: 4.5em;
    height: 4.5em;
    border-radius: 50%;
    border: 3px solid var(--color-brand-dark-teal);
    background: #eee;
    margin: 0 -0.5em;
    overflow: hidden;
    display: block;
    flex: 0 0 auto;
}
.pulse-experts-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.25);
    display: block;
}
.pulse-experts-portraits .pulse-experts-portrait:nth-child(2) { z-index: 1; transform: translateY(-0.25em); }
.pulse-experts-names {
    font-weight: 700;
    color: var(--color-brand-dark-teal);
    font-size: 1.25em;
    margin: 0.25em 0 0;
}
.pulse-experts-names span { color: var(--color-brand-red); margin: 0 0.15em; font-weight: 400; }
.pulse-experts-role {
    font-style: italic;
    font-size: 0.9em;
    color: #4a4a4a;
    margin: 0;
}
.pulse-experts-pill {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    padding: 0.7em 1.2em;
    border-radius: 50px;
    display: inline-block;
    margin: 0.5em 0 0.25em;
    text-align: center;
}
.pulse-experts-body {
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    margin: 0;
}
.pulse-experts-body strong { color: #1a1a1a; }
.pulse-experts-body em strong { color: var(--color-brand-dark-teal); font-style: italic; }
.pulse-experts-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    margin-top: 0.4em;
}
.pulse-experts-stars {
    color: var(--color-brand-dark-teal);
    font-size: 1.1em;
    letter-spacing: 0.15em;
}
.pulse-experts-rating p {
    font-size: 0.85em;
    color: #333;
    margin: 0;
    line-height: 1.35;
}
.pulse-experts-trust {
    list-style: none;
    padding: 0.5em 0.75em 0.75em;
    margin: 0;
    color: #fff;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    text-align: center;
}
.pulse-experts-trust li::before {
    content: "✓  ";
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pulse-detail-inner {
        grid-template-columns: 1fr;
        padding: 3em 1.5em;
    }
    .pulse-detail-cta {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Home Stories — 3 full-bleed video cards with overlaid text/badges
   ========================================= */
.home-stories {
    position: relative;
    width: var(--frame-w);
    margin: 0 auto;
    padding: 6em 3em;
    display: flex;
    flex-direction: column;
    gap: 3em;
    background-color: var(--color-brand-white);
    font-family: var(--font-family-primary);
}

.home-story {
    position: relative;
    width: 80em;
    max-width: 100%;
    height: 46em;
    margin: 0 auto;
    border-radius: 2em;
    overflow: hidden;
    color: var(--color-brand-white);
    isolation: isolate;
}

.home-story__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.home-story__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0) 75%);
}

.home-story--align-right .home-story__overlay {
    background: linear-gradient(270deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0) 75%);
}

.home-story__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2em;
    padding: 3em;
    max-width: 36em;
}

.home-story--align-right .home-story__content {
    margin-left: auto;
    align-items: flex-start;
    text-align: left;
}

.home-story--align-left .home-story__content {
    align-items: flex-start;
    text-align: left;
}

.home-story__title {
    font-family: var(--font-family-primary);
    font-size: 2.6em;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: inherit;
    margin: 0;
    text-shadow: 0 0.15em 0.6em rgba(0, 0, 0, 0.35);
}

.home-story__text {
    font-family: var(--font-family-primary);
    font-size: 1.05em;
    font-weight: var(--font-weight-regular);
    line-height: var(--leading-body);
    color: inherit;
    margin: 0;
    text-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.35);
}

.home-story__badge-img {
    display: block;
    margin-top: 0.6em;
    height: 3.5em;
    width: auto;
    max-width: 10em;
    object-fit: contain;
    filter: drop-shadow(0 0.3em 0.8em rgba(0, 0, 0, 0.4));
}

.home-story__price {
    margin-top: 0.8em;
    display: inline-flex;
    flex-direction: column;
    background-color: var(--color-brand-red);
    color: var(--color-brand-white);
    padding: 0.7em 1.1em;
    border-radius: 0.8em;
    width: max-content;
    box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.35);
}
.home-story__price-label {
    font-size: 0.7em;
    font-weight: var(--font-weight-regular);
    opacity: 0.95;
    line-height: 1.2;
}
.home-story__price-value {
    font-size: 1.25em;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-top: 0.1em;
}

@media (max-width: 900px) {
    .home-stories {
        padding: 3em 1.2em;
        gap: 2em;
    }
    .home-story {
        height: 28em;
    }
    .home-story__overlay,
    .home-story--align-right .home-story__overlay {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.75) 100%);
    }
    .home-story__content,
    .home-story--align-right .home-story__content,
    .home-story--align-left .home-story__content {
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
        padding: 1.8em;
        max-width: none;
    }
    .home-story__title {
        font-size: 1.9em;
    }
    .home-story__title br { display: none; }
    .home-story__text {
        font-size: 1em;
    }
}

/* =========================================
   White Interlude — normal-scroll section between Hero and Pulse-App runway
   ========================================= */
.white-interlude {
    position: relative;
    width: var(--frame-w);
    background-color: var(--color-brand-white);
    color: var(--color-brand-navy);
    font-family: var(--font-family-primary);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 5em;
}

/* Sub-section 1: Brand carousel (infinite marquee) */
.wi-brands {
    width: 100%;
    overflow: hidden;
    padding: 1em 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: white;
}

.wi-brands-track {
    display: flex;
    width: max-content;
    animation: wi-brand-marquee 30s linear infinite;
}

.wi-brand-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    margin-right: 4em;
}
.wi-brand-item img {
    display: block;
    height: 5em;
    width: auto;
    max-width: 12em;
    object-fit: contain;
}

@keyframes wi-brand-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Sub-section 2: Customer video stories (rheinvolt-style) */
.wi-stories {
    width: 100%;
    padding: 2em 0;
}
.wi-stories-inner {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 4em;
    display: flex;
    flex-direction: column;
    gap: 3em;
}
.wi-story {
    display: grid;
    grid-template-columns: 1fr 2fr;   /* text : video = 1 : 2 */
    align-items: stretch;
    gap: 0;
    border-radius: 2em;
    overflow: hidden;
    box-shadow: 0 0.6em 1.6em rgba(40, 53, 88, 0.10);
}
.wi-story > * { min-width: 0; min-height: 0; }
.wi-story-text  { grid-column: 1; grid-row: 1; }
.wi-story-media { grid-column: 2; grid-row: 1; }
.wi-story:nth-child(even) { grid-template-columns: 2fr 1fr; }
.wi-story:nth-child(even) .wi-story-media { grid-column: 1; }
.wi-story:nth-child(even) .wi-story-text  { grid-column: 2; }
.wi-story-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    width: 100%;
}
.wi-story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wi-story-play {
    position: absolute;
    inset: 0;
    margin: auto;
    font-size: 1em;
    width: 5em;
    height: 5em;
    border-radius: 50%;
    border: none;
    background: var(--color-brand-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
    z-index: 2;
}
.wi-story-play svg {
    width: 2em;
    height: 2em;
    margin-left: 0.15em;
    position: relative;
    z-index: 1;
}
/* Pulse ring */
.wi-story-play::before,
.wi-story-play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-brand-red);
    opacity: 0.6;
    z-index: 0;
    animation: wi-play-pulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.wi-story-play::after { animation-delay: 1.1s; }
@keyframes wi-play-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    80%  { transform: scale(1.9); opacity: 0;    }
    100% { transform: scale(1.9); opacity: 0;    }
}
.wi-story-media:hover .wi-story-play,
.wi-story-play:hover { transform: scale(1.08); }
.wi-story.is-playing .wi-story-play { display: none; }
.wi-story-text {
    background: #f3f1ee;   /* slightly different from page white */
    font-family: var(--font-family-primary);
    color: var(--color-brand-navy);
    padding: 2.5em 2.25em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wi-story-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.9em;
    line-height: 1.2;
    color: var(--color-brand-dark-teal);
    margin: 0 0 0.6em 0;
}
.wi-story-body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1em;
    line-height: var(--leading-body, 1.6);
    color: var(--color-brand-navy);
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 900px) {
    .wi-stories-inner { padding: 0 1.5em; gap: 2em; }
    .wi-story { grid-template-columns: 1fr; }
    .wi-story-media { grid-column: 1; grid-row: 1; }
    .wi-story-text  { grid-column: 1; grid-row: 2; }
    .wi-story-text { padding: 1.5em 1.25em; }
    .wi-story-title { font-size: 1.4em; }
    .wi-story-play { width: 4em; height: 4em; }
    .wi-story-play svg { width: 1.5em; height: 1.5em; }
}

/* Sub-section 2 (legacy): What fritts does */
.wi-company {
    padding: 2em 6em;
    text-align: center;
    max-width: 50em;
    margin: 0 auto;
}

.wi-company-heading {
    font-family: var(--font-family-primary);
    font-size: 2.75em;
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-navy);
    line-height: 1.2;
    margin-bottom: 0.6em;
}

.wi-company-body {
    font-family: var(--font-family-primary);
    font-size: 1.05em;
    font-weight: var(--font-weight-regular);
    color: var(--color-brand-navy);
    line-height: var(--leading-body);
    max-width: var(--measure-body);
    opacity: 0.8;
}

/* Sub-section 3: Testimonials (carousel — mirrors product page .pv-meinungen) */
.wi-meinungen {
    background: #ffffff;
    padding: 6em 0;
    overflow-x: clip;
}
.wi-meinungen-inner {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 4em;
    text-align: left;
}
.wi-meinungen-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 3em;
    line-height: var(--leading-heading, 1.15);
    letter-spacing: var(--tracking-display, normal);
    color: var(--color-brand-dark-teal);
    text-align: left;
    margin: 0 0 0.6em 0;
}
.wi-meinungen-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 1.6em 0;
    padding: 0.5em 1em;
    background: var(--color-brand-white);
    border: 1px solid rgba(40, 53, 88, 0.12);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-brand-dark-teal);
    font-family: var(--font-family-primary);
    font-size: 0.95em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wi-meinungen-trust:hover {
    background: var(--color-brand-light-teal);
    border-color: var(--color-brand-light-teal);
    color: var(--color-brand-white);
}
.wi-meinungen-trust-g {
    width: 1.3em;
    height: 1.3em;
    flex: 0 0 auto;
}
.wi-meinungen-trust-stars {
    color: #fbbf24;
    letter-spacing: 0.1em;
    line-height: 1;
}
.wi-meinungen-trust-label {
    font-weight: var(--font-weight-bold);
}

.wi-meinungen-marquee {
    width: 100svw;
    max-width: 100svw;
    margin-left: calc(50% - 50svw);
    overflow: hidden;
    box-sizing: border-box;
}
.wi-meinungen-track {
    display: flex;
    gap: 1.5em;
    width: max-content;
    will-change: transform;
}

.wi-meinung-card {
    flex: 0 0 20em;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1em;
    opacity: 0.75;
    transition: opacity 0.55s ease;
}
.wi-meinung-card.is-active {
    opacity: 1;
}
.wi-meinung-stars {
    color: #fbbf24;
    font-size: 1.15em;
    letter-spacing: 0.15em;
    line-height: 1;
}
.wi-meinung-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #efe9e2;
    overflow: hidden;
    border-radius: 2em;
}
.wi-meinung-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wi-meinung-quote {
    margin: 0;
    font-family: var(--font-family-primary);
    font-size: 1em;
    line-height: 1.45;
    color: var(--color-brand-navy);
}
.wi-meinung-author {
    margin: 0;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 0.9em;
    color: rgba(40, 53, 88, 0.65);
}

.wi-meinungen-controls {
    display: flex;
    justify-content: flex-start;
    gap: 0.8em;
    max-width: 80em;
    margin: 2em auto 0;
    padding: 0 4em;
}
.wi-meinungen-btn {
    width: 2.6em;
    height: 2.6em;
    border-radius: 50%;
    border: 1px solid var(--color-brand-dark-teal);
    background: transparent;
    color: var(--color-brand-dark-teal);
    font-family: var(--font-family-primary);
    font-size: 1.4em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    padding: 0;
}
.wi-meinungen-btn:hover:not(:disabled) {
    background: var(--color-brand-dark-teal);
    color: var(--color-brand-white);
}
.wi-meinungen-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 60em) {
    .wi-meinungen-inner { padding: 0 2em; }
    .wi-meinungen-title { font-size: 2em; }
    .wi-meinung-card { flex: 0 0 16em; }
    .wi-meinungen-controls { padding: 0 2em; }
}
@media (max-width: 40em) {
    .wi-meinungen-inner { padding: 0 1.2em; }
    .wi-meinungen-title { font-size: 1.65em; }
    .wi-meinung-card { flex: 0 0 14em; }
    .wi-meinungen-controls { padding: 0 1.2em; }
}

/* Sub-section 4: CTA split — text + button (left), image (right) */
.wi-cta {
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 4em;
    padding: 2em 6em;
}

.wi-cta-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

.wi-cta-heading {
    font-family: var(--font-family-primary);
    font-size: 2.5em;
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-navy);
    line-height: 1.2;
}

.wi-cta-body {
    font-family: var(--font-family-primary);
    font-size: 1em;
    font-weight: var(--font-weight-regular);
    color: var(--color-brand-navy);
    line-height: 1.6;
    opacity: 0.8;
    max-width: 26em;
    margin-bottom: 0.5em;
}

/* CTA button: override .btn-glass for white background context */
.wi-cta #pulse-app-btn {
    background: var(--color-brand-dark-teal);
    color: var(--color-brand-white);
    border: none;
}

.wi-cta #pulse-app-btn:hover {
    background: var(--color-brand-cyan);
}

.wi-cta-left {
    flex: 1 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Promo Marquee Bar
   Slides in below the header once it turns solid.
   ========================================= */
.promo-marquee {
    position: fixed;
    top: calc(var(--logo-height) + 2 * var(--header-padding-block));
    left: var(--frame-offset);
    right: var(--frame-offset);
    width: var(--frame-w);
    padding: 0.9em 0;
    background-color: var(--color-brand-red);
    color: var(--color-brand-white);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.promo-marquee.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.promo-marquee__track {
    display: flex;
    width: max-content;
    animation: promo-marquee-scroll 60s linear infinite;
}

.promo-marquee__item {
    flex-shrink: 0;
    padding-right: 4em;
    white-space: nowrap;
    font-family: var(--font-family-primary);
    font-size: 0.95em;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}

@keyframes promo-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   Kununu floating badge (desktop) — pinned to right edge
   ============================================================ */
.kununu-badge {
    position: fixed;
    right: var(--frame-offset);
    bottom: 6em;
    z-index: 90;
    display: block;
    width: 10em;
    height: auto;
    aspect-ratio: 654 / 1081;
    border-top-left-radius: 0.6em;
    border-bottom-left-radius: 0.6em;
    overflow: hidden;
    box-shadow: 0 0.4em 1.4em rgba(0, 0, 0, 0.18);
    background: #ffffff;
    transition: box-shadow 0.25s ease;
}

.kununu-badge:hover,
.kununu-badge:focus-visible {
    box-shadow: 0 0.6em 1.8em rgba(0, 0, 0, 0.24);
}

.kununu-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}
