/* ==========================================================================
   byteLoop Website
   Farben aus dem Logo: Blau #0F4BB4, Mittelblau #1C92E6, Cyan #40D4F5, Navy #0A0C4E
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --bg: #050a1c;
    --bg-tint: #081028;
    --surface: #0c1735;
    --surface-2: #11204a;
    --line: rgb(255 255 255 / 0.09);
    --line-strong: rgb(255 255 255 / 0.18);
    --text: #eaf0ff;
    --muted: #97a6c8;
    --blue: #0f4bb4;
    --blue-mid: #1c92e6;
    --cyan: #40d4f5;
    --cyan-hot: #8ae8ff;
    --ink: #050a1c;
    --ok: #5fe3a1;
    --warn: #ffc857;
    --danger: #ff8a7a;

    --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;

    --gutter: clamp(20px, 5vw, 48px);
    --radius: 18px;
    --radius-sm: 10px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Wie im Logo: leichte Schrift, das Entscheidende fett. */
h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.6vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }

h1 strong, h2 strong { font-weight: 800; }
h1:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--cyan-hot);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--cyan); color: var(--ink); }

.container {
    width: min(1200px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.accent { color: var(--cyan); }
.dim { color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2.5px;
    background: currentColor;
    transform: rotate(45deg);
}

.lead {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--muted);
    max-width: 58ch;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.skip-link:focus { top: 16px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn .icon { transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

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

.btn-primary:hover {
    background: var(--cyan-hot);
    box-shadow: 0 10px 40px -8px rgb(64 212 245 / 0.55);
}

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-hot); }

.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #000; }

.btn-outline-dark { border-color: rgb(5 10 28 / 0.4); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); }

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

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

.text-link .icon { transition: transform 0.2s; }
.text-link:hover { color: var(--cyan-hot); }
.text-link:hover .icon { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s, border-color 0.25s;
}

.site-header.is-scrolled,
.site-header:has(.nav-toggle:checked) {
    background: rgb(5 10 28 / 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand { flex: none; }
.brand img { width: auto; height: 34px; }

.site-nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.site-nav a {
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: var(--muted);
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--cyan); }

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-burger { display: none; }

@media (max-width: 1080px) {
    .header-inner { gap: 12px; }
    .brand img { height: 28px; }
    .header-login { margin-left: auto; }

    .nav-burger {
        display: grid;
        place-content: center;
        gap: 7px;
        order: 3;
        width: 44px;
        height: 44px;
        border: 1.5px solid var(--line-strong);
        border-radius: 50%;
        cursor: pointer;
    }

    .nav-burger span {
        width: 18px;
        height: 2px;
        background: var(--text);
        transition: transform 0.25s;
    }

    .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--cyan-hot); outline-offset: 3px; }
    .nav-toggle:checked + .nav-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        inset: var(--header-h) 0 auto 0;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .nav-toggle:checked ~ .site-nav { display: flex; }

    .site-nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 1.25rem;
        color: var(--text);
    }
}

@media (max-width: 420px) {
    .header-login span { display: none; }
    .header-login { padding: 0 12px; }
}

/* Rauten aus dem Logo als Hintergrundmotiv ------------------------------- */

.diamonds { pointer-events: none; }
.diamonds .d-top, .diamonds .d-right { color: var(--cyan); }
.diamonds .d-bottom, .diamonds .d-left { color: var(--blue-mid); }

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(40px, 8vw, 96px)) 0 clamp(64px, 9vw, 120px);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 55% at 84% 30%, rgb(64 212 245 / 0.2), transparent 70%),
        radial-gradient(50% 60% at 8% 0%, rgb(15 75 180 / 0.55), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero-copy h1 { text-wrap: initial; }
.hero-copy .lead { margin: 28px 0 36px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 32px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--cyan); }

.hero-visual { position: relative; }

.hero-diamonds {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 128%;
    max-width: none;
    opacity: 0.3;
    transform: translate(-46%, -50%);
}

.hero-visual .mock {
    position: relative;
    transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
    transform-origin: left center;
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual .mock { transform: none; }
}

/* Interface-Monitor (Beispielansicht) ------------------------------------ */

.mock {
    background: linear-gradient(180deg, #101e45, #0a142f);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8), 0 0 80px -30px rgb(64 212 245 / 0.4);
    font-size: 0.8125rem;
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.mock-url {
    padding: 3px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.06);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.mock-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
}

.mock-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}

.mock-head strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.mock-health {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgb(95 227 161 / 0.12);
    color: var(--ok);
    font-weight: 700;
    white-space: nowrap;
}

.mock-health i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: 0.35; } }

.mock-runs { display: grid; gap: 6px; padding: 0 18px 16px; }

.mock-run {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgb(255 255 255 / 0.03);
}

.mock-run time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.mock-run b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-run small { display: block; font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status {
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status.ok { background: rgb(95 227 161 / 0.12); color: var(--ok); }
.status.run { background: rgb(64 212 245 / 0.14); color: var(--cyan); }
.status.warn { background: rgb(255 200 87 / 0.14); color: var(--warn); }

.mock-run.is-warn { border-color: rgb(255 200 87 / 0.35); }

.mock-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
}

.mock-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mock-foot .icon { color: var(--cyan); }

/* Laufband --------------------------------------------------------------- */

.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-tint);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee span {
    display: inline-flex;
    align-items: center;
    padding: 18px 0;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.marquee span::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-inline: 30px;
    border-radius: 2px;
    background: var(--cyan);
    transform: rotate(45deg);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* Sektionen -------------------------------------------------------------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-flush-top { padding-top: 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }

.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin: 20px 0 0; }
.section-more { margin: 40px 0 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.split-top { align-items: start; }
.split h2 { margin-bottom: 24px; }
.split .check-list { margin: 28px 0 36px; }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
}

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon { margin-top: 0.2em; color: var(--cyan); }

/* Karten & Bento --------------------------------------------------------- */

.card {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s, background-color 0.25s;
}

.card:hover { border-color: rgb(64 212 245 / 0.45); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card p + p { margin-top: 0.8em; }
.card .text-link { margin-top: 20px; }

.card-icon {
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgb(64 212 245 / 0.12);
    color: var(--cyan);
    font-size: 1.2rem;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bento-wide { grid-column: span 2; }
.bento-wide.is-a { background: linear-gradient(135deg, #12338a, var(--surface) 70%); }
.bento-wide.is-b { background: linear-gradient(315deg, #12338a, var(--surface) 70%); }

@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: auto; }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 4vw, 44px);
}

.offer.is-featured {
    border-color: rgb(64 212 245 / 0.5);
    background: linear-gradient(180deg, #12338a, var(--surface) 65%);
    box-shadow: 0 30px 90px -40px rgb(64 212 245 / 0.6);
}

.offer h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.offer .check-list { margin-top: 24px; font-size: 1rem; }
.offer .text-link { margin-top: auto; padding-top: 28px; }

.tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 4px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

@media (max-width: 820px) {
    .offer-grid { grid-template-columns: 1fr; }
}

/* Kennzahlen ------------------------------------------------------------- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
}

.stat { padding-left: 24px; border-left: 2px solid var(--cyan); }

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--cyan);
}

.stat span { display: block; margin-top: 14px; max-width: 26ch; color: var(--muted); }

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

/* Datenfluss-Schaubild --------------------------------------------------- */

.flow {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(60% 70% at 50% 50%, rgb(64 212 245 / 0.16), transparent 70%),
        repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
        var(--surface);
}

.flow-col { display: grid; gap: 12px; }

.flow-col li {
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgb(5 10 28 / 0.7);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
}

.flow-col li small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; color: var(--muted); }

.flow-col li::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(20px, 4vw, 44px);
    height: 2px;
    background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
}

.flow-in li::after { left: 100%; }
.flow-out li::after { right: 100%; }

.flow-hub {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 20px 16px;
    border: 1px solid rgb(64 212 245 / 0.5);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 0 0 60px -10px rgb(64 212 245 / 0.5);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: var(--cyan);
}

.flow-hub img { width: clamp(52px, 8vw, 84px); height: auto; }

@media (max-width: 520px) {
    .flow { grid-template-columns: 1fr; }
    .flow-col li::after { display: none; }
    .flow-hub { justify-self: center; }
}

/* Schritte --------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
}

.steps li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.steps h3 { margin: 12px 0 10px; }
.steps p { margin: 0; color: var(--muted); }

.step-no {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

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

/* Hinweis ---------------------------------------------------------------- */

.note {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue-mid);
    border-radius: var(--radius-sm);
    background: var(--bg-tint);
    color: var(--muted);
    font-size: 0.9375rem;
}

.note h2, .note h3 {
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.note p { max-width: 90ch; }
.note p:last-child { margin: 0; }
.note a { color: var(--cyan); }

/* CTA -------------------------------------------------------------------- */

.cta-band { padding: clamp(48px, 7vw, 96px) 0; }

.cta-inner {
    position: relative;
    padding: clamp(40px, 7vw, 88px);
    border-radius: calc(var(--radius) * 1.5);
    background: linear-gradient(120deg, var(--cyan-hot), var(--cyan) 45%, var(--blue-mid));
    color: var(--ink);
    overflow: hidden;
}

.cta-inner h2 { position: relative; max-width: 16ch; font-size: clamp(2.25rem, 5.2vw, 4rem); }
.cta-inner p { position: relative; max-width: 46ch; margin: 20px 0 32px; font-size: 1.1875rem; font-weight: 500; }
.cta-inner .btn-row { position: relative; }

.cta-diamonds {
    position: absolute;
    right: -6%;
    top: 50%;
    width: 52%;
    max-width: none;
    transform: translateY(-50%);
    opacity: 0.16;
}

.cta-diamonds * { color: var(--ink); }

/* Unterseiten ------------------------------------------------------------ */

.page-hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(48px, 9vw, 112px)) 0 clamp(48px, 7vw, 88px);
    background: radial-gradient(60% 90% at 85% 0%, rgb(15 75 180 / 0.6), transparent 70%);
    overflow: hidden;
}

.page-hero .container { position: relative; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.8vw, 4.5rem); }
.page-hero .lead { margin: 28px 0 0; }
.page-hero .btn-row { margin-top: 36px; }

.page-hero-diamonds {
    position: absolute;
    right: -4%;
    top: 4%;
    width: 44%;
    max-width: none;
    opacity: 0.16;
}

/* Leistungen im Detail */

.service-list { display: grid; gap: 16px; }

.service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: start;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(28px, 4vw, 48px);
}

.service-no { font-family: var(--font-mono); font-size: 0.9375rem; letter-spacing: 0.1em; color: var(--cyan); }
.service h2 { margin-bottom: 18px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.service p { max-width: 62ch; }

.service-offer {
    padding: 20px 22px;
    border: 1px dashed rgb(64 212 245 / 0.45);
    border-radius: var(--radius-sm);
    background: rgb(64 212 245 / 0.06);
}

.service-offer strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}

.service-offer p { color: var(--text); }

@media (max-width: 900px) {
    .service { grid-template-columns: 1fr; }
}

/* News */

.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.article-card { display: flex; flex-direction: column; text-decoration: none; }
.article-card h3 { margin-bottom: 12px; font-size: 1.4rem; letter-spacing: -0.025em; }
.article-card p { flex: 1; }
.article-card .text-link { margin-top: 24px; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 18px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-meta .cat { color: var(--cyan); }
.article-card .article-meta { flex-direction: column; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.filter-row a {
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.filter-row a:hover { border-color: var(--cyan); color: var(--text); }
.filter-row a.is-active { border-color: var(--cyan); background: var(--cyan); color: var(--ink); }

.article-head { padding-top: clamp(40px, 7vw, 88px); }
.article-head h1 { max-width: 24ch; margin-bottom: 8px; font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; }
.article-head .text-link { margin-bottom: 36px; }
.article-head .text-link .icon { transform: rotate(180deg); }
.article-head .text-link:hover .icon { transform: rotate(180deg) translateX(4px); }

.article-body { max-width: 760px; padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 96px); font-size: 1.125rem; line-height: 1.7; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 2em 0 0.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.article-body h3 { margin: 1.8em 0 0.5em; font-size: 1.3rem; }
.article-body h4 { margin: 1.6em 0 0.4em; font-size: 1.0625rem; font-weight: 800; }
.article-body p { margin: 0 0 1.1em; }
.article-body a { color: var(--cyan); }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body ul { list-style: none; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5em; }
.article-body li > ul, .article-body li > ol { margin: 0.5em 0 0; }
.article-body ol > li::marker { color: var(--cyan); font-weight: 700; }

.article-body ul > li { position: relative; }

.article-body ul > li::before {
    content: "";
    position: absolute;
    left: -1.25em;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--cyan);
    transform: rotate(45deg);
}

.article-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line-strong); }
.article-body blockquote { margin: 0 0 1.2em; padding-left: 20px; border-left: 3px solid var(--cyan); color: var(--muted); }
.article-body code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.9em; }

.article-body table {
    display: block;
    width: 100%;
    margin: 0 0 1.4em;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-x: auto;
}

.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { border-bottom-color: var(--cyan); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }

/* Kontakt */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 56px);
}

.contact-form-wrap {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.contact-form-wrap > h2 { margin-bottom: 28px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contact-aside { display: grid; gap: 16px; }

.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }

.field label { font-size: 0.9375rem; font-weight: 700; }

.optional { margin-left: 6px; font-weight: 500; color: var(--muted); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgb(64 212 245 / 0.18);
}

.field .invalid { border-color: var(--danger) !important; }
.validation-message { color: var(--danger); font-size: 0.875rem; }

.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-check { grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.field-check input { appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--bg); cursor: pointer; }
.field-check input:checked { border-color: var(--cyan); background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23050a1c%27 stroke-width=%273.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12.5 4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / 16px no-repeat; }
.field-check label { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.field-check label a { color: var(--cyan); }
.field-check .validation-message { grid-column: 2; }

.form .btn { justify-self: start; }

.form-error {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
}

.form-success h2 { margin-bottom: 14px; }
.form-success p { color: var(--muted); margin-bottom: 28px; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

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

.route-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.route-grid address { margin: 24px 0; font-style: normal; font-size: 1.1875rem; }
.route-list { display: grid; gap: 16px; }
.route-list .card { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; }
.route-list .card-icon { margin: 0; grid-row: span 2; }

@media (max-width: 820px) {
    .route-grid { grid-template-columns: 1fr; }
}

/* Rechtliches & 404 */

.legal { min-height: 60vh; }
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 28px; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.prose h2 { margin: 40px 0 14px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.prose address { margin-bottom: 28px; font-style: normal; font-size: 1.125rem; }
.prose p { max-width: 68ch; }
.prose a { color: var(--cyan); }
.prose a.btn-primary { color: var(--ink); }
.prose .btn { margin-top: 16px; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose ul li::marker { color: var(--cyan); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
    margin-top: clamp(32px, 5vw, 64px);
    padding: clamp(48px, 6vw, 80px) 0 32px;
    border-top: 1px solid var(--line);
    background: #030614;
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-brand img { width: auto; height: 34px; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; color: var(--muted); }

.site-footer nav { display: grid; align-content: start; gap: 10px; }

.site-footer h2 {
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--cyan); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8125rem;
}

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Einblenden beim Scrollen ----------------------------------------------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

.bento > :nth-child(2), .feature-grid > :nth-child(2), .steps > :nth-child(2), .offer-grid > :nth-child(2), .article-list > :nth-child(2) { transition-delay: 0.08s; }
.bento > :nth-child(3), .feature-grid > :nth-child(3), .steps > :nth-child(3), .article-list > :nth-child(3) { transition-delay: 0.16s; }
.bento > :nth-child(4), .feature-grid > :nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track, .mock-health i { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .btn .icon, .text-link .icon { transition: none; }
}
