/* =========================================
   DigitalFakt — Stylesheet
   Modernes, minimalistisches Design
   ========================================= */

:root {
    --bg: #0a0a0c;
    --bg-soft: #111114;
    --bg-elev: #16161b;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --text: #f4f4f5;
    --text-muted: #a1a1a8;
    --text-dim: #6b6b73;

    --accent: #6366f1;
    --accent-2: #06b6d4;
    --accent-3: #f0abfc;
    --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #f0abfc 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);

    --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.25);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1280px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: white; }

/* ===== Hintergrund-Farbverläufe ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(800px circle at 15% 0%, rgba(99, 102, 241, 0.15), transparent 60%),
        radial-gradient(600px circle at 85% 100%, rgba(6, 182, 212, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Container ===== */
.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--gradient);
    z-index: 100;
    transition: width 0.05s linear;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 50;
    transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border);
}
.nav-inner {
    height: 100%;
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.logo-img {
    width: auto;
    height: 38px;
    object-fit: contain;
}
.logo-text {
    font-weight: 300;
}
.logo-text strong {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 0.92rem;
    font-weight: 500;
}
.nav-links a {
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    height: 1px; width: 0;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 22px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Navigation: rechte Gruppe & Sprachwahl ===== */
.nav-end {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.45;
    filter: saturate(0.75);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
}
.lang-btn:hover {
    opacity: 0.85;
    filter: saturate(1);
    transform: translateY(-1px);
}
.lang-btn.is-active {
    opacity: 1;
    filter: saturate(1);
    box-shadow: 0 0 0 2px var(--text), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lang-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-2);
}
.lang-flag {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: var(--text);
    color: var(--bg);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: var(--surface-strong);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 18px 34px;
    font-size: 1.05rem;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 24px 80px;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1.05);
    filter: saturate(0.85);
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, var(--bg) 95%),
        linear-gradient(180deg, rgba(10,10,12,0.3) 0%, var(--bg) 80%);
}
.hero-noise {
    position: absolute; inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 0px, var(--container));
    margin-inline: auto;
    max-width: 980px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px var(--accent-2);
    animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 28px;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-title .subtitle-line {
    font-size: 0.45em;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-top: 24px;
}

.hero-subline {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 18px;
}

.hero-device-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 40px;
}
.hero-device-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.92;
}
.hero-device-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 1;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%; left: 0;
    width: 100%; height: 50%;
    background: var(--text);
    animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown {
    0%   { transform: translateY(0); }
    100% { transform: translateY(200%); }
}

/* ===== Marquee ===== */
.marquee-section {
    padding: 40px 0;
    border-block: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
    display: inline-flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--text);
    padding-right: 48px;
}
.marquee-track span:nth-child(odd) {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.marquee-track span:nth-child(even) {
    color: var(--text-dim);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
    z-index: 1;
}
.section-head {
    max-width: 800px;
    margin-bottom: 80px;
}
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 20px;
    font-weight: 500;
}
h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-bottom: 24px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    color: var(--text-muted);
    max-width: 640px;
}

/* ===== Tech Section ===== */
.section-tech {
    padding-bottom: clamp(36px, 5vw, 64px);
}
.tech-showcase {
    margin: 60px 0 132px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    position: relative;
    box-shadow: var(--shadow-glow);
}

/* ===== Plattformen ===== */
.section-platforms {
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(40px, 6vw, 72px);
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}
.platform-card {
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.platform-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
}
.platform-card:hover::before { opacity: 1; }
.platform-card > * { position: relative; z-index: 1; }
.platform-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent-2);
    margin-bottom: 24px;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.platform-card:hover .platform-icon {
    color: var(--accent-3);
    transform: scale(1.05) rotate(-3deg);
}
.platform-icon svg { width: 28px; height: 28px; }
.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.platform-card p { color: var(--text-muted); font-size: 0.96rem; }

.devices-viewer {
    border-radius: var(--radius-xl);
    overflow: visible;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    aspect-ratio: 16 / 9;
    position: relative;
}
.devices-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    border-radius: inherit;
}
.devices-viewer:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

/* ===== Services ===== */
.section-services {
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(60px, 10vw, 120px);
}

.service {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}
.service-inner {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.service-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-2);
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}
.service-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-bottom: 12px;
}
.service-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.service-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 28px;
    max-width: 540px;
}
.service-demo-hint {
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.service-demo-hint a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease);
}
.service-demo-hint a:hover {
    color: var(--text);
}
.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text);
}
.check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    position: relative;
}
.check::after {
    content: '';
    position: absolute;
    left: 7px; top: 5px;
    width: 6px; height: 10px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    transition: transform 0.6s var(--ease);
}
.service-media video,
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-embed {
    aspect-ratio: 4 / 5;
    overflow: visible;
    margin-bottom: 132px;
    background:
        radial-gradient(700px circle at 50% 0%, rgba(6, 182, 212, 0.16), transparent 65%),
        var(--bg-elev);
}
.service-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    border-radius: inherit;
}
.embed-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}
.embed-label span {
    color: var(--accent-2);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.embed-fullscreen {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.72);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.embed-fullscreen:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}
.embed-hint {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -112px;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 22px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 24, 32, 0.55);
    color: var(--text);
    font-size: clamp(1.18rem, 2.1vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}
.embed-hint-label {
    white-space: nowrap;
}
.embed-hint-arrow {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: embed-hint-bounce 1.2s var(--ease) infinite;
}
@keyframes embed-hint-bounce {
    0%, 100% { transform: translateY(3px); }
    50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
    .embed-hint-arrow { animation: none; }
}
.embed-fullscreen svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-embed:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}
.service-embed:fullscreen iframe {
    background: #fff;
}
.devices-viewer:fullscreen .embed-hint,
.service-embed:fullscreen .embed-hint {
    display: none;
}
.service-media-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.6s var(--ease);
}
.service:hover .service-media-glow { opacity: 0.6; }

/* ===== Process ===== */
.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.process-list li {
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
    position: relative;
}
.process-list li:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
}
.process-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.process-list h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.process-list p { color: var(--text-muted); font-size: 0.94rem; }

/* ===== CTA ===== */
.section-cta { padding: clamp(80px, 14vw, 180px) 0; }
.cta-inner {
    text-align: center;
    max-width: 800px;
    position: relative;
}
.cta-glow {
    position: absolute;
    width: 80%; max-width: 600px;
    aspect-ratio: 1;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient);
    filter: blur(120px);
    opacity: 0.18;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.section-cta h2 { margin-bottom: 16px; }
.section-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-brand .logo-img {
    height: 42px;
    align-self: flex-start;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 320px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    font-size: 0.92rem;
}
.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    grid-column: 1 / -1;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== Rechtliche Seiten ===== */
.legal-page {
    padding: calc(var(--header-h) + 72px) 0 96px;
    min-height: 70vh;
}
.legal-content {
    max-width: 920px;
}
.legal-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}
.legal-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
}
.legal-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
    margin-bottom: 14px;
}
.legal-card p {
    color: var(--text-muted);
    margin-bottom: 14px;
}
.legal-card p:last-child {
    margin-bottom: 0;
}

/* ===== Fehlende Medien (Fallback-Look) ===== */
.media-missing {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.02) 0 12px,
            transparent 12px 24px
        ),
        var(--gradient-soft);
    position: relative;
}
.media-missing::before {
    content: 'Asset folgt';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px 28px;
    }
    .nav-links.open li { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .nav-links.open li:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }

    .platform-grid { grid-template-columns: 1fr; }

    .service-inner { grid-template-columns: 1fr; }
    .service-alt .service-text { order: 1; }
    .service-alt .service-media { order: 2; }
    .service-media { aspect-ratio: 4 / 3; }

    .process-list { grid-template-columns: repeat(2, 1fr); }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { align-items: flex-start; }

    .devices-viewer { aspect-ratio: 16 / 9; }
    .tech-showcase { margin-bottom: 108px; }
    .service-embed { margin-bottom: 108px; }
    .embed-hint {
        left: 50%;
        top: auto;
        bottom: -92px;
        transform: translateX(-50%);
        padding: 16px 22px;
        font-size: 1.08rem;
    }
}

@media (max-width: 560px) {
    .hero { padding-bottom: 100px; }
    .hero-title .subtitle-line { margin-top: 16px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; justify-content: center; }

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

    .section-head { margin-bottom: 56px; }
    .tech-showcase { margin-bottom: 94px; }
    .service-embed { margin-bottom: 94px; }
    .embed-hint {
        bottom: -82px;
        padding: 12px 16px;
        font-size: 0.94rem;
        gap: 10px;
    }
    .embed-hint-arrow {
        width: 24px;
        height: 24px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
