:root {
    --bg-dark: #070b18;
    --bg-darker: #030510;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(120, 130, 255, 0.15);
    --accent: #6366f1;
    --accent-2: #a78bfa;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --text-main: #f0f0f5;
    --text-muted: #9a9ab0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(15, 20, 45, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(99, 102, 241, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========== BACKGROUND ========== */
.bg-animation {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; z-index: -1;
    background: linear-gradient(160deg, #070b18 0%, #0d0a2e 40%, #150a30 70%, #0a0f28 100%);
    overflow: hidden;
}

.bg-orb {
    position: absolute; border-radius: 50%;
    filter: blur(130px); opacity: 0.2;
    animation: floatOrb 25s infinite alternate ease-in-out;
}
.orb-1 { width: 55vw; height: 55vw; background: #4338ca; top: -15vh; left: -15vw; }
.orb-2 { width: 60vw; height: 60vw; background: #7c3aed; bottom: -25vh; right: -15vw; animation-delay: -8s; }
.orb-3 { width: 30vw; height: 30vw; background: #2563eb; top: 40%; left: 40%; animation-delay: -15s; opacity: 0.12; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 8vh) scale(1.15); }
}

#particles-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; pointer-events: none;
}

.light-beam {
    position: absolute; width: 2px; height: 120vh;
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.06) 40%, rgba(167,139,250,0.03) 70%, transparent 100%);
    animation: beamDrift 20s infinite ease-in-out;
    pointer-events: none; opacity: 0.7;
}
.beam-1 { left: 25%; top: -20vh; transform: rotate(15deg); animation-delay: 0s; }
.beam-2 { left: 70%; top: -10vh; transform: rotate(-10deg); animation-delay: -10s; width: 3px; }

@keyframes beamDrift {
    0%, 100% { transform: translateX(0) rotate(15deg); opacity: 0.5; }
    50% { transform: translateX(8vw) rotate(12deg); opacity: 0.8; }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700; line-height: 1.2;
}
h2 { text-shadow: 0 0 40px rgba(99,102,241,0.1); }

a { color: var(--text-main); text-decoration: none; transition: var(--transition); }

/* ========== UTILITIES ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }
.w-full { width: 100%; }

.text-gradient-hero {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== GLASSMORPHISM PANELS ========== */
.card-glass, .step-glass {
    position: relative; border-radius: 24px; overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.card-glass-border {
    position: absolute; inset: 0; border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
    transition: box-shadow 0.4s ease;
}
.card-glass-content {
    position: relative; z-index: 1;
    padding: 2.5rem 2rem;
}
.card-glass:hover, .step-glass:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--glass-shadow), 0 0 60px rgba(99,102,241,0.08);
    border-color: var(--border-glow);
}
.card-glass:hover .card-glass-border, .step-glass:hover .card-glass-border {
    box-shadow: inset 0 0 30px rgba(99,102,241,0.05);
}

/* ========== BUTTONS ========== */
.btn-glass-primary, .btn-glass-nav {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 100px; cursor: pointer; overflow: hidden;
    background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(167,139,250,0.2) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}
.btn-glass-primary {
    padding: 1rem 2.2rem; font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-glass-nav {
    padding: 0.55rem 1.3rem; font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-glass-text { position: relative; z-index: 2; font-weight: 600; color: #fff; }
.btn-shimmer {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    z-index: 1; animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}
.btn-glass-primary:hover, .btn-glass-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.25);
}

.btn-text-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-weight: 500; font-size: 1.1rem;
    transition: var(--transition); padding: 1rem 0.5rem;
}
.btn-text-arrow svg { transition: transform 0.3s ease; }
.btn-text-arrow:hover { color: var(--text-main); }
.btn-text-arrow:hover svg { transform: translateX(5px); }

/* ========== NAV LINK HOVER ========== */
.nav-link-hover {
    position: relative; font-size: 0.95rem; color: var(--text-muted); font-weight: 500;
}
.nav-link-hover::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-link-hover:hover { color: var(--text-main); }
.nav-link-hover:hover::after { width: 100%; }

/* ========== NAVBAR ========== */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); padding: 1.5rem 0;
}
nav.scrolled {
    padding: 0.6rem 0;
}
nav.scrolled .nav-container {
    background: rgba(15, 18, 40, 0.65);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(99,102,241,0.05);
    max-width: 820px;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 0; border: 1px solid transparent;
}
.text-logo {
    font-family: var(--font-heading); font-size: 1.8rem;
    font-weight: 800; color: #ffffff; letter-spacing: -1px;
}
.accent-dot { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    position: relative; padding-top: 5rem; overflow: hidden;
}
.hero-content {
    max-width: 850px; position: relative; z-index: 2; padding: 0 2rem;
}

/* Badge ring */
.badge-ring {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.4rem; border-radius: 100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(167,139,250,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.25);
    margin-bottom: 2.5rem; position: relative;
    animation: badgeFloat 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(99,102,241,0.1), 0 0 60px rgba(99,102,241,0.05);
}
.badge-text {
    font-size: 0.85rem; color: var(--accent-2);
    font-weight: 500; letter-spacing: 0.5px;
}
.badge-glow {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    animation: glowPulse 2s ease-in-out infinite;
}
.badge-glow-2 { animation-delay: 1s; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: -1.5px; margin-bottom: 1.5rem;
    display: flex; flex-direction: column;
}
.hero-line {
    display: block; opacity: 0;
    transform: translateY(40px);
    animation: heroSlideUp 0.9s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-line-2 { animation-delay: 0.2s; }

@keyframes heroSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted); margin-bottom: 3rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-reveal {
    opacity: 0; transform: translateY(30px);
    animation: heroSlideUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-delay: 0.5s;
}
.hero-reveal-delay { animation-delay: 0.7s; }

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

.hero-glow {
    position: absolute; width: 700px; height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    filter: blur(100px); z-index: 1; pointer-events: none; opacity: 0.35;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center; margin-bottom: 5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ========== VORTEILE CARDS ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card-glass .card-glass-content { padding: 3rem 2rem; }
.card-icon-container {
    margin-bottom: 1.5rem; display: flex; align-items: center;
}
.icon-3d { filter: drop-shadow(0 4px 8px rgba(99,102,241,0.2)); }
.card-glass h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.card-glass p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ========== ABOUT SECTION ========== */
.about-wrapper .card-glass-content { padding: 4rem; }
.about-content { max-width: 800px; margin: 0 auto; position: relative; }
.about-content .tag {
    display: inline-block; color: var(--accent-2); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.about-content h2 { font-size: 2.5rem; margin-bottom: 2rem; }
.about-text p {
    font-size: 1.1rem; color: var(--text-muted);
    margin-bottom: 1.5rem; line-height: 1.8;
}
.about-text p:last-child { margin-bottom: 0; }

.about-icon-float {
    position: absolute; top: 0; right: 0;
    width: 72px; height: 72px; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(167,139,250,0.1));
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.08);
    animation: badgeFloat 5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(99,102,241,0.1);
}

/* ========== PROCESS STEPS ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.step-glass .card-glass-content { padding: 2.5rem 2rem; }
.step-inner { position: relative; overflow: hidden; min-height: 250px; }
.step-number-bg {
    position: absolute; top: -20px; right: -10px;
    font-size: 8rem; font-weight: 800; font-family: var(--font-heading);
    color: rgba(99, 102, 241, 0.06); line-height: 1; z-index: 0;
    pointer-events: none; user-select: none;
}
.step-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-weight: 600; margin-bottom: 0.75rem;
    position: relative; z-index: 1;
}
.step-inner h3 {
    font-size: 1.35rem; margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.step-inner p {
    color: var(--text-muted); font-size: 0.95rem;
    position: relative; z-index: 1;
}

/* ========== CONTACT SECTION ========== */
.contact-wrapper .card-glass-content { padding: 0; }
.contact-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.contact-info {
    padding: 4rem; border-right: 1px solid rgba(255,255,255,0.06);
}
.contact-info h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }
.contact-item {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.contact-item .icon { font-size: 1.5rem; }
.contact-item a { font-size: 1.1rem; font-weight: 500; }
.contact-item a:hover { color: var(--accent-2); }
.contact-form-container { padding: 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

/* ========== FORM FIELDS ========== */
.input-group-glass { display: flex; flex-direction: column; gap: 0.5rem; }
.input-group-glass label {
    font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.input-group-glass input,
.input-group-glass textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.2rem; border-radius: 12px;
    color: var(--text-main); font-family: var(--font-body);
    font-size: 1rem; transition: var(--transition);
    backdrop-filter: blur(8px);
}
.input-group-glass input:hover,
.input-group-glass textarea:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.05);
}
.input-group-glass input:focus,
.input-group-glass textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 20px rgba(99,102,241,0.1), 0 0 0 3px rgba(99,102,241,0.08);
}

/* ========== KUNDEN / STATS SECTION ========== */
.stats-bar {
    display: flex; justify-content: center; gap: 0;
    border-radius: 100px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 20, 45, 0.5);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    max-width: 700px; margin: 0 auto 3rem;
}
.stat-item {
    flex: 1; text-align: center; padding: 1.8rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.03); }
.stat-value {
    font-family: var(--font-heading); font-weight: 800;
    font-size: 2rem; color: var(--accent-2); margin-bottom: 0.25rem;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); font-weight: 500;
}
.kunden-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.kunden-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem; border-radius: 100px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    background: rgba(129, 140, 248, 0.05);
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--accent-2);
    transition: var(--transition);
}
.kunden-tag:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.35);
    transform: translateY(-2px);
}
.kunden-tag .tag-icon { font-size: 1rem; }
.kunden-tag-more {
    border-color: rgba(192, 132, 252, 0.25);
    background: rgba(192, 132, 252, 0.06);
    color: #c084fc;
}
.kunden-tag-more:hover {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.4);
}
.kunden-subtext {
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
    font-weight: 500; letter-spacing: 0.5px;
    font-style: italic;
}

/* ========== FOOTER ========== */
footer {
    border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 0;
    background: rgba(7, 11, 24, 0.5);
}
.footer-content {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 2rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ========== LEGAL SUBPAGES ========== */
.legal-page {
    padding-top: 10rem; padding-bottom: 5rem;
    min-height: 100vh;
}
.legal-page .card-glass-content { padding: 4rem; }
.legal-page h1 {
    font-size: 2.5rem; margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem;
    color: var(--text-main);
}
.legal-page h3 {
    font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.75rem;
}
.legal-page p, .legal-page li {
    color: var(--text-muted); font-size: 1rem;
    line-height: 1.8; margin-bottom: 1rem;
}
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page a { color: var(--accent-2); }
.legal-page a:hover { text-decoration: underline; }
.legal-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-weight: 500; margin-bottom: 2rem;
    transition: var(--transition);
}
.legal-back:hover { color: var(--text-main); }
.legal-back svg { transition: transform 0.3s ease; }
.legal-back:hover svg { transform: translateX(-4px); }

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.scroll-reveal.revealed {
    opacity: 1; transform: translateY(0);
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 900px) {
    .contact-inner { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 2.5rem; }
    .contact-form-container { padding: 2.5rem; }
    .about-wrapper .card-glass-content { padding: 2.5rem; }
    .about-icon-float { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 5rem 0; }
    .step-number-bg { font-size: 5rem; }
    .stats-bar { flex-direction: column; border-radius: 24px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1.2rem; }
    .stat-item:last-child { border-bottom: none; }
    .kunden-tags { gap: 0.5rem; }
    .legal-page .card-glass-content { padding: 2rem; }
    .legal-page { padding-top: 7rem; }
}
