:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    /* Modern Blue Theme */
    --color-primary: #154cbd;
    /* Royal Blue from Logo */
    --color-primary-dark: #0d3aa0;
    --color-secondary: #f8faff;
    /* Very light blue tint */
    --color-accent: #154cbd;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-main: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 2.5rem;
    /* Reduced from 4rem */
    --spacing-xl: 4rem;
    /* Reduced from 8rem */

    --border-radius: 8px;
    /* More modern radius */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    scroll-margin-top: 100px;
    /* Offset for fixed navbar on anchor scroll */
}

.section__header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.section__divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-sm) auto;
}

.section__description {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--large:hover {
    background-color: var(--color-secondary);
    color: #000;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Top Bar */
.top-bar {
    background-color: #1a202c;
    /* Dark Slate */
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 0;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar__container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__item svg {
    opacity: 0.8;
    color: var(--color-white);
}

.top-bar__item a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.main-header {
    background-color: rgba(255, 255, 255, 1);
    /* Solid White on load */
    backdrop-filter: none;
    padding: 0.4rem 0;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled .top-bar {
    margin-top: -40px;
    opacity: 0;
    pointer-events: none;
}

.header.scrolled .main-header {
    padding: 0.75rem 0;
    /* Adjusted padding to prevent logo cropping */
    background-color: transparent;
    /* Transparent on scroll */
    border-bottom: none;
    box-shadow: none;
    /* Usually transparent headers don't have shadow */
    backdrop-filter: blur(10px);
    /* Optional: Keep a slight blur for readability? User said "transparent". I'll add slight blur for 'glass' feel if text contrast is needed, but transparency is key. let's stick to transparent bg. */
}

/* Logo scaling on scroll — see detailed rule below */

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* Image only */
    text-decoration: none;
    transition: all 0.4s ease;
}

/* Subtle Floating Animation for Logo Image */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo__img {
    height: 60px;
    /* Significantly larger for better visibility */
    width: auto;
    animation: float 4s ease-in-out infinite;
    /* Continuous subtle float */
    transition: height 0.4s ease;
    padding-top: 4px;
    /* subtle adjustment to optically center with nav */
}

.logo:hover {
    opacity: 0.9;
}

/* Scroll Animation: Resize */
.header.scrolled .logo__img {
    height: 50px;
    /* Shrink on scroll but keep visible */
    padding-top: 0;
}



.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.header__buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* margin-left: var(--spacing-sm); Optional spacing if gap on nav is not enough */
}

.btn--outlined {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    /* Thinner border, matching primary blue */
    color: var(--color-primary);
    /* Text matches border */
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 500;
    /* Medium weight for modern look */
    font-size: 0.85rem;
    /* Slightly larger for readability */
    letter-spacing: 0.02em;
    /* Elegant spacing */
    transition: var(--transition);
    border-radius: 50px;
    /* Pill shape for modern look */
}

.btn--outlined:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(21, 76, 189, 0.12);
    /* Soft glowing shadow */
    transform: translateY(-1px);
}

.btn--square {
    padding: 0;
    /* Reset padding to center content */
    width: 40px;
    /* Fixed width */
    height: 40px;
    /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS cleanup */

.nav__link {
    font-weight: 500;
    color: var(--color-text);
    /* Dark for White Header */
    font-size: 0.9rem;
}

.nav__link:not(.btn):hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* ===========================
   Dropdown Menu (Dienstleistungen ▾)
   Desktop: hover flyout  |  Mobile: accordion toggle
   =========================== */
.nav__item--dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__item--dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1020;
    width: 28px;
    height: 20px;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay (full-screen backdrop for outside-tap close) */
.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1005;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
    padding: 120px 0 80px;
    /* top: clears fixed navbar, bottom: safe spacing */
}

.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Crop from bottom to hide watermark */
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 76, 189, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    /* Blue to Black gradient */
    z-index: 1;
}

/* Hero Content - Transparent (no card) */
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    background: transparent;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .hero__title {
        font-size: 3.1rem;
        line-height: 1.22;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__tagline {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__description {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Hero Buttons - Stacked Vertically */
.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.hero__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 76, 189, 0.4);
    border: none;
    width: 100%;
}

.hero__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(21, 76, 189, 0.5);
    background: var(--color-primary-dark);
}

.hero__btn-primary svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.hero__btn-primary:hover svg {
    transform: translateX(4px);
}

.hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-white);
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero__btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Trust Points */
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);

    /* Animation Styles */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.hero__trust-item:nth-child(1) {
    animation-delay: 0.3s;
}

.hero__trust-item:nth-child(2) {
    animation-delay: 0.5s;
}

.hero__trust-item:nth-child(3) {
    animation-delay: 0.7s;
}

.hero__trust-item:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__trust-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        height: auto;
    }

    .hero__content {
        padding: 0 1.25rem;
        margin: 0 auto;
    }

    .hero__title {
        font-size: 1.85rem;
        line-height: 1.18;
    }

    .hero__tagline {
        font-size: 0.85rem;
        letter-spacing: 0.04em;
    }

    .hero__description {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .hero__buttons {
        max-width: 260px;
    }

    .hero__btn-primary,
    .hero__btn-secondary {
        padding: 0.9rem 1.75rem;
        font-size: 0.9rem;
    }

    .hero__trust {
        gap: 1rem 1.25rem;
    }

    .hero__trust-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .hero__title {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .hero__content {
        padding: 0 1rem;
    }

    .hero__buttons {
        max-width: 240px;
    }
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* About Section */
.about {
    background-color: var(--color-bg);
}

.about__content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
}

.about__intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about__list-wrapper {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .about__list {
        grid-template-columns: 1fr 1fr;
    }
}

.about__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.5;
}

.about__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(21, 76, 189, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__text {
    flex: 1;
    color: var(--color-text-light);
    font-size: 1rem;
    text-align: left;
}

.about__text strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Services Section */
.services {
    background-color: var(--color-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    outline: none;
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.service-card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.service-card__cta {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-card:hover .service-card__cta,
.service-card:focus .service-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Service Images Gallery */
.services__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: block;
    text-decoration: none;
}

.service-image:hover {
    transform: scale(1.02);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.service-image__label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Inquiry Modal Styles
   =========================== */
.inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inquiry-modal.active {
    opacity: 1;
    visibility: visible;
}

.inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.inquiry-modal__content {
    position: relative;
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.inquiry-modal.active .inquiry-modal__content {
    transform: translateY(0) scale(1);
}

.inquiry-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.inquiry-modal__close:hover {
    background: var(--color-secondary);
    color: var(--color-text);
}

.inquiry-modal__header {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.inquiry-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.inquiry-modal__subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.inquiry-modal__form .form-group {
    margin-bottom: var(--spacing-sm);
}

.inquiry-modal__form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.95rem;
}

.inquiry-modal__form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.inquiry-modal__form .form-select option[value=""] {
    color: #999;
}

.inquiry-modal__form .form-select:invalid {
    color: #999;
}

/* Mobile Slide-in Modal */
@media (max-width: 600px) {
    .inquiry-modal {
        align-items: flex-end;
    }

    .inquiry-modal__content {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 2rem 1.5rem 2.5rem;
        max-height: 85vh;
        transform: translateY(100%);
    }

    .inquiry-modal.active .inquiry-modal__content {
        transform: translateY(0);
    }
}

/* Why Us Section */
.why-us {
    background-color: var(--color-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.feature-item__check {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===========================
   FAQ Section Styles
   =========================== */
.faq {
    background-color: var(--color-bg);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(21, 76, 189, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: background-color 0.2s ease;
}

.faq-item__question:hover {
    background-color: rgba(21, 76, 189, 0.03);
}

.faq-item__question:focus {
    outline: none;
    background-color: rgba(21, 76, 189, 0.05);
}

.faq-item__question:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.faq-item__question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-item__icon {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Answer Panel */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

.faq-item__answer[hidden] {
    display: block;
    /* Override hidden to allow animation */
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item__answer p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item__answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-item__answer a:hover {
    text-decoration: underline;
}

/* Active state styling */
.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(21, 76, 189, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .faq-item__question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-item__answer p {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact {
    padding-bottom: var(--spacing-lg);
    /* Use lg instead of xl for tighter bottom */
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact__info {
    padding-right: var(--spacing-md);
}

.contact__text {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact__detail-item strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.contact__form {
    background: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #111111;
    /* Rich Black */
    color: #a0a0a0;
    /* Light Gray Text */
    padding: 2.5rem 0 1.5rem;
    font-size: 0.85rem;
    margin-top: 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer__col--brand {
    padding-right: 1rem;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make white */
}

.footer__logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__description {
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 350px;
    font-size: 0.85rem;
}

.footer__heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer__nav,
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer__nav li a {
    color: #a0a0a0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer__nav li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__contact-list svg {
    color: var(--color-primary);
    /* Brand Blue Accent */
    flex-shrink: 0;
}

.footer__contact-list a,
.footer__contact-list span {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-list a:hover {
    color: #ffffff;
}

.footer__bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer__bottom a {
    color: inherit;
    text-decoration: underline;
    margin: 0 5px;
}

.footer__bottom a:hover {
    color: #ffffff;
}

/* Tablet Footer */
@media (max-width: 1024px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Scroll Animations — see unified .fade-in-up below */

/* Dropdown Menu */
.nav__item--dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Helper to bridge gap */
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Start slightly down */
    background-color: var(--color-white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    z-index: 1010;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    /* Ensure it layout exists but hidden */
}

/* Arrow indicator */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.nav__item--dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Un-offset */
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .footer__col--brand {
        padding-right: 0;
        margin-bottom: 0;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer__heading {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        margin-top: 0.5rem;
    }

    .footer__logo-img {
        height: 24px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible,
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section__title {
        font-size: 1.75rem;
    }

    .hero__title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero__tagline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        padding: 0.4rem 0.8rem;
    }

    .hero__description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Adjust Logo Size on Mobile */
    .logo__img {
        height: 50px;
        /* Larger on Tablet/Mobile */
    }

    .nav {
        gap: 1rem;
        /* Reduce gap from 2rem to 1rem on mobile */
    }

    /* Mobile Navigation */
    .nav__list {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--color-white);
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        z-index: 1010;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease,
            visibility 0.35s ease;
        overflow-y: auto;
    }

    .nav__list.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav__list li:last-child {
        border-bottom: none;
    }

    .nav__link {
        display: block;
        padding: 14px 4px;
        font-size: 1.05rem;
    }

    /* Mobile Dropdown: accordion-style inside the drawer */
    .nav__item--dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav__item--dropdown.dropdown-open>.dropdown-menu {
        max-height: 800px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.25rem 0 0.5rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem 0.5rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: none;
        color: var(--color-text-light);
    }

    .dropdown-item:hover {
        color: var(--color-primary);
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: 10px;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact__info {
        padding-right: 0;
    }

    /* Top Bar Mobile */
    .top-bar__container {
        gap: 1rem;
        justify-content: center;
    }

    .top-bar__item span {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .top-bar__item:first-child {
        display: none;
        /* Hide address on small mobile to save space */
    }

    .top-bar__container {
        justify-content: center;
    }
}

/* Very Small Screens adjustments for Buttons */
@media (max-width: 480px) {

    /* Mobile Header Layout Adjustments */
    .logo__img {
        height: 45px;
        /* Adjust for smaller screens (iPhone, etc) */
    }

    .header.scrolled .logo__img {
        height: 45px;
    }

    /* Adjust for smaller screens (iPhone, etc) */

    .header__container {
        padding: 0 1rem;
    }

    .header__buttons {
        gap: 0.35rem;
    }

    .header__phone {
        font-size: 0.9rem;
        /* Larger font size */
        padding: 6px 12px;
        background-color: var(--color-secondary);
        /* Contrast background */
        border-color: transparent;
        /* Cleaner look */
        color: var(--color-primary-dark);
        /* Strong contrast */
        font-weight: 700;
    }

    .header__phone img {
        width: 18px;
        height: 18px;
    }

    .btn--square {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        /* Circle for icons */
    }
}

/* Service Card with Image on Top */
/* Service Card with Image Overlay */
.service-card--image {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md);
    /* Restore padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align text to bottom if desired */
    min-height: 250px;
    /* Ensure height */
    isolation: isolate;
    border: none;
}

.service-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -2;
}

/* Restore Overlay */
.service-card--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    display: block;
}

/* Color overrides */
.service-card--image .service-card__title {
    color: white;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.service-card--image .service-card__text {
    color: white;
    /* White text */
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.service-card--image .service-card__cta {
    color: white;
    /* White CTA */
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* Hover Effects */
.service-card--image:hover .service-card__bg {
    transform: scale(1.1);
}

.service-card--image:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Philosophy Section */
.philosophy {
    background-color: #1a2634;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.philosophy__content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy__title {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    font-weight: 700;
}

.philosophy__divider {
    background-color: var(--color-primary);
    width: 80px;
    height: 4px;
    margin: 0 auto var(--spacing-lg) auto;
    border-radius: 2px;
}

.philosophy__text {
    font-size: 1.35rem;
    /* Larger, clearer text */
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
    font-weight: 300;
    /* Light/Clean font weight */
}

/* ===========================
   Process Section (Ablauf)
   =========================== */
.process {
    background-color: var(--color-secondary);
    /* Light Blue Background */
    overflow: hidden;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-item {
    position: relative;
    padding-top: 1rem;
    text-align: center;
}

.process-item__number {
    font-family: var(--font-main);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(21, 76, 189, 0.06);
    /* Very subtle brand blue */
    line-height: 0.8;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.process-item__content {
    position: relative;
    z-index: 1;
}

.process-item__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    /* Push down slightly to sit nicely over number */
}

.process-item__text {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Desktop Hover Effect */
.process-item:hover .process-item__number {
    color: rgba(21, 76, 189, 0.12);
    transform: translateX(-50%) scale(1.05);
    transition: all 0.4s ease;
}

/* Mobile Adjustments for Process */
@media (max-width: 768px) {

    /* Fix Container & Section Padding */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    /* Force Single Column Grids & Centering */
    .services__grid,
    .services__gallery,
    .contact__wrapper,
    .about__list,
    .footer__top,
    .process__grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 2.5rem;
    }

    /* Center Service Cards */
    .service-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        /* Ensure it fills container */
    }

    /* Contact Section Mobile */
    .contact__info {
        padding-right: 0;
        text-align: center;
        /* Optional: Center text if desired, but user said "layout" */
        margin-bottom: 2rem;
    }

    .contact__details {
        align-items: center;
        /* Center icons/text stack */
    }

    .contact__item {
        justify-content: center;
    }

    /* Process Section Mobile */
    .process__grid {
        gap: 5rem;
        /* More vertical space between steps on mobile */
    }

    .process-item__number {
        font-size: 7rem;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        /* Center perfectly */
    }

    .process-item {
        text-align: center;
        padding-top: 1rem;
    }

    .process-item__title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
}

/* ===========================
   Scroll Animations
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation types */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered cascading delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}

/* ===========================
   Service Page Content Structure
   =========================== */
.service-content__section {
    margin-bottom: var(--spacing-lg);
}

.service-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.service-benefit-box {
    background-color: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .service-features-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
    }
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.feature-check {
    color: var(--color-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.service-groups-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.service-groups-list li {
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.service-groups-list li::before {
    content: '•';
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 0;
}

.service-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: var(--color-text);
}

/* ===========================
   Cross-Device & Performance
   =========================== */

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Faster taps on mobile (eliminate 300ms delay) */
a,
button,
input,
textarea,
select,
.service-card,
.faq-item__question {
    touch-action: manipulation;
}

/* iOS momentum scrolling for scrollable containers */
.inquiry-modal__content,
.nav__list,
.cc-modal {
    -webkit-overflow-scrolling: touch;
}

/* Google Maps embed — replaces inline styles */
.contact__map {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact__map iframe {
    border: 0;
    width: 100%;
    height: 250px;
    display: block;
}