:root {
    --primary: #4A1D96;
    --primary-light: #6a35c2;
    --secondary: #7C3AED;
    --bg-light: #F5F3FF;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --blue: #3B82F6;
    --radius: 20px;
    --shadow: 0 4px 20px rgba(74, 29, 150, 0.08);
    /* Colored shadow for branded feel */
    --shadow-hover: 0 10px 30px rgba(74, 29, 150, 0.15);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-purple {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--secondary);
}

.bg-orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.bg-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.bg-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 48px;
    width: auto;
    display: block;
}

.logo-image-footer {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation classes */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Body Scroll Lock */
body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        z-index: 1000;
        /* Hidden state */
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;
        /* Prevent internal scroll if desired */
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        pointer-events: all;
    }

    .nav-cta {
        margin-top: 1rem;
    }
}

/* Hero */
.hero {
    padding: 4rem 0 6rem;
    background: radial-gradient(circle at top right, var(--bg-light) 0%, transparent 40%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-direction: column;
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Mockup Placeholder */
/* NACHHER */
.mockup-placeholder {
    width: 280px;
    height: 580px;
    background: #e0e0e0;
    border-radius: 40px;
    border: 8px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
    overflow: hidden;
    flex-shrink: 0;
}

.placeholder-content {
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.placeholder-content span {
    font-weight: 600;
    font-size: 0.9rem;
}

.mockup-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Benefits */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Features */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    flex-direction: column;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.badge {
    background-color: var(--bg-light);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-list li svg {
    color: var(--success);
    width: 20px;
    height: 20px;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.step-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Security */
.security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.security-text {
    max-width: 650px;
    width: 100%;
}

.security-layers {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    text-align: left;
}

.layer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(to right, #ffffff, #fdfbff);
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(74, 29, 150, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.layer:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(74, 29, 150, 0.1);
    border-color: rgba(74, 29, 150, 0.15);
}

.layer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    color: var(--secondary);
    flex-shrink: 0;
}

.layer-content {
    flex: 1;
}

.layer-content strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
}

.layer-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 2px;
}

.layer-check {
    color: var(--success);
    margin-left: auto;
    background: rgba(16, 185, 129, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.layer:hover .layer-check {
    transform: scale(1.1);
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-visual {
    color: var(--success);
    opacity: 0.9;
}


/* Footer */
.footer {
    background: #f9fafb;
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-text-footer {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.store-btn-placeholder {
    background: #111;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: default;
}

.footer-brand p {
    margin-bottom: 0.5rem;
}

.brand-link {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(74, 29, 150, 0.1);
}

.brand-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
    }

    .hero-text {
        text-align: left;
    }

    .hero-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .feature-row {
        flex-direction: row;
    }

    .feature-row.reverse {
        flex-direction: row-reverse;
    }

    .security-content {
        align-items: center;
    }

    .security-text {
        flex: 1;
    }

    .security-visual {
        flex: 1;
    }
}

.centered-text {
    text-align: center;
}


/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* New Sections: Testuser & Contact */
.bg-purple-dark {
    background: linear-gradient(135deg, var(--primary), #2e1065);
}

.text-white {
    color: var(--white);
}

.badge-accent {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-accent {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.testuser-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.testuser-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.testuser-benefit i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.cta-box {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-text h2 {
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.info-item i {
    width: 20px;
    height: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* Beta form: select + checkbox styling */
.form-group select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.checkbox-group {
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(74, 29, 150, 0.1);
}

.checkbox-label a:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: #ef4444;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        padding: 4rem;
    }
}

/* Wizard form (one question at a time) */
.form-step { display: none; }
.form-step.is-active { display: block; }

.form-actions { margin-top: 0.5rem; }
.form-actions.split { display: flex; gap: 1rem; }
.form-actions.split .btn { flex: 1; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(74, 29, 150, 0.15);
  color: var(--primary);
}
.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.form-progress {
  margin-bottom: 1.25rem;
}
.form-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.form-progress-label {
  font-weight: 700;
  color: var(--text-dark);
}
.form-progress-count {
  font-weight: 700;
  color: var(--text-gray);
}
.form-progress-bar {
  height: 10px;
  background: rgba(124, 58, 237, 0.10);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* make selects match inputs */
.form-group select {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* checkbox */
.checkbox-group { margin-top: 0.25rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}
.checkbox-label a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(74, 29, 150, 0.1);
}
.checkbox-label a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

@media (max-width: 767px) {
    .feature-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mockup-placeholder {
        width: 240px;
        height: 496px;      /* feste Höhe statt aspect-ratio */
        max-width: none;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .mockup-img {
        width: 240px;
        height: 496px;
        object-fit: cover;
    }
}


/* Fallback: Sektionen immer sichtbar wenn JS-Observer nicht feuert */
.fade-in-section {
    opacity: 1 !important;
    transform: none !important;
}

.faq-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A1D96;
    margin: 2rem 0 0.5rem;
    padding-left: 0.25rem;
    opacity: 0.7;
}

.faq-section-label:first-child {
    margin-top: 0;
}


/* ── FAQ Section Headers (klappbare Sektionen) ─────────────────────────── */
/* Ergänze dies am Ende des bestehenden FAQ-Blocks in styles.css            */

.faq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.9rem 1.25rem;
    margin-top: 1.25rem;
    background: linear-gradient(135deg, #4A1D96 0%, #6B21A8 100%);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    user-select: none;
    transition: opacity 0.2s ease;
}

.faq-section-header:first-child {
    margin-top: 0;
}

.faq-section-header:hover {
    opacity: 0.88;
}

.faq-section-header svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-section-header.open svg {
    transform: rotate(180deg);
}

.faq-section-body {
    display: none;
    margin-bottom: 0.25rem;
}

.faq-section-body.open {
    display: block;
}

/* Ersetzt / deaktiviert das alte .faq-section-label falls noch vorhanden */
.faq-section-label {
    display: none;
}