:root {
    --primary-color: #28a745;
    --primary-color-dark: #218838;
    --secondary-color: #f8f9fa;
    --dark-color: #1a202c;
    /* Dunkler für mehr Kontrast */
    --text-color: #4a5568;
    --light-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 16px;
    /* Größer für modernen Look */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h2,
h3 {
    line-height: normal;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations-Setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: 40px;
}

.logo-text {
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Seitenmenü */
.side-menu {
    position: fixed;
    top: 0;
    right: -500px;
    width: 260px;
    height: 100%;
    background: var(--light-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    z-index: 2000;
}

.side-menu.open {
    right: 0;
}

.side-menu .close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.side-menu ul {
    list-style: none;
    padding: 3rem 0 0;
    margin: 0;
}

.side-menu li {
    margin: 1rem 0;
}

.side-menu a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color var(--transition);
}

.side-menu a:hover {
    color: var(--primary-color);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1500;
}

.overlay.show {
    display: block;
}

/* Responsiveness */
@media(max-width: 768px) {
    .logo-text {
        display: none;
        /* nur Bild sichtbar */
    }

    .desktop-only {
        display: none;
        /* "Warteliste" Button ausblenden */
    }
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color) !important;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(160deg, #f0fff4, #e6f7f0, #d8f3dc);
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
}

.hero h1 span.subtitle {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 10px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.color-green {
    color: var(--primary-color);
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.waitlist-form input[type="email"] {
    padding: 18px 25px;
    width: 320px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Goals Section */
.goals {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.goal-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.goal-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Dashboard Section */
.dashboard-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.dashboard-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.dashboard-text {
    flex: 1;
}

.dashboard-mockup-container {
    flex: 1;
    perspective: 1500px;
}

.dashboard-mockup-img {
    padding: 20px;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup {
    background: #fff;
    border: 10px solid #2d3748;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup-img:hover,
.dashboard-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.dashboard-screen {
    background: #f7fafc;
    border-radius: 20px;
    padding: 20px;
}

.dashboard-header {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dashboard-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-item .label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.dashboard-item .progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-item .progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Feature Showcase */
.feature-showcase {
    padding: 100px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-text .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* SLIDER STYLES */
.slider-container {
    flex: 1;
    max-width: 300px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    width: 280px;
    height: auto;
    border-radius: 30px;
    /*box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
    -webkit-user-drag: none;
    /* Prevents image dragging */
    user-select: none;
    border: 10px solid #2d3748;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    /* verteilt die Buttons links/rechts */
    transform: translateY(-50%);
    /* Buttons mittig ausrichten */
    padding: 0 10px;
    /* Abstand vom Rand */
    pointer-events: none;
    /* damit nur Buttons klickbar sind */
}

.slider-nav button {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    animation: pulse 1.5s infinite;
}

.slider-nav button:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: scale(1.1);
}

.slider-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.benefits {
    padding: 60px 20px;
    background: #fff;
    font-family: sans-serif;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.benefits-text p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.5;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefits-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    background: #f0f4ff;
    /* sanfter Hintergrund */
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.benefits-list strong {
    font-size: 1rem;
    color: #111;
}

.benefits-list small {
    font-size: 0.85rem;
    color: #666;
}

.benefits-slider .slider-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 80px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsiv */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .benefits-list li {
        justify-content: center;
        text-align: left;
    }
}


/* How it works section */
.how-it-works {
    padding: 100px 0;
    background: var(--secondary-color);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-step .step-circle {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    color: var(--primary-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.timeline-step:hover .step-circle {
    background: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: #f1f5f9;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark);
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
}

.badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0c4a6e;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--secondary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    animation: fadeIn 1s;
    margin-bottom: 20px;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card img {
    border-radius: 50%;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: var(--primary-color);
    text-align: center;
    color: var(--light-color);
    background: linear-gradient(45deg, var(--primary-color), #5cb85c);
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #a0aec0;
    text-align: center;
    padding: 3rem 0;
}

/* Responsive */
@media(max-width: 992px) {

    .dashboard-content,
    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-mockup {
        transform: rotateY(0) rotateX(0);
    }

    .slider-container {
        margin-top: 2rem;
    }
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h1 span.subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    .waitlist-form input[type="email"] {
        width: 100%;
        max-width: 350px;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .timeline::before {
        display: none;
    }
}

.faq {
    max-width: 800px;
    margin: 50px auto;
    font-family: sans-serif;
}

.accordion {
    margin-bottom: 5px;
}

.accordion-header {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 2rem;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    padding: 15px;
    cursor: pointer;
    outline: none;
}

.accordion-body {
    display: none;
    padding: 0 15px 15px;
    color: #555;
}

.accordion-body.active {
    display: block;
}

/* Button */
#openModal {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: #28a745;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

#openModal:hover {
    background: #218838;
}

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

/* Modal */
.modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    /* Wichtig: nicht festziehen */
    width: fit-content;
    max-width: 90%;
    /* optional, damit es nicht aus dem Viewport läuft */
    max-height: 90%;
    /* falls viel Inhalt, dann scrollbar */
    overflow: auto;
}

.modal.active {
    transform: scale(1);
    opacity: 1;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

textarea {
    height: 80px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px;
    resize: none;
}

.buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn.cancel {
    background: #e0e0e0;
}

.btn.submit {
    background: #28a745;
    color: white;
}

.btn.cancel:hover {
    background: #ccc;
}

.btn.submit:hover {
    background: #218838;
}

.btn.pulse {
    animation: pulse 2s infinite;
}


.early-bird-offer {
    background-color: rgba(45, 212, 191, 0.1);
    /* Leicht grünlicher, transparenter Hintergrund */
    border: 1px solid var(--color-green, #2dd4bf);
    /* Rahmen in deiner Akzentfarbe */
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    /* Abstand nach oben und unten */
    max-width: 650px;
    text-align: center;
}

.early-bird-offer p {
    margin: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-offer {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #cbd5e1;
    /* Eine etwas dezentere Textfarbe */
}


/* --- Styling für das Pop-up / Modal --- */

.modal-overlay {
    position: fixed;
    /* Bleibt an einer Stelle, auch beim Scrollen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dunkler, halbtransparenter Hintergrund */
    display: none;
    /* Standardmäßig unsichtbar */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Stellt sicher, dass es über allem anderen liegt */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    /* Wird durch JS auf 'flex' gesetzt, um es anzuzeigen */
    opacity: 1;
}

.modal-content {
    background-color: #1a202c;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;
    /* Wichtig: nicht global align-items: center */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.8rem;
    color: #fff;
}

.modal-content p {
    text-align: center;
    color: #a0aec0;
}

.modal-form,
.feature-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #718096;
    cursor: pointer;
    line-height: 1;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
}

.modal-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--color-green, #2dd4bf);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.3);
}

.modal-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.feature-list .buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-list .buttons .btn {
    flex: 1;
    /* Beide Buttons nehmen gleich viel Platz ein */
}

.feature-list .buttons .btn.cancel {
    background-color: #4a5568;
    /* Grauer Hintergrund für den sekundären Button */
    color: #e2e8f0;
}

.modal-form .form-group,
.feature-list label,
.feature-list textarea {
    width: 100%;
    text-align: left;
}

/* Textarea anpassen */
.feature-list textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    font-family: var(--font-family);
}

/* Buttons mittig + volle Breite */
.modal-form .btn,
.feature-list .buttons .btn {
    width: 100%;
    max-width: 100%;
}