/*
 * conversion.css
 * Loaded ONLY by index.html (German page). Every selector here is cv-prefixed
 * or scoped under .cv-hero, so index-en/fr/nl, the blog and the legal pages,
 * which share style.css, are not affected.
 */

/* ---------- Navigation ---------- */
.cv-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cv-nav-phone svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.cv-nav-phone:hover {
    color: var(--primary);
}

.cv-nav-login {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.cv-nav-login:hover {
    color: var(--primary);
}

.cv-nav-cta {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.cv-nav-cta:hover {
    opacity: 0.9;
}

/* ---------- Hero ---------- */
.cv-hero {
    padding-top: 116px;
    padding-bottom: 88px;
}

.cv-hero .hero-content {
    max-width: 860px;
}

.cv-hero h1 {
    font-size: 46px;
    line-height: 1.12;
    margin-bottom: 20px;
}

.cv-eyebrow {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.cv-hero p.cv-hero-note {
    font-size: 15px;
    line-height: 1.5;
    margin: 14px auto 0;
    max-width: 560px;
    color: var(--text-light);
}

.cv-callrow {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
}

.cv-hero p.cv-callrow-label {
    flex-basis: 100%;
    font-size: 15px;
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.cv-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cv-pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cv-pill:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.35);
}

.cv-pill-phone svg {
    color: var(--primary);
}

.cv-pill-wa svg {
    color: #1fa855;
}

.cv-hero-visual {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 44px auto 0;
}

.cv-shot-desktop {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.3);
}

.cv-shot-phone {
    position: absolute;
    right: 28px;
    bottom: -36px;
    width: 190px;
    height: auto;
    border-radius: 20px;
    border: 5px solid #0f172a;
    background: var(--surface);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.45);
}

.cv-hero p.cv-visual-caption {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 52px auto 0;
    font-size: 14px;
    text-align: center;
    color: var(--text-light);
}

.cv-hero p.cv-trust {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 28px auto 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: var(--text);
}

.cv-trust strong {
    font-weight: 600;
}

/* ---------- Widget section: label under each widget picture ---------- */
.cv-widget-caption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
}

/* ---------- "Telefon bleibt" diagram ---------- */
.cv-flow {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-flow-sources {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-flow-chip {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    min-width: 150px;
    text-align: center;
}

.cv-flow-arrow {
    color: var(--text-light);
    font-size: 26px;
    line-height: 1;
}

.cv-flow-target {
    padding: 28px 26px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: var(--surface);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

/* ---------- Steps ---------- */
.cv-steps {
    padding: 100px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.cv-steps h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 48px;
}

.cv-steps-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    list-style: none;
    counter-reset: cvstep;
}

.cv-step {
    counter-increment: cvstep;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
}

.cv-step::before {
    content: counter(cvstep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.cv-step h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cv-step p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-light);
}

/* ---------- FAQ ---------- */
.cv-faq {
    padding: 100px 24px;
    background: var(--background);
}

.cv-faq h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

.cv-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.cv-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
}

.cv-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 48px 18px 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}

.cv-faq-item summary::-webkit-details-marker {
    display: none;
}

.cv-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--primary);
}

.cv-faq-item[open] summary::after {
    content: "\2212";
}

.cv-faq-item p {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ---------- Contact block ---------- */
.cv-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cv-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    min-height: 52px;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cv-contact-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cv-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.cv-contact-btn-wa {
    color: #12813f;
}

.cv-contact-mail {
    display: block;
    margin-top: 18px;
}

/* ---------- Form ---------- */
.cv-choice {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cv-choice legend {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0;
}

.cv-choice-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-choice-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 44px;
}

.cv-choice-options input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin: 0;
}

.cv-choice-options label:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
}

.cv-optional {
    color: var(--text-light);
    font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cv-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .cv-nav-phone span {
        display: none;
    }

    .cv-nav-phone {
        width: 34px;
        height: 34px;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    .cv-hero {
        padding-top: 92px;
        padding-bottom: 48px;
    }

    .cv-hero h1 {
        font-size: 32px;
    }

    .cv-eyebrow {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .cv-hero-visual {
        margin-top: 36px;
    }

    .cv-shot-phone {
        width: 128px;
        right: 12px;
        bottom: -24px;
        border-width: 4px;
        border-radius: 14px;
    }

    .cv-hero p.cv-visual-caption {
        margin-top: 38px;
        font-size: 13px;
    }

    .cv-hero p.cv-trust {
        font-size: 15px;
    }

    .cv-steps,
    .cv-faq {
        padding: 48px 20px;
    }

    .cv-steps h2,
    .cv-faq h2 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .cv-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cv-step {
        padding: 20px 18px;
    }

    .cv-faq-item summary {
        font-size: 16px;
        padding: 16px 44px 16px 16px;
    }

    .cv-faq-item p {
        padding: 0 16px 16px;
    }
}

@media (max-width: 600px) {
    .cv-nav-cta {
        display: none;
    }

    /* Owner decision (Sept 23): on phones the hero shows only the phone
       mockup. The desktop table plan screenshot is unreadable at this width. */
    .cv-shot-desktop {
        display: none;
    }

    .cv-shot-phone {
        position: static;
        display: block;
        margin: 0 auto;
        width: 210px;
        border-width: 5px;
        border-radius: 20px;
    }

    .cv-hero p.cv-visual-caption {
        margin-top: 20px;
    }

    .cv-contact-btn {
        width: 100%;
        justify-content: center;
    }

    .cv-choice-options label {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .cv-hero h1 {
        font-size: 27px;
    }

    .cv-nav-login {
        font-size: 12px;
    }

    .cv-nav-phone {
        width: 32px;
        height: 32px;
    }

    .cv-pill {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Widget section: Variante 2 as a looping CSS animation ----------
   Overrides style.css only through the cv- classes added in index.html
   (.cv-widget-row on .widget-examples, .cv-widget-still-item /
   .cv-widget-anim-item on the two .widget-example-item blocks).
   No JavaScript: six widget frames (table plan -> pick start -> pick end ->
   selection + summary -> contact details -> confirmation) crossfade on a
   15 s loop. The outgoing frame stays fully opaque until the incoming one
   has faded in, so the background never shows through mid-fade. */
.cv-widget-row {
    display: grid;
    grid-template-columns: 180px 290px;
    gap: 28px;
    justify-content: center;
    justify-items: center;
    align-items: end;
    overflow: visible;
}

.cv-widget-still-item,
.cv-widget-anim-item {
    width: 100%;
}

.cv-widget-still-frame {
    max-width: 180px;
}

/* Phone shell around the animation */
.cv-phone {
    position: relative;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    padding: 6px;
    background: #0f172a;
    border-radius: 26px;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.45);
}

.cv-phone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 786 / 1600;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
}

.cv-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cv-frame-1 { animation-name: cv-frame-1; opacity: 1; }
.cv-frame-2 { animation-name: cv-frame-2; }
.cv-frame-3 { animation-name: cv-frame-3; }
.cv-frame-4 { animation-name: cv-frame-4; }
.cv-frame-5 { animation-name: cv-frame-5; }
.cv-frame-6 { animation-name: cv-frame-6; }

/* Crossfades at 2.0/4.4/6.8/9.2/11.6/14.6 s, each 0.4 s long. */
@keyframes cv-frame-1 {
    0%, 16% { opacity: 1; }
    16.01%, 97.32% { opacity: 0; }
    97.33%, 100% { opacity: 1; }
}

@keyframes cv-frame-2 {
    0%, 13.33% { opacity: 0; }
    16%, 32% { opacity: 1; }
    32.01%, 100% { opacity: 0; }
}

@keyframes cv-frame-3 {
    0%, 29.33% { opacity: 0; }
    32%, 48% { opacity: 1; }
    48.01%, 100% { opacity: 0; }
}

@keyframes cv-frame-4 {
    0%, 45.33% { opacity: 0; }
    48%, 64% { opacity: 1; }
    64.01%, 100% { opacity: 0; }
}

@keyframes cv-frame-5 {
    0%, 61.33% { opacity: 0; }
    64%, 80% { opacity: 1; }
    80.01%, 100% { opacity: 0; }
}

@keyframes cv-frame-6 {
    0%, 77.33% { opacity: 0; }
    80%, 97.33% { opacity: 1; }
    100% { opacity: 0; }
}

/* Finger taps: on frame 1 over the slot that turns blue later, and on
   frame 4 over the button that leads to the contact details. */
.cv-tap {
    position: absolute;
    width: 17%;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cv-tap-1 {
    left: 24.3%;
    top: 83.6%;
    border: 2px solid rgba(37, 99, 235, 0.85);
    background: rgba(37, 99, 235, 0.16);
    animation-name: cv-tap-ring-1;
}

.cv-tap-2 {
    left: 50%;
    top: 84.7%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.3);
    animation-name: cv-tap-ring-2;
}

@keyframes cv-tap-ring-1 {
    0%, 4% { transform: translate(-50%, -50%) scale(0.45); opacity: 0; }
    6% { opacity: 0.95; }
    11.33%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes cv-tap-ring-2 {
    0%, 54% { transform: translate(-50%, -50%) scale(0.45); opacity: 0; }
    56% { opacity: 0.95; }
    60.67%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Progress dots under the phone */
.cv-anim-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.cv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.22;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cv-dot-1 { animation-name: cv-dot-1; }
.cv-dot-2 { animation-name: cv-dot-2; }
.cv-dot-3 { animation-name: cv-dot-3; }
.cv-dot-4 { animation-name: cv-dot-4; }
.cv-dot-5 { animation-name: cv-dot-5; }
.cv-dot-6 { animation-name: cv-dot-6; }

@keyframes cv-dot-1 {
    0%, 16% { opacity: 1; transform: scale(1.25); }
    16.01%, 97.32% { opacity: 0.22; transform: scale(1); }
    97.33%, 100% { opacity: 1; transform: scale(1.25); }
}

@keyframes cv-dot-2 {
    0%, 13.33% { opacity: 0.22; transform: scale(1); }
    16%, 32% { opacity: 1; transform: scale(1.25); }
    32.01%, 100% { opacity: 0.22; transform: scale(1); }
}

@keyframes cv-dot-3 {
    0%, 29.33% { opacity: 0.22; transform: scale(1); }
    32%, 48% { opacity: 1; transform: scale(1.25); }
    48.01%, 100% { opacity: 0.22; transform: scale(1); }
}

@keyframes cv-dot-4 {
    0%, 45.33% { opacity: 0.22; transform: scale(1); }
    48%, 64% { opacity: 1; transform: scale(1.25); }
    64.01%, 100% { opacity: 0.22; transform: scale(1); }
}

@keyframes cv-dot-5 {
    0%, 61.33% { opacity: 0.22; transform: scale(1); }
    64%, 80% { opacity: 1; transform: scale(1.25); }
    80.01%, 100% { opacity: 0.22; transform: scale(1); }
}

@keyframes cv-dot-6 {
    0%, 77.33% { opacity: 0.22; transform: scale(1); }
    80%, 97.33% { opacity: 1; transform: scale(1.25); }
    100% { opacity: 0.22; transform: scale(1); }
}

@media (max-width: 1024px) {
    .cv-widget-row {
        grid-template-columns: 160px 260px;
        gap: 20px;
    }

    .cv-widget-still-frame {
        max-width: 160px;
    }

    .cv-phone {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .cv-widget-row {
        grid-template-columns: 170px 275px;
        gap: 24px;
    }

    .cv-widget-still-frame {
        max-width: 170px;
    }

    .cv-phone {
        max-width: 275px;
    }
}

@media (max-width: 600px) {
    /* No swipe carousel here: stack the still and the animation. */
    .cv-widget-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .cv-widget-still-item,
    .cv-widget-anim-item {
        flex: none;
        width: auto;
    }

    .cv-widget-still-frame {
        width: 170px;
        max-width: 170px;
    }

    .cv-phone {
        width: 250px;
        max-width: 100%;
    }
}

/* ---------- Phone pass (Sept 2026): phone-only fixes ---------- */
@media (max-width: 768px) {
    /* Keep "E-Mail" on one line (no break after the hyphen). */
    .cv-nobr {
        white-space: nowrap;
    }

    /* style.css hides .transition-visual below 768 px (old site SVG).
       Show the channel diagram under the text, as on desktop it sits
       next to the text. */
    .transition-section .transition-visual {
        display: flex;
    }
}

@media (max-width: 600px) {
    /* Channel diagram: same layout as desktop, sized to fit 320 px. */
    .cv-flow {
        gap: 12px;
    }

    .cv-flow-sources {
        gap: 10px;
    }

    .cv-flow-chip {
        min-width: 0;
        padding: 10px 14px;
        font-size: 14px;
    }

    .cv-flow-arrow {
        font-size: 22px;
    }

    .cv-flow-target {
        padding: 22px 14px;
        font-size: 15px;
    }

    /* Pricing card: keep the button text on one line and give wrapped
       list items a hanging indent under the check mark. */
    .pricing .price-card-content {
        padding: 28px 20px;
    }

    .pricing .price-cta {
        padding: 12px 16px;
    }

    .pricing .features-list li {
        padding-left: 1.1em;
        text-indent: -1.1em;
    }
}
