/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

picture {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

picture img {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --max-width: 1120px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* Scroll Animationen */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    background: transparent;
    background-color: transparent;
}

/* Container within hero should be flex to position children */
.hero .container {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto; /* Changed from flex: 1 to prevent growing */
    justify-content: flex-start;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-sm);
    gap: var(--spacing-md);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav {
    display: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-header {
    display: none;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Floating Cards
   ======================================== */

.floating-card {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.floating-card .card-inner {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    width: 180px;
}

.floating-card .card-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.floating-card .card-value {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.floating-card .card-value.green {
    color: #10B981;
}

.floating-card .card-value.small {
    font-size: 18px;
    font-weight: 500;
}

.floating-card .card-sub {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: #6B7280;
}

.floating-card .card-sub.green {
    color: #10B981;
}

.floating-card .card-sub.blue {
    color: #3B82F6;
}

/* Float animations with rotation */
@keyframes float1 {
    0%, 100% { transform: rotate(-5deg) translateY(0px); }
    50% { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(4deg) translateY(0px); }
    50% { transform: rotate(4deg) translateY(-12px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(6deg) translateY(0px); }
    50% { transform: rotate(6deg) translateY(-12px); }
}

@keyframes float4 {
    0%, 100% { transform: rotate(-4deg) translateY(0px); }
    50% { transform: rotate(-4deg) translateY(-12px); }
}

@keyframes float5 {
    0%, 100% { transform: rotate(-6deg) translateY(0px); }
    50% { transform: rotate(-6deg) translateY(-12px); }
}

@keyframes float6 {
    0%, 100% { transform: rotate(5deg) translateY(0px); }
    50% { transform: rotate(5deg) translateY(-12px); }
}

/* Hero Section Cards */
.hero .floating-card.card-left-1 {
    top: 18%;
    left: 8%;
    animation: float1 6s ease-in-out infinite;
}

.hero .floating-card.card-left-2 {
    top: 45%;
    left: 6%;
    animation: float2 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero .floating-card.card-right-1 {
    top: 12%;
    right: 6%;
    animation: float3 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero .floating-card.card-right-2 {
    top: 42%;
    right: 8%;
    animation: float4 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* So funktioniert Section Cards */
.so-funktioniert .floating-card.card-left {
    top: 25%;
    left: 5%;
    animation: float5 6s ease-in-out infinite;
    animation-delay: 1s;
}

.so-funktioniert .floating-card.card-right {
    bottom: 20%;
    right: 5%;
    animation: float6 6s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* Hide cards on smaller screens */
@media (max-width: 1400px) {
    .floating-card {
        display: none;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 60px); /* Fill viewport minus header height */
    min-height: calc(100dvh - 60px); /* Dynamic viewport height for mobile browsers */
    padding: 0 var(--spacing-sm);
    padding-bottom: 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Spacer above content - flexible space */
.hero-spacer-top {
    flex: 1 1 auto;
    min-height: var(--spacing-md);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    flex-shrink: 0;
}

.hero-headline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.hero-subheadline {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: 0;
}

/* Spacer between CTA and image - flexible space */
.hero-spacer-bottom {
    flex: 1 1 auto;
    min-height: var(--spacing-md);
}

/* Hero Image Container - positioned below hero section */
.hero-image-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 var(--spacing-sm);
    padding-bottom: 0;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.hero-image picture {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.hero-image source {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: normal;
}

/* Override any browser default backgrounds - completely disable */
.hero-image-container *,
.hero-image-container *::before,
.hero-image-container *::after {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-spacer-top {
        min-height: var(--spacing-sm);
    }
    
    .hero-spacer-bottom {
        min-height: var(--spacing-sm);
    }
    
    .hero-image-container {
        max-width: 100%;
        margin-bottom: 0;
        padding: 0 var(--spacing-sm);
        padding-bottom: 0;
    }
    
    .hero-image {
        max-width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .hero {
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-spacer-top {
        flex: 1 1 auto;
        min-height: var(--spacing-xs);
    }
    
    .hero-spacer-bottom {
        flex: 1 1 auto;
        min-height: var(--spacing-xs);
    }
    
    .hero-image-container {
        margin-bottom: 0;
        padding: 0 var(--spacing-sm);
        padding-bottom: 0;
        align-self: center;
        width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-image img {
        box-shadow: none;
    }
}

/* Section Styles */
section {
    padding: var(--spacing-xl) var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    position: relative;
    z-index: 10;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

/* Vorteile Section */
.vorteile {
    background-color: var(--bg-light);
}

.vorteile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.vorteil-card {
    background-color: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.vorteil-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
}

.vorteil-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.vorteil-card p {
    color: var(--text-light);
}

/* Zielgruppe Section */
.zielgruppe {
    background-color: var(--bg-color);
}

.zielgruppe-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.zielgruppe-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.zielgruppe-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.zielgruppe-card p {
    color: var(--text-light);
}

.zielgruppe-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.zielgruppe-note {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.7;
}

/* So funktioniert's Section */
.so-funktioniert {
    position: relative;
}

.steps {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 190px;
    margin: 0 auto var(--spacing-md);
}

.step-image {
    display: block;
    width: 100%;
    margin: 0;
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: none;
    background: none !important;
    background-color: transparent !important;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
}

/* Vergleich Section */
.vergleich {
    background-color: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.comparison-table td:first-child {
    font-weight: 500;
}

.checkmark {
    font-weight: 600;
    font-size: 1.25rem;
}

.checkmark.yes {
    color: #10b981;
}

.checkmark.no {
    color: #ef4444;
}

.comparison-table .checkmark.partial {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.pricing-free {
    border: 2px solid var(--primary-color);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.pricing-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
}

.pricing-note {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

.pricing-price {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 400;
}

.pricing-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: var(--spacing-lg) var(--spacing-sm);
    min-height: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

.footer-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-info {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-info p {
    margin-bottom: var(--spacing-xs);
}

.footer-info p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .btn-header {
        display: inline-block;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline {
        font-size: 1.25rem;
    }

    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .vorteile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step-image-wrapper {
        max-width: 165px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: -12px;
        left: -12px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zielgruppe-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    section:not(.hero) {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-headline {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .vorteile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vorteile-grid .vorteil-card:nth-child(4),
    .vorteile-grid .vorteil-card:nth-child(5) {
        grid-column: span 1;
    }

    .vorteile-grid .vorteil-card:nth-child(5) {
        grid-column: 2;
    }
}

/* Legal Pages Styles */
.impressum-section {
    padding: var(--spacing-xl) var(--spacing-sm);
    min-height: calc(100vh - 200px);
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.impressum-content h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.impressum-content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.impressum-content p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-light);
}

.impressum-content ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.impressum-content li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
}

.impressum-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.impressum-content a:hover {
    text-decoration: underline;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .step-image-wrapper {
        max-width: 140px;
        margin-bottom: var(--spacing-sm);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -10px;
        left: -10px;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
}