/* ============================================
   SKILLWORKS AG — Stylesheet (Pure CSS)
   Corporate Theme with CSS Variables
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    /* Corporate Color Palette */
    --skw-50: #e5f4fb;
    --skw-100: #bde3f4;
    --skw-200: #91d0ed;
    --skw-300: #65bde6;
    --skw-400: #44afe0;
    --skw-500: #23a1db;
    --skw-600: #1f99d7;
    --skw-700: #1a8fd2;
    --skw-800: #1585cd;
    --skw-900: #0c74c4;
    --skw-A100: #f0f8ff;
    --skw-A200: #bde0ff;
    --skw-A400: #8ac8ff;
    --skw-A700: #70bbff;

    /* Primary Colors - Updated to Corporate Theme */
    /* Brand token (requested main color) */
    --sw-brand: #22a1db;
    /* a slightly darker tint for hover/strong states */
    --sw-brand-dark: #1f99d7;
    --sw-primary: var(--sw-brand);
    --sw-primary-dark: var(--sw-brand-dark);
    --sw-primary-light: var(--skw-50);

    /* Secondary/Accent Colors - From corporate palette */
    --sw-accent: var(--sw-brand);
    --sw-accent-light: var(--skw-A100);
    --sw-accent-strong: var(--sw-brand-dark);
    --sw-accent-deep: var(--skw-900);

    /* Secondary highlight (warm contrast to the blue brand spectrum) — baseline set to user's invert color */
    --sw-highlight: #dd652e; /* baseline (invert of main color) */
    --sw-highlight-dark: #bc5527;
    --sw-highlight-light: #fff0e6;
    --sw-highlight-strong: #a64b22;

    /* highlight RGB helpers and a ready-to-use accent gradient */
    --sw-highlight-rgb: 221, 101, 46; /* #dd652e */
    --sw-highlight-dark-rgb: 188, 85, 39; /* #bc5527 */
    /* use brand-only accent gradient (remove mixing with highlight) */
    --sw-accent-gradient: linear-gradient(135deg, var(--sw-brand-dark), var(--sw-brand));

    /* project-specific palette removed — use theme tokens only */

    /* Neutral Colors */
    --sw-light: #f4f6f9;
    --sw-mid: #d0dce8;
    --sw-text: #1a2535;
    --sw-muted: #5a6a7e;
    --sw-white: #fff;
    --sw-black: #060f1c;

    /* Differentiated support colors in the same corporate spectrum */
    --sw-support-1: var(--skw-400);
    /* make a support token align with brand where used for CTAs */
    --sw-support-2: var(--sw-brand);
    --sw-support-3: var(--skw-600);
    --sw-support-4: var(--skw-800);

    /* Surface and glow tokens for modern depth effects */
    --sw-surface-1: rgba(255, 255, 255, 0.74);
    --sw-surface-2: rgba(229, 244, 251, 0.66);
    --sw-glass-border: rgba(255, 255, 255, 0.34);
    --sw-shadow-soft: 0 16px 40px rgba(34, 161, 219, 0.13);
    --sw-shadow-hover: 0 22px 48px rgba(34, 161, 219, 0.2);
    --sw-nav-shadow: 0 10px 30px rgba(34, 161, 219, 0.12);
    --parallax-image: none;
    --parallax-opacity: 0.26;
    --parallax-offset: 0px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-fast: 0.18s ease;
    /* rgb helpers for rgba(var(--...-rgb), alpha) usage */
    --sw-brand-rgb: 34, 161, 219; /* #22a1db */
    --skw-400-rgb: 68, 175, 224; /* #44afe0 */
    --skw-100-rgb: 189, 227, 244; /* #bde3f4 */
    --skw-A400-rgb: 138, 200, 255; /* #8ac8ff */
    --skw-A700-rgb: 112, 187, 255; /* #70bbff */
    --skw-300-rgb: 101, 189, 230; /* #65bde6 */
    --skw-800-rgb: 21, 133, 205; /* #1585cd */
    --skw-900-rgb: 12, 116, 196; /* #0c74c4 */
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--sw-text);
    background: var(--sw-white);
}

body.home {
    --scroll-y: 0px;
    --mx: 50%;
    --my: 50%;
    background: radial-gradient(1200px 550px at 10% -10%, rgba(var(--skw-A700-rgb), 0.18), transparent 60%),
    radial-gradient(1100px 600px at 90% 0%, rgba(var(--skw-400-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, #f8fcff 0%, #eef7fd 35%, #f8fcff 100%);
    background-attachment: fixed;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sw-accent-deep);
    margin-bottom: 0.6rem;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--sw-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.section-head p + p {
    margin-top: 0.6rem;
}

body.home section {
    position: relative;
    isolation: isolate;
}

body.home section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translate3d(0, calc(var(--scroll-y) * -0.08), 0);
    transition: transform 0.25s linear;
    pointer-events: none;
}

body.home .parallax-layer {
    position: absolute;
    inset: -8% 0 auto;
    height: 120%;
    z-index: -2;
    pointer-events: none;
    background-image: none;
    background-size: cover;
    background-position: center;
    opacity: 0.26;
    transform: translate3d(0, var(--parallax-offset, 0px), 0) scale(1.06);
}

body.home .services::before,
body.home .projects::before,
body.home .why::before,
body.home .news-section::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 252, 0.82));
}

body.home .hero {
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 28px 72px rgba(6, 31, 59, 0.34);
    min-height: 64vh;
    display: grid;
    align-content: center;
    /* kompaktere Hero-Abstände */
    padding-top: clamp(3.75rem, 7.5vh, 5rem);
    padding-bottom: clamp(3rem, 6.5vh, 4.5rem);
    background-image: url(../img/header.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

body.home .hero::before {
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.65), transparent 16%),
    radial-gradient(circle at 86% 20%, rgba(var(--skw-A400-rgb), 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(var(--sw-brand-rgb), 0.015), rgba(var(--sw-brand-rgb), 0.06));
    opacity: 1;
    transform: none;
}

body.home .hero::after {
    content: '';
    position: absolute;
    width: min(52vw, 560px);
    height: min(52vw, 560px);
    right: -16%;
    top: -26%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 60% 60%, rgba(var(--skw-300-rgb), 0.12), rgba(var(--skw-300-rgb), 0) 66%);
    filter: blur(4px);
    z-index: -1;
    transform: none;
}

body.home .hero .hero-btns,
body.home .hero .hero-stats,
body.home .hero h1,
body.home .hero .hero-lead,
body.home .hero .hero-eyebrow {
    transform: none;
}

body.home .hero .hero-glass-card {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2.5vw, 2rem);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.34));
    box-shadow: 0 14px 36px rgba(6, 31, 59, 0.2);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}


body.home .hero-btns .btn-primary,
body.home .hero-btns .btn-outline,
body.home .nav-cta,
body.home .cta-btn,
body.home .contact-form button {
    box-shadow: 0 10px 26px rgba(34, 161, 219, 0.25);
}

body.home .card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 254, 0.92));
    box-shadow: var(--sw-shadow-soft);
    -webkit-backdrop-filter: blur(8px);
}

body.home .projects,
body.home .services,
body.home .why,
body.home .news-section {
    max-width: 1100px;
    width: calc(100% - 2rem);
    border-radius: 24px;
    margin: 1rem auto 0;
    border: none;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 254, 0.92));
    box-shadow: var(--sw-shadow-soft);
    -webkit-backdrop-filter: blur(8px);
    transform: translate3d(0, var(--parallax-offset), 0);
    will-change: transform;
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    body.home .card,
    body.home .proj-card,
    body.home .team-card,
    body.home .news-card,
    body.home .val-card,
    body.home .scada-benefit-card,
    body.home .use-item,
    body.home .roadmap-list li {
        background: #f7fbff;
    }
}

body.home .card:hover,
body.home .proj-card:hover,
body.home .team-card:hover,
body.home .news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sw-shadow-hover);
}

body.home .section-head h2 {
    letter-spacing: -0.015em;
    text-wrap: balance;
}

body.home .section-head p,
body.home .about-text p,
body.home .proj-body p,
body.home .card p,
body.home .why-item p,
body.home .news-card-body p {
    color: #49607a;
}

body.home .hero-stats {
    gap: 1.5rem;
}

body.home .stat-item {
    min-width: 130px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

body.home .logo-scroll-wrap::before {
    background: linear-gradient(to right, #f8fcff, transparent);
}

body.home .logo-scroll-wrap::after {
    background: linear-gradient(to left, #f8fcff, transparent);
}

body.home .reveal-on-scroll {
    --reveal-y: 30px;
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-offset, 0px)), 0) scale(0.99);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

body.home .reveal-on-scroll.is-revealed {
    --reveal-y: 0px;
    opacity: 1;
    transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-offset, 0px)), 0) scale(1);
}

body.home .hero .reveal-on-scroll {
    --reveal-y: 18px;
    transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-offset, 0px)), 0);
}

body.home .projects,
body.home .services,
body.home .why,
body.home .news-section {
    width: min(1360px, calc(100% - 1rem));
    border-radius: 24px;
    margin: 1rem auto 0;
    border: none;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 253, 0.88));
    box-shadow: var(--sw-shadow-soft);
}

body.home .about,
body.home .clients {
    width: min(1360px, calc(100% - 1rem));
    border-radius: 24px;
    margin: 1rem auto 0;
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 252, 0.82));
    border: none;
    overflow: hidden;
    box-shadow: var(--sw-shadow-soft);
}

body.home .services-inner,
body.home .projects-inner,
body.home .news-inner,
body.home .why-inner {
    max-width: 100%;
}

body.home .hero-eyebrow,
body.home .page-eyebrow {
    border: 1px solid rgba(34, 161, 219, 0.14); /* use brand tint for visibility */
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    background: linear-gradient(90deg, rgba(34, 161, 219, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--sw-primary-dark);
    border-radius: 20px;
}

body.home .contact {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    margin-top: 1.5rem;
    overflow: hidden;
}

body.home .contact::before {
    background: radial-gradient(circle at 15% 20%, rgba(var(--skw-A700-rgb), 0.22), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(var(--skw-400-rgb), 0.18), transparent 40%);
    transform: translate3d(0, calc(var(--scroll-y) * -0.12), 0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(var(--skw-800-rgb), 0.14);
    box-shadow: var(--sw-nav-shadow);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sw-primary-dark);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-mark {
    height: clamp(30px, 4vw, 35px);
    width: auto;
    display: block;
}

.logo span {
    color: var(--sw-primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #425a74;
    font-size: 14px;
    font-weight: 600;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--sw-accent-deep);
    background: rgba(var(--skw-A700-rgb), 0.12);
}

.nav-links a.active {
    color: var(--sw-accent-deep);
    background: rgba(var(--skw-A700-rgb), 0.18);
}

.nav-cta {
    /* subtle mix of brand + warm highlight for a modern look */
    /* nav CTA: use brand-only gradient instead of mixing in the secondary highlight color */
    background: linear-gradient(135deg, var(--sw-primary-dark), var(--sw-primary));
    color: var(--sw-white);
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.nav-cta:hover {
    opacity: 0.88;
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--sw-primary-dark);
    font-size: 22px;
    cursor: pointer;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1rem;
}

.lang-switch span {
    color: rgba(34, 161, 219, 0.35);
    font-size: 12px;
}

.lang-btn {
    color: #4d6480;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-btn:hover {
    color: var(--sw-accent-deep);
}

.lang-btn.active {
    color: var(--sw-accent-deep);
    background: rgba(var(--skw-A700-rgb), 0.2);
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    gap: 1rem;
    border-top: 1px solid rgba(var(--skw-800-rgb), 0.16);
    box-shadow: var(--sw-nav-shadow);
    position: sticky;
    top: 76px;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    opacity: 0;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.open {
    max-height: 500px;
    padding: 1rem 2rem;
    opacity: 1;
}

.mobile-menu a {
    color: #3d5470;
    font-size: 15px;
    font-weight: 600;
}


.mobile-nav-label {
    color: rgba(34, 161, 219, 0.55);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: -0.25rem;
}

.mobile-sub-link {
    padding-left: 0.75rem;
    border-left: 2px solid var(--sw-accent);
    font-size: 14px !important;
}

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-toggle {
    color: #425a74;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    font-family: inherit;
    line-height: inherit;
    transition: color var(--transition), background-color var(--transition);
}

.nav-dropdown-toggle::after {
    /* down-triangle (use escape to avoid encoding issues) */
    content: '\25BE';
    font-size: 10px;
    opacity: 0.7;
}

.nav-dropdown-toggle:hover {
    color: var(--sw-accent-deep);
    background: rgba(var(--skw-A700-rgb), 0.12);
}

.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: var(--sw-accent-deep);
    background: rgba(var(--skw-A700-rgb), 0.18);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--sw-white);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    min-width: 230px;
    box-shadow: 0 16px 36px rgba(34, 161, 219, 0.18);
    border: 1px solid rgba(var(--skw-800-rgb), 0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 200;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--sw-white);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: rgba(var(--skw-A700-rgb), 0.14);
}

.di-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-primary);
    display: block;
    margin-bottom: 2px;
}

.di-desc {
    font-size: 12px;
    color: var(--sw-muted);
    display: block;
    line-height: 1.4;
}

/* ============================================
   PRODUCT PAGE (SCADA, PROJECTS, etc.)
   ============================================ */
.page-hero {
    background: radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(180, 231, 255, 0.62), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef8fd 36%, #d7eefb 68%, #9fd7f2 100%);
    padding: 3.5rem 2.5rem 3rem;
    text-align: center;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(22, 52, 83, 0.66);
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: rgba(22, 52, 83, 0.76);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--sw-primary-dark);
}

.breadcrumb span {
    color: rgba(22, 52, 83, 0.38);
}

.page-eyebrow {
    display: inline-block;
    background: rgba(34, 161, 219, 0.08);
    color: var(--sw-primary-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--sw-primary-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero-desc {
    color: rgba(22, 52, 83, 0.8);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.page-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.content-placeholder {
    background: var(--sw-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed var(--sw-mid);
}

.content-placeholder p {
    color: var(--sw-muted);
    font-size: 15px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #061a31 0%, #0b3563 42%, #0d5a97 100%);
    padding: 4.25rem 2.5rem 3.5rem;
    text-align: center;
    justify-items: center; /* center direct grid children (hero-eyebrow etc.) */
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* eyebrow: subtle brand tint only (removed highlight stop) */
    background: linear-gradient(90deg, rgba(var(--sw-brand-rgb), 0.08), rgba(var(--sw-brand-rgb), 0.02));
    color: var(--sw-primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 22px;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--sw-highlight-rgb), 0.12);
    box-shadow: 0 6px 18px rgba(var(--sw-highlight-rgb), 0.05), 0 4px 10px rgba(var(--sw-brand-rgb), 0.03);
}

.hero h1 {
    font-size: clamp(2.15rem, 4.4vw, 3.65rem);
    font-weight: 700;
    color: var(--sw-text);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.hero h1 em {
    background: linear-gradient(90deg, var(--sw-highlight-dark), var(--sw-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: normal;
}

.hero > p,
.hero .hero-lead {
    color: rgba(41, 71, 99, 0.92);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    /* primary button: remove mixing with highlight, keep brand shades */
    background: linear-gradient(135deg, var(--sw-brand-dark) 0%, var(--sw-brand) 100%);
    color: var(--sw-white);
    border: none;
    padding: 13px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 14px 30px rgba(var(--sw-brand-rgb), 0.18), 0 18px 40px rgba(var(--sw-highlight-rgb), 0.06);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-primary-dark);
    border: 1.5px solid rgba(34, 161, 219, 0.22);
    padding: 13px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
    backdrop-filter: blur(6px);
}

.btn-outline:hover {
    border-color: rgba(var(--sw-highlight-rgb), 0.28);
    background: linear-gradient(180deg, rgba(var(--sw-highlight-rgb), 0.06), rgba(255, 255, 255, 0.9));
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2.75rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0.9rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(34, 161, 219, 0.12);
    backdrop-filter: blur(8px);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sw-primary-dark);
}

.stat-num span {
    /* gradient accent for numbers */
    /* number accent: brand-only gradient (no secondary highlight) */
    background: linear-gradient(90deg, var(--sw-brand-dark), var(--sw-brand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 12px;
    color: rgba(41, 71, 99, 0.74);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 5rem 2.5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about-text p {
    color: var(--sw-muted);
    margin-bottom: 1rem;
}

.about-values {
    flex: 1;
    min-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.val-card {
    background: var(--sw-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--sw-highlight);
}

.val-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-primary);
    margin-bottom: 4px;
}

.val-card p {
    font-size: 13px;
    color: var(--sw-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--sw-light);
    padding: 5rem 2.5rem;
}

.services-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--sw-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--sw-mid);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.1);
}

.card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sw-primary);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.6;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--sw-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ============================================
   CLIENTS — Logo Band
   ============================================ */
.clients {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-scroll-wrap {
    overflow: hidden;
    position: relative;
    margin-top: 2.5rem;
}

.logo-scroll-wrap::before,
.logo-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.logo-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--sw-white), transparent);
}

.logo-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--sw-white), transparent);
}

.logo-track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    animation: scroll-logos 70s linear infinite;
    width: max-content;
}

.logo-scroll-wrap:hover .logo-track {
    animation-play-state: paused;
}

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

.logo-item {
    flex-shrink: 0;
    height: 48px;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--sw-light);
    padding: 5rem 2.5rem;
}

.projects-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.proj-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sw-mid);
    background: var(--sw-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26, 58, 92, 0.12);
}

.proj-card:focus-visible {
    outline: 3px solid var(--sw-highlight);
    outline-offset: 3px;
}

.proj-header {
    height: 7px;
}

.proj-header.blue {
    background: var(--sw-primary);
}

.proj-header.accent {
    background: var(--sw-highlight);
}

.proj-header.teal {
    background: var(--sw-support-2);
}

.proj-header.purple {
    background: var(--sw-support-4);
}

.proj-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.proj-body h3 {
    font-size: 16px;
    font-weight: 600;
    /* use dark text for best contrast on card backgrounds */
    color: var(--sw-text);
    margin: 0 0 0.5rem;
}

.proj-body p {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.proj-card .proj-card-link {
    display: inline-flex;
    position: relative;
    padding: 0;
    margin-top: auto;
}

.proj-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.proj-tag.it {
    background: var(--skw-A100);
    color: var(--sw-support-4);
}

.proj-tag.beratung {
    background: var(--skw-A200);
    color: var(--sw-support-4);
}

.proj-tag.infrastruktur {
    background: var(--skw-200);
    color: var(--sw-support-3);
}

.proj-tag.digital {
    background: var(--skw-A200);
    color: var(--sw-support-4);
}

.proj-tag.pls {
    background: var(--skw-A400);
    color: var(--sw-accent-deep);
}

.proj-tag.automotive {
    background: var(--skw-A400);
    color: var(--sw-support-3);
}

.proj-tag.logistik {
    background: var(--skw-A200);
    color: var(--sw-support-4);
}

.proj-tag.hr {
    background: #EDE9FF;
    color: #4A3B9E;
}

.proj-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-accent);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap var(--transition);
    position: relative; /* allow ::after underline */
}

.proj-card:hover .proj-card-link,
.proj-card:focus-visible .proj-card-link,
.proj-card-link:hover {
    gap: 0.65rem;
}

/* subtle underline gradient animation for project/news links (use theme colors) */
.proj-card-link::after,
.news-card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 4px;
    width: 100%;
    /* project/news link underline: use accent → accent-dark instead of mixing in highlight */
    background: linear-gradient(90deg, var(--sw-accent), var(--sw-primary-dark));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(.2, .9, .2, 1);
    pointer-events: none;
}

.proj-card:hover .proj-card-link::after,
.proj-card:focus-visible .proj-card-link::after,
.proj-card-link:hover::after,
.news-card:hover .news-card-link::after,
.news-card:focus-visible .news-card-link::after,
.news-card-link:hover::after {
    transform: scaleX(1);
}

/* Assign project accents using theme tokens (rotate to avoid duplicates)
   — make header, border, link and pill consistent per card */
.projects .proj-card:nth-child(1) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(1) .proj-header {
    background: var(--sw-primary);
}

.projects .proj-card:nth-child(1) .proj-body .proj-card-link {
    color: var(--sw-primary);
}

.projects .proj-card:nth-child(1) .proj-body .proj-card-link::after {
    background: var(--sw-primary);
}

.projects .proj-card:nth-child(1) .proj-body .proj-tag {
    background: rgba(var(--sw-brand-rgb), 0.08);
    color: var(--sw-primary);
    border: 1px solid rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(2) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(2) .proj-header {
    background: var(--sw-support-2);
}

.projects .proj-card:nth-child(2) .proj-body .proj-card-link {
    color: var(--sw-support-2);
}

.projects .proj-card:nth-child(2) .proj-body .proj-card-link::after {
    background: var(--sw-support-2);
}

.projects .proj-card:nth-child(2) .proj-body .proj-tag {
    background: rgba(var(--sw-brand-rgb), 0.08);
    color: var(--sw-support-2);
    border: 1px solid rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(3) {
    border-color: rgba(var(--skw-800-rgb), 0.12);
}

.projects .proj-card:nth-child(3) .proj-header {
    background: var(--sw-support-4);
}

.projects .proj-card:nth-child(3) .proj-body .proj-card-link {
    color: var(--sw-support-4);
}

.projects .proj-card:nth-child(3) .proj-body .proj-card-link::after {
    background: var(--sw-support-4);
}

.projects .proj-card:nth-child(3) .proj-body .proj-tag {
    background: rgba(var(--skw-800-rgb), 0.08);
    color: var(--sw-support-4);
    border: 1px solid rgba(var(--skw-800-rgb), 0.12);
}

.projects .proj-card:nth-child(4) {
    border-color: rgba(var(--skw-400-rgb), 0.12);
}

.projects .proj-card:nth-child(4) .proj-header {
    background: var(--sw-support-1);
}

.projects .proj-card:nth-child(4) .proj-body .proj-card-link {
    color: var(--sw-support-1);
}

.projects .proj-card:nth-child(4) .proj-body .proj-card-link::after {
    background: var(--sw-support-1);
}

.projects .proj-card:nth-child(4) .proj-body .proj-tag {
    background: rgba(var(--skw-400-rgb), 0.08);
    color: var(--sw-support-1);
    border: 1px solid rgba(var(--skw-400-rgb), 0.12);
}

.projects .proj-card:nth-child(5) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(5) .proj-header {
    background: var(--sw-primary);
}

.projects .proj-card:nth-child(5) .proj-body .proj-card-link {
    color: var(--sw-primary);
}

.projects .proj-card:nth-child(5) .proj-body .proj-card-link::after {
    background: var(--sw-primary);
}

.projects .proj-card:nth-child(5) .proj-body .proj-tag {
    background: rgba(var(--sw-brand-rgb), 0.08);
    color: var(--sw-primary);
    border: 1px solid rgba(var(--sw-brand-rgb), 0.12);
}

/* rotate the palette for additional cards */
.projects .proj-card:nth-child(6n + 1) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(6n + 1) .proj-header {
    background: var(--sw-primary);
}

.projects .proj-card:nth-child(6n + 2) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(6n + 2) .proj-header {
    background: var(--sw-support-2);
}

.projects .proj-card:nth-child(6n + 3) {
    border-color: rgba(var(--skw-800-rgb), 0.12);
}

.projects .proj-card:nth-child(6n + 3) .proj-header {
    background: var(--sw-support-4);
}

.projects .proj-card:nth-child(6n + 4) {
    border-color: rgba(var(--skw-400-rgb), 0.12);
}

.projects .proj-card:nth-child(6n + 4) .proj-header {
    background: var(--sw-support-1);
}

.projects .proj-card:nth-child(6n + 5) {
    border-color: rgba(var(--sw-brand-rgb), 0.12);
}

.projects .proj-card:nth-child(6n + 5) .proj-header {
    background: var(--sw-primary);
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1rem;
}

.proj-tech span {
    font-size: 11px;
    background: var(--sw-light);
    color: var(--sw-muted);
    border: 1px solid var(--sw-mid);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.proj-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 12px;
    color: var(--sw-muted);
    flex-wrap: wrap;
}

.proj-meta span::before {
    /* middle dot (use escape to avoid mojibake) */
    content: '\00B7';
    margin-right: 5px;
    color: var(--sw-highlight);
}

/* Ensure the project pill text is centered without changing its padding/border-radius */
.proj-card .proj-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}


/* ============================================
   WHY SKILLWORKS SECTION
   ============================================ */
.why {
    padding: 5rem 2.5rem;
}

.why-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-primary);
    margin-bottom: 3px;
}

.why-item p {
    font-size: 13px;
    color: var(--sw-muted);
}

.team-highlight {
    margin-top: 3.25rem;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--sw-white);
    border: 1px solid var(--sw-mid);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}

.team-card img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0 auto 0.8rem;
}

.team-card h4 {
    font-size: 15px;
    color: var(--sw-primary);
    margin-bottom: 0.2rem;
}

.team-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sw-highlight-dark);
    margin-bottom: 0.5rem;
}

/* small accent dot for team names — alternating orange for odd cards */
.team-cards .team-card h4 {
    position: relative;
    /* reduced padding to avoid layout shifts */
    padding-left: 12px;
    margin-bottom: 0.2rem;
}

.team-cards .team-card h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sw-primary);
    box-shadow: 0 6px 18px rgba(var(--sw-brand-rgb), 0.06);
}

.team-cards .team-card:nth-child(odd) h4::before {
    background: var(--sw-highlight);
    box-shadow: 0 8px 20px rgba(var(--sw-highlight-rgb), 0.12);
}

.team-card p {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.5;
}

.team-card a {
    color: inherit;
}

.why-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sw-accent);
    margin-top: 6px;
    flex-shrink: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    /* Softer, modern gradient background (less saturated than a full solid blue)
       plus a subtle dark overlay to ensure white text remains readable. */
    background: linear-gradient(180deg, rgba(6, 31, 59, 0.08), rgba(6, 31, 59, 0.12)),
    linear-gradient(135deg, #5055a5 0%, var(--sw-brand-dark) 45%, #1F99D7 100%);
    padding: 5rem 2.5rem;
    text-align: center;
}

.contact .section-tag {
    color: var(--skw-A200);
}

.contact h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sw-white);
    margin-bottom: 0.75rem;
}

.contact > p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.contact-info {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.ci strong {
    display: block;
    color: var(--skw-A200);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ci span,
.ci a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.ci a:hover {
    color: var(--sw-white);
}

.contact-form {
    display: flex;
    gap: 1rem;
    max-width: 540px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    outline: none;
}

.contact-form input {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sw-white);
    font-size: 14px;
    transition: border-color var(--transition);
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    flex-basis: 100%;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sw-white);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 110px;
    transition: border-color var(--transition);
}

.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button {
    background: linear-gradient(135deg, var(--sw-highlight-dark) 0%, var(--sw-highlight) 100%);
    color: var(--sw-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--transition);
}

.contact-form button:hover {
    opacity: 0.88;
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-map {
    display: block;
    max-width: 720px;
    margin: 2rem auto 0;
    background: var(--sw-white);
    padding: 0.45rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-map img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-subhead {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--sw-white);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--sw-black);
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MODAL
   ============================================ */
.sw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.sw-modal.is-open {
    display: flex;
}

.sw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.sw-modal-box {
    position: relative;
    z-index: 1;
    background: var(--sw-primary-dark);
    color: var(--sw-white);
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    border-top: 3px solid var(--sw-highlight-strong);
    animation: sw-modal-in 0.2s ease;
}

.sw-modal[data-type="success"] .sw-modal-box {
    border-top-color: var(--sw-support-2);
}

.sw-modal-msg {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
}

.sw-modal-close {
    background: linear-gradient(135deg, var(--sw-highlight-dark), var(--sw-highlight));
    color: var(--sw-white);
    border: none;
    padding: 11px 36px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.sw-modal-close:hover {
    opacity: 0.88;
}

.sw-modal[data-type="success"] .sw-modal-close {
    background: var(--sw-support-2);
}

@keyframes sw-modal-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   NEWS NAV ITEM
   ============================================ */
.news-gallery-item img,
.news-hero-img,
.scada-feature__media img {
    cursor: zoom-in;
}

.sw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.sw-lightbox.is-open {
    display: flex;
}

.sw-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.sw-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0.25rem 0.6rem;
}

.sw-lightbox-close:hover {
    opacity: 1;
}

.sw-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    text-align: center;
}

.sw-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    display: block;
    animation: sw-modal-in 0.22s ease;
}

.sw-lightbox-caption {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin-top: 0.75rem;
}

.nav-news {
    position: relative;
    top: -2px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, var(--sw-support-2), var(--sw-accent-deep)) !important;
    color: var(--sw-white) !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    transition: opacity var(--transition);
}

.nav-news:hover {
    opacity: 0.88;
    color: var(--sw-white) !important;
}

.nav-news::after {
    content: 'NEU';
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--sw-white);
    color: var(--sw-accent);
    border-radius: 10px;
    padding: 1px 5px;
    margin-left: 6px;
    line-height: 1.6;
}

.mobile-news-link {
    color: var(--sw-accent-deep) !important;
    font-weight: 700 !important;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    padding: 5rem 2.5rem;
    background: var(--sw-white);
}

.news-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sw-mid);
    background: var(--sw-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26, 58, 92, 0.12);
}

.news-card:focus-visible {
    outline: 3px solid var(--sw-highlight);
    outline-offset: 3px;
}

.news-card-img-link {
    display: block;
    overflow: hidden;
}

.news-card-img-link img {
    width: 100%;
    height: 210px;
    object-fit: cover scale-down;
    transition: transform var(--transition);
}

.news-card:hover .news-card-img-link img {
    transform: scale(1.03);
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sw-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card-body p {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    background: var(--sw-highlight-light);
    color: var(--sw-highlight-dark);
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-highlight-strong);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap var(--transition);
    position: relative;
}

.news-card:hover .news-card-link,
.news-card:focus-visible .news-card-link,
.news-card-link:hover {
    gap: 0.65rem;
}

.news-card-link {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================
   NEWS DETAIL PAGE
   ============================================ */
.news-hero-img {
    width: 100%;
    height: clamp(300px, 45vw, 560px);
    object-fit: contain;
    object-position: center top;
    display: block;
    background: var(--sw-light);
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.news-gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--sw-mid);
}

.news-gallery-item img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.news-gallery-item img:hover {
    transform: scale(1.03);
}

.news-article {
    max-width: 780px;
    margin: 0 auto;
}

.news-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sw-primary);
    margin: 2rem 0 0.75rem;
}

.news-article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sw-primary);
    margin: 1.5rem 0 0.5rem;
}

.news-article p {
    color: var(--sw-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.news-article blockquote {
    border-left: 3px solid var(--sw-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--sw-accent-light);
    border-radius: var(--radius-sm);
}

.news-article blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--sw-primary);
}

.news-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--sw-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sw-mid);
}

.news-meta-tag {
    background: var(--sw-accent-light);
    color: var(--sw-support-4);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============================================
   SCADA PRODUCT PAGE — Feature Sections
   ============================================ */
.scada-intro-section {
    background: var(--sw-light);
    padding: 4.5rem 2.5rem;
}

.scada-intro {
    max-width: 1100px;
    margin: 0 auto;
}

.scada-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.scada-benefit-card {
    background: var(--sw-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--sw-mid);
    border-left: 4px solid var(--sw-accent);
}

.sbc-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.scada-benefit-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 0.4rem;
}

.scada-benefit-card p {
    font-size: 13px;
    color: var(--sw-muted);
    margin: 0;
    line-height: 1.55;
}

.scada-feature-section {
    padding: 4.5rem 2.5rem;
}

.scada-feature-section.bg-light {
    background: var(--sw-light);
}

.scada-feature {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.scada-feature.reverse {
    flex-direction: row-reverse;
}

.scada-feature__body {
    flex: 1 1 40%;
    min-width: 0;
}

.scada-feature__body h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.scada-feature__body p {
    font-size: 15px;
    color: var(--sw-muted);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.scada-feature__body ul.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.scada-feature__body ul.feature-list li {
    font-size: 14px;
    color: var(--sw-muted);
    padding: 0.35rem 0 0.35rem 1.6rem;
    position: relative;
    line-height: 1.5;
}

.scada-feature__body ul.feature-list li::before {
    /* checkmark (use escape to avoid encoding issues) */
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--sw-accent);
    font-weight: 700;
}

.scada-feature__media {
    flex: 1 1 55%;
    min-width: 0;
}

.scada-feature__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--sw-mid);
    box-shadow: 0 8px 40px rgba(26, 58, 92, 0.1);
    display: block;
}

.media-caption {
    font-size: 12px;
    color: var(--sw-muted);
    text-align: center;
    margin-top: 0.6rem;
}

.scada-uses-section {
    padding: 4.5rem 2.5rem;
}

.scada-uses {
    max-width: 1100px;
    margin: 0 auto;
}

.scada-uses .uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.use-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    background: var(--sw-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--sw-mid);
}

.use-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--sw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-icon svg {
    width: 17px;
    height: 17px;
}

.use-item div {
    min-width: 0;
}

.use-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-primary);
    margin-bottom: 2px;
}

.use-item p {
    font-size: 13px;
    color: var(--sw-muted);
    margin: 0;
    line-height: 1.5;
}

.scada-roadmap-section {
    background: var(--sw-light);
    padding: 4.5rem 2.5rem;
}

.scada-roadmap {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.roadmap-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    background: var(--sw-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--sw-mid);
    font-size: 14px;
    color: var(--sw-muted);
}

.roadmap-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sw-accent);
    flex-shrink: 0;
}

.scada-cta-section {
    padding: 5rem 2.5rem;
    text-align: center;
}

.scada-cta {
    max-width: 600px;
    margin: 0 auto;
}

.scada-cta h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--sw-primary);
    margin-bottom: 1rem;
}

.scada-cta p {
    font-size: 16px;
    color: var(--sw-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    /* Use brand-only gradient: remove mixing of warm highlight + brand to avoid odd orange/blue blend */
    background: linear-gradient(135deg, var(--sw-brand-dark) 0%, var(--sw-brand) 100%);
    color: var(--sw-white);
    font-weight: 600;
    font-size: 15px;
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: opacity var(--transition);
}

.cta-btn:hover {
    opacity: 0.88;
}

/* ============================================
   RESPONSIVE — Medium screens (tablet nav)
   ============================================ */
@media (max-width: 1244px) {

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-burger {
        display: block;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .mobile-menu {
        top: 76px;
    }

    .about {
        flex-direction: column;
        gap: 2rem;
    }

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

    .hero-stats {
        gap: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

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

/* ============================================
   RESPONSIVE — Small screens (mobile)
   ============================================ */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

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

    body.home .projects,
    body.home .services,
    body.home .why,
    body.home .news-section {
        width: calc(100% - 1rem);
        margin: 0.75rem auto 0;
        border-radius: 16px;
    }

    body.home .hero,
    body.home .contact {
        border-radius: 0;
    }

    body.home .hero {
        min-height: 68vh;
        padding-top: 3.75rem;
        padding-bottom: 3.25rem;
    }

    /* auf sehr kleinen Bildschirmen noch kompakter */
    body.home .hero {
        min-height: 56vh;
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    body.home .about,
    body.home .clients {
        width: calc(100% - 1rem);
        margin: 0.75rem auto 0;
        border-radius: 16px;
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }

    .page-content {
        padding: 3rem 1rem;
    }
}

/* SCADA responsive */
@media (max-width: 900px) {
    .scada-feature,
    .scada-feature.reverse {
        flex-direction: column;
        gap: 2.5rem;
    }

    .scada-feature__body,
    .scada-feature__media {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .scada-benefit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .scada-benefit-grid {
        grid-template-columns: 1fr;
    }
}

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

    body.home section::before,
    body.home .hero::before,
    body.home .hero::after,
    body.home .contact::before,
    body.home .reveal-on-scroll,
    body.home .reveal-on-scroll.is-revealed {
        transform: none !important;
        opacity: 1 !important;
    }
}

