/* =========================================
   fritts — Pulse App (Mobile)
   Mirrors desktop pulse.html but stacked
   vertically: offer cards on top, visual below.
   ========================================= */

/* Shared mobile header, sidemenu, footer */
@import url('shared/mobile-header.css');
@import url('shared/mobile-sidemenu.css');
@import url('shared/mobile-footer.css');

/* Root font scales 1:1 with viewport (canonical mobile pattern) */
html {
    font-size: calc(16px * 100vw / 390);
}

body {
    background-color: var(--color-brand-white);
    overflow-x: hidden;
    font-size: 4em;
}

/* Header isolated from page font scaling so it matches other mobile pages */
header {
    padding: 8px 20px !important;
}
.logo img {
    width: 100px !important;
    height: 25px !important;
}
.hamburger {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
    flex: 0 0 33px !important;
    gap: 8px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.hamburger .hamburger-line {
    width: 100% !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    display: block !important;
    margin: 0 !important;
}

:root {
    --pulse-section-py: 4em;
    --pulse-section-px: 1.5em;
    --pv-overlay-teal: rgba(34, 103, 107, 0.25);
}

/* =========================================
   Hero — "Immer und überall"
   Stacked: text on top, guy at the bottom.
   ========================================= */
.pulse-hero {
    position: relative;
    width: 100%;
    background-color: var(--color-brand-dark-teal);
    overflow: hidden;
    padding-top: 5em;
    padding-bottom: 0;
}

.pulse-hero-inner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pulse-hero-text {
    width: 100%;
    padding: 0 var(--pulse-section-px);
    box-sizing: border-box;
    text-align: left;
}

.pulse-hero-h2 {
    color: var(--color-brand-white);
    font-family: var(--font-family-primary);
    font-size: 2.4em;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0;
}

.pulse-hero-buttons {
    display: flex;
    align-items: center;
    margin-top: 1.5em;
}

.pulse-hero-guy {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2em;
    line-height: 0;
}

.pulse-hero-guy img {
    width: 75%;
    max-width: 24em;
    height: auto;
    display: block;
    vertical-align: bottom;
    margin-bottom: -1px;
}

/* =========================================
   Glass button
   ========================================= */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    background: var(--btn-glass-bg);
    color: var(--color-brand-white);
    text-decoration: none;
    padding: 0.75em 1.5em;
    border-radius: 50px;
    font-size: 1.1em;
    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); }
.btn-glass--arrow { padding: 0.25em 0.25em 0.25em 1.25em; }
.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%; }
.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; }

/* =========================================
   Section 2 — PV Anlage offer (dark teal)
   Vertical: cards on top, visual on bottom.
   ========================================= */
.pulse-offer {
    width: 100%;
    background-color: var(--color-brand-dark-teal);
    color: var(--color-brand-white);
    padding: var(--pulse-section-py) 0;
}

.pulse-offer-inner {
    width: 100%;
    padding: 0 var(--pulse-section-px);
    box-sizing: border-box;
}

.pulse-offer-head {
    text-align: left;
    margin-bottom: 2em;
}

.pulse-offer-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.7em;
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--color-brand-white);
}

.pulse-offer-sub {
    font-family: var(--font-family-primary);
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    color: var(--color-brand-white);
    opacity: 0.95;
}

.pulse-offer-body {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.pulse-offer-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    order: 1;
}

.pulse-offer-card {
    background: var(--color-brand-light-teal);
    border-radius: 1em;
    padding: 1.25em 1.5em;
}

.pulse-offer-card-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.25em;
    line-height: 1.25;
    margin: 0 0 0.35em;
    color: var(--color-brand-white);
}

.pulse-offer-card-text {
    font-family: var(--font-family-primary);
    font-size: 1em;
    line-height: 1.45;
    margin: 0;
    color: var(--color-brand-white);
}

.pulse-offer-visual {
    position: relative;
    width: 100%;
    min-height: 18em;
    order: 2;
    margin-top: 2.5em;
}

.pulse-offer-people {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: auto;
    display: block;
    z-index: 1;
}

.pulse-offer-badge {
    position: absolute;
    top: -2em;
    left: -1em;
    width: 9em;
    height: auto;
    display: block;
    z-index: 2;
}

/* =========================================
   Section 3 — Chart on white card, teal bg
   ========================================= */
.pulse-chart {
    width: 100%;
    background-color: var(--color-brand-dark-teal);
    padding: 3em 0;
}

.pulse-chart-card {
    width: 100%;
    padding: 0 var(--pulse-section-px);
    box-sizing: border-box;
}

.pulse-chart-card-inner {
    background: var(--color-brand-white);
    border-radius: 1.25em;
    padding: 1.25em;
    box-sizing: border-box;
}

.pulse-chart-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   Section 4 — Infograph on white bg
   ========================================= */
.pulse-infograph {
    width: 100%;
    background-color: var(--color-brand-white);
    padding: var(--pulse-section-py) 0;
}

.pulse-infograph-inner {
    width: 100%;
    padding: 0 var(--pulse-section-px);
    box-sizing: border-box;
}

.pulse-infograph-title {
    display: block;
    margin: 0 0 1em;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.6em;
    line-height: 1.25;
    color: #000;
}

.pulse-infograph-inner img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   CTA — mirrors mobile/index.html .pulse-detail
   but white bg + teal border around wizard.
   ========================================= */
.pulse-detail {
    position: relative;
    width: 100%;
    background-color: var(--color-brand-dark-teal);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    font-size: calc(16 * var(--frame-w) / 1644);
}

.pulse-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--pv-overlay-teal);
    pointer-events: none;
    z-index: 1;
}

/* White-background variant for the pulse page CTA */
.pulse-detail--light {
    background-color: var(--color-brand-white);
}
.pulse-detail--light::before {
    background-color: transparent;
}
.pulse-detail--light .termin-card {
    border: 3px solid var(--color-brand-dark-teal);
}

.pulse-detail .pulse-detail-inner {
    position: relative;
    z-index: 2;
    padding: 4em 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: stretch;
}

.pulse-detail .pulse-detail-cta {
    width: 100%;
    display: flex;
    justify-content: center;
}
.pulse-detail .pulse-detail-cta .termin-stage {
    width: 100%;
    padding: 0;
    min-height: 0;
}

/* Experts card — stacked below the termin wizard on mobile */
.pulse-detail .pulse-experts {
    display: flex;
    flex-direction: column;
    background: var(--color-brand-dark-teal);
    border-radius: 1.5em;
    padding: 1em 1em 0.5em;
    color: #fff;
    font-family: var(--font-family-primary);
    font-size: 3em;
    gap: 0.75em;
    width: 100%;
}
.pulse-detail .pulse-experts-card {
    background: #fff;
    color: #1a2c2e;
    border-radius: 2em;
    padding: 1.75em 1.25em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6em;
}
.pulse-detail .pulse-experts-portraits { display: flex; justify-content: center; align-items: center; }
.pulse-detail .pulse-experts-portrait {
    width: 5em;
    height: 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-detail .pulse-experts-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.25);
    display: block;
}
.pulse-detail .pulse-experts-portraits .pulse-experts-portrait:nth-child(2) { z-index: 1; transform: translateY(-0.3em); }
.pulse-detail .pulse-experts-names {
    font-weight: 700;
    color: var(--color-brand-dark-teal);
    font-size: 1.4em;
    margin: 0.25em 0 0;
}
.pulse-detail .pulse-experts-names span { color: var(--color-brand-red); margin: 0 0.2em; font-weight: 400; }
.pulse-detail .pulse-experts-role {
    font-style: italic;
    font-size: 1em;
    color: #4a4a4a;
    margin: 0;
}
.pulse-detail .pulse-experts-pill {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.04em;
    padding: 0.75em 1.4em;
    border-radius: 50px;
    display: inline-block;
    margin: 0.5em 0 0.25em;
    text-align: center;
}
.pulse-detail .pulse-experts-body {
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    margin: 0;
}
.pulse-detail .pulse-experts-body strong { color: #1a1a1a; }
.pulse-detail .pulse-experts-body em strong { color: var(--color-brand-dark-teal); font-style: italic; }
.pulse-detail .pulse-experts-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
    margin-top: 0.5em;
}
.pulse-detail .pulse-experts-stars {
    color: var(--color-brand-dark-teal);
    font-size: 1.3em;
    letter-spacing: 0.15em;
}
.pulse-detail .pulse-experts-rating p {
    font-size: 0.95em;
    color: #333;
    margin: 0;
    line-height: 1.35;
}
.pulse-detail .pulse-experts-trust {
    list-style: none;
    padding: 0.5em 0.75em 0.75em;
    margin: 0;
    color: #fff;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    text-align: center;
}
.pulse-detail .pulse-experts-trust li::before {
    content: "✓  ";
    color: #fff;
    font-weight: 700;
}
