/**
 * CRO (Conversion Rate Optimization) Styles
 * Wiederverwendbare Psychologie-basierte UI-Elemente
 * TwoPixels GmbH — V16 CRO-Modul
 */

/* ===== Google Reviews Badge (Above the Fold) ===== */
.tp-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}
.tp-reviews-badge:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}
.tp-reviews-badge .stars {
    display: flex;
    gap: 2px;
}
.tp-reviews-badge .stars svg {
    width: 16px;
    height: 16px;
    fill: #FBBF24;
}
.tp-reviews-badge .rating-text {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.tp-reviews-badge .google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Variante für helle Hintergründe */
.tp-reviews-badge--light {
    background: white;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tp-reviews-badge--light .rating-text {
    color: #2D3748;
}

/* ===== Kapazitätsanzeige (Ethische Verknappung) ===== */
.tp-capacity {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.04));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 600px;
    margin: 0 auto;
}
.tp-capacity-icon {
    width: 40px;
    height: 40px;
    background: rgba(16,185,129,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tp-capacity-icon svg {
    width: 22px;
    height: 22px;
    fill: #059669;
}
.tp-capacity-text {
    flex: 1;
}
.tp-capacity-title {
    font-size: 14px;
    font-weight: 700;
    color: #065F46;
    margin-bottom: 2px;
}
.tp-capacity-desc {
    font-size: 13px;
    color: #047857;
    line-height: 1.5;
}
.tp-capacity-bar {
    width: 100%;
    height: 6px;
    background: rgba(16,185,129,0.15);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.tp-capacity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #F59E0B);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ===== Sticky Mobile CTA ===== */
.tp-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 12px 16px;
    border-top: 2px solid #E85D3F;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-sticky-cta.visible {
    transform: translateY(0);
}
.tp-sticky-cta-inner {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.tp-sticky-cta .btn-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E85D3F;
    color: white;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}
.tp-sticky-cta .btn-call:active {
    transform: scale(0.97);
}
.tp-sticky-cta .btn-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.tp-sticky-cta .btn-msg:active {
    background: #EDF2F7;
}
.tp-sticky-cta .btn-msg svg {
    width: 22px;
    height: 22px;
    fill: #4A5568;
}

@media (max-width: 768px) {
    .tp-sticky-cta {
        display: block;
    }
    /* Padding bottom damit Footer nicht verdeckt wird */
    body.has-sticky-cta {
        padding-bottom: 76px;
    }
}

/* ===== Prozess-Sektion (Wie wir arbeiten) ===== */
.tp-process {
    counter-reset: process-step;
}
.tp-process-step {
    position: relative;
    padding-left: 80px;
    padding-bottom: 48px;
}
.tp-process-step:last-child {
    padding-bottom: 0;
}
.tp-process-step::before {
    counter-increment: process-step;
    content: counter(process-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E85D3F, #C44B32);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(232,93,63,0.25);
}
.tp-process-step::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 60px;
    width: 2px;
    bottom: 0;
    background: linear-gradient(180deg, #E85D3F, transparent);
}
.tp-process-step:last-child::after {
    display: none;
}
.tp-process-step h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark, #2D3748);
    margin-bottom: 8px;
    padding-top: 4px;
}
.tp-process-step p {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .tp-process-step {
        padding-left: 64px;
    }
    .tp-process-step::before {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .tp-process-step::after {
        left: 21px;
        top: 48px;
    }
}

/* ===== Animierte Counter ===== */
.tp-counter {
    font-variant-numeric: tabular-nums;
}

/* ===== Social Proof Bar (zwischen Sektionen) ===== */
.tp-social-proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 40px;
    background: #1a202c;
}
.tp-social-proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.tp-social-proof-item svg {
    width: 20px;
    height: 20px;
    fill: #E85D3F;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tp-social-proof-bar {
        gap: 16px 24px;
        padding: 16px 20px;
    }
    .tp-social-proof-item {
        font-size: 13px;
    }
}

/* ===== Scroll-Animationen ===== */
.tp-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tp-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CTA Puls-Effekt ===== */
@keyframes tp-pulse {
    0% { box-shadow: 0 4px 20px rgba(232,93,63,0.4); }
    50% { box-shadow: 0 4px 30px rgba(232,93,63,0.6); }
    100% { box-shadow: 0 4px 20px rgba(232,93,63,0.4); }
}
.tp-cta-pulse {
    animation: tp-pulse 2s ease-in-out infinite;
}

/* ===== Exit-Intent Popup ===== */
.tp-exit-popup { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; }
.tp-exit-popup-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); }
.tp-exit-popup-content { position:relative; background:white; border-radius:16px; padding:48px 40px; max-width:480px; width:90%; text-align:center; box-shadow:0 25px 60px rgba(0,0,0,0.3); animation:tp-popup-in 0.3s ease; }
.tp-exit-popup-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:28px; cursor:pointer; color:#94a3b8; line-height:1; }
.tp-exit-popup-close:hover { color:#1e293b; }
.tp-exit-popup-icon { font-size:48px; margin-bottom:16px; }
.tp-exit-popup-content h3 { font-size:28px; font-weight:800; color:#1e293b; margin-bottom:12px; }
.tp-exit-popup-content p { font-size:16px; line-height:1.6; color:#475569; margin-bottom:24px; }
.tp-exit-popup-btn { display:inline-block; background:#E85D3F; color:white; padding:16px 32px; border-radius:8px; text-decoration:none; font-weight:700; font-size:16px; transition:all 0.3s ease; }
.tp-exit-popup-btn:hover { background:#C44B32; transform:translateY(-2px); box-shadow:0 8px 20px rgba(232,93,63,0.4); }
.tp-exit-popup-note { display:block; margin-top:16px; font-size:13px; color:#94a3b8; }
@keyframes tp-popup-in { from{opacity:0;transform:scale(0.9) translateY(20px);} to{opacity:1;transform:scale(1) translateY(0);} }

/* ===== Contact Page Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Multi-Step Form ===== */
.tp-multistep-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.tp-multistep-progress .step {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.tp-multistep-progress .step.active {
    background: #E85D3F;
    box-shadow: 0 2px 8px rgba(232,93,63,0.3);
}
#tpMultiStepForm .tp-multistep-step {
    display: none !important;
    opacity: 0;
    transform: translateX(20px);
}
#tpMultiStepForm .tp-multistep-step.active {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    animation: tp-step-in 0.35s ease forwards;
}
@keyframes tp-step-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.tp-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.tp-choice-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.tp-choice-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    background: white;
}
.tp-choice-card:hover {
    border-color: #E85D3F;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232,93,63,0.12);
}
.tp-choice-card.selected {
    border-color: #E85D3F;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(232,93,63,0.2), 0 4px 16px rgba(232,93,63,0.12);
    transform: translateY(-2px);
}
.tp-choice-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}
.tp-choice-card h3 {
    font-size: 17px !important;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0 !important;
    padding: 0;
    line-height: 1.3;
}
.tp-choice-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.tp-step-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}
.tp-step-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}
.tp-back-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.2s;
}
.tp-back-btn:hover {
    color: #E85D3F;
}

/* ===== Contact Page Mobile ===== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .tp-choice-grid,
    .tp-choice-grid-3 {
        grid-template-columns: 1fr !important;
    }
    .tp-step-title { font-size: 22px; }
    .tp-choice-card {
        padding: 20px 16px;
    }
    .tp-choice-card .icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
    .tp-choice-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
