/* ==========================================================================
   MAVA Compliance — Verdigris
   Light sage-white · Deep forest green · Bright emerald accent
   Inter · WCAG AAA throughout
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-paper: #F5F7F6;
    /* Light sage-white */
    --bg-surface: #ECF0EE;
    /* Slightly deeper surface */
    --bg-card: #FFFFFF;
    --bg-dark: #0C2118;
    /* Very deep forest green */
    --bg-dark-mid: #122A20;
    --bg-dark-2: #183328;

    /* Primary greens — all AAA on light backgrounds */
    --teal: #065F46;
    /* Sharper Deep Teal: WCAG AAA */
    --teal-lt: #059669;
    /* Vibrant Emerald: WCAG AA/AAA */
    --teal_dim: rgba(6, 95, 70, 0.08);
    /* Fixed underscore to dash if needed, but keeping project style */
    --teal-glow: rgba(6, 95, 70, 0.20);

    /* Bright accent — for dark backgrounds only */
    --teal-bright: #34D399;
    /* 8.0:1 on --bg-dark ✓ AAA */
    --teal-bright-dim: rgba(52, 211, 153, 0.12);

    /* Text — all AAA on respective backgrounds */
    --ink: #061A14;
    /* Deep Forest Black */
    --text-body: #1F2937;
    /* Slate 800 for better readability */
    --text-muted: #4B5563;
    /* Slate 600 */
    --text-on-dark: #ECFDF5;
    /* Emerald 50 */
    --text-on-dark-2: #A7F3D0;
    /* Emerald 200 */

    /* Borders */
    --border-warm: rgba(6, 26, 20, 0.06);
    --border-med: rgba(6, 26, 20, 0.12);
    --border-strong: rgba(6, 26, 20, 0.20);
    --border-dark: rgba(236, 253, 245, 0.08);

    /* Font — Inter/Outfit (locally hosted, DSGVO-konform) */
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;

    /* Motion */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.18s ease;
    --transition-normal: 0.32s var(--ease-out);
    --transition-slow: 0.65s var(--ease-out);

    /* Shape */
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 31, 22, 0.06);
    --shadow-md: 0 6px 20px rgba(10, 31, 22, 0.10);
    --shadow-lg: 0 16px 40px rgba(10, 31, 22, 0.14);
    --shadow-xl: 0 28px 64px rgba(10, 31, 22, 0.20);

    /* Legacy aliases — for legal page compatibility */
    --color-primary: var(--teal);
    --color-accent: var(--teal-lt);
    --color-border: var(--border-med);
    --color-text-main: var(--ink);
    --color-text-muted: var(--text-muted);
    --color-bg-light: var(--bg-surface);
    --border-radius: var(--radius-md);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-paper);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-lt);
    border-radius: 5px;
    border: 3px solid var(--bg-paper);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--teal-bright);
    z-index: 2000;
    transition: width 0.1s linear;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-paper);
    background-image:
        radial-gradient(at 0% 0%, rgba(52, 211, 153, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(6, 95, 70, 0.02) 0, transparent 50%);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--teal);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 700;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.section {
    padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-xl) 0;
    }
}

.bg-light {
    background-color: var(--bg-surface);
}

.bg-white {
    background-color: var(--bg-card);
}

.bg-primary {
    background-color: var(--bg-dark);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-on-dark);
}

/* ==========================================================================
   Grid
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Sweep shimmer */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn:hover::after {
    left: 140%;
}

.btn-primary {
    background-color: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--teal-lt);
    border-color: var(--teal-lt);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--teal-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-white {
    background-color: #fff;
    color: var(--ink);
    border-color: #fff;
    font-weight: 700;
}

.btn-white:hover,
.btn-white:focus {
    background-color: var(--bg-paper);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Highlight Card (Premium Dark Gradient) */
.highlight-card {
    background: linear-gradient(-45deg, #022C22, #043D30, #064E3B, #022C22);
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite;
    color: #fff;
    border: 1px solid rgba(52, 211, 153, 0.2);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-slow);
}

.highlight-card:hover {
    transform: scale(1.07) translateY(-6px);
    box-shadow: 0 25px 60px rgba(6, 95, 70, 0.5);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-on-dark);
    border-color: rgba(216, 237, 231, 0.35);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
    border-color: rgba(216, 237, 231, 0.65);
    background-color: rgba(216, 237, 231, 0.08);
    color: var(--text-on-dark);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-warm);
    transition: transform var(--transition-normal), box-shadow var(--transition-slow);
    will-change: transform;
    transform-style: preserve-3d;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border-med);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--ink);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: rgba(245, 247, 246, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-warm);
    padding: 1rem 0;
    transition: padding var(--transition-fast), box-shadow var(--transition-normal);
}

.site-header.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo a:hover {
    color: var(--teal);
}

.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .nav-links a {
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.875rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        position: relative;
        transition: color var(--transition-fast);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--teal-bright);
        transition: width var(--transition-normal);
    }

    .nav-links a:hover {
        color: var(--ink);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-btn {
        font-size: 0.8125rem;
        padding: 0.6rem 1.1rem;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    padding: var(--space-sm);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-warm);
}

.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text-body);
    font-weight: 600;
    border-bottom: 1px solid var(--border-warm);
    transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--teal);
}

.mobile-nav-btn {
    margin-top: 1rem;
    width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background-color: var(--bg-dark);
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 9rem 0 6rem;
    }
}

/* Grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}

/* Emerald glow */
.hero::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero:hover::after {
    opacity: 1;
}

/* Scan line */
.hero-scanline {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
    z-index: 3;
    animation: scanline-sweep 2.5s var(--ease-out) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes scanline-sweep {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .hero-container {
        padding: 0 var(--space-md);
    }
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--teal-bright);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) forwards;
    animation-delay: 0.2s;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--teal-bright);
    flex-shrink: 0;
}

.hero-headline {
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.15;
    /* Increased for descender space */
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Staggered reveal */
.reveal-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
    /* Space for descenders (g, p) */
    margin-bottom: -0.15em;
    /* Offset padding to maintain spacing */
}

.reveal-line-inner {
    display: block;
    opacity: 0;
    transform: translateY(48px);
    animation: revealLineAnim 0.75s var(--ease-out) forwards;
}

.reveal-line:nth-child(1) .reveal-line-inner {
    animation-delay: 0.35s;
}

.reveal-line:nth-child(2) .reveal-line-inner {
    animation-delay: 0.48s;
}

.reveal-line:nth-child(3) .reveal-line-inner {
    animation-delay: 0.61s;
}

@keyframes revealLineAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shimmer-text {
    display: inline-block;
    font-weight: 800;
    color: var(--teal-bright);
    /* Fallback */
    background: linear-gradient(120deg,
            var(--teal-bright) 20%,
            #ffffff 50%,
            var(--teal-bright) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.accent-word {
    color: var(--teal-bright);
}

.hero-subheadline {
    color: var(--text-on-dark);
    font-size: 1.0625rem;
    max-width: 580px;
    line-height: 1.78;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) forwards;
    animation-delay: 0.8s;
}

@media (min-width: 768px) {
    .hero-subheadline {
        font-size: 1.1875rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) forwards;
    animation-delay: 0.95s;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-pattern {
    display: none;
}

/* ==========================================================================
   Social Proof — Marquee
   ========================================================================== */
.social-proof {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-warm);
    border-top: 1px solid var(--border-warm);
    padding: 1.1rem 0;
    overflow: hidden;
}

.marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    align-items: center;
    animation: marquee-scroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.proof-item a {
    color: inherit;
}

.proof-item a:hover {
    color: var(--text-body);
}

.proof-icon {
    color: var(--teal-lt);
    flex-shrink: 0;
    opacity: 0.8;
}

.proof-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-med);
    flex-shrink: 0;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
    background-size: 48px 48px;
}

.stats-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
}

.stat-item {
    padding: 0 2rem;
}

@media (min-width: 640px) {
    .stat-item:not(:last-child) {
        border-right: 1px solid var(--border-dark);
    }
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--teal-bright);
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.stat-number.stat-date {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-on-dark-2);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* ==========================================================================
   Section Intro
   ========================================================================== */
.section-intro {
    max-width: 760px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.section-intro p {
    color: var(--text-body);
    line-height: 1.75;
}

.section-intro p em {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: normal;
}

.section-intro p strong {
    color: var(--ink);
    font-weight: 700;
}

/* Section h2 teal underline */
.section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--teal-bright);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.text-center h2::after,
h2.text-center::after {
    margin: 0.5rem auto 0;
}

/* ==========================================================================
   Problem Cards
   ========================================================================== */
.problem-card {
    background-color: rgba(255, 255, 255, 0.85);
    /* Glass base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-warm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-slow), border-color var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal-lt);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--teal-bright);
    transition: height var(--transition-slow);
}

.problem-card:hover::before {
    height: 100%;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.problem-card p {
    color: var(--text-body);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--teal-bright-dim);
    color: var(--teal-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(52, 211, 153, 0.2);
    transition: background-color var(--transition-normal), transform var(--transition-normal);
    flex-shrink: 0;
}

.problem-card:hover .card-icon {
    background-color: var(--teal);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-grid {
    margin-top: var(--space-md);
    position: relative;
}

@media (min-width: 768px) {
    .process-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid::before {
        content: '';
        position: absolute;
        top: 26px;
        left: calc(16.67% + 1rem);
        right: calc(16.67% + 1rem);
        height: 1px;
        background: linear-gradient(90deg, var(--border-med), var(--teal-lt), var(--border-med));
    }
}

.process-step {
    text-align: center;
    padding: var(--space-md);
    position: relative;
    z-index: 1;
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--border-med);
    background: var(--bg-card);
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    transition: background var(--transition-normal), border-color var(--transition-normal),
        color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.process-step:hover .process-number {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 16px var(--teal-glow);
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.process-step p {
    color: var(--text-body);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--border-warm);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-slow), border-color var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--teal);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.pricing-note {
    margin: 0 0 1rem !important;
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    font-family: var(--font-mono) !important;
}

.price-suffix {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.9375rem;
    color: var(--text-body);
}

.pricing-features svg {
    color: var(--teal-lt);
    flex-shrink: 0;
    margin-top: 3px;
}

.highlight-card .pricing-title {
    color: #fff;
    margin-bottom: 0.5rem;
}

.highlight-card .pricing-price {
    color: var(--teal-bright);
    /* #34D399 on #064E3B is > 6:1 - PASS */
    font-size: 2.25rem;
}

.highlight-card .pricing-note {
    color: #fff !important;
    opacity: 0.8;
}

.highlight-card .pricing-features li {
    color: #fff;
    opacity: 0.95;
}

.highlight-card .pricing-features svg {
    color: var(--teal-bright);
}

.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-lt);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .highlight-card {
        transform: scale(1.04);
        z-index: 10;
    }

    .highlight-card:hover {
        transform: scale(1.04) translateY(-6px);
    }
}

.pricing-btn {
    width: 100%;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        gap: var(--space-xl);
    }
}

.about-image {
    flex-shrink: 0;
}

.about-avatar {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center 25%;
    border: 1px solid rgba(52, 211, 153, 0.25);
    box-shadow: var(--shadow-lg);
    display: block;
}

@media (min-width: 768px) {
    .about-avatar {
        width: 240px;
        height: 240px;
    }
}

.about-content {
    flex-grow: 1;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-body);
    line-height: 1.78;
}

.bg-light h2,
.bg-white h2 {
    color: var(--ink);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container {
    max-width: 740px;
    margin: 2rem auto;
}

.faq-item {
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-warm) !important;
}

.faq-item summary {
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--ink) !important;
    padding: 1.3rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--teal-lt);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    color: var(--teal) !important;
}

.faq-item p {
    padding-bottom: 1.3rem;
    color: var(--text-body) !important;
    line-height: 1.75;
    font-size: 0.9375rem;
    margin-top: 0 !important;
}

.faq-item p strong {
    color: var(--ink);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-header {
    margin-bottom: var(--space-lg);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
}

.contact-header .subtitle a,
.contact-header p a {
    color: var(--teal) !important;
    font-weight: 700;
}

.contact-header .subtitle a:hover,
.contact-header p a:hover {
    color: var(--ink) !important;
}

.contact-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.submit-btn {
    width: 100%;
}

@media (min-width: 576px) {
    .submit-btn {
        width: auto;
    }
}

.info-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.info-card h3 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-body);
    font-weight: 600;
    word-break: break-all;
    transition: color var(--transition-fast);
}

.contact-link svg {
    color: var(--teal-lt);
    flex-shrink: 0;
}

.contact-link:hover {
    color: var(--teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark) !important;
    border-top: 1px solid rgba(52, 211, 153, 0.12);
    padding: var(--space-md) 0;
    color: var(--text-on-dark-2) !important;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-left {
    font-size: 0.9rem;
    color: var(--text-on-dark-2);
}

.footer-left strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
}

.text-small {
    font-size: 0.8125rem;
    color: var(--text-on-dark-2);
    opacity: 0.7;
}

.site-footer a {
    color: var(--text-on-dark-2) !important;
}

.site-footer a:hover {
    color: var(--text-on-dark) !important;
}

/* ==========================================================================
   Scroll Reveal
   ==========================================================================*/
/* Scroll reveal base */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-reveal>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.is-visible.stagger-reveal>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.is-visible.stagger-reveal>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.is-visible.stagger-reveal>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.is-visible.stagger-reveal>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.is-visible.stagger-reveal>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.is-visible .problem-card:nth-child(1),
.is-visible .process-step:nth-child(1),
.is-visible .pricing-card:nth-child(1) {
    transition-delay: 0.05s;
}

.is-visible .problem-card:nth-child(2),
.is-visible .process-step:nth-child(2),
.is-visible .pricing-card:nth-child(2) {
    transition-delay: 0.15s;
}

.is-visible .problem-card:nth-child(3),
.is-visible .process-step:nth-child(3),
.is-visible .pricing-card:nth-child(3) {
    transition-delay: 0.25s;
}

.scroll-reveal:not(.is-visible) .problem-card,
.scroll-reveal:not(.is-visible) .process-step,
.scroll-reveal:not(.is-visible) .pricing-card {
    opacity: 0;
    transform: translateY(24px);
}

.problem-card,
.process-step,
.pricing-card {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
        box-shadow var(--transition-slow), border-color var(--transition-normal);
}

.is-visible .problem-card,
.is-visible .process-step,
.is-visible .pricing-card {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Legal Pages — Impressum & Datenschutz
   ========================================================================== */
.legal-hero {
    background-color: var(--bg-dark);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
    background-size: 48px 48px;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-hero p {
    color: var(--text-on-dark-2);
    margin: 0;
    font-size: 0.9375rem;
}

.legal-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal-bright);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--teal-bright);
    flex-shrink: 0;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1rem 5rem;
}

@media (min-width: 768px) {
    .legal-content {
        padding: 4rem 2rem 6rem;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color var(--transition-fast), gap var(--transition-normal);
}

.back-link:hover {
    color: var(--ink);
    gap: 0.75rem;
}

.legal-block {
    margin-bottom: 0;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-warm);
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-lt);
    margin-bottom: 0.75rem;
    font-style: normal;
}

/* Override global h2 for legal pages */
.legal-content h2 {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.legal-content h2::after {
    display: none;
}

.legal-block p,
.legal-block address {
    font-style: normal;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-block a {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-color: rgba(10, 74, 54, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.legal-block a:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
}

.disclaimer-box {
    background-color: var(--bg-surface);
    border-left: 3px solid var(--teal-lt);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 0.5rem;
}

.disclaimer-box p {
    margin: 0 !important;
    color: var(--text-body) !important;
    font-size: 0.9rem !important;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal,
    .problem-card,
    .process-step,
    .pricing-card,
    .reveal-line-inner,
    .hero-eyebrow,
    .hero-subheadline,
    .hero-buttons {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .marquee-track {
        animation: none !important;
    }

    .highlight-card {
        transform: none !important;
    }
}