/* === Premium Vergleichsportal Design ===
 * Inspiriert von: Stripe (Eleganz, Shadows), Vercel (Präzision), Finanzfluss (Struktur)
 * Font: Inter (Google Fonts) — clean, modern, professional
 */

/* === CSS Custom Properties === */
:root {
    /* Primary Palette */
    --color-bg: #ffffff;
    --color-surface: #fafafa;
    --color-heading: #0a0f1c;
    --color-text: #2d3548;
    --color-text-secondary: #5f6b7f;
    --color-text-muted: #8b95a8;
    --color-accent: #4361ee;
    --color-accent-hover: #3451d1;
    --color-accent-light: #eef1ff;
    --color-accent-subtle: #f5f7ff;

    /* Comparison Colors */
    --color-best: #0ea85e;
    --color-best-bg: #eafaf2;
    --color-good: #4361ee;
    --color-good-bg: #eef1ff;
    --color-avg: #f59e0b;
    --color-avg-bg: #fffbeb;
    --color-poor: #ef4444;
    --color-poor-bg: #fef2f2;

    /* Shadows — Stripe-inspired blue-tinted */
    --shadow-border: 0 0 0 1px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-elevated: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.08);
    --shadow-modal: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 32px rgba(15, 23, 42, 0.12), 0 24px 48px -16px rgba(15, 23, 42, 0.16);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--space-md); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === Navigation === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--color-heading); }

.nav-cta {
    background: var(--color-accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: var(--space-lg);
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: var(--shadow-elevated);
    }
}

/* === Hero Section === */
.hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at 50% 0%, rgba(67, 97, 238, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(67, 97, 238, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(67, 97, 238, 0.15);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.25), 0 0 0 1px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.35), 0 0 0 1px rgba(67, 97, 238, 0.3);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--color-heading);
    box-shadow: var(--shadow-border);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
    color: var(--color-heading);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* === Section Styles === */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

/* === Trust Bar === */
.trust-bar {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.trust-icon {
    font-size: 1.25rem;
}

/* === Comparison Table === */
.comparison-section {
    background: var(--color-surface);
    padding: var(--space-3xl) 0;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-lg));
    padding: 0 var(--space-lg);
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.comparison-table thead th {
    background: var(--color-heading);
    color: white;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.comparison-table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
    min-width: 200px;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table thead th.highlight-col {
    background: var(--color-accent);
    position: relative;
}

.comparison-table thead th.highlight-col::after {
    content: '★ Empfehlung';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-best);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tbody td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 0.9375rem;
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(67, 97, 238, 0.02);
}

.comparison-table .feature-name {
    font-weight: 600;
    color: var(--color-heading);
}

.comparison-table .feature-info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

/* Checkmarks & crosses */
.check { color: var(--color-best); font-weight: 700; }
.cross { color: var(--color-text-muted); }
.partial { color: var(--color-avg); font-weight: 600; }

/* Star ratings */
.stars { color: var(--color-avg); letter-spacing: 2px; }
.stars-filled { color: var(--color-avg); }

/* Price cell */
.price-cell {
    font-weight: 700;
    color: var(--color-heading);
    font-size: 1.125rem;
}

.price-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* CTA in table */
.table-cta {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.table-cta:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-1px);
}

.table-cta-best {
    background: var(--color-best);
}

.table-cta-best:hover {
    background: #0b8a4a;
}

/* === Feature Cards Grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* === Multi-Step Form === */
.form-section {
    background: var(--color-heading);
    padding: var(--space-3xl) 0;
    color: white;
}

.form-section .section-header h2 { color: white; }
.form-section .section-header p { color: rgba(255, 255, 255, 0.7); }
.form-section .section-label { color: rgba(255, 255, 255, 0.8); }

.form-container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-modal);
    color: var(--color-text);
}

.form-steps-indicator {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.form-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.12);
    transition: all var(--transition-normal);
}

.form-step-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: var(--radius-full);
}

.form-step-dot.done {
    background: var(--color-best);
}

.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.form-step-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-heading);
    background: white;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-radio-group {
    display: grid;
    gap: var(--space-sm);
}

.form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-radio:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.form-radio.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08);
}

.form-radio-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-heading);
}

.form-radio-desc {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.form-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.form-success {
    text-align: center;
    padding: var(--space-xl) 0;
    animation: fadeSlideIn 0.5s ease;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-best-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-lg);
}

.form-success h3 {
    color: var(--color-best);
    margin-bottom: var(--space-sm);
}

/* === Rating Badge === */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-best-bg);
    color: var(--color-best);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(14, 168, 94, 0.2);
}

.rating-badge.gold {
    background: var(--color-avg-bg);
    color: var(--color-avg);
    border-color: rgba(245, 158, 11, 0.2);
}

/* === Testimonial / Social Proof === */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-border);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-heading);
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* === FAQ Accordion === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-lg) 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-accent); }

.faq-arrow {
    transition: transform var(--transition-normal);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* === Footer === */
.footer {
    background: var(--color-heading);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: var(--space-md);
}

.footer h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: var(--space-sm); }

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.8125rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.footer-bottom-links a:hover { color: white; }

/* === Responsive === */
@media (max-width: 768px) {
    .hero { padding: var(--space-2xl) 0 var(--space-xl); }
    .section { padding: var(--space-2xl) 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .comparison-table { min-width: 650px; font-size: 0.8125rem; }
    .comparison-table thead th,
    .comparison-table tbody td { padding: var(--space-sm) var(--space-md); }
    .form-container { padding: var(--space-lg); }
    .cards-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .trust-bar-inner { gap: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .form-buttons { flex-direction: column; }
    .form-buttons .btn { width: 100%; }
}

/* === Utility === */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-best { color: var(--color-best); }
.text-muted { color: var(--color-text-muted); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
