/* 
   PlanTech GmbH - Kiewit Inspired Styling
   Core Design System
*/

:root {
    /* Colors Kiewit Style */
    --clr-yellow: #FFC627;
    --clr-yellow-hover: #e5b020;
    --clr-dark: #121212;
    --clr-dark-gray: #222222;
    --clr-gray: #555555;
    --clr-light-gray: #F4F4F4;
    --clr-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1280px;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--clr-dark);
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0; /* Reduced for tighter flow across the site */
}

.subpage-first-section {
    padding-top: 2rem; /* Reduced specific padding after hero headers */
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--clr-yellow);
}

.bg-light {
    background-color: var(--clr-light-gray);
}

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

.highlight {
    color: var(--clr-yellow);
}

.text-highlight {
    color: var(--clr-yellow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--clr-yellow);
    color: var(--clr-dark);
}

.btn-primary:hover {
    background-color: var(--clr-dark);
    color: var(--clr-yellow);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-smooth), padding var(--transition-smooth), box-shadow var(--transition-smooth);
    padding: 1.75rem 0;
}

.navbar:hover,
.navbar.scrolled {
    background-color: var(--clr-white);
    padding: 1.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar:hover .logo,
.navbar.scrolled .logo {
    color: var(--clr-dark);
}

.navbar:hover .nav-links a:not(.btn),
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--clr-dark-gray);
}

/* Navigation colors handled via specific states below */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.65rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    color: var(--clr-white);
    transition: color var(--transition-fast);
    flex: 1;
}

.logo-dot {
    color: var(--clr-yellow);
    font-size: 2.5rem;
    line-height: 0;
}

.nav-links {
    display: flex;
    flex: 2;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Reduced from 4.5rem to prevent wrapping on smaller desktops */
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.mobile-only-btn {
    display: none !important;
}

.nav-links a:not(.btn) {
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-yellow);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle base */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Burger Color Logic */
.navbar.scrolled:not(.active) .mobile-toggle,
.navbar:hover:not(.active) .mobile-toggle {
    color: var(--clr-dark) !important;
}

.navbar.active .mobile-toggle,
.navbar:not(.scrolled):not(:hover) .mobile-toggle {
    color: var(--clr-white) !important;
}

/* Hero Slideshow */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--clr-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-bg-video,
.hero-bg-media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.8) 0%, rgba(25, 25, 25, 0) 25%, rgba(25, 25, 25, 0) 75%, rgba(25, 25, 25, 1) 100%),
        linear-gradient(to right, rgba(25, 25, 25, 0.9) 0%, rgba(25, 25, 25, 0.3) 50%, rgba(25, 25, 25, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    width: 95%;
    position: relative;
    z-index: 100 !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease-out 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    color: var(--clr-white);
    font-size: clamp(1.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.nowrap {
    white-space: normal;
}

@media (min-width: 500px) {
    .nowrap {
        white-space: nowrap;
    }
}

.hero-subtitle {
    color: var(--clr-light-gray);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 800px;
    font-family: var(--font-heading);
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--clr-white);
    font-weight: 700;
}

.metrics-footer {
    text-align: center;
    margin-top: 4rem;
}

.metrics-footer .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.slide-category {
    display: inline-block;
    color: var(--clr-yellow);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
    border-left: 3px solid var(--clr-yellow);
    padding-left: 15px;
}

/* Indicators */
.slide-indicators-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
}

.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: #aaa;
}

.indicator.active {
    width: 38px;
    border-radius: 10px;
    background-color: var(--clr-yellow);
}

/* Clean Subpage Header */
.subpage-header {
    background-color: var(--clr-white);
    padding-top: 180px; /* Accounts for navbar */
    padding-bottom: 30px; /* Reduced from 60px for tighter spacing */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.subpage-header.border-none {
    border-bottom: none;
}

.subpage-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--clr-dark);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 800;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.text-white {
    color: var(--clr-white) !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.7) !important;
}

.subpage-subtitle {
    font-size: 1.25rem;
    color: var(--clr-gray);
    max-width: 600px;
    margin: 0 auto;
}


/* Section Typography */
.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--clr-dark);
    line-height: 1.1;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-gray);
    margin-bottom: 3rem;
    max-width: 700px;
}

.section-header.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.bg-dark-premium .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Premium Layout Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--clr-yellow);
    margin-bottom: 1.5rem;
}

/* Premium Form Styles */
.premium-form-card {
    background: var(--clr-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group-premium {
    margin-bottom: 2rem;
}

.form-group-premium label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: var(--clr-dark);
}

.form-group-premium input,
.form-group-premium textarea,
.form-group-premium select {
    width: 100%;
    padding: 1.2rem;
    background: var(--clr-light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
}

.form-group-premium select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.2rem) center;
    cursor: pointer;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus,
.form-group-premium select:focus {
    outline: none;
    border-color: var(--clr-yellow);
    background: var(--clr-white);
    box-shadow: 0 5px 15px rgba(255, 198, 39, 0.1);
}

.bg-dark-premium {
    background-color: #161616;
    color: var(--clr-white);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Feature Section (Dark Collage) */
.features-dark {
    background-color: #191919;
    color: var(--clr-light-gray);
    overflow: hidden;
}

.collage-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--clr-yellow);
    margin-bottom: 2rem;
}

.collage-text .section-title {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.1;
    font-weight: 600;
}

.collage-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--clr-yellow);
    color: var(--clr-dark);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.explore-link i {
    transition: transform 0.3s;
}

.explore-link:hover {
    background-color: var(--clr-dark);
    color: var(--clr-yellow);
}

.explore-link:hover i {
    transform: translateX(5px);
}

.collage-visual {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.collage-img {
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: absolute;
    transition: transform 0.3s ease;
}

.collage-img:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Image 1: Main Center Image */
.main-img {
    width: 80%;
    height: 400px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
}

.main-img:hover {
    transform: translateY(-50%) scale(1.02);
}

/* Image 2: Top Right */
.top-img {
    width: 45%;
    height: 250px;
    top: 20px;
    right: 0;
    z-index: 1;
}

/* Image 3: Bottom Left */
.bottom-img {
    width: 40%;
    height: 220px;
    bottom: 20px;
    left: 20%;
    z-index: 3;
}

@media (max-width: 1200px) {
    .collage-block {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .collage-visual {
        min-height: 500px;
    }

    .main-img {
        width: 90%;
        left: 0;
    }

    .top-img {
        width: 50%;
        top: 0;
    }

    .bottom-img {
        width: 50%;
        left: 5%;
        bottom: 0;
    }
}

/* Metrics Section */
.metrics-section {
    background-color: #1a2634;
    /* Dark blue slate */
    color: var(--clr-white);
}

.metrics-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 4rem;
    font-weight: 600;
    text-align: left;
    color: var(--clr-white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    -webkit-text-stroke: 1.5px var(--clr-yellow);
    color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.metric-label {
    display: block;
    font-size: 1.1rem;
    color: var(--clr-light-gray);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .metrics-title {
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Services Tabs Section */
.services-tabs {
    background-color: #161616;
    color: var(--clr-light-gray);
}

.services-tabs .section-header {
    text-align: left;
    margin-bottom: 3rem;
    align-items: flex-start;
    max-width: 800px;
    margin-left: 0;
}

.services-tabs .section-title {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}

.services-tabs .section-subtitle {
    color: var(--clr-light-gray);
    font-size: 1.15rem;
    line-height: 1.6;
}

.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    color: var(--clr-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.7rem 0.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.tab-btn:hover {
    border-color: var(--clr-white);
}

.tab-btn.active {
    background-color: var(--clr-yellow);
    color: var(--clr-dark);
    border-color: var(--clr-yellow);
    font-weight: 600;
}

.tabs-content-wrapper {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.tab-text {
    padding-right: 2rem;
}

.tab-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.tab-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #ccc;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--clr-yellow);
    color: var(--clr-dark);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.tab-link i {
    transition: transform 0.3s;
}

.tab-link:hover {
    background-color: var(--clr-dark);
    color: var(--clr-yellow);
}

.tab-link:hover i {
    color: var(--clr-yellow);
    transform: translateX(5px);
}

.tab-visual img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tab-text {
        padding-right: 0;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .tab-visual img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* Why Us Section */
.why-us {
    background-color: var(--clr-light-gray);
    padding: 120px 0;
}

.why-us .section-header {
    margin-bottom: 100px;
}

.process-section .section-header {
    margin-bottom: 100px;
}

.process-cta .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.why-footer {
    margin-top: 60px;
    text-align: center;
}

.why-footer .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.why-card {
    background-color: var(--clr-white);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    z-index: 1;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--clr-yellow);
    transition: width 0.4s ease;
    z-index: 2;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--clr-yellow);
}

.why-card:hover::before {
    width: 100%;
}

.why-icon {
    font-size: 2.5rem;
    color: var(--clr-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.why-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--clr-dark);
    margin-bottom: 1rem;
}

.why-desc {
    color: var(--clr-gray);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Process Section */
.process-section {
    background-color: #111;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.process-section .section-title {
    color: var(--clr-white);
}

/* Feature Section Typography Balanced */
section.features-dark h2.section-title {
    color: var(--clr-white);
    font-size: clamp(2rem, 3.8vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 600;
}

section.features-dark p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

/* Connecting Timeline */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

@media (max-width: 1200px) {
    .process-grid::before {
        display: none;
    }
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    -webkit-text-stroke: 1.5px var(--clr-yellow);
    color: #111;
    line-height: 1;
    margin-bottom: 2rem;
    display: inline-block;
    background-color: #111;
    padding: 0 15px;
}

.step-title {
    font-size: 1.4rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-desc {
    color: var(--clr-light-gray);
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .step-number {
        padding: 0;
    }
}

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

.process-cta {
    margin-top: 5rem;
}

/* Footer Section */
.footer {
    background-color: var(--clr-white);
    color: var(--clr-dark);
    padding: 5rem 0 2rem;
}

.footer .logo {
    color: var(--clr-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: rgba(18, 18, 18, 0.8);
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer h3 {
    color: var(--clr-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-details li {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    color: var(--clr-dark);
    align-items: flex-start;
}

.contact-details i {
    color: var(--clr-dark);
    margin-top: 5px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--clr-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(18, 18, 18, 0.6);
    font-size: 0.9rem;
}

.legal-links a {
    color: rgba(18, 18, 18, 0.6);
    margin-left: 1.5rem;
}

.legal-links a:hover {
    color: var(--clr-dark);
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Pages Styling - Dark Theme Refinement */
.legal-page {
    background-color: #161616;
    color: var(--clr-white);
}

.legal-page .section-title {
    margin-bottom: 3rem;
    color: var(--clr-white);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-white);
    text-transform: none;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
}

.legal-content a {
    color: var(--clr-yellow);
    text-decoration: underline;
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--clr-yellow);
}

/* MEGA MENU */
.has-dropdown {
    position: static;
}

/* Unsichtbare Brücke, damit das Hover nicht abbricht */
.has-dropdown>a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100% + 40px);
    height: 60px;
    background: transparent;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-smooth), visibility 0s linear 0.1s; /* Tiny delay for closing */
    border-top: 1px solid #eaeaea;
    cursor: default;
    z-index: 1000;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s; /* No delay on opening */
}

.mega-container {
    display: flex;
    padding: 3rem 1.5rem;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-info {
    flex: 1;
    border-right: 1px solid #eaeaea;
    padding-right: 3rem;
}

.mega-main-services {
    flex: 1;
}

.mega-sub-services {
    flex: 1;
}

.mega-title {
    color: var(--clr-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.mega-info p {
    color: var(--clr-dark-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: normal;
}

.mega-subtitle {
    color: var(--clr-dark-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* Card */
.mega-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
}

.mega-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem 1rem 1rem;
    color: white;
}

.mega-card-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.mega-card-content .mega-link-btn {
    color: var(--clr-yellow) !important;
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links .mega-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    color: var(--clr-dark) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    font-family: var(--font-heading) !important;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.nav-links .mega-list-item.active a,
.nav-links .mega-list-item a:hover {
    color: var(--clr-yellow) !important;
}

.mega-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-detail-list li {
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--clr-dark);
    padding: 0.8rem 0 0.8rem 1.5rem;
    margin: 0;
    position: relative;
    cursor: default;
    border-bottom: 1px solid #f0f0f0;
}

.mega-detail-list li:last-child {
    border-bottom: none;
}

.mega-detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-yellow);
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links .mega-list-item i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-links .mega-list-item.active i {
    transform: translateX(5px);
}

.mega-sub-group {
    display: none;
}

.mega-sub-group.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mega-sub-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links .mega-sub-group ul li a {
    display: block;
    padding: 0.6rem 0;
    color: var(--clr-dark-gray) !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    font-family: var(--font-body) !important;
    transition: color 0.2s;
}

.nav-links .mega-sub-group ul li a:hover {
    color: var(--clr-yellow) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 767px) {
    .mega-menu {
        display: none !important;
    }
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--clr-dark);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .navbar.scrolled .nav-links a,
    .nav-links a {
        color: var(--clr-white) !important;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-item.has-dropdown .mega-menu {
        position: static;
        opacity: 1 !important; /* Force visible on mobile */
        visibility: visible !important;
        display: none; /* Controlled by toggle class */
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        border: none;
    }

    .nav-item.has-dropdown.active .mega-menu {
        display: block !important;
    }

    /* Mobile Dropdown Chevron Fix */
    .has-dropdown > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-dropdown-trigger {
        padding: 1rem;
        margin-right: -1rem; /* Increase hit area */
        cursor: pointer;
    }

    .mega-container {
        flex-direction: column;
        padding: 0.5rem 0 1.5rem 0; /* Removed left indent entirely */
        gap: 0;
    }

    .mega-info, .mega-sub-services, .mega-subtitle {
        display: none; /* Hide complex parts on mobile */
    }

    .mega-main-services {
        width: 100%;
    }

    .mega-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-left: none;
        padding-left: 0; /* Remove indentation */
    }

    .nav-links .mega-list-item a {
        font-family: var(--font-heading) !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        padding: 1.2rem 0 !important;
        width: 100%;
        display: block;
        color: #ffffff !important; /* Force white on mobile sidebar */
        opacity: 0.8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .mega-list-item a::before {
        display: none; /* Remove yellow dots as requested */
    }

    .mega-list-item a:hover {
        opacity: 1;
        color: var(--clr-yellow) !important;
    }

    .mega-list-item a::after {
        display: none;
    }

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

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

@media screen and (max-width: 767px) {
    .desktop-btn {
        display: none !important;
    }

    .mobile-only-btn {
        display: inline-block !important;
        margin-top: 2rem;
        text-align: center;
    }

    .nav-links.active .mobile-only-btn {
        color: var(--clr-dark) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* ==========================================================================
   ZIGZAG SERVICES LAYOUT (Leistungen Page)
   ========================================================================== */
/* ==========================================================================
   CONSOLIDATED SERVICES (LEISTUNGEN)
   ========================================================================== */
.service-section {
    padding: 100px 0;
    scroll-margin-top: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-section:last-child {
    border-bottom: none;
}

.service-section .container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: stretch;
}

.service-section.alt-layout .service-section-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.service-section.alt-layout .service-text {
    order: 2;
}

.service-section.alt-layout .service-image {
    order: 1;
}

.service-text h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.service-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-image {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Integrated expertise bar removed as per user request */

.service-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem 2.5rem;
}

.service-bullets li {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.4;
}

.service-bullets i {
    color: var(--clr-yellow);
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .service-section {
        padding: 60px 0;
    }
    
    .service-section-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .service-text h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
        margin-bottom: 1.2rem;
    }
    
    .service-text {
        text-align: left;
        order: 1 !important;
    }
    
    .service-image {
        order: 2 !important;
        height: auto;
        min-height: auto;
        aspect-ratio: 16/9;
    }

    .service-bullets {
        grid-template-columns: repeat(2, 1fr); /* Symmetrical 2x2 grid */
        gap: 1.5rem;
    }
    
    .service-section .service-expertise-bar {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .service-bullets {
        grid-template-columns: 1fr; /* Stack on small mobile */
    }
}

/* Removing legacy service-row styles */

@media (max-width: 900px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 5rem;
    }
    
    .service-row.alt-layout .service-text {
        order: 1;
        padding-left: 0;
    }
    
    .service-row.alt-layout .service-image {
        order: 2;
    }
    
    .service-text {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Detail Page Styles */
.service-detail-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--clr-white);
    text-align: center;
    padding-top: 80px; /* Navbar space */
}

.service-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: 1;
}

.service-detail-hero .container {
    position: relative;
    z-index: 2;
}

.service-detail-header-text {
    max-width: 800px;
    margin: 0 auto;
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--clr-yellow);
    color: var(--clr-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 2rem;
}

/* Service intro styles removed */

/* Expertise bar styles removed */

@media (max-width: 1024px) {
    .service-intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .service-intro-text {
        text-align: center;
        order: 2;
    }
    
    .service-intro-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-intro-image {
        height: 450px;
        order: 1;
    }
    
    .service-expertise-bar {
        border-radius: 20px;
        margin-bottom: 4rem;
    }
}

@media (max-width: 600px) {
    .service-expertise-bar {
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .expertise-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Benefits Grid */
.benefits-section {
    padding: 100px 0;
    background-color: #161616;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--clr-yellow);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--clr-yellow);
    margin-bottom: 2rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: var(--clr-white);
    margin-bottom: 1.2rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Full Width CTA Banner */
.service-cta-banner {
    padding: 120px 0;
    background-color: #121212;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-banner-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-banner-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

@media (max-width: 950px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-hero {
        height: 50vh;
    }
}

/* --- About Us Page Specifics --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Force absolute equal width regardless of long words */
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-wrap: anywhere; /* Allow long words but don't break the layout */
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.values-grid > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}


@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        order: 1 !important;
        text-align: left;
    }

    .about-image {
        order: 2 !important;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 Grid */
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Always 3 columns as requested */
        padding: 1.5rem;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 1rem;
        gap: 0.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem !important; /* Scale down for mobile if needed */
    }

    .stat-item p {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 500px) {
    /* Stack metrics vertically on very small screens to prevent overflow */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-item p {
        font-size: 0.85rem !important;
    }
}
