:root {
    --bg: #eef6fb;
    --bg-2: #f7fbfd;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --accent: #06b6d4;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(79, 70, 229, 0.18);
    --radius: 18px;
    --radius-lg: 28px;
    --max-w: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #e7f3fb 0%, #f4faff 30%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 100;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}

/* Lucide icon defaults */
[data-lucide],
.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(247, 251, 253, 0.72);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
    background: rgba(247, 251, 253, 0.92);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.logo-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: none;
    display: block;
}

.logo-text {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.footer-brand .logo-full {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn [data-lucide],
.btn .lucide {
    font-size: 1.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(79, 70, 229, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

/* Hero */
.hero {
    position: relative;
    padding: 100px 0 96px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-eyebrow-line {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.hero-eyebrow-sep {
    color: var(--border);
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.hero h1::after {
    content: ".";
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 500;
    margin: 22px 0 18px;
    color: var(--text);
    letter-spacing: -0.005em;
}

.hero-text {
    font-size: 1.075rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 0 36px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-brands {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px 32px;
}

.hero-brands-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.hero-brand [data-lucide],
.hero-brand .lucide {
    font-size: 1.05rem;
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.hero-brand:hover {
    color: var(--text);
}

.hero-brand:hover [data-lucide],
.hero-brand:hover .lucide {
    opacity: 1;
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(231, 243, 251, 0.5));
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    margin: 12px 0 14px;
    line-height: 1.15;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Two-col (Über uns) */
.two-col {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.two-col h2 {
    margin-top: 8px;
}

.two-col p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.pill-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.pill-list [data-lucide],
.pill-list .lucide {
    font-size: 1rem;
    color: var(--primary);
}

/* About visual */
.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    isolation: isolate;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.about-visual:hover img {
    transform: scale(1.06);
}

.about-visual-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
}

.about-visual-badge [data-lucide],
.about-visual-badge .lucide {
    font-size: 1.4rem;
    color: var(--primary);
}

.about-visual-badge strong {
    display: block;
    font-size: 0.95rem;
}

.about-visual-badge span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Stats row */
.stats-row {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 14px;
    display: inline-block;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.25);
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.card:hover .card-media img {
    transform: scale(1.08);
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35));
    pointer-events: none;
}

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.12));
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-muted);
    margin: 0 0 18px;
    flex: 1;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.card-link [data-lucide],
.card-link .lucide {
    font-size: 1rem;
}

.card-link:hover {
    gap: 10px;
}

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

.service {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.25);
}

.service h4 {
    margin: 0 0 8px;
    font-size: 1.075rem;
    letter-spacing: -0.005em;
}

.service p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Benefits */
.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.benefits li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.benefits li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefits .check {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.benefits strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.benefits span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.cta {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.18);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    margin: 14px 0 8px;
}

.cta p {
    color: var(--text-muted);
    margin: 0 0 24px;
    font-size: 1.05rem;
}

.cta-sub {
    margin-top: 18px;
    font-size: 0.9rem;
}

.cta-sub a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cta-sub a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 12px 0 0;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav h5 {
    margin: 0 0 14px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-nav a [data-lucide],
.footer-nav a .lucide {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero staffelung */
.hero-inner > .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner > .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-inner > .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-inner > .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-inner > .reveal:nth-child(5) { transition-delay: 0.45s; }
.hero-inner > .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Mobile */
@media (max-width: 960px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav a:last-child {
        border-bottom: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-visual {
        aspect-ratio: 16 / 10;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .section {
        padding: 70px 0;
    }
    .hero {
        padding: 72px 0 72px;
    }
    .hero-brands {
        gap: 16px 22px;
    }
    .cta {
        padding: 48px 24px;
    }
}

@media (max-width: 520px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
