*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #000000;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: #d2d2d7;
    --radius: 16px;
    --max-width: 980px;
    --max-width-wide: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

nav .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav .logo span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--text-primary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    border-radius: 1px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: var(--bg-primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, #0071e3, #40c8e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.hero .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-block;
    color: var(--accent);
    padding: 0.75rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--accent-hover);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-dark .service-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #0071e3, #40c8e0);
    color: #fff;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-primary);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 auto 1.25rem;
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-dark);
    color: #fff;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--text-primary);
}

.cta-section .btn-primary:hover {
    background: #f5f5f7;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* Legal Pages */
.legal-page {
    padding: 7rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.legal-page h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Impressum Section */
.impressum-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.impressum-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.impressum-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.impressum-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
}

.impressum-card h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.impressum-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero .cta-group {
        flex-direction: column;
        align-items: center;
    }
}
