
/* Hero Section */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* specific settings to integrate animations */
.product-page-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 100px;
}

#product-page-lottie {
    width: 100%;
    height: 50%;
    pointer-events: none;
}

/* hero settings */

.page-hero-content {
    max-width: 600px;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-bright);
}

.page-hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.page-hero-btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--secondary-color);
    margin-left: 15px;
}

.page-hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/*Page Layout containers*/

.product-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    background-color: black;

    & h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: var(--accent-color);
    }
}

.h2-underline:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-bright);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--black);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Modules Section */
.modules {
    background-color: var(--gray-light);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module-item {
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--text-bright);
}

.module-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.module-item h3 i {
    margin-right: 10px;
    color: var(--black);
}

/* Timeline Section */
#how-it-works {
    display: none;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(-100px); /* Startposition außerhalb des Sichtbereichs */
    animation: slideIn 1s ease-out forwards; /* Animation */
}

.timeline::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: var(--accent-color);
    top: 15%;
    left: 10%;
    transform: translateY(-50%);
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-step {
    text-align: center;
    width: 18%;
    height: 180px;
    opacity: 0; /* Start als unsichtbar */
    transform: translateX(-50px); /* Startposition außerhalb des Sichtbereichs */
    animation: fadeInLeft 1s ease-out forwards;
}

.timeline-step.delay-1 {
    animation-delay: 0.3s;
}

.timeline-step.delay-2 {
    animation-delay: 0.5s;
}

.timeline-step.delay-3 {
    animation-delay: 0.7s;
}

.timeline-step.delay-4 {
    animation-delay: 0.9s;
}

.timeline-step:nth-child(5) {
    animation-delay: 1.1s;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 600;
}

.timeline-content {
    font-size: 0.9rem;
}

/* Keyframes for the animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0); /* Bewegt das Element von links nach rechts */
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0); /* Bewegt das Element von links nach rechts */
    }
}

/* Wenn die Timeline sichtbar ist, soll sie eingeblendet werden */
.timeline.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-step.visible {
    opacity: 1;
    transform: translateX(0);
}



/* Keyframes for the animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0); /* Bewegt das Element von links nach rechts */
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0); /* Bewegt das Element von links nach rechts */
    }
}


/* Customer Journey Section */
.journey {
    background-color: var(--gray-light);
}

.journey-steps {
    max-width: 700px;
    margin: 0 auto;
}

.journey-step {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--accent-color);
}

.journey-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.journey-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-weight: 600;
}

.journey-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: var(--gray-medium);
    line-height: 1;
}

.testimonial-author {
    font-weight: 600;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Pricing Teaser */
.pricing-teaser {
    text-align: center;
    padding: 60px 0;
    background-color: var(--gray-light);
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.pricing-option {
    padding: 20px 40px;
    border: 1px solid var(--black);
    border-radius: 8px;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray-medium);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.contact-info p {
    color: var(--gray-medium);
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .timeline::after {
        width: 70%;
        left: 15%;
    }
}

@media (max-width: 768px) {
    
    .hero {
        min-height: 600px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .timeline {
        margin-top: 50px;
    }
    
    .timeline::after {
        display: none;
    }
    
    .timeline-container {
        flex-direction: column;
    }
    
    .timeline-step {
        width: 100%;
        margin-bottom: 40px;
        display: flex;
        text-align: left;
    }
    
    .timeline-step:last-child {
        margin-bottom: 0;
    }
    
    .timeline-number {
        margin: 0 0 0 0;
    }
    
    .timeline-content {
        text-align: left;
        padding-top: 10px;
    }
    
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}


/* =========================================
   PRODUCT PAGE – Mobile Styles (≤768px)
   Scope: #product
   ========================================= */
@media (max-width: 768px) {

  /* ---------- Product Overview (benefits) ---------- */
  #product .benefits {
    padding: 48px 0 24px;             /* kompakter als Desktop */
  }

  #product .benefits .product-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #product .benefits .h2-underline,
  #product .benefits h2 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
    text-align: left;
  }

  #product .benefits > .product-container > p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: none;                  /* volle Breite mobil */
  }

  #product .benefits .benefits-grid {
    display: grid;
    grid-template-columns: 1fr;       /* 1-spaltig */
    gap: 16px;
  }

  #product .benefits .benefit-card {
    padding: 16px;
    border-radius: 10px;
  }

  #product .benefits .benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 10px;
  }

  #product .benefits .benefit-card h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  #product .benefits .benefit-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  /* Falls Fade-in per Klasse gesteuert wird, mobil direkt sichtbar machen */
  #product .benefits .benefit-card.fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* ---------- How it works (modules) ---------- */
  #product .modules {
    padding: 40px 0 16px;
  }

  #product .modules .product-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #product .modules .h2-underline,
  #product .modules h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 14px;
    text-align: left;
  }

  #product .modules .modules-grid {
    display: grid;
    grid-template-columns: 1fr;       /* 1-spaltig */
    gap: 16px;
  }

  #product .modules .module-item {
    padding: 16px;
    border-radius: 10px;
  }

  #product .modules .module-item h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 22px 1fr;  /* Icon + Text */
    align-items: start;
    column-gap: 8px;
  }

  #product .modules .module-item h3 i {
    font-size: 18px;
    line-height: 1;
    margin-right: 0;                  /* Grid übernimmt Abstand */
  }

  #product .modules .module-item p {
    font-size: 15px;
    line-height: 1.55;
  }

  #product .modules .module-item.fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* ---------- Customer Journey (journey) ---------- */
  #product .journey {
    padding: 44px 0 24px;
  }

  #product .journey .product-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #product .journey .h2-underline,
  #product .journey h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 16px;
    text-align: left;
  }

  #product .journey .journey-steps {
    display: grid;
    grid-template-columns: 1fr;       /* 1-spaltig */
    gap: 16px;
  }

  #product .journey .journey-step {
    padding: 16px;
    border-radius: 10px;
  }

  #product .journey .journey-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 32px;
    border-radius: 8px;
    margin-right: 10px;
  }

  #product .journey .journey-content h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  #product .journey .journey-content p {
    font-size: 15px;
    line-height: 1.55;
  }

  #product .journey .journey-step.fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Extra-small Tweaks (≤480px) – weiterhin nur Product Page */
@media (max-width: 480px) {
  #product .benefits .benefit-card,
  #product .modules .module-item,
  #product .journey .journey-step {
    padding: 14px;
  }

  #product .modules .module-item h3 {
    grid-template-columns: 20px 1fr;
    font-size: 17px;
  }

  #product .journey .journey-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 28px;
  }
}
