/* ===== Lokal gehostete Schriften (kein Aufruf an Google-Server, DSGVO-konform) ===== */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/css/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/css/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/css/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/css/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* ===== Tokens ===== */
:root {
    --bg: #060912;
    --bg-2: #0b1222;
    --panel: rgba(16, 26, 46, 0.62);
    --line: rgba(80, 220, 255, 0.16);
    --line-strong: rgba(80, 220, 255, 0.45);
    --cyan: #4de8ff;
    --indigo: #7b7bff;
    --text: #d5e0f2;
    --muted: #8a9dbb;
    --white: #ffffff;
    --font-heading: 'Space Grotesk', 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --grid: linear-gradient(rgba(77, 232, 255, .07) 1px, transparent 1px),
            linear-gradient(90deg, rgba(77, 232, 255, .07) 1px, transparent 1px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 60% 40% at 12% -5%, rgba(77, 232, 255, .13), transparent 70%),
        radial-gradient(ellipse 50% 40% at 95% 8%, rgba(123, 123, 255, .14), transparent 70%);
    word-wrap: break-word;
}

@media (min-width: 769px) {
    body { background-attachment: fixed; }
}

.container { width: 90%; max-width: 1200px; margin: auto; padding: 20px 0; }

img { max-width: 100%; height: auto; display: block; }

a:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 9, 18, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    color: var(--white);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--white);
    text-decoration: none;
}

header img { height: 50px; width: auto; margin-right: 12px; }

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 26px;
}

nav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: .86em;
    padding: 6px 0;
    transition: color .25s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--indigo));
    box-shadow: 0 0 10px var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

nav a:hover, nav a.active { color: var(--white); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

.lang-switch { display: inline-flex; align-items: center; margin-left: 4px; }
.lang-switch a::after { display: none; }
.lang-switch img { height: auto; opacity: .75; border-radius: 2px; transition: all .2s ease; }
.lang-switch a:hover img { opacity: 1; transform: scale(1.12); }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding: 120px 20px;
    background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(77, 232, 255, .10), transparent 70%), var(--bg-2);
    border-bottom: 1px solid var(--line);
}

/* Signature element: technical grid with a slow light sweep */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grid);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -30%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(77, 232, 255, .12), transparent);
    animation: sweep 9s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sweep {
    0%   { transform: translateX(0); }
    60%, 100% { transform: translateX(430%); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.1em, 7vw, 4em);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 26px;
    background: linear-gradient(100deg, #ffffff 30%, var(--cyan) 75%, var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero h1::after {
    content: '';
    display: block;
    width: 72px; height: 3px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, var(--cyan), var(--indigo));
    box-shadow: 0 0 14px var(--cyan);
    border-radius: 2px;
}

.hero p {
    font-size: 1.12em;
    max-width: 720px;
    margin: 0 auto 36px;
    color: var(--text);
}

#hero-1 {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(6, 9, 18, .55), rgba(6, 9, 18, .88)),
        url('/data/home-bg.webp') center / cover no-repeat,
        var(--bg-2);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .02em;
    color: #04121a;
    text-decoration: none;
    background: linear-gradient(120deg, var(--cyan), #8fb3ff);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(77, 232, 255, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(77, 232, 255, .6);
}

/* ===== Sections ===== */
section { padding: 80px 0; }

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8em, 4.5vw, 2.5em);
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
    color: var(--white);
    margin-bottom: 36px;
}

section h2::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--cyan), var(--indigo));
    box-shadow: 0 0 12px rgba(77, 232, 255, .7);
    border-radius: 2px;
}

.section-description { max-width: 760px; margin: 0 auto; color: var(--text); }

#services-overview,
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#services-overview {
    min-height: 500px;
    background-image: linear-gradient(rgba(6, 9, 18, .78), rgba(6, 9, 18, .92)), url('/data/start-background.webp');
}

#about {
    min-height: 500px;
    background-image: linear-gradient(rgba(6, 9, 18, .8), rgba(6, 9, 18, .92)), url('/data/contact-bg.webp');
    border-top: 1px solid var(--line);
}

#about p { max-width: 760px; margin: 0 auto; color: var(--text); }
#services-overview .container { text-align: center; }

/* ===== Feature sections (Dienstleistungen) ===== */
.feature {
    padding: 50px 40px;
    margin-bottom: 44px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.feature h2 { color: var(--white); }

.feature .container.flex {
    display: flex;
    align-items: center;
    gap: 64px;
    margin: 20px auto 0;
    padding: 0;
    width: 100%;
}

.feature:nth-of-type(even) .container.flex { flex-direction: row-reverse; }

.feature-image { flex: 1; display: flex; justify-content: center; }

.feature-image img {
    width: 100%;
    max-width: 480px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 0 40px rgba(77, 232, 255, .12);
}

.feature-text { flex: 1.2; }

.feature-text h3 {
    font-family: var(--font-heading);
    font-size: 1.15em;
    color: var(--cyan);
    margin: 22px 0 6px;
}

.feature-text h3:first-child { margin-top: 0; }
.feature-text p { max-width: 68ch; }

/* ===== Textseiten: Impressum & Datenschutz ===== */
main.content .container {
    max-width: 900px;
    margin: 50px auto;
    padding: 44px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

main.content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2em, 5vw, 2.8em);
    letter-spacing: -.02em;
    margin-bottom: 20px;
    background: linear-gradient(100deg, #fff 30%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main.content h2 {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--white);
    margin: 22px 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

main.content h3 { font-family: var(--font-heading); color: var(--cyan); margin: 14px 0 4px; }
main.content h4 { font-family: var(--font-heading); color: var(--text); font-size: 1em; margin: 12px 0 2px; }
main.content p { margin-bottom: 10px; color: var(--text); }
main.content ul { margin: 8px 0 12px 22px; color: var(--text); }
main.content a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
main.content a:hover { color: var(--white); }

/* ===== Kontakt ===== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
}

.contact-details { flex: 3; min-width: 300px; }

.contact-details h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2em, 6vw, 3.6em);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--white);
}

.contact-details h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6em, 4vw, 2.4em);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 4px 0 22px;
    background: linear-gradient(100deg, var(--cyan), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details p { margin-bottom: 10px; max-width: 60ch; }
.contact-details strong { color: var(--white); }
.contact-details a { color: var(--cyan); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; color: var(--white); }

.social-connect {
    flex: 2;
    min-width: 250px;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 0 34px rgba(77, 232, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-connect h3 { font-family: var(--font-heading); font-size: 1.3em; color: var(--white); margin-bottom: 10px; }
.social-connect p { margin-bottom: 18px; color: var(--muted); }

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    background: rgba(0, 119, 181, .35);
    border: 1px solid #1aa6e4;
    border-radius: 8px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.linkedin-link:hover {
    background: rgba(0, 119, 181, .6);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(26, 166, 228, .5);
}

.linkedin-link svg { fill: #fff; }

/* ===== Footer ===== */
footer {
    background: #04070e;
    color: var(--muted);
    text-align: center;
    padding: 44px 0;
    border-top: 1px solid var(--line);
    font-size: .92em;
}

footer .container { padding: 0; }
footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
footer a:hover { color: var(--cyan); }

.footer-content { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-social svg { vertical-align: middle; opacity: .7; transition: opacity .3s; }
.footer-social:hover svg { opacity: 1; }

footer img { height: 38px; width: auto; margin-right: 12px; }

/* ===== Seitenleiste (Dienstleistungen) ===== */
.side-navigation {
    position: fixed;
    right: 5px;
    top: 0;
    height: 100vh;
    width: auto;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12.5vh;
    text-decoration: none;
    pointer-events: auto;
}

.nav-label {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px 5px;
    font-family: var(--font-mono);
    font-size: 1.6vh;
    white-space: nowrap;
    color: var(--muted);
    background: rgba(6, 9, 18, .82);
    border: 1px solid var(--line);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .3s ease;
}

.nav-item.active .nav-label,
.nav-item:hover .nav-label {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 0 16px rgba(77, 232, 255, .35);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: -5px;
    width: 3px;
    height: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    border-radius: 2px;
}

/* ===== Scroll-Reveal (wird per script.js aktiviert) ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .feature .container.flex { gap: 40px; }
}

@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 10px; }
    nav ul { justify-content: center; gap: 4px 18px; }
    .lang-switch { margin-left: 0; }

    .hero { padding: 90px 20px; }
    section { padding: 56px 0; }

    .feature { padding: 34px 20px; }

    .feature .container.flex,
    .feature:nth-of-type(even) .container.flex {
        flex-direction: column !important;
        text-align: center;
        gap: 24px;
    }

    .feature-image { width: 100%; order: 1; }
    .feature-image img { max-width: 250px; margin: 0 auto; }
    .feature-text { width: 100%; order: 2; }
    .feature-text p { margin-inline: auto; }

    main.content .container { padding: 26px 20px; margin: 30px auto; }
    .container { width: 100%; padding: 0 20px; }

    .side-navigation { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::after { animation: none; display: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; }
}

/* ===== Dienstleistungs-Slider ===== */
.svc-slider { display: grid; grid-template-columns: 250px 1fr; gap: 28px; max-width: 1100px; margin: 0 auto; text-align: left; }

.svc-rail { position: relative; display: flex; flex-direction: column; }

.svc-tab {
    position: relative;
    padding: 13px 18px;
    text-align: left;
    font: 500 .9em var(--font-mono);
    color: var(--muted);
    background: none;
    border: 0;
    border-left: 1px solid var(--line);
    cursor: pointer;
    transition: color .25s ease, background .25s ease;
}

.svc-tab:hover { color: var(--white); background: rgba(77, 232, 255, .05); }
.svc-tab.active { color: var(--white); }

.svc-tab::after {
    content: '';
    position: absolute;
    left: -1px; top: 0;
    width: 2px; height: 100%;
    background: linear-gradient(var(--cyan), var(--indigo));
    box-shadow: 0 0 10px var(--cyan);
    transform: scaleY(0);
    transform-origin: top;
}

.svc-tab.active::after { animation: svcFillY 5s linear forwards; }
.svc-slider.paused .svc-tab.active::after { animation-play-state: paused; }
@keyframes svcFillY { to { transform: scaleY(1); } }
@keyframes svcFillX { to { transform: scaleX(1); } }

.svc-stage {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 360px;
    padding: 52px 56px 84px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ringe drehen sich bei jedem Wechsel weiter */
.svc-stage::before {
    content: '';
    position: absolute;
    right: -140px; top: 50%;
    width: 520px; height: 520px;
    margin-top: -260px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 26px, rgba(77, 232, 255, .22) 26px 27px);
    -webkit-mask-image: conic-gradient(#000, transparent 45%, #000 60%, transparent 90%, #000);
    mask-image: conic-gradient(#000, transparent 45%, #000 60%, transparent 90%, #000);
    transform: rotate(calc(var(--i, 0) * 47deg));
    transition: transform 1s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.svc-slide {
    grid-area: 1 / 1;
    align-self: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(var(--dir, 1) * 48px)) scale(.97);
    filter: blur(10px);
    transition: opacity .6s ease, transform .6s ease, filter .6s ease, visibility 0s .6s;
}

.svc-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition-delay: 0s;
}

.svc-slide h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8em, 4vw, 2.7em);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--white);
    margin-bottom: 18px;
}

.svc-slide p { max-width: 50ch; color: var(--text); margin-bottom: 28px; }

.svc-nav { position: absolute; right: 24px; bottom: 22px; z-index: 2; display: flex; gap: 8px; }
.svc-pause { font-size: 1.1em !important; }

.svc-nav button {
    width: 42px; height: 42px;
    font-size: 1.5em; line-height: 1;
    color: var(--cyan);
    background: rgba(6, 9, 18, .6);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .25s ease, background .25s ease;
}

.svc-nav button:hover { background: rgba(77, 232, 255, .12); box-shadow: 0 0 16px rgba(77, 232, 255, .35); }
.svc-tab:focus-visible, .svc-nav button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 768px) {
    .svc-slider { grid-template-columns: 1fr; gap: 16px; }
    .svc-rail { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .svc-rail::-webkit-scrollbar { display: none; }
    .svc-tab { flex: none; white-space: nowrap; border-left: 0; border-bottom: 1px solid var(--line); }
    .svc-tab::after { left: 0; top: auto; bottom: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; }
    .svc-tab.active::after { animation-name: svcFillX; }
    .svc-stage { padding: 32px 22px 84px; min-height: 340px; }
    .svc-stage::before { right: -260px; opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
    .svc-tab.active::after { animation: none; transform: scaleY(1); }
    .svc-slide { filter: none; transition: none; }
    .svc-stage::before { transition: none; }
}

/* ===== Dienstleistungs-Details: ein Panel, gesteuert vom Slider ===== */
.features-overview { padding: 0 0 100px; }

.features-overview > .container {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    padding: 56px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* dieselben Ringe wie im Slider, drehen sich beim Wechsel mit */
.features-overview > .container::before {
    content: '';
    position: absolute;
    right: -220px; top: -220px;
    width: 560px; height: 560px;
    border-radius: 50%;
    opacity: .7;
    background: repeating-radial-gradient(circle, transparent 0 26px, rgba(77, 232, 255, .22) 26px 27px);
    -webkit-mask-image: conic-gradient(#000, transparent 45%, #000 60%, transparent 90%, #000);
    mask-image: conic-gradient(#000, transparent 45%, #000 60%, transparent 90%, #000);
    transform: rotate(calc(var(--i, 0) * 47deg));
    transition: transform 1s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.feature { display: none; }

.feature.is-active {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    row-gap: 26px;
    align-items: start;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: fxIn .6s ease;
}

@keyframes fxIn {
    from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) scale(.98); filter: blur(8px); }
}

.feature .container.flex { display: contents; }

.feature h2 {
    grid-column: 1 / -1;
    text-align: left;
    margin: 0;
    font-size: clamp(1.9em, 4vw, 2.8em);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.feature h2::after { margin: 16px 0 0; }

.feature-image { position: relative; display: block; width: 100%; max-width: 420px; margin-top: 8px; }
.feature-text { align-self: start; }

.feature-image img {
    width: 100%;
    max-width: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(77, 232, 255, .10);
}

/* HUD-Ecken und einmaliger Scan */
.feature-image::before {
    --hud: linear-gradient(var(--cyan), var(--cyan));
    content: '';
    position: absolute;
    inset: -9px;
    pointer-events: none;
    background:
        var(--hud) 0 0 / 22px 2px no-repeat, var(--hud) 0 0 / 2px 22px no-repeat,
        var(--hud) 100% 0 / 22px 2px no-repeat, var(--hud) 100% 0 / 2px 22px no-repeat,
        var(--hud) 0 100% / 22px 2px no-repeat, var(--hud) 0 100% / 2px 22px no-repeat,
        var(--hud) 100% 100% / 22px 2px no-repeat, var(--hud) 100% 100% / 2px 22px no-repeat;
    filter: drop-shadow(0 0 4px var(--cyan));
}

.feature-image::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 14px var(--cyan);
    pointer-events: none;
}

.feature.is-active .feature-image::after { animation: fxScan 1.8s ease-out .4s 1; }
@keyframes fxScan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.fx-lead { font-size: 1.1em; color: var(--white); max-width: 60ch; margin-bottom: 22px; }

/* Kernaussage, Chips, Ablauf */
.fx-claim { font: 700 clamp(1.5em, 3vw, 2.1em)/1.15 var(--font-heading); letter-spacing: -.02em; color: var(--white); margin-bottom: 20px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fx-hint { margin-bottom: 24px; font: .75em var(--font-mono); color: var(--muted); }

.fx-chips button {
    cursor: pointer;
    padding: 6px 12px;
    font: 500 .8em var(--font-mono);
    color: var(--cyan);
    background: rgba(77, 232, 255, .07);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    opacity: 0;
    animation: fxFade .4s forwards;
    animation-delay: calc(.3s + var(--k) * .07s);
}

.fx-more summary {
    list-style: none;
    display: inline-flex;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font: 500 .9em var(--font-mono);
    color: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transition: box-shadow .25s ease, background .25s ease;
}

.fx-more summary::-webkit-details-marker { display: none; }
.fx-more summary::after { content: '+'; color: var(--cyan); }
.fx-more[open] summary::after { content: '\2212'; }
.fx-more summary:hover { background: rgba(77, 232, 255, .1); box-shadow: 0 0 16px rgba(77, 232, 255, .3); }
.fx-more summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.fx-full { margin-top: 20px; padding-left: 20px; border-left: 2px solid var(--line-strong); animation: fxFade .4s both; }
.fx-full h3 { margin: 16px 0 4px; font-size: 1.02em; }
.fx-full h3:first-child { margin-top: 0; }
.fx-full p { max-width: 62ch; color: var(--text); margin-bottom: 8px; }

.fx-flow { grid-column: 1 / -1; display: flex; list-style: none; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); }

.fx-step { position: relative; flex: 1; padding-top: 34px; text-align: center; font: 500 .85em var(--font-mono); color: var(--text); }

.fx-step::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    width: 14px; height: 14px; margin-left: -7px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line-strong);
    animation: fxLit 6s infinite;
    animation-delay: calc(var(--n) * 6s / var(--t));
}

.fx-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }

@keyframes fxLit {
    0%, 14% { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
    28%, 100% { background: var(--bg); border-color: rgba(80, 220, 255, .45); box-shadow: none; }
}

@keyframes fxFade { to { opacity: 1; } }
@keyframes fxType { to { width: 100%; } }
@keyframes fxGrow { to { transform: scaleY(1); } }
@keyframes fxSlide { to { opacity: 1; transform: none; } }
@keyframes fxDash { to { stroke-dashoffset: -78; } }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxPing { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.fx-chips button { transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.fx-chips button:hover, .fx-chips button.on { color: var(--white); background: rgba(77, 232, 255, .2); box-shadow: 0 0 14px rgba(77, 232, 255, .3); }
.fx-chips button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Visuals (ersetzen die Bilder) */
.fx-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    font: 500 .74em/1.65 var(--font-mono);
    color: var(--muted);
    background: linear-gradient(160deg, #050a15, #0a1428);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(77, 232, 255, .10);
}

.fx-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.fx-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-visual .tr path { fill: none; stroke: rgba(77, 232, 255, .28); stroke-width: 2; }
.fx-visual .pl path { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 8 70; filter: drop-shadow(0 0 4px var(--cyan)); animation: fxDash 3s linear infinite; }
.fx-visual .pl path:nth-child(2) { animation-delay: -.7s; }
.fx-visual .pl path:nth-child(3) { animation-delay: -1.4s; }
.fx-visual .pl path:nth-child(4) { animation-delay: -2.1s; }
.fx-visual .chip { fill: #0b1a30; stroke: var(--cyan); stroke-width: 1.5; }
.fx-visual .tx { fill: #dbe8ff; font: 500 13px var(--font-mono); }
.fx-visual .ring { fill: none; stroke: var(--cyan); transform-origin: 160px 120px; animation: fxPing 2s ease-out infinite; }
.fx-visual .ec { fill: none; stroke-width: 2; }
.fx-visual .a { stroke: var(--cyan); }
.fx-visual .b { stroke: var(--indigo); }
.fx-visual .rot { transform-origin: 160px 120px; animation: fxSpin 8s linear infinite; }

.fx-visual i { display: block; white-space: pre; }
.vt i { width: 0; overflow: hidden; color: var(--text); animation: fxType .8s steps(28) forwards; animation-delay: calc(var(--k) * .8s); }
.vt i:first-child { color: var(--cyan); }
.vt .ok { color: #5df2a8; }
.fx-visual.ex { aspect-ratio: auto; justify-content: flex-start; padding-top: 0; min-height: 190px; }
.fx-file { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0 -18px 16px; padding: 9px 18px; background: rgba(77, 232, 255, .05); border-bottom: 1px solid var(--line); }
.fx-file span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.fx-file em { margin-left: 8px; font-style: normal; color: var(--muted); }
.vex i { animation-duration: .45s; animation-delay: calc(var(--k) * .3s); }
.vex i:first-child { color: var(--text); }
.vex .cm { color: var(--muted); }
.vex .ok { color: #5df2a8; }
.vex .add { padding: 0 6px; margin: 0 -6px; background: rgba(93, 242, 168, .15); color: #5df2a8; }
.vex .del { padding: 0 6px; margin: 0 -6px; background: rgba(255, 90, 110, .15); color: #ff8a9a; }
.vd i { padding: 0 8px; opacity: 0; animation: fxFade .4s forwards; animation-delay: calc(var(--k) * .35s); }
.vd .del { background: rgba(255, 90, 110, .15); color: #ff8a9a; }
.vd .add { background: rgba(93, 242, 168, .15); color: #5df2a8; }
.vx i { display: flex; justify-content: space-between; opacity: 0; animation: fxFade .3s forwards; animation-delay: calc(var(--k) * .7s); }
.vx b { color: #5df2a8; font-weight: 500; }
.vx s { display: block; height: 3px; width: 0; margin-top: 14px; background: linear-gradient(90deg, var(--cyan), var(--indigo)); animation: fxType 2.9s linear forwards; }

.vl { display: flex; flex-direction: column; gap: 9px; }
.vl b { display: block; padding: 11px 14px; font-weight: 500; color: var(--white); background: rgba(77, 232, 255, .06); border: 1px solid var(--line-strong); border-radius: 4px; opacity: 0; transform: translateX(-30px); animation: fxSlide .5s ease forwards; animation-delay: calc(var(--k) * .3s); }
.vl b:last-child { border-color: var(--cyan); box-shadow: 0 0 18px rgba(77, 232, 255, .3); }

.va { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.va s { display: block; height: 8px; width: 60%; background: var(--line); border-radius: 4px; }
.va s + s { width: 35%; }
.va div { flex: 1; display: flex; align-items: flex-end; gap: 9px; border-bottom: 1px solid var(--line-strong); }
.va i { flex: 1; height: var(--h); background: linear-gradient(var(--cyan), var(--indigo)); border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; animation: fxGrow .8s ease forwards; animation-delay: calc(var(--k) * .12s); }

/* Die Seitenleiste ersetzt jetzt die Auswahl im Slider */
.side-navigation { display: none !important; }

@media (max-width: 768px) {
    .features-overview > .container { padding: 32px 20px; }
    .feature.is-active { display: block; }
    .feature h2 { margin-bottom: 24px; }
    .feature-image { max-width: 300px; margin: 0 auto 34px; }
    .feature-text, .feature .container.flex { text-align: left; }
    .feature-text p { margin-inline: 0; }
    .fx-flow { overflow-x: auto; }
    .fx-step { min-width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    .feature.is-active, .feature.is-active .feature-image::after, .fx-visual *, .fx-chips button, .fx-full, .fx-step::before { animation: none !important; opacity: 1 !important; transform: none !important; width: auto; }
    .features-overview > .container::before { transition: none; }
}

/* ===== Mobiles Menü ===== */
.nav-toggle { display: none; }

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        margin-left: auto;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: 6px;
        color: var(--white);
        font-size: 1.3em;
        cursor: pointer;
    }

    header .container { flex-wrap: nowrap; }
    nav { width: 100%; }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }

    nav.open ul { max-height: 420px; }
    nav ul li { border-top: 1px solid var(--line); }
    nav a { display: block; padding: 12px 4px; }
    .lang-switch { justify-content: center; padding: 12px 0; }
}

/* ===== Über mich ===== */
.about-photo {
    width: 160px; height: 160px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 .78em var(--font-mono);
    text-align: center;
    color: var(--muted);
    background: rgba(77, 232, 255, .05);
    border: 1px dashed var(--line-strong);
    border-radius: 50%;
}

main.content .about-lead { font-size: 1.1em; color: var(--white); max-width: 68ch; }
main.content .placeholder { color: var(--muted); font-style: italic; }

/* ===== Referenzen ===== */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.ref-card {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ref-card h3 { font-family: var(--font-heading); color: var(--cyan); margin-bottom: 14px; }
.ref-card dt { font: 600 .78em var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.ref-card dt:first-of-type { margin-top: 0; }
.ref-card dd { margin: 4px 0 0; color: var(--text); }

/* ===== 404-Seite ===== */
.hero-error { min-height: 70vh; }
.hero-error h1 { font-size: clamp(3.5em, 14vw, 7em); }

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(77, 232, 255, .08);
    box-shadow: 0 0 22px rgba(77, 232, 255, .25);
}

/* ===== Kompetenz-Streifen (Startseite) ===== */
.capability-strip {
    padding: 28px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.capability-strip ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
}

.capability-strip li {
    position: relative;
    font: 500 .82em var(--font-mono);
    color: var(--text);
    white-space: nowrap;
}

.capability-strip li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -19px; top: 50%;
    width: 4px; height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

@media (max-width: 600px) {
    .capability-strip ul { flex-direction: column; align-items: center; gap: 10px; }
    .capability-strip li:not(:last-child)::after { display: none; }
}

/* ===== Mobile Lesbarkeit (überschreibt frühere Mobil-Regeln) ===== */
@media (max-width: 768px) {
    :root { --text: #e3ebf8; --muted: #a9b9d2; }
    html { scroll-padding-top: 70px; }

    body { font-size: 1.0625rem; }

    /* Lange deutsche Wörter sauber trennen statt abschneiden */
    h1, h2, h3, p, li, dd { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

    /* Header: eine Zeile (Logo + Menü-Button) statt dreier gestapelter Zeilen */
    header .container { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 8px 18px; }
    header img { height: 32px; margin-right: 8px; }
    .logo { font-size: 1.1rem; }
    .nav-toggle { width: 44px; height: 44px; font-size: 1.4rem; }
    nav { flex-basis: 100%; width: 100%; }
    nav a { font-size: 1rem; padding: 14px 4px; }
    .lang-switch img { width: 26px; height: auto; }

    /* Abschnitte und Überschriften */
    section { padding: 48px 0; }
    .hero { padding: 64px 18px; }
    .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
    .hero p { font-size: 1.05rem; }
    section h2, .feature h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .svc-slide h3 { font-size: 1.75rem; }
    .fx-claim { font-size: 1.45rem; }

    /* Flächen: mehr Platz für den Text */
    .container { padding: 0 18px; }
    main.content .container { width: calc(100% - 16px); padding: 24px 18px; margin: 20px auto; }
    main.content ul { margin-left: 18px; }
    .features-overview > .container { width: calc(100% - 16px); padding: 26px 16px; border-radius: 14px; }
    .svc-stage { padding: 28px 18px 88px; }
    .ref-grid { grid-template-columns: 1fr; gap: 18px; }
    .ref-card { padding: 22px 18px; }

    /* Kleine Mono-Schriften größer, Tippflächen größer */
    .svc-tab { font-size: .9rem; padding: 13px 16px; }
    .svc-slide p { font-size: 1rem; }
    .fx-chips button { font-size: .85rem; padding: 10px 14px; }
    .fx-hint { font-size: .8rem; }
    .fx-more summary { font-size: .92rem; padding: 12px 18px; }
    .fx-full p { font-size: 1rem; }
    .fx-step { font-size: .8rem; }
    .ref-card dt { font-size: .8rem; }
    .capability-strip li { font-size: .9rem; white-space: normal; text-align: center; }

    /* Beispiel-Fenster: größere Schrift, Zeilen umbrechen statt abgeschnitten zu werden */
    .fx-visual { font-size: .8125rem; }
    .vex i {
        width: auto;
        overflow: visible;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        opacity: 0;
        animation: fxFade .45s forwards;
        animation-delay: calc(var(--k) * .3s);
    }

    /* Footer */
    footer { font-size: 1rem; }
    .footer-content { flex-direction: column; gap: 14px; }
}
