/* CSS Reset & Variables */
:root {
    /* Colors - Assuming Industrial Blue/Grey palette */
    --primary-color: #0d2c54;
    /* Deep Royal Blue */
    --primary-light: #1a4b8c;
    /* Lighter Blue for hover */
    --secondary-color: #6c757d;
    /* Technical Grey */
    --accent-color: #00b4d8;
    /* Cyan/Bright Blue for highlights */
    --text-color: #333333;
    /* Dark Grey for text */
    --text-light: #f8f9fa;
    /* Light text */
    --text-muted: #adb5bd;
    /* Muted text */
    --bg-color: #ffffff;
    --bg-light: #f4f6f9;
    /* Very light blue-grey for sections */
    --bg-dark: #121212;
    /* Dark bg for contrast sections */

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.text-light {
    color: var(--text-light);
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section {
    padding: 80px 0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 20px 0;
    box-sizing: border-box;
}

.header.scrolled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Joomla-Template-Wrapper dÃ¼rfen den Header nicht abschneiden */
#sp-header,
#sp-header-sticky-wrapper,
.sp-header,
[id*="header-wrapper"],
[id*="sticky-wrapper"],
[class*="sticky-wrapper"] {
    overflow: visible !important;
    height: auto !important;
    background: transparent !important;
}

/* Fixer blauer Header fÃ¼r Unterseiten ohne Hero (Impressum, Datenschutz) */
.header--solid {
    background: var(--primary-color) !important;
    padding: 14px 0 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
}

.header--solid .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.header--solid .nav-link:hover,
.header--solid .nav-link.active {
    color: #ffffff;
}

/* .header--solid .logo img {
    filter: brightness(0) invert(1);
} */

.header--solid .mobile-toggle .burger-line {
    background: #ffffff;
}

.header--solid .nav-link.btn-contact {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 16px;
}

.header--solid .nav-link.btn-contact:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.logo img {
    height: 80px;
    /* Slightly larger */
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
    /* Default: White logo for dark background */
    filter: brightness(0) invert(1);
}

.header.scrolled .logo img {
    /* Scrolled: Original Blue logo for white background */
    filter: none;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: white;
    /* Always white on transparent */
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav-link {
    color: var(--primary-color);
    /* Dark text on white header */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* =========================================================
   DESKTOP: Offcanvas-only-Elemente verstecken
   nav-inner ist auf Desktop ein transparenter Wrapper
========================================================= */
.nav-inner {
    display: contents;
    /* kein eigenes Box-Modell auf Desktop */
}

.offcanvas-logo,
.offcanvas-contact,
.offcanvas-overlay {
    display: none;
}


/* =========================================================
   BURGER / MOBILE TOGGLE
========================================================= */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    gap: 5px;
    padding: 0;
}

.mobile-toggle .burger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
}

.header.scrolled .mobile-toggle .burger-line {
    background: var(--primary-color);
}

/* Burger â†’ X Animation */
.mobile-toggle.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open .burger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-toggle.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* No fixed min-height so it exactly matches viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-top: -80px;
    /* Add padding top to prevent overlap with header and center visually correct */
    padding-top: 120px;
    padding-bottom: 50px;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.6);
    /* Tint using primary color */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    transition: transform 0.6s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.feature-list {
    margin: 20px 0 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-list i {
    color: var(--accent-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-features li {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding-left: 15px;
    position: relative;
}

.service-features li::before {
    content: '\2022';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Highlight Card Style */
.highlight-card {
    background: linear-gradient(135deg, white 0%, var(--bg-light) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Precision Section */
.precision-highlight {
    background-color: var(--bg-dark);
    /* Dark BG */
    color: white;
    overflow: hidden;
}

.precision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.precision-image img {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.2);
    /* Glow effect from accent color */
}

.stat-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    color: white;
    background-attachment: fixed;
    /* Parallax lite */
    overflow: hidden;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.85);
    z-index: -1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0a1f3b;
    /* Very Dark Blue */
    color: #dbe4ee;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Make logo white if it's dark text */
}

.footer-desc {
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

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

.agency-credit i {
    color: #ff4757;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
    display: inline-block;
}

/* Utility Animations */
.reveal-text,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-text {
    transform: translateY(20px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.9);
}

.active.reveal-text,
.active.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.active.reveal-zoom {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   OFFCANVAS OVERLAY
========================================================= */
.offcanvas-overlay {
    display: none;
    /* auf Desktop komplett weg */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;

}

.offcanvas-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {

    .header-container {
        padding: 0 20px;
    }

    /* Hamburger sichtbar */
    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 1200;
    }

    /* Desktop Nav ausblenden */
    .nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: var(--primary-color);
        z-index: 1100;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Innerer Wrapper fÃ¼r Padding und Layout */
    .nav-inner {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 90px 30px 40px;
        position: relative;
        /* fÃ¼r offcanvas-logo mit absolute */
    }

    /* Offcanvas-only-Elemente auf Mobile einblenden */
    .offcanvas-logo,
    .offcanvas-contact {
        display: block;
    }

    .nav.open {
        right: 0;
    }

    /* Nav-Liste vertikal */
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        flex: 1;
    }

    /* Jeder Nav-Link im Offcanvas */
    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list>li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-link:hover {
        color: white;
        padding-left: 6px;
    }

    /* Aktiver Link im Offcanvas: Accent-Linie links */
    .nav-link.active {
        color: var(--accent-color);
    }

    .nav-link::after {
        display: none;
        /* Kein Unterstrich im Offcanvas */
    }

    /* Kontakt-Button im Offcanvas */
    .nav-link.btn-contact {
        margin-top: 10px;
        background: var(--accent-color);
        color: var(--primary-color);
        font-weight: 700;
        padding: 14px 20px;
        border-radius: 6px;
        text-align: center;
        justify-content: center;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .nav-link.btn-contact:hover {
        background: white;
        color: var(--primary-color);
        padding-left: 20px;
    }

    /* Dropdown im Offcanvas */
    .dropdown-toggle .fa-chevron-down {
        transition: transform 0.3s ease;
        font-size: 0.75rem;
        opacity: 0.6;
    }

    .dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 0 10px 16px;
        border-radius: 6px;
        margin: 0 0 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        display: block;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.75);
        padding: 9px 12px;
        font-size: 0.9rem;
        border-radius: 4px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

    /* Kontaktinfos am unteren Ende des Offcanvas-Panels */
    .offcanvas-contact {
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .offcanvas-contact p {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.82rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .offcanvas-contact i {
        color: var(--accent-color);
        width: 14px;
        flex-shrink: 0;
    }

    .offcanvas-contact a {
        color: rgba(255, 255, 255, 0.6);
    }

    .offcanvas-contact a:hover {
        color: white;
    }

    /* Offcanvas-Logo oben */
    .offcanvas-logo {
        position: absolute;
        top: 24px;
        left: 24px;
        height: 36px;
        width: auto;
        filter: brightness(0) invert(1);
        opacity: 0.7;
    }

    /* Body-Scroll sperren */
    body.no-scroll {
        overflow: hidden;
    }

    /* Sonstiges Layout */
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .precision-grid,
    .footer-grid,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-grid.reverse {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    .values-grid,
    .industries-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .reference-gallery {
        grid-template-columns: 1fr;
    }
}

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

/* Subpage Banner (Hero Section) */
.subpage-banner {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-align: center;
    overflow: hidden;
}

.subpage-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.subpage-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Section Description */
.section-desc {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Values Section */
.values-section {
    background-color: var(--bg-dark);
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.value-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number-large {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label-large {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Detail Pages */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse>* {
    direction: ltr;
}

.service-detail-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.service-detail-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.service-detail-image img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

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

/* Material Tags */
.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(13, 44, 84, 0.2);
    transition: all 0.3s ease;
}

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

/* Tech Specs */
.tech-specs {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.spec-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* Highlight Box */
.highlight-box {
    background: rgba(0, 180, 216, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

.highlight-box i {
    color: var(--accent-color);
    margin-right: 10px;
}

.highlight-box p {
    margin: 0;
}

/* Additional Services */
.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-top: 50px;
}

.additional-service-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.additional-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.additional-service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.additional-service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-top: 50px;
}

.industry-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.industry-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Reference Gallery */
.reference-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.reference-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.reference-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.reference-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reference-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 44, 84, 0.95), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.reference-item:hover .reference-overlay {
    transform: translateY(0);
}

.reference-item:hover .reference-image img {
    transform: scale(1.1);
}

.reference-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.reference-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: white;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Benefits Grid (Jobs Page) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Jobs List */
.jobs-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.job-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: white;
    transition: background 0.3s ease;
}

.job-header:hover {
    background: var(--bg-light);
}

.job-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-expand {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.job-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.job-card.expanded .job-content {
    padding: 0 30px 30px;
}

.job-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.job-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.job-content ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-color);
}

.job-content ul li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-form-wrapper>p {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff !important;
}

.info-icon * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.info-icon i,
.info-icon svg,
.info-icon span {
    font-size: 1.2rem;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-content p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.info-content a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* Map Section */
.map-section {
    margin-top: 80px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Dark BG utility */
.dark-bg {
    background-color: var(--bg-dark);
}

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


/* ========================================
   JOOMLA FULL-WIDTH OVERRIDES
   Bricht den Inhalt aus dem Joomla-Artikel-
   Container heraus und stellt volle Breite her.
======================================== */

/*
 * Joomla wraps Artikel-Inhalt typischerweise in:
 * .item-page, .article-info, .com-content-article,
 * oder in Template-spezifische Klassen.
 * Diese Regeln neutralisieren die Breiten-BeschrÃ¤nkung.
 */

/* Joomla Artikel-Container auf volle Breite setzen */
.item-page,
.com-content-article__body,
.article-fulltext,
#content .item-page,
#content .article-fulltext,
main .item-page,
.page-content .item-page {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Den Joomla-Haupt-Content-Bereich selbst entschrÃ¤nken */
#sp-main-body,
#sp-content,
#main-content,
.content-area,
.blog-item,
.com-content-article {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Joomla Grid / Bootstrap-Row neutralisieren */
.item-page .row,
.com-content-article .row,
#content .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Sections sollen immer 100vw breit sein und aus jedem Eltern-Container ausbrechen */
.hero,
.section,
.cta-section,
.footer,
.subpage-banner,
.map-section,
.precision-highlight {
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* Das Hero-Video soll weiterhin korrekt positioniert sein */
.hero {
    overflow: hidden;
}

/* Container innerhalb der Sections normal halten */
.hero .container,
.section .container,
.cta-section .container,
.footer .container,
.subpage-banner .container,
.precision-highlight .container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    position: relative;
}

/* ========================================
   LEGAL PAGES (Impressum & Datenschutz)
======================================== */

/* Abstand nach oben wegen fixem Header */
.legal-page {
    padding: 120px 0 100px;
}

/* Inhaltsbreite begrenzen */
.legal-page .legal-content {
    max-width: 800px;
}

/* Abschnitts-Ãœberschriften */
.legal-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.legal-page h2:first-of-type {
    margin-top: 0;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 24px 0 8px;
}

/* Text */
.legal-page p,
.legal-page address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-page ul li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--accent-color);
}

/* Hinweis-Box */
.legal-note {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin: 28px 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Inhaltsverzeichnis-Box */
.legal-toc {
    background: var(--bg-light);
    padding: 24px 28px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.legal-toc h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.legal-toc ol {
    padding-left: 20px;
    margin: 0;
}

.legal-toc li {
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* =============================================================
   OVERRIDE â€“ /templates/werbeagentur/css/style.css
   Wird nach template.css geladen â€“ zieht daher immer.
   ============================================================= */


/* ------------------------------------------------------------------
   1. JOOMLA-WRAPPER-BUGFIX
   Joomla hÃ¼llt das Header-Modul in <div class="header"> ein.
   Dieses Wrapper-Div darf den echten <header id="header"> nicht
   stÃ¶ren â†’ transparent, kein overflow, kein fixed positioning.
------------------------------------------------------------------ */
div.header,
body>div.header {
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* ------------------------------------------------------------------
   2. ECHTES HEADER-ELEMENT â€“ Scroll-Effekt
   Das <header id="header" class="header"> bekommt per JS
   getElementById('header') die Klasse "scrolled" â€“ dann weiÃŸer BG.
------------------------------------------------------------------ */
header#header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1200 !important;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease !important;
}

header#header.scrolled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12) !important;
}

header#header.scrolled .burger-line {
    background: #0d2c54 !important;
}

header#header.scrolled .logo img {
    filter: none !important;
}

header#header.scrolled .nav-link {
    color: #0d2c54 !important;
}

header#header.scrolled .nav-link.btn-contact {
    background-color: transparent !important;
    color: #0d2c54 !important;
    border-color: #0d2c54 !important;
}


/* ------------------------------------------------------------------
   3. BLAUER HERO FÃœR IMPRESSUM & DATENSCHUTZ
   (.legal-hero wird als erstes Element in den Beitragsinhalt
    der Joomla-Artikel eingebaut)
------------------------------------------------------------------ */
.legal-hero {
    background: linear-gradient(135deg, #0d2c54 0%, #1a4b8c 100%);
    /* Oben: Platz fÃ¼r den fixen Header (ca. 80px) + optischer Abstand */
    padding: 130px 0 60px;
    text-align: center;
    /* Volle Breite â€“ bricht aus dem Joomla-Container aus */
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.legal-hero h1 {
    color: #ffffff !important;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.legal-hero p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
}

/* ------------------------------------------------------------------
   4. LEGAL PAGE â€“ Textfarben absichern
   (Joomla-Beitragstext hat manchmal hellen Text geerbt)
------------------------------------------------------------------ */
.legal-page {
    color: #333333 !important;
    padding-top: 0 !important;
}

.legal-page h2 {
    color: #0d2c54 !important;
    border-bottom: 2px solid #f4f6f9 !important;
}

.legal-page h3 {
    color: #0d2c54 !important;
}

.legal-page p,
.legal-page address,
.legal-page li {
    color: #555555 !important;
}

.legal-page a {
    color: #0d2c54 !important;
}

.legal-note {
    background: #f4f6f9 !important;
    color: #555555 !important;
    border-left: 4px solid #00b4d8 !important;
}

.legal-toc {
    background: #f4f6f9 !important;
}

.legal-toc a,
.legal-toc li {
    color: #333333 !important;
}


/* ------------------------------------------------------------------
   5. JOOMLA PAGE-HEADER (h1 Titel des Beitrags)
------------------------------------------------------------------ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color, #0d2c54) 0%, var(--primary-light, #1a4b8c) 100%);
    padding: 130px 20px 60px;
    text-align: center;
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.page-header h1,
.page-header h2,
.page-header a {
    color: #ffffff !important;
    font-size: 2.6rem !important;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    text-decoration: none;
}


/* ------------------------------------------------------------------
   6. OFFCANVAS OVERLAY â€“ Bugfix: Kein Blur-Effekt und Z-Index
------------------------------------------------------------------ */
.offcanvas-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 1050 !important;
}

.nav {
    z-index: 1100 !important;
}


/* ------------------------------------------------------------------
   6. ZURÃœCK-ZUM-ANFANG-BUTTON
------------------------------------------------------------------ */
.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 40px;
    right: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: rgba(41, 125, 204, 1) url(../images/cd-top-arrow.svg) no-repeat center 50%;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s 0s, visibility 0s .3s;
    border-radius: 50%;
}

.cd-top.cd-is-visible {
    visibility: visible;
    opacity: 0.8;
}

@media only screen and (min-width: 1024px) {
    .cd-top {
        height: 60px;
        width: 60px;
        right: 30px;
        bottom: 30px;
    }
}

/* =========================================================
   OVERRIDE MEDIA QUERIES AUFGRUND VON CSS-CASCADING
   Diese Regeln erzwingen das Mobile-Layout über alle 
   später definierten Desktop-Regeln hinweg.
========================================================= */
@media (max-width: 900px) {

    .stats-grid,
    .industries-grid,
    .contact-grid,
    .precision-grid,
    .footer-grid,
    .service-detail-grid,
    .values-grid,
    .reference-gallery,
    .benefits-grid,
    .about-grid,
    .services-grid,
    .additional-services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Offcanvas Links immer zwingend Weiß (überschreibt .scrolled von Joomla) */
    header#header .nav-link,
    header#header.scrolled .nav-link,
    header#header.header--solid .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    header#header .nav-link.active,
    header#header .nav-link:hover,
    header#header.scrolled .nav-link.active,
    header#header.scrolled .nav-link:hover,
    header#header.header--solid .nav-link.active,
    header#header.header--solid .nav-link:hover {
        color: #ffffff !important;
    }

    header#header .nav-link.btn-contact,
    header#header.scrolled .nav-link.btn-contact,
    header#header.header--solid .nav-link.btn-contact {
        background: var(--accent-color) !important;
        color: var(--primary-color) !important;
        border: none !important;
    }

    header#header .dropdown-toggle .fa-chevron-down,
    header#header.scrolled .dropdown-toggle .fa-chevron-down,
    header#header.header--solid .dropdown-toggle .fa-chevron-down {
        color: white !important;
    }
}
/* ============================================================
   Machine Park (Maschinenpark) – used on CNC-Frästechnik
   and Messtechnik & QS pages
   ============================================================ */
.machine-park .section-header {
    margin-bottom: 30px;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 30px;
}

.machine-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 3px solid transparent;
}

.machine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.machine-image {
    background: #f5f7fa;
    padding: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.machine-info {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.machine-info h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.3;
}

.machine-count {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.machine-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
    color: var(--secondary-color);
    line-height: 1.55;
}

.machine-specs li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.machine-specs li:last-child {
    border-bottom: none;
}

.machine-specs strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 4px;
}

/* Certificate banner inside Messtechnik & QS */
.certificate-banner {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.certificate-banner-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.certificate-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.certificate-banner-text strong {
    font-size: 1.05rem;
    color: var(--text-color);
}

.certificate-banner-text span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.certificate-banner .btn {
    flex-shrink: 0;
}

/* Page-header with optional background image (e.g. Jobs) */
.page-header.has-bg-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header.has-bg-image > .container {
    position: relative;
    z-index: 2;
}

.page-header.has-bg-image .page-header-overlay {
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.85) 0%, rgba(15, 36, 64, 0.7) 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .machine-image {
        height: 180px;
    }

    .certificate-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 22px 22px;
    }

    .certificate-banner .btn {
        width: 100%;
        text-align: center;
    }
}

#start .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.industries-grid .industry-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 15px);
    justify-self: center;
}

@media (max-width: 767px) {
    .industries-grid .industry-card:last-child {
        max-width: 100%;
    }
}





/* Video Hero */

/* Messtechnik-Hero mit Video wie auf der Startseite */
.subpage-banner.subpage-video-hero {
    background: none !important;
    position: relative;
    overflow: hidden;
}

.subpage-banner.subpage-video-hero::before {
    display: none !important;
}

.subpage-banner.subpage-video-hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: none;
    z-index: 0;
}

.subpage-banner.subpage-video-hero .subpage-banner-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.6);
    z-index: 1;
}

.subpage-banner.subpage-video-hero .container {
    position: relative;
    z-index: 2;
}