/* ============================================================
   HEIERLI AG – Main Stylesheet
   Design: Full-width, no-box, edge-to-edge layout (WSP-inspired)
   with large hero video (ARX-inspired) and theme images (Ramboll)
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
    /* Brand Colors – from official Heierli logo */
    --color-primary: #0054B5;
    --color-primary-dark: #003d87;
    --color-primary-light: #1a6fd4;
    --color-accent: #0070e0;

    /* Neutrals */
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gray-900: #222222;
    --color-gray-800: #333333;
    --color-gray-700: #4a4a4a;
    --color-gray-600: #666666;
    --color-gray-500: #888888;
    --color-gray-400: #aaaaaa;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f0f0f0;
    --color-gray-50: #f8f8f8;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

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

    /* Layout */
    --max-width: 1400px;
    --nav-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ── Skip Link (A11y) ──────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ── Navigation ────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease,
                backdrop-filter var(--duration-normal) ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.site-header.scrolled .nav-link,
.site-header.scrolled .logo-link,
.site-header.scrolled .lang-toggle {
    color: var(--color-dark);
}

.site-header.scrolled .hamburger span {
    background: var(--color-dark);
}

.main-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 36px;
    width: auto;
}

.logo-white {
    display: block;
}

.logo-color {
    display: none;
}

.site-header.scrolled .logo-white {
    display: none;
}

.site-header.scrolled .logo-color {
    display: block;
}

/* On subpages the header starts scrolled-style */
.page-header-dark .logo-white {
    display: block;
}

.page-header-dark .logo-color {
    display: none;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
    color: white;
}

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

.site-header.scrolled .nav-link {
    color: var(--color-gray-700);
}

.site-header.scrolled .nav-link:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-toggle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background var(--duration-fast) ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .lang-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option {
    opacity: 0.5;
    transition: opacity var(--duration-fast) ease;
}

.lang-option.active {
    opacity: 1;
}

.lang-divider {
    opacity: 0.3;
}

/* Hamburger */
.menu-toggle {
    display: none;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-fast) ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--color-dark);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease,
                visibility var(--duration-normal) ease;
}

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: var(--space-lg);
}

.mobile-link {
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out);
}

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

.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; }

/* ── Hero Section ──────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.5) 30%,
        rgba(10, 10, 10, 0.5) 60%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 2;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-4xl);
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.20;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--color-accent);
    background: linear-gradient(135deg, #0054B5 0%, #1a8ae0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 640px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--duration-normal) var(--ease-out);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 106, 171, 0.35);
}

.btn-primary svg {
    transition: transform var(--duration-normal) var(--ease-out);
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-light {
    background: white;
    color: var(--color-primary);
}

.btn-light:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: var(--space-lg);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
    flex: 1;
    max-width: 300px;
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.hero-stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Sections Common ───────────────────────────────────── */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 36px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

.section-label-light {
    color: rgba(255, 255, 255, 0.8);
}

.section-label-light::before {
    background: rgba(255, 255, 255, 0.5);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
}

.section-title-light {
    color: white;
}

/* ── About Section ─────────────────────────────────────── */
.about-section {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: var(--space-md);
}

.about-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-lg);
}

.cert-badge {
    padding: 8px 16px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    letter-spacing: 0.02em;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-200);
    transition: transform var(--duration-slow) var(--ease-out);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--color-primary);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.2;
}

.about-values-card {
    position: relative;
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
}

.about-values-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

.about-values-card ul {
    list-style: none;
}

.about-values-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-gray-700);
    font-size: 0.95rem;
}

.about-values-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--color-primary);
}

/* ── Services Section ──────────────────────────────────── */
.services-section {
    background: var(--color-gray-50);
    padding-bottom: 0;
}

.services-showcase {
    display: flex;
    flex-direction: column;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.service-card:nth-child(even) {
    direction: rtl;
}

.service-card:nth-child(even) > * {
    direction: ltr;
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-300);
    transition: transform 1.2s var(--ease-out);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.service-card:hover .service-image-overlay {
    opacity: 1;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--color-white);
}

.service-index {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-gray-200);
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: color var(--duration-normal) ease;
}

.service-card:hover .service-index {
    color: rgba(6, 106, 171, 0.15);
}

.service-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.service-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    transition: gap var(--duration-normal) var(--ease-out);
}

.service-link:hover {
    gap: 16px;
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee-section {
    padding: var(--space-lg) 0;
    background: var(--color-dark);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

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

/* ── Projects Section ──────────────────────────────────── */
.projects-section {
    background: var(--color-white);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    border: 1.5px solid var(--color-gray-200);
    border-radius: 4px;
    transition: all var(--duration-fast) ease;
    letter-spacing: 0.01em;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-300);
    transition: transform 1s var(--ease-out);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.2) 50%,
        transparent 100%
    );
    color: white;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ── Parallax Quote ────────────────────────────────────── */
.parallax-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--color-gray-800);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
}

.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.parallax-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.5;
    color: white;
    margin-bottom: var(--space-lg);
}

.parallax-quote cite {
    display: block;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ── Team Section ──────────────────────────────────────── */
.team-section {
    background: var(--color-gray-50);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center top;
    background-color: var(--color-gray-200);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-out);
    filter: grayscale(30%);
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

/* ── News Section ──────────────────────────────────────── */
.news-section {
    background: var(--color-white);
}

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

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--color-gray-50);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease;
}

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

.news-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.news-card-featured .news-image {
    border-radius: 8px 0 0 8px;
}

.news-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-200);
    transition: transform var(--duration-slow) var(--ease-out);
}

.news-card-featured .news-image {
    height: 100%;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--color-dark);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ── Careers Section ───────────────────────────────────── */
.careers-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.careers-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}

.careers-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.85) 0%, rgba(4, 81, 127, 0.9) 100%);
}

.careers-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    padding: 0 var(--space-lg);
}

.careers-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
}

/* ── Contact Section ───────────────────────────────────── */
.contact-section {
    background: var(--color-gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

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

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.contact-item div {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 50%;
    color: var(--color-gray-600);
    transition: all var(--duration-fast) ease;
}

.contact-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.map-container {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-gray-200);
}

.map-container iframe {
    display: block;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 28px;
    width: auto;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color var(--duration-fast) ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a:hover {
    color: white;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .services-section .section-inner {
        padding-bottom: var(--space-xl);
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .service-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-card:nth-child(even) {
        direction: ltr;
    }

    .service-image-wrapper {
        height: 50vh;
    }

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

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

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

    .map-container {
        height: 350px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
        --space-4xl: 6rem;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: var(--space-md) var(--space-lg);
    }

    .hero-stat:nth-child(2) {
        border-right: none;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

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

    .project-card {
        aspect-ratio: 16/10;
    }

    .project-info {
        opacity: 1;
    }

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

    .news-card-featured {
        grid-template-columns: 1fr;
    }

    .news-card-featured .news-image {
        height: 250px;
        border-radius: 8px 8px 0 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        border-right: none;
    }
}

/* ── Placeholder Visuals (replace with real images) ────── */
/* Hero fallback when no video available */
.hero-video-container {
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #003d87 70%, #0054B5 100%);
}

/* Service images – gradient placeholders */
.service-card[data-index="1"] .service-image {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c4a5c 50%, #3a6070 100%);
}
.service-card[data-index="2"] .service-image {
    background: linear-gradient(135deg, #2a1a3a 0%, #3c2a5c 50%, #4a3870 100%);
}
.service-card[data-index="3"] .service-image {
    background: linear-gradient(135deg, #1a3a2a 0%, #2c5c3a 50%, #3a7050 100%);
}
.service-card[data-index="4"] .service-image {
    background: linear-gradient(135deg, #3a2a1a 0%, #5c4a2c 50%, #70603a 100%);
}

/* Project card placeholders */
.project-card:nth-child(1) .project-image { background: linear-gradient(135deg, #1a3040 0%, #2a5060 100%); }
.project-card:nth-child(2) .project-image { background: linear-gradient(135deg, #102838 0%, #1a4858 100%); }
.project-card:nth-child(3) .project-image { background: linear-gradient(135deg, #182840 0%, #284060 100%); }
.project-card:nth-child(4) .project-image { background: linear-gradient(135deg, #0a2030 0%, #1a3848 100%); }
.project-card:nth-child(5) .project-image { background: linear-gradient(135deg, #142838 0%, #1e4050 100%); }
.project-card:nth-child(6) .project-image { background: linear-gradient(135deg, #1a2030 0%, #2a3848 100%); }

/* About image */
.about-image {
    background: linear-gradient(135deg, #e8edf2 0%, #c8d4e0 50%, #a8b8c8 100%) !important;
}

/* Team photos */
.team-photo {
    background: linear-gradient(180deg, #d0d8e0 0%, #a0b0c0 100%) !important;
}

/* News images */
.news-card:nth-child(1) .news-image { background: linear-gradient(135deg, #1a3050 0%, #2a5070 100%); }
.news-card:nth-child(2) .news-image { background: linear-gradient(135deg, #182848 0%, #284868 100%); }
.news-card:nth-child(3) .news-image { background: linear-gradient(135deg, #102838 0%, #1e4858 100%); }
.news-card:nth-child(4) .news-image { background: linear-gradient(135deg, #1a2840 0%, #2a4860 100%); }

/* Parallax & Careers */
.parallax-bg {
    background: linear-gradient(135deg, #0a1420 0%, #162840 50%, #1a3858 100%) !important;
}
.careers-bg {
    background: linear-gradient(135deg, #0a1828 0%, #142840 100%) !important;
}

/* ============================================================
   SUBPAGE STYLES
   ============================================================ */

/* ── Page Header (Subpages) ────────────────────────────── */
.page-header {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #003d87 70%, #0054B5 100%);
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-2xl);
    color: white;
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.page-header-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    line-height: 1.7;
    font-weight: 300;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
    margin-bottom: var(--space-lg);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.breadcrumb li a:hover {
    color: white;
}

.breadcrumb li + li::before {
    content: '›';
    color: rgba(255,255,255,0.4);
    font-size: 1.1em;
}

.breadcrumb li[aria-current="page"] {
    color: white;
    font-weight: 500;
}

/* ── Active Nav Link ───────────────────────────────────── */
.nav-link.active {
    color: white;
}

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

.site-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 1;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-dark);
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    max-width: 520px;
}

/* ── Value Cards ───────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease,
                border-color var(--duration-fast) ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.value-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 84, 181, 0.08);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ── Certification Grid ────────────────────────────────── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.cert-card {
    flex: 1 1 140px;
    max-width: 200px;
    padding: var(--space-lg);
    text-align: center;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    transition: border-color var(--duration-fast) ease;
}

.cert-card:hover {
    border-color: var(--color-primary);
}

.cert-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.cert-card-desc {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    margin-top: 4px;
}

/* ── Service Detail (Geschäftsbereiche page) ───────────── */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 60vh;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-detail-image > div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease-out);
}

.service-detail:hover .service-detail-image > div {
    transform: scale(1.04);
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) var(--space-2xl);
}

.service-detail-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-gray-100);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.service-detail h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.service-detail p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: var(--space-sm);
}

.service-detail-list {
    list-style: none;
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-detail-list li {
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-gray-700);
}

.service-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 2px;
    background: var(--color-primary);
}

/* ── News List (full page) ─────────────────────────────── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.news-list-item {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-gray-200);
    transition: transform var(--duration-normal) var(--ease-out);
}

.news-list-item:hover {
    transform: translateX(8px);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.news-list-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.news-list-content p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ── Karriere Page ─────────────────────────────────────── */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.benefit-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease;
}

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

.benefit-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 84, 181, 0.08);
    border-radius: 16px;
    color: var(--color-primary);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    transition: border-color var(--duration-fast) ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 84, 181, 0.1);
}

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

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

/* ── Subpage Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    .service-detail-image {
        min-height: 300px;
    }
    .news-list-item {
        grid-template-columns: 1fr;
    }
}

/* ── Job Cards (Karriere) ──────────────────────────────── */
.job-list {
    display: flex;
    flex-direction: column;
}

.job-card {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--duration-normal) var(--ease-out);
}

.job-card:hover {
    transform: translateX(8px);
}

.job-card:last-child {
    border-bottom: none;
}

.job-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.job-card-info span {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.job-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-200);
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all var(--duration-fast) ease;
}

.job-card:hover .job-card-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

@media (max-width: 768px) {
    .page-header {
        min-height: 35vh;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Print Styles ──────────────────────────────────────── */
@media print {
    .site-header,
    .hero-video-container,
    .hero-particles,
    .hero-scroll-indicator,
    .marquee-section,
    .mobile-menu {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem;
    }

    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }
}
