/* ============================================
   DLA — Die Lohnabrechner
   Award-Winning Redesign 2025
   Mobile-First · Modern UI · Performant Animations
   ============================================ */

/* --- Custom Properties (Design Tokens) --- */
:root {
    /* Primary — Deep Alpine Blue */
    --primary-50: #EEF4FF;
    --primary-100: #D9E6FF;
    --primary-200: #B3CCFF;
    --primary-300: #80AAFF;
    --primary-400: #4D88FF;
    --primary-500: #1A66FF;
    --primary-600: #0047CC;
    --primary-700: #003399;
    --primary-800: #002266;
    --primary-900: #001133;

    /* Secondary — Warm Stone */
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-300: #D6D3D1;
    --stone-400: #A8A29E;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --stone-700: #44403C;
    --stone-800: #292524;
    --stone-900: #1C1917;

    /* Accent — Warm Amber */
    --accent-400: #F59E0B;
    --accent-500: #D97706;
    --accent-600: #B45309;

    /* Semantic */
    --color-bg: #FAF8F4;
    --color-bg-alt: #F4F1EB;
    --color-bg-dark: #1E1A16;
    --color-text: var(--stone-900);
    --color-text-secondary: var(--stone-600);
    --color-text-tertiary: var(--stone-400);
    --color-text-on-dark: #FFFFFF;
    --color-accent: var(--primary-500);
    --color-accent-hover: var(--primary-600);
    --color-accent-light: var(--primary-50);
    --color-border: rgba(0, 0, 0, 0.07);
    --color-border-hover: rgba(0, 0, 0, 0.13);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(26, 102, 255, 0.15);

    /* Typography */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-cursor: 500;
    --z-loader: 600;
}

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

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}


body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Remove default tap highlight on all touch devices */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

/* --- 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;
    }
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container--narrow {
    max-width: 960px;
}

.container--wide {
    max-width: 1440px;
}

/* --- Section --- */
.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-text-on-dark);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.7);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-500);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.section-header p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-top: var(--space-lg);
}

/* Section number decorations */
.section-number {
    font-family: var(--font-display);
    font-size: clamp(6rem, 12vw, 12rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 4vw, 3rem);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.section--dark .section-number {
    color: rgba(255, 255, 255, 0.03);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 48px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity var(--transition-normal);
    opacity: 0;
    z-index: -1;
}

.btn--primary {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(26, 102, 255, 0.3);
}

.btn--primary::before {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.btn--primary:hover::before,
.btn--primary:active::before {
    opacity: 1;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 102, 255, 0.4);
}

.btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border-hover);
}

.btn--secondary:hover {
    background: var(--stone-100);
    border-color: var(--stone-300);
    transform: translateY(-2px);
}

.btn--secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* Touch feedback for mobile */
@media (hover: none) {
    .btn:active {
        transform: scale(0.96);
        transition-duration: 100ms;
    }

    .btn--primary:active {
        box-shadow: 0 2px 8px rgba(26, 102, 255, 0.3);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    /* Outer padding creates the floating gap from browser edges */
    padding: 0.875rem clamp(0.875rem, 3vw, 2rem);
    transition: padding 0.35s var(--ease-out);
}

.navbar.scrolled {
    padding: 0.5rem clamp(0.875rem, 3vw, 2rem);
}

/* Island pill — always visible, glass frosted background */
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0.625rem 0.5rem 1.375rem;
    background: rgba(250, 248, 244, 0.88);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(28, 25, 23, 0.09);
    border-radius: 9999px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background 0.35s var(--ease-out),
                box-shadow 0.35s var(--ease-out),
                border-color 0.35s var(--ease-out);
}

.navbar.scrolled .navbar-inner {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(28, 25, 23, 0.12);
}

.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    z-index: calc(var(--z-overlay) + 1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 48px;
}

.navbar-logo .logo-mark {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

/* Desktop nav */
.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-sm) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--color-accent);
    color: #FFFFFF !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
    min-height: 48px;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 102, 255, 0.3);
}

.nav-link--portal {
    background: #1a2744;
    color: #FFFFFF !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link--portal::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.nav-link--portal::after {
    display: none;
}

.nav-link--portal:hover {
    background: #243352;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.3);
}

.mobile-link--portal {
    color: #1a2744 !important;
    font-weight: 600;
    border-top: 1px solid rgba(26, 39, 68, 0.1);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Mobile hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: calc(var(--z-overlay) + 1);
    background: none;
    border: none;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.4s var(--ease-out);
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-xl);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger mobile menu items */
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover,
.mobile-link.active {
    color: var(--color-accent);
}

.mobile-cta {
    margin-top: var(--space-xl);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0d1f45 0%, #1a3a7a 45%, #1e5490 100%);
}

/* Mountains moved to HTML for parallax — ::before now unused */
.hero::before {
    display: none;
}

/* Parallax mountain layers
   120px buffer below hero bottom so upward movement never exposes a gap.
   .hero has overflow:hidden, so the buffer is clipped invisibly. */
.hero-mountains {
    position: absolute;
    bottom: -120px;
    left: 0;
    right: 0;
    height: calc(72% + 120px);
    pointer-events: none;
    z-index: 1;
}

.hero-mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 35% at 85% 95%, rgba(245,158,11,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

/* Reusable mountain background for subpage dark heroes */
.hero-bg-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560'%3E%3Cpath d='M0,420 L55,365 L105,400 L185,315 L265,370 L350,285 L435,345 L515,265 L605,325 L695,235 L775,298 L865,215 L945,278 L1035,195 L1115,258 L1195,195 L1275,258 L1355,210 L1440,248 L1440,560 L0,560Z' fill='rgba(180,210,255,0.04)'/%3E%3Cpath d='M0,465 L75,392 L145,438 L235,360 L325,418 L425,330 L515,395 L615,308 L705,375 L798,282 L885,355 L975,268 L1065,345 L1158,268 L1255,338 L1355,268 L1440,308 L1440,560 L0,560Z' fill='rgba(160,192,250,0.06)'/%3E%3Cpath d='M0,508 L98,428 L185,478 L285,398 L375,458 L475,368 L565,438 L665,358 L755,428 L848,348 L938,418 L1035,348 L1135,418 L1225,358 L1318,415 L1398,370 L1440,392 L1440,560 L0,560Z' fill='rgba(140,172,238,0.09)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Subtle dot grid background */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}


.hero-content {
    position: relative;
    z-index: 5;
    padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Orbiting data flow illustration */
.hero-illustration {
    flex: 0 0 auto;
    width: clamp(420px, 52vw, 720px);
    align-self: center;
}

.payroll-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 80px rgba(26, 102, 255, 0.15));
}

/* Core entrance */
.hero-core { opacity: 0; animation: coreAppear 1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards; }
.hero-core-ambient { opacity: 0; animation: coreAmbientIn 1.5s ease-out 0s forwards; }
.hero-core-pulse {
    opacity: 0;
    animation: coreAppear 0.8s ease-out 0.5s forwards, corePulse 3s ease-in-out 1.5s infinite;
}

/* Orbital rings rotate slowly */
.orbital-ring { opacity: 0; }
.orbital-ring-1 {
    animation: ringAppear 0.8s ease-out 0.4s forwards;
    transform-origin: 280px 270px;
}
.orbital-ring-2 {
    animation: ringAppear 0.8s ease-out 0.6s forwards;
    transform-origin: 280px 270px;
}
.orbital-ring-3 {
    animation: ringAppear 0.8s ease-out 0.8s forwards;
    transform-origin: 280px 270px;
}

/* Orbital nodes */
.orbital-node { opacity: 0; }
.orbital-node-1 { animation: nodeAppear 0.5s cubic-bezier(0.22,1,0.36,1) 0.7s forwards, nodeFloat 4s ease-in-out 1.2s infinite; }
.orbital-node-2 { animation: nodeAppear 0.5s cubic-bezier(0.22,1,0.36,1) 0.9s forwards, nodeFloat 4.5s ease-in-out 1.4s infinite; }
.orbital-node-3 { animation: nodeAppear 0.5s cubic-bezier(0.22,1,0.36,1) 1.1s forwards, nodeFloat 5s ease-in-out 1.6s infinite; }
.orbital-node-4 { animation: nodeAppear 0.5s cubic-bezier(0.22,1,0.36,1) 1.3s forwards, nodeFloat 4.2s ease-in-out 1.8s infinite; }
.orbital-node-5 { animation: nodeAppear 0.5s cubic-bezier(0.22,1,0.36,1) 1.0s forwards, nodeFloat 4.8s ease-in-out 1.5s infinite; }

/* Floating glass cards */
.hero-float-card { opacity: 0; }
.hero-float-card-1 { animation: cardSlideIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.8s forwards, cardHover 5s ease-in-out 1.4s infinite; }
.hero-float-card-2 { animation: cardSlideIn 0.6s cubic-bezier(0.22,1,0.36,1) 1.0s forwards, cardHover 5.5s ease-in-out 1.6s infinite; }
.hero-float-card-3 { animation: cardSlideIn 0.6s cubic-bezier(0.22,1,0.36,1) 1.2s forwards, cardHover 6s ease-in-out 1.8s infinite; }

/* Data streams animate */
.data-stream {
    stroke-dasharray: 12 8;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: streamAppear 0.8s ease-out var(--sd, 0.5s) forwards;
}
.data-stream-1 { --sd: 0.5s; animation: streamAppear 0.8s ease-out 0.5s forwards, streamFlow 3s linear 1.3s infinite; }
.data-stream-2 { --sd: 0.7s; animation: streamAppear 0.8s ease-out 0.7s forwards, streamFlow 3.5s linear 1.5s infinite; }
.data-stream-3 { --sd: 0.9s; animation: streamAppear 0.8s ease-out 0.9s forwards, streamFlow 4s linear 1.7s infinite; }

/* Connecting lines draw in */
.connect-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: lineDraw 0.8s ease-out var(--ld, 0.9s) forwards;
}
.connect-1 { --ld: 0.9s; }
.connect-2 { --ld: 1.1s; }
.connect-3 { --ld: 1.3s; }

/* Ambient dots pulse softly */
.dot-float {
    animation: dotPulse 3.5s ease-in-out infinite;
}
.dot-2 { animation-delay: 1.0s; }
.dot-3 { animation-delay: 1.8s; }
.dot-4 { animation-delay: 2.6s; }

@keyframes coreAppear {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes coreAmbientIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes corePulse {
    0%, 100% { r: 52; opacity: 0.3; }
    50%      { r: 60; opacity: 0.1; }
}

@keyframes ringAppear {
    from { opacity: 0; transform: scale(0.7) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes nodeAppear {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(15px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardHover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@keyframes streamAppear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes streamFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -40; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%       { opacity: 0.6;  transform: scale(1.2); }
}

@keyframes lineDraw {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
    .hero-illustration { display: none; }
    .hero-content { display: block; padding-top: clamp(5rem, 18vw, 7rem); }
}

.hero-label {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-400);
    margin-bottom: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-400);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero entrance — pure CSS animation, fires on render, no JS wait */
.reveal-char {
    opacity: 0;
    animation: heroReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* Reduced motion: skip animation entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal-char { animation: none; opacity: 1; }
}

/* --- Stats Bar --- */
.stats-bar {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.stats-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .stats-bar-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
    font-weight: 500;
}

/* --- Services Section --- */
/* ---- Services section header (split layout) ---- */
.services-header {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 900px) {
    .services-header {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 4rem;
    }
    .services-header-left {
        flex-shrink: 0;
    }
    .services-header-desc {
        max-width: 38ch;
        font-size: 1.0625rem;
        padding-bottom: 0.25rem;
        margin-top: 0;
    }
}

/* ---- Bento grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .service-card--featured {
        grid-column: span 2;
    }
    .service-card--cta {
        grid-column: 1 / -1;
    }
}

/* ---- Base card ---- */
.service-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

/* Decorative background number */
.service-num {
    position: absolute;
    top: -0.25rem;
    right: 0.875rem;
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: rgba(0, 0, 0, 0.045);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

/* Icon */
.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.375rem;
    color: var(--primary-500);
    flex-shrink: 0;
}

.service-icon svg {
    width: 44px;
    height: 44px;
}

/* Icon color variants */
.service-icon--amber  { color: var(--accent-500); }
.service-icon--emerald { color: #059669; }
.service-icon--indigo  { color: #4F46E5; }

/* Category label */
.service-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 0.375rem;
    display: block;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    flex: 1;
}

/* Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-500);
    margin-top: 1.25rem;
    transition: gap 0.15s var(--ease-out);
}

.service-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s var(--ease-out);
}

.service-link:hover { gap: 0.5rem; }
.service-link:hover svg { transform: translateX(3px); }

/* ---- Featured card (Lohnabrechnung) ---- */
.service-card--featured {
    background: var(--primary-900);
    border-color: transparent;
}

.service-card--featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 85% 10%, rgba(77, 136, 255, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.service-card--featured .service-num {
    color: rgba(255, 255, 255, 0.04);
}

.service-card--featured .service-icon {
    color: var(--accent-400);
}

.service-card--featured .service-tag {
    color: rgba(255, 255, 255, 0.45);
}

.service-card--featured h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: #ffffff;
}

.service-card--featured p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
}

.service-card--featured .service-link {
    color: var(--accent-400);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.125rem 0.5rem 1rem;
    width: fit-content;
    margin-top: auto;
    transition: background 0.2s var(--ease-out), gap 0.15s var(--ease-out);
}

.service-card--featured .service-link:hover {
    background: rgba(245, 158, 11, 0.22);
}

.service-card--featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 17, 51, 0.3);
    border-color: transparent;
}

/* ---- DLA Connect CTA card (full-width) ---- */
.service-card--cta {
    background: linear-gradient(140deg, #1449cc 0%, var(--primary-900) 100%);
    border-color: transparent;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
    .service-card--cta {
        flex-direction: row;
        align-items: center;
        gap: clamp(1.5rem, 4vw, 3rem);
    }
}

.service-cta-body {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.service-card--cta .service-icon {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.service-card--cta .service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card--cta .service-tag {
    color: rgba(255, 255, 255, 0.5);
}

.service-card--cta h3 {
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.service-card--cta p {
    color: rgba(255, 255, 255, 0.65);
}

.service-card--cta .service-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    padding: 0.625rem 1.375rem 0.625rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
    font-size: 0.875rem;
    transition: background 0.2s var(--ease-out), gap 0.15s var(--ease-out);
}

.service-card--cta .service-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.service-card--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20, 73, 204, 0.3);
    border-color: transparent;
}

/* --- Service Modal --- */
.service-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-out);
}

.service-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(620px, 96vw);
    z-index: calc(var(--z-modal) + 1);
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* iPad-specific: center modal on tablet portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-modal {
        top: 4%;
        bottom: 4%;
        right: 50%;
        transform: translateX(50%) translateX(100vw);
        width: min(600px, 90vw);
        border-radius: var(--radius-xl);
        max-height: 92vh;
    }
    .service-modal.active {
        transform: translateX(50%);
    }
    .service-modal.closing {
        transform: translateX(50%) translateX(100vw);
    }
}

.service-modal.active {
    transform: translateX(0);
}

.service-modal.closing {
    transform: translateX(100%);
}

/* Modal header with gradient */
.service-modal-header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    padding: 4rem clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
}

.service-modal-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.service-modal-inner {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.service-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.service-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-modal-icon svg {
    width: 30px;
    height: 30px;
}

.service-modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-sm);
    color: #FFFFFF;
}

.service-modal-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 480px;
}

.service-modal-section {
    margin-bottom: var(--space-xl);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.5rem);
    transition: box-shadow var(--transition-fast);
}

/* removed non-interactive hover */

.service-modal-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-modal-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.service-modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-modal-list li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

/* removed non-interactive hover */

.service-modal-list li::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0.9em;
    width: 5px;
    height: 5px;
    background: var(--primary-400);
    border-radius: 50%;
}

.service-modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    margin-top: var(--space-lg);
    min-height: 52px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 102, 255, 0.3);
}

.service-modal-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 102, 255, 0.4);
}

/* --- About / Über uns Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-visual {
    display: flex;
    align-items: stretch;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    width: 100%;
}

.about-stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* removed non-interactive hover */

.about-stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-500);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.about-stat-card--highlight {
    background: linear-gradient(145deg, #001f66, #003399);
    border-color: rgba(26,102,255,0.3);
    grid-column: span 2;
}

.about-cert-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-lg);
    padding: var(--space-xs) 0;
}

.about-cert {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.01em;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    margin-bottom: var(--space-lg);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
}

.about-feature-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

/* --- Trust Strip --- */
.trust-strip {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    overflow: hidden;
}

.trust-strip-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.trust-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.4rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--stone-50);
    white-space: nowrap;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.trust-logo svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.trust-logo:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

/* --- Image Break --- */
.image-break {
    background: linear-gradient(160deg, #020e2e 0%, #002080 55%, #001a66 100%);
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.image-break::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

/* Alpine scene SVG */
.image-break-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 1;
    pointer-events: none;
}

.image-break-img {
    width: 100%;
    height: 100%;
    display: block;
}

.image-break-text {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.image-break-text h2 {
    color: #FFFFFF;
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.image-break-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    margin-bottom: var(--space-xl);
}

.image-break-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}

.image-break-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- CTA Strip (replaces image-break on subpages) --- */
.cta-strip {
    background: linear-gradient(135deg, #001133 0%, #003399 100%);
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.cta-strip-inner {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.cta-strip-inner h2 {
    color: #FFFFFF;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.cta-strip-inner p {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

/* --- Process / Timeline Section --- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    height: 100%;
    background: var(--color-border);
}

@media (min-width: 768px) {
    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-line-fill {
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    z-index: 1;
    transition: height 0.1s linear;
}

@media (min-width: 768px) {
    .process-line-fill {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step {
    position: relative;
    padding-left: 64px;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
    .process-step {
        width: 50%;
        padding-left: 0;
        padding-right: 3rem;
    }

    .process-step:nth-child(even) {
        margin-left: 50%;
        padding-left: 3rem;
        padding-right: 0;
    }
}

.process-step-dot {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--color-bg);
    border: 3px solid var(--stone-300);
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition-normal);
}

.process-step.active .process-step-dot {
    border-color: var(--primary-500);
    background: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(26, 102, 255, 0.2);
}

@media (min-width: 768px) {
    .process-step-dot {
        left: auto;
        right: -9px;
    }

    .process-step:nth-child(even) .process-step-dot {
        left: -9px;
        right: auto;
    }
}

.process-step-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    margin-bottom: var(--space-md);
}

.process-step-icon svg {
    width: 20px;
    height: 20px;
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.process-step p {
    font-size: 0.875rem;
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

/* --- Calculator Section --- */
.calc-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
    align-items: start;
}

@media (min-width: 768px) {
    .calc-container {
        grid-template-columns: 1fr 1fr;
    }
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.calc-slider-group {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
}

.calc-slider-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.calc-slider-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Custom range slider — shared base */
.calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 100px;
    background: linear-gradient(
        to right,
        var(--primary-500) var(--progress, 0%),
        var(--stone-200) var(--progress, 0%)
    );
    outline: none;
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: block;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-500);
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(26, 102, 255, 0.4);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-range:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

.calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-500);
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(26, 102, 255, 0.4);
    cursor: pointer;
}

.calc-range::-moz-range-track {
    height: 4px;
    border-radius: 100px;
    background: var(--stone-200);
}

.calc-range::-moz-range-progress {
    height: 4px;
    border-radius: 100px;
    background: var(--primary-500);
}

/* Toggle switches */
.calc-toggles {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calc-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) clamp(1.25rem, 3vw, 1.75rem);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    min-height: 48px;
}

.calc-toggle-item:has(input:checked) {
    border-color: rgba(26, 102, 255, 0.2);
    background: var(--primary-50);
}

.calc-toggle-text {
    flex: 1;
}

.calc-toggle-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.calc-toggle-desc {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--stone-300);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Results panel */
.calc-results {
    position: sticky;
    top: 100px;
    background: linear-gradient(145deg, var(--primary-700) 0%, var(--primary-900) 60%, #001a4d 100%);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #FFFFFF;
    box-shadow: 0 20px 60px rgba(26, 102, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(26, 102, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.calc-results-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result-row:last-of-type {
    border-bottom: none;
}

.calc-result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.calc-result-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #FFFFFF;
}

.calc-result-value.highlight {
    font-size: 1.75rem;
    color: var(--accent-400);
    text-shadow: 0 0 24px rgba(45, 212, 191, 0.4);
}

.calc-result-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: var(--space-lg);
    line-height: 1.5;
}

.calc-results .btn {
    width: 100%;
    margin-top: var(--space-xl);
}

/* Audit info */
.audit-info {
    display: none;
    padding: var(--space-md) clamp(1.25rem, 3vw, 1.75rem);
    background: var(--primary-50);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.5;
}

.audit-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-500);
}

/* --- FAQ Section --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item[open] {
    border-color: rgba(26, 102, 255, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 3vw, 1.5rem);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    transition: transform 0.3s var(--ease-out);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 clamp(1.25rem, 3vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-info-text a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.contact-info-text a:hover {
    color: var(--color-accent-hover);
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-hover);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(26, 102, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    min-height: 48px;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.calc-data-checkbox {
    display: none;
}

/* --- Mountain Decoration --- */
.mountain-deco {
    line-height: 0;
    overflow: hidden;
    background: var(--color-bg-dark);
    margin-top: -1px;
}

.mountain-deco svg {
    width: 100%;
    height: clamp(60px, 8vw, 120px);
    display: block;
}

/* --- Footer --- */
.footer {
    background: var(--stone-900);
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(3rem, 6vw, 5rem) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-bottom-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-modal);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.cookie-banner p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.cookie-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.cookie-settings-panel {
    display: none;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.cookie-settings-panel.visible {
    display: block;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.cookie-setting-label {
    font-size: 0.8125rem;
    font-weight: 500;
}

.cookie-setting-label span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
}

.cookie-settings-save .btn {
    width: 100%;
    margin-top: var(--space-md);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-dropdown);
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--stone-900);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Scroll Reveal Animations (CSS transitions, triggered by IntersectionObserver) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-right {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-up.is-visible,
.reveal-scale.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* Reduced motion: show immediately */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-scale, .reveal-left, .reveal-right {
        opacity: 1; transform: none; transition: none;
    }
}


/* --- Utility Classes --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

/* --- Print Styles --- */
@media print {
    .navbar,
    .cookie-banner,
    .back-to-top {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}


/* --- Payroll Process Icons Animation --- */
@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes checkMark {
    0% { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

@keyframes foldDocument {
    0% { transform: perspective(200px) rotateX(0deg); }
    50% { transform: perspective(200px) rotateX(-15deg); }
    100% { transform: perspective(200px) rotateX(0deg); }
}

.process-step.active .icon-gear {
    animation: spinGear 3s linear infinite;
}

.process-step.active .icon-check {
    stroke-dasharray: 24;
    animation: checkMark 0.6s var(--ease-out) forwards;
}

.process-step.active .icon-document {
    animation: foldDocument 2s var(--ease-in-out) infinite;
}

/* --- Responsive Fine-tuning --- */

/* Small phones */
@media (max-width: 374px) {
    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-bar-inner {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        align-items: center;
    }

    .hero-content {
        padding-bottom: 4rem;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .section {
        padding: 10rem 0;
    }
}

/* --- Focus Styles for Accessibility --- */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--stone-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone-400);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--stone-300) transparent;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Service card hover --- */
.service-card {
    transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
    border-color: rgba(26, 102, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}


/* --- About image badge --- */
.about-image-badge {
    /* no float animation */
}

/* --- Stat numbers after counted --- */
.stat-number.counted {
    color: var(--stone-900);
}

/* --- Process step icon bounce on active --- */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.process-step.active .process-step-icon {
    animation: bounceIn 0.5s var(--ease-out) forwards;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-600);
}

/* --- Testimonial card hover --- */
.testimonial-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- FAQ open animation --- */
.faq-answer {
    animation: none;
}

details[open] .faq-answer {
    animation: fadeInUp 0.3s var(--ease-out);
}

/* --- CTA button on hero --- */
.hero-actions .btn--primary {
    /* no pulse animation */
}

/* --- Stats bar numbers animation --- */
.stat-item {
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
}

/* --- Image break reveal on scroll --- */
.image-break-text h2 {
    transition: transform 0.8s var(--ease-out), opacity 0.8s ease;
}

/* --- Section label animation --- */
.section-label {
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-400);
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease-out);
}

.section-label.revealed::after {
    width: 100%;
}

/* --- Contact form field focus animation --- */
.form-input,
.form-textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    transform: scale(1.005);
}

/* --- Back to top enhanced --- */
.back-to-top {
    transition: all 0.3s var(--ease-out);
}

.back-to-top:hover {
    transform: translateY(-6px) scale(1.1);
}

/* --- Scroll reveal left/right (fade-in only) --- */
.reveal-left {
    opacity: 0;
    transition: opacity 0.7s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transition: opacity 0.7s var(--ease-out);
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
}

/* --- Nav logo pulse on hover --- */
.navbar-logo .logo-mark {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.navbar-logo:hover .logo-mark {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(26, 102, 255, 0.35);
}

/* --- Section number subtle animation --- */
.section-number {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Footer links hover animation --- */
.footer-links a {
    position: relative;
    padding-left: 0;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    padding-left: 8px;
    color: #FFFFFF;
}

/* Lohnpakete / Pricing card styles for new pages */
.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    background: linear-gradient(145deg, var(--primary-700), var(--primary-900));
    border-color: var(--primary-500);
    color: #FFFFFF;
    transform: scale(1.03);
    box-shadow: 0 24px 60px rgba(26, 102, 255, 0.3);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-card--featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-500);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: var(--space-lg) 0 var(--space-sm);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    flex: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.5;
}

.pricing-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A66FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Team card styles for Über uns page */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 102, 255, 0.15);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-600);
    margin: 0 auto var(--space-lg);
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.team-role {
    font-size: 0.8125rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.team-bio {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Value card for Über uns page */
.value-card {
    display: flex;
    gap: var(--space-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    align-items: flex-start;
}

.value-card:hover {
    transform: translateX(6px);
    border-color: rgba(26, 102, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    flex-shrink: 0;
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.value-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Team grid: 3-person layout with photo --- */
.team-grid--three {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .team-grid--three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto var(--space-lg);
    border: 3px solid var(--primary-100);
    box-shadow: 0 4px 20px rgba(26, 102, 255, 0.12);
}

.team-card--featured {
    border-color: rgba(26, 102, 255, 0.15);
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--color-bg) 40%);
}

/* --- Service Modal: improved mobile layout --- */
@media (max-width: 640px) {
    .service-modal {
        width: 100vw;
        border-radius: 0;
    }

    .service-modal-header {
        padding: 3.5rem 1.25rem 1.25rem;
    }

    .service-modal-inner {
        padding: 1.25rem;
    }

    .service-modal-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .service-modal-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem 0.4rem 1.75rem;
    }

    .service-modal-list li::before {
        left: 0.5rem;
    }

    .service-modal-title {
        font-size: 1.25rem;
    }

    .service-modal-subtitle {
        font-size: 0.875rem;
    }

    .service-modal-section-title {
        font-size: 0.8rem;
    }

    .service-modal-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* --- Remove hover effects from non-interactive elements --- */
/* Stats bar items are not clickable */
.stat-item {
    transition: none;
}
.stat-item:hover {
    transform: none;
}

/* About stat cards are not clickable */
.about-stat-card {
    transition: none;
}
.about-stat-card:hover {
    transform: none;
    box-shadow: none;
}

/* Value cards on Über uns: not clickable */
.value-card {
    transition: none;
}
.value-card:hover {
    transform: none;
    border-color: var(--color-border);
    box-shadow: none;
}

/* Team cards hover stays (they have visual feedback) but reduce intensity */

/* Trust logos are not clickable */
.trust-logo {
    transition: none;
}
.trust-logo:hover {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

/* Section number - not interactive */
.section-number {
    transition: none;
}

/* --- Service card in-place expand --- */
.service-expand-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.service-expand-btn .expand-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.service-card.is-expanded .expand-chevron {
    transform: rotate(180deg);
}
.service-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.service-card.is-expanded .service-detail {
    max-height: 600px;
    opacity: 1;
}
.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-detail-list li {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}
.service-detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-400);
    font-size: 0.75rem;
}
.service-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    transition: background 0.15s ease;
}
.service-detail-cta:hover { background: var(--primary-100); }

/* DLA Connect card: only go row at full-width breakpoint */
@media (min-width: 640px) and (max-width: 1023px) {
    .service-card--cta {
        flex-direction: column !important;
    }
    .service-card--cta .service-link {
        align-self: flex-start;
    }
}
