/* css/landingpage.css */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.hero-subhead {
    font-size: 1.15rem !important;
    font-weight: 450 !important; /* Lighter font weight */
}

/* Force image/iframe to render at target 1200px desktop width before scale transform */
#heroIframe {
    max-width: none !important;
    min-width: 1200px !important;
    transform-origin: top left !important;
}

/* Nav-free header */
.landing-header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 0.85rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.landing-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-logo-img {
    height: 40px;
    width: auto;
}

.landing-logo-text {
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.header-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.16);
    color: #7c3aed;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-phone-cta:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

/* Collapsible items container */
.landing-cta-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 450px;
    /* Constrain width to 450px on all screens to prevent excessive stretching */
}

/* Stacked CTA buttons wrapper column */
.cta-buttons-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cta-btn-whatsapp,
.cta-btn-form {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: white;
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-sizing: border-box;
}

.cta-btn-whatsapp {
    background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.cta-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.3) !important;
    filter: brightness(1.05);
}

.cta-btn-form {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.cta-btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.3) !important;
    filter: brightness(1.05);
}

/* Input styling */
.lead-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lead-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.lead-input:focus {
    border-color: #7c3aed;
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.lead-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
    margin-top: 0.5rem;
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
    filter: brightness(1.05);
}

.lead-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #10b981;
    margin: 0 auto 1rem auto;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 2rem !important; /* Move content up closer to the navbar */
    }

    .landing-cta-container {
        width: 100% !important;
        margin-left: 0 !important;
        /* Left-aligned on mobile */
        margin-right: auto !important;
        text-align: left;
        box-sizing: border-box;
    }

    #contactOptionsCard,
    #collapsibleFormCard,
    #leadSuccessBody {
        width: 100% !important;
        max-width: 450px !important;
        margin-left: 0 !important;
        /* Left-aligned inside container */
        margin-right: auto !important;
        text-align: left;
        box-sizing: border-box;
    }

    .hero-content-left {
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Align everything left-aligned */
        width: 100% !important;
        padding: 0 !important;
        /* No extra padding, relies on global page padding */
        box-sizing: border-box !important;
    }

    .hero-content-left .limited-badge,
    .hero-content-left h1,
    .hero-content-left .hero-subhead {
        text-align: left !important;
        /* Left-align headers and badge on mobile too */
        align-self: flex-start !important;
    }

    .hero-content-left .hero-subhead {
        font-size: 1.05rem !important; /* Scale down on mobile */
    }

    .collapsible-card-premium {
        padding: 1.15rem !important;
        /* Shrink internal padding to make form and fields wider on mobile */
    }

    .hero-benefits {
        margin: 0 0 2rem 0 !important;
        /* Left-aligned spacing */
        width: 100% !important;
        /* Forces items to wrap inside mobile screen width */
        text-align: left;
    }





    /* Center footer links perfectly on mobile */
    .footer-separator {
        display: none !important;
    }

    .footer-links {
        text-align: center !important;
        width: 100% !important;
        margin: 1.5rem 0 0 0 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }

    .footer-links a {
        margin: 0 !important;
    }

    .footer-grid {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-contact {
        text-align: center !important;
    }

    /* Stacked overrides for mobile collapsible active card */
    .collapsible-card-premium.active {
        margin-top: 2.25rem !important;
        /* Spacing below the buttons on mobile */
        margin-bottom: 2rem !important;
        /* Spacing above the slider on mobile */
    }
}

/* Premium Collapsible Cards Transitions */
.collapsible-card-premium {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-sizing: border-box;
    width: 100%;
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.08), 0 0 15px rgba(124, 58, 237, 0.02);
}

/* Morphing Slider Deck Layout */
.landing-cta-container {
    width: 100%;
    max-width: 450px;
    margin-top: 2rem;
    overflow: hidden;
    /* Hide other steps */
    position: relative;
    border-radius: 1.5rem;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-deck-wrapper {
    display: flex;
    width: 400%;
    /* 4 steps */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: flex-start;
}

.cta-step {
    width: 25%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cta-step.active {
    opacity: 1;
    pointer-events: auto;
}

.cta-back-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.cta-back-circle-btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.cta-back-circle-btn:hover {
    background: rgba(124, 58, 237, 0.18);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.1);
}

.cta-back-circle-btn:hover svg {
    transform: translateX(-2px);
}



/* Fix background canvas warp during card expansion */
.hero-canvas {
    height: 1600px !important;
}



/* Top-align hero columns on desktop to keep the slider aligned with the headline */
@media (min-width: 993px) {
    .hero-container {
        align-items: flex-start !important;
        padding-top: 1rem;
    }
    .hero-content-right {
        margin-top: 4.5rem !important; /* Push the slider down on desktop to align beautifully with the subtitle */
    }
}

/* Mobile responsive margins */
@media (max-width: 768px) {
    .landing-cta-container {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 2.5rem !important;
        /* Spacing above the slider on mobile */
    }
    .hero-content-right {
        margin-top: 2rem !important; /* Healthy spacing above slider mockup on mobile */
    }
}

/* Mobile navbar improvements for narrow devices like Galaxy S26 */
@media (max-width: 480px) {
    .landing-header-container {
        padding: 0 0.85rem !important;
    }
    .landing-logo-img {
        height: 32px !important;
    }
    .landing-logo-text {
        font-size: 1.15rem !important;
    }
    .header-phone-cta {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
}

/* Welcome Badge (Andrei Greeting) - Floating on Desktop */
.welcome-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-width: 360px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: welcomeFloatIn 0.5s ease-out 1s both;
}

@keyframes welcomeFloatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] .welcome-badge {
    background: rgba(9, 9, 11, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.welcome-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7c3aed;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
    flex-shrink: 0;
}

.welcome-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
    padding-right: 0.75rem; /* Space for close button */
}

.welcome-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    font-weight: 500;
}

.welcome-close-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.welcome-close-btn:hover {
    opacity: 1;
}

/* Mobile responsive override (Inline layout) */
@media (max-width: 991px) {
    .welcome-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        max-width: 450px !important;
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        animation: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--card-bg) !important;
    }
    
    .welcome-close-btn {
        display: none !important;
    }
}

/* Easter Egg Styles - Andrei Greeting */
.welcome-avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.welcome-avatar:hover {
    transform: scale(1.08) rotate(3deg);
}

.avatar-bounce {
    animation: avatarBounceScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes avatarBounceScale {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-8deg); }
    60% { transform: scale(0.9) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.easter-egg-bubble {
    position: absolute;
    top: -25px;
    left: 20px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    z-index: 1001;
    pointer-events: none;
    animation: floatUpFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Mobile adjustments for floating bubble position */
@media (max-width: 991px) {
    .easter-egg-bubble {
        top: -30px;
        left: 15px;
    }
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }
    30% {
        transform: translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
    border-color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
}

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

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

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
    color: #ef4444;
}

.faq-toggle-icon {
    transition: transform 0.3s ease, color 0.2s ease;
}

/* Bottom CTA Sektion */
.bottom-cta-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.bottom-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.bottom-cta-title {
    font-size: 2.25rem;
    font-weight: 850;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.bottom-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.cta-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.cta-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.3);
}

/* Schwebendes WhatsApp Widget (Mobile Conversion Boost) */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.15rem;
    border-radius: 100px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp-widget:hover {
    transform: scale(1.05) translateY(-3px);
    background: #22c35e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-badge-text {
    white-space: nowrap;
}

/* Pulsieren-Animation */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Anpassung: Auf Handys kompakter anzeigen */
@media (max-width: 576px) {
    .floating-whatsapp-widget {
        padding: 0.75rem;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-badge-text {
        display: none;
    }
}

/* ===== BRANCHEN-GALERIE (Dynamische Beispiel-Websites) ===== */
.branche-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.branche-gallery-header {
    text-align: center;
}

.branche-gallery-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.3px;
}

.branche-gallery-track {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.branche-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.branche-gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.branche-browser-frame {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.branche-browser-frame:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.branche-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary, #f5f5f5);
    border-bottom: 1px solid var(--border-color);
}

.branche-browser-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.25);
}

.branche-browser-bar .dot:first-child { background: #ff5f57; }
.branche-browser-bar .dot:nth-child(2) { background: #ffbd2e; }
.branche-browser-bar .dot:nth-child(3) { background: #28c840; }

.branche-browser-url {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.5rem;
}

.branche-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10.6;
    object-fit: cover;
    object-position: top center;
}

.branche-gallery-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

.branche-label-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.branche-label-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.branche-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.branche-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.branche-dot.active {
    background: #7c3aed;
    border-color: #7c3aed;
    transform: scale(1.2);
}

.branche-dot:hover {
    border-color: #7c3aed;
}

@media (max-width: 768px) {
    .branche-gallery-title {
        font-size: 1.1rem;
    }
    .branche-gallery-track {
        min-height: 220px;
    }
}