/**
 * 🎯 Conversion Funnel Styles für Dennis Gutjahr
 * Optimierte Styles für maximale Conversion-Rate
 */

/* ===========================================
   FUNNEL NAVIGATION
   =========================================== */

.funnel-navigation {
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4a7c59;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-size: 12px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.step.active .step-title {
    color: #4a7c59;
    font-weight: bold;
}

/* ===========================================
   STEP CONTENT
   =========================================== */

.step-content {
    position: relative;
    min-height: 400px;
}

.step-panel {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in-out;
}

.step-panel.active {
    display: block;
}

.step-panel h3 {
    color: #4a7c59;
    margin-bottom: 10px;
    font-size: 24px;
}

.step-panel p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   FORM FIELDS
   =========================================== */

.step-fields {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:valid {
    border-color: #28a745;
}

/* ===========================================
   URGENCY ELEMENTS
   =========================================== */

.urgency-banner {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.urgency-icon {
    font-size: 20px;
    margin-right: 10px;
}

.urgency-text {
    font-weight: 600;
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.offer-banner {
    background: linear-gradient(135deg, #4a7c59, #6b8e6b);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.offer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-icon {
    font-size: 20px;
    margin-right: 10px;
}

.offer-text {
    font-weight: 600;
    font-size: 16px;
}

#offer-timer {
    font-weight: bold;
    color: #ffeb3b;
    font-size: 18px;
}

/* ===========================================
   LIVE CHAT BUTTON
   =========================================== */

.live-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-chat {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-chat:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.chat-icon {
    font-size: 20px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

/* ===========================================
   TRUST SIGNALS
   =========================================== */

.trust-certificates {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.certificate img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.certificate span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.trust-testimonials {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 20px;
}

.testimonial.active {
    display: block;
    animation: slideIn 0.5s ease-in-out;
}

.testimonial-content {
    font-size: 16px;
    color: #333;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 14px;
    color: #4a7c59;
    font-weight: 600;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===========================================
   PERSONALIZATION
   =========================================== */

.pet-recommendation {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    animation: slideIn 0.5s ease-in-out;
}

.pet-recommendation h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.pet-recommendation .price {
    font-size: 24px;
    font-weight: bold;
    color: #4a7c59;
    margin: 10px 0;
}

.pet-recommendation .includes {
    list-style: none;
    padding: 0;
}

.pet-recommendation .includes li {
    padding: 5px 0;
    color: #666;
}

.pet-recommendation .includes li::before {
    content: '✅ ';
    margin-right: 8px;
}

/* ===========================================
   STEP CONTROLS
   =========================================== */

.step-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #3a6b49;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===========================================
   PROGRESS BAR
   =========================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7c59, #6b8e6b);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===========================================
   MOBILE OPTIMIZATION
   =========================================== */

@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-title {
        font-size: 14px;
        text-align: left;
    }
    
    .step-panel {
        padding: 20px;
    }
    
    .step-panel h3 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .step-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .live-chat-button {
        bottom: 10px;
        right: 10px;
    }
    
    .btn-chat {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .urgency-content,
    .offer-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .step-panel {
        padding: 15px;
    }
    
    .step-panel h3 {
        font-size: 18px;
    }
    
    .step-panel p {
        font-size: 14px;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-chat {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .chat-text {
        display: none;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus-Outline für bessere Accessibility */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #4a7c59;
    outline-offset: 2px;
}

/* High-Contrast-Mode */
@media (prefers-contrast: high) {
    .step-number {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border: 2px solid #000;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .live-chat-button,
    .urgency-banner,
    .offer-banner {
        display: none;
    }
    
    .step-panel {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn {
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
}
