:root {
    --primary: #083b82;
    --primary-dark: #05285a;
    --green: #137a3d;
    --yellow: #f5c542;
    --ink: #172033;
    --muted: #536276;
    --surface: #ffffff;
    --surface-soft: #f3f7fb;
    --border: #d9e3ee;
    --shadow: 0 18px 50px rgba(17, 42, 78, 0.12);
    --radius: 20px;
    --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--primary); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #f0a800; outline-offset: 4px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 10px 16px;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 8px;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.breadcrumbs { padding: 16px 0; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.9rem; }
.breadcrumbs li + li::before { margin-right: 8px; content: "/"; }
.breadcrumbs a { color: var(--muted); }
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.page-eyebrow { color: #ffe18a; }
.section { padding: 88px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading h2, .content-section h2 {
    margin: 0 0 14px;
    color: var(--primary-dark);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}
.section-heading p, .lead { margin: 0; color: var(--muted); font-size: 1.1rem; }

.site-header {
    position: fixed;
    top: 12px;
    z-index: 1000;
    width: min(calc(100% - 32px), 1120px);
    left: 50%;
    margin: 0;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(9, 35, 72, 0.16), 0 2px 8px rgba(9, 35, 72, 0.06);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transform: translateX(-50%);
}
.site-nav {
    display: flex;
    width: 100%;
    min-height: 68px;
    padding: 0 12px 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 56px; object-fit: contain; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 14px;
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}
.nav-links a:hover { color: var(--primary); background: #edf3fa; }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: #fff; background: var(--primary); box-shadow: 0 7px 18px rgba(8, 59, 130, 0.2); }
.nav-item-services { position: relative; display: flex; align-items: center; }
.nav-item-services::after { position: absolute; top: 100%; left: 0; width: 100%; height: 14px; content: ""; }
.nav-item-services > a { padding-right: 38px; }
.nav-submenu-toggle {
    position: absolute;
    right: 7px;
    width: 28px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    z-index: 2;
}
.nav-submenu-toggle:hover, .nav-submenu-toggle:focus-visible { background: rgba(8, 59, 130, 0.1); }
.nav-item-services > a[aria-current="page"] + .nav-submenu-toggle { color: #fff; }
.nav-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}
.nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 230px;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(9, 35, 72, 0.2);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(0.98);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1300;
}
.nav-submenu a { width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 11px; }
.nav-item-services:hover > .nav-submenu,
.nav-item-services:focus-within > .nav-submenu,
.nav-item-services.is-open > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}
.nav-item-services.is-open .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-links .nav-cta { margin-left: 10px; padding-inline: 21px; color: #1a202c; background: var(--yellow); border-radius: 999px; box-shadow: 0 9px 22px rgba(217, 153, 0, 0.25); }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { color: #1a202c; background: #ffd044; transform: translateY(-2px); }
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #17304f;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(9, 35, 72, 0.12);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 26px rgba(9, 35, 72, 0.16);
    transform: translateY(-1px);
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 84px));
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: "";
    background: linear-gradient(90deg, rgba(4, 28, 66, 0.9) 0%, rgba(4, 28, 66, 0.67) 48%, rgba(4, 28, 66, 0.2) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 92px 0 110px; color: #fff; }
.hero-content .eyebrow { color: #ffe18a; }
.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.hero p { max-width: 650px; margin: 0 0 32px; color: rgba(255, 255, 255, 0.92); font-size: clamp(1.1rem, 2vw, 1.28rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.button-yellow { color: #172033; background: var(--yellow); border-color: var(--yellow); }
.button-yellow:hover { color: #172033; background: #ffd663; border-color: #ffd663; }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.75); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.trust-strip { position: relative; z-index: 2; margin-top: -42px; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.trust-item { padding: 25px 28px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item strong { display: block; color: var(--primary-dark); font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: 0.92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-grid { grid-template-columns: repeat(2, 1fr); }
.card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(17, 42, 78, 0.08);
}
.card picture, .card img { width: 100%; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 28px; }
.card h2, .card h3 { margin: 0 0 12px; color: var(--primary-dark); line-height: 1.25; }
.card h3 { font-size: 1.45rem; }
.card p { margin: 0 0 18px; color: var(--muted); }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 27px; }
.check-list li::before { position: absolute; left: 0; color: var(--green); font-weight: 900; content: "✓"; }

.split { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 64px; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 20px; margin-top: 28px; }
.feature { padding-left: 22px; border-left: 4px solid var(--yellow); }
.feature h3 { margin: 0 0 4px; color: var(--primary-dark); }
.feature p { margin: 0; color: var(--muted); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.area-list li { padding: 8px 14px; color: var(--primary-dark); background: #e7eff9; border-radius: 999px; font-weight: 750; }
.card-link { margin-top: 22px !important; }
.card-link a { font-weight: 800; text-underline-offset: 4px; }

.page-hero { padding: 154px 0 92px; color: #fff; background: linear-gradient(130deg, var(--primary-dark), var(--primary)); }
.page-hero h1 {
    max-width: 830px;
    margin: 0 0 18px;
    font-size: clamp(2.55rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}
.page-hero p { max-width: 730px; margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 1.18rem; }
.process-grid, .values-grid, .people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.people-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.process-card, .value-card, .person-card { padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-number, .person-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
}
.person-avatar { width: 82px; height: 82px; background: linear-gradient(135deg, var(--primary), var(--green)); font-size: 1.5rem; }
.person-photo { width: 118px; height: 118px; margin-bottom: 20px; object-fit: cover; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(17, 42, 78, 0.16); }
.process-card h3, .value-card h3, .person-card h2 { margin: 0 0 8px; color: var(--primary-dark); }
.process-card p, .value-card p, .person-card p { margin: 0; color: var(--muted); }
.person-role { display: block; margin-bottom: 12px; color: var(--green); font-weight: 800; }

.cta-band { padding: 74px 0; color: #fff; background: var(--primary-dark); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.82); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 42px; align-items: start; }
.contact-panel { padding: 34px; color: #fff; background: var(--primary-dark); border-radius: var(--radius); }
.contact-panel h2 { margin-top: 0; color: #fff; }
.contact-list { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-list strong { display: block; color: #ffe18a; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-form { padding: 36px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h2 { margin: 0 0 6px; color: var(--primary-dark); }
.form-intro { margin: 0 0 28px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-full { grid-column: 1 / -1; }
.form-field label, .form-field legend { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 800; }
.required-note, .field-help { color: var(--muted); font-size: 0.88rem; }
.form-field input, .form-field textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    border: 2px solid #b9c8d8;
    border-radius: 10px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); outline: 3px solid rgba(8, 59, 130, 0.18); outline-offset: 1px; }
.checkbox-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checkbox-row input { width: 22px; height: 22px; margin-top: 2px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-actions { margin-top: 24px; }
.form-actions button { cursor: pointer; }
.form-message { margin: 0 0 22px; padding: 13px 15px; color: #7a2418; background: #fff0ed; border: 1px solid #e6a89f; border-radius: 10px; font-weight: 700; }

.legal-layout { display: grid; gap: 28px; padding: 70px 0 90px; }
.legal-card { padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-card h2 { margin: 0 0 12px; color: var(--primary-dark); }
.legal-card h3 { margin: 24px 0 8px; color: var(--primary-dark); }
.legal-card p, .legal-card ul { color: var(--muted); }

/* Vom Riveria CMS automatisch ergänzter Datenschutzhinweis */
#riveria-analytics-privacy {
    position: relative;
    width: min(calc(100% - 40px), 780px);
    margin: -62px auto 90px;
    padding: 32px 32px 32px 36px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #f5f9fd 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 38px rgba(8, 59, 130, 0.08);
}

#riveria-analytics-privacy::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--yellow);
    content: '';
}

#riveria-analytics-privacy h2 {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1.25;
}

#riveria-analytics-privacy p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.faq-item summary { position: relative; padding: 20px 56px 20px 22px; color: var(--primary-dark); cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 22px; color: var(--primary); font-size: 1.45rem; content: "+"; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.success-card { max-width: 720px; margin: 84px auto; padding: 54px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.site-footer { padding: 58px 0 24px; color: #173a63; background: #e8f2fb; border-top: 5px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 42px; padding-bottom: 38px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 14px; padding: 0; background: transparent; border-radius: 0; }
.footer-brand p, .footer-column p { margin: 0; color: #48627d; }
.footer-column p a { color: #244f7e; }
.footer-column h2 { margin: 0 0 14px; color: #082f67; font-size: 1rem; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #244f7e; text-underline-offset: 3px; }
.footer-bottom { padding-top: 22px; color: #61768e; border-top: 1px solid rgba(8, 59, 130, 0.16); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
    .site-header { top: 10px; width: calc(100% - 24px); margin-top: 0; border-radius: 19px; }
    .site-nav { min-height: 62px; padding: 0 10px 0 14px; }
    .js .menu-toggle { display: inline-flex; }
    .js .nav-links {
        position: fixed;
        top: 84px;
        right: 12px;
        bottom: auto;
        width: calc(100% - 24px);
        height: auto;
        max-height: calc(100dvh - 96px);
        display: none;
        align-content: start;
        align-items: stretch;
        gap: 6px;
        padding: 18px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(214, 225, 237, 0.9);
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(9, 35, 72, 0.22);
        z-index: 1200;
    }
    .js .nav-links.is-open { display: grid; }
    .nav-links li { width: 100%; }
    .nav-links > li:last-child { margin-top: 10px; }
    .nav-item-services { display: grid; grid-template-columns: 1fr 46px; }
    .nav-item-services::after { display: none; }
    .nav-item-services > a { grid-column: 1 / -1; grid-row: 1; padding-right: 58px; }
    .nav-submenu-toggle {
        position: relative;
        right: auto;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        width: 38px;
        height: 38px;
    }
    .nav-submenu {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        display: none;
        margin-top: 6px;
        padding: 8px;
        background: rgba(232, 242, 251, 0.76);
        border-radius: 15px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .nav-item-services.is-open > .nav-submenu { display: grid; transform: none; }
    .nav-submenu a { min-height: 44px; padding: 10px 14px; font-size: 0.98rem; }
    .nav-links a {
        width: 100%;
        padding: 13px 20px;
        justify-content: center;
        font-size: 1.08rem;
        font-weight: 800;
    }
    .nav-links .nav-cta {
        width: auto;
        min-width: 220px;
        margin: 0 auto;
        padding: 18px 30px;
    }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .card-grid, .values-grid, .people-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .cta-inner { display: grid; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 66px 0; }
    .brand img { width: auto; height: 50px; }
    .hero { min-height: 660px; }
    .hero-media::after { background: rgba(4, 28, 66, 0.74); }
    .hero-content { padding-block: 72px 100px; }
    .trust-grid, .card-grid, .service-grid, .values-grid, .people-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .trust-item + .trust-item { border-top: 1px solid var(--border); border-left: 0; }
    .page-hero { padding: 134px 0 70px; }
    .contact-form, .contact-panel, .legal-card, .success-card { padding: 26px 22px; }
    #riveria-analytics-privacy {
        width: min(calc(100% - 28px), 780px);
        margin-top: -62px;
        padding: 26px 22px 26px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Startseite: bewährtes Erscheinungsbild unterhalb des neuen Hero */
.legacy-home {
    --legacy-primary: #003087;
    --legacy-green: #28a745;
    --legacy-yellow: #ffc107;
    --legacy-red: #dc3545;
    --legacy-accent: #57a0ff;
    --legacy-text: #1e293b;
    --legacy-muted: #64748b;
    --legacy-bg: #f8fafc;
    --legacy-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: var(--legacy-text);
    background: var(--legacy-bg);
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.legacy-home .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 82px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}
.legacy-home .site-nav {
    width: 100%;
    max-width: none;
    min-height: 82px;
    margin: 0;
    padding: 0 24px;
}
.legacy-home .logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.legacy-home .logo-box img {
    width: 104px;
    height: 52px;
    object-fit: contain;
}
.legacy-home .logo-box span {
    margin-top: 1px;
    color: #777;
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.legacy-home .nav-links { gap: 26px; }
.legacy-home .nav-links a {
    min-height: auto;
    padding: 0;
    color: var(--legacy-text);
    background: transparent;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
}
.legacy-home .nav-links a:hover,
.legacy-home .nav-links a[aria-current="page"] { color: var(--legacy-primary); background: transparent; }
.legacy-home .nav-links .nav-cta {
    margin-left: 0;
    padding: 11px 22px;
    color: #fff;
    background: var(--legacy-primary);
    border-radius: 50px;
}
.legacy-home .nav-links .nav-cta:hover { color: #fff; background: #00266c; }
.legacy-home .menu-toggle { color: var(--legacy-primary); background: transparent; border-radius: 0; }

.legacy-home .hero {
    min-height: min(760px, 100vh);
    padding-top: 82px;
}
.legacy-home .hero-media::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.08) 100%);
}
.legacy-home .hero-content { width: min(calc(100% - 56px), 1120px); }

.legacy-home .services {
    width: min(100% - 72px, 1000px);
    margin: 0 auto;
    padding: 100px 0;
}
.legacy-home .section-title {
    margin: 0 0 32px;
    color: var(--legacy-primary);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}
.legacy-home .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.legacy-home .service-card {
    overflow: hidden;
    padding-bottom: 34px;
    background: #fff;
    border: 0;
    border-left: 5px solid;
    border-radius: 15px;
    box-shadow: var(--legacy-shadow);
    transition: transform 0.3s ease;
}
.legacy-home .service-card:hover { transform: translateY(-5px); }
.legacy-home .service-card.card-blue { border-left-color: var(--legacy-primary); }
.legacy-home .service-card.card-green { border-left-color: var(--legacy-green); }
.legacy-home .service-card.card-yellow { border-left-color: var(--legacy-yellow); }
.legacy-home .service-card.card-red { border-left-color: var(--legacy-red); }
.legacy-home .card-img-box { padding: 20px 20px 0; }
.legacy-home .card-img-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.legacy-home .card-content { padding: 26px 22px; text-align: center; }
.legacy-home .card-content h3 {
    margin: 0 0 14px;
    color: #333;
    font-size: 1.35rem;
    font-weight: 700;
}
.legacy-home .card-content h3 a { color: inherit; text-decoration: none; }
.legacy-home .card-content h3 a:hover { color: var(--legacy-primary); }
.legacy-home .card-content p {
    margin: 0 0 22px;
    color: var(--legacy-muted);
    font-size: 0.95rem;
}
.legacy-home .service-list {
    margin: 0;
    padding: 0 24px;
    color: #444;
    list-style: none;
    text-align: left;
}
.legacy-home .service-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 35px;
    font-size: 0.95rem;
}
.legacy-home .service-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #111;
    font-size: 1.05rem;
    font-weight: 900;
    content: "✓";
}

.legacy-home .about-section {
    width: min(100% - 72px, 940px);
    margin: 0 auto;
    padding: 100px 0;
    background: #fff;
}
.legacy-home .about-text {
    max-width: 720px;
    margin: 0 auto 50px;
    color: var(--legacy-muted);
    font-size: 1.06rem;
    line-height: 1.8;
    text-align: center;
}
.legacy-home .about-text p { margin: 0 0 18px; }
.legacy-home .about-text p:last-child { margin-bottom: 0; }
.legacy-home .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.legacy-home .team-member {
    padding: 34px 26px;
    text-align: center;
    background: var(--legacy-bg);
    border: 1px solid #e8edf3;
    border-radius: 15px;
}
.legacy-home .team-member img {
    width: 140px;
    height: 140px;
    margin: 0 auto 22px;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: var(--legacy-shadow);
}
.legacy-home .team-member h3 { margin: 0 0 6px; color: var(--legacy-primary); font-size: 1.45rem; }
.legacy-home .team-member .role {
    display: block;
    margin-bottom: 18px;
    color: var(--legacy-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.legacy-home .team-text { max-width: 380px; margin: 0 auto; color: var(--legacy-muted); font-size: 0.96rem; text-align: left; }

.legacy-home .faq-section { width: min(100% - 56px, 1120px); padding: 100px 0; background: #fff; }
.legacy-home .faq-list { max-width: 900px; gap: 16px; }
.legacy-home .faq-item {
    overflow: hidden;
    padding: 0;
    background: var(--legacy-bg);
    border: 1px solid #e8edf3;
    border-radius: 18px;
}
.legacy-home .faq-item summary {
    padding: 24px 60px 24px 28px;
    color: var(--legacy-primary);
    font-size: 1.12rem;
    font-weight: 700;
}
.legacy-home .faq-item summary::after { right: 24px; color: var(--legacy-primary); content: "+"; }
.legacy-home .faq-item[open] summary::after { content: "–"; }
.legacy-home .faq-item p { padding: 0 28px 24px; color: var(--legacy-muted); font-size: 1rem; line-height: 1.7; }

.legacy-home .contact-section { position: relative; padding: 110px 0 170px; background: transparent; }
.legacy-home .contact-layout {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 56px;
    width: min(100% - 72px, 980px);
    margin: 0 auto;
    padding: 70px 60px 170px;
    color: #fff;
    background: var(--legacy-primary);
    border-radius: 34px;
}
.legacy-home .contact-info-side { padding-top: 8px; }
.legacy-home .contact-info-side h2 {
    margin: 0 0 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}
.legacy-home .contact-items-container { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.legacy-home .contact-item { display: flex; align-items: center; gap: 18px; }
.legacy-home .contact-hours { align-items: flex-start; }
.legacy-home .icon-circle {
    display: flex;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--legacy-primary);
    background: #fff;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 800;
}
.legacy-home .contact-item > span:not(.icon-circle),
.legacy-home .contact-item > a { color: #fff; font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.legacy-home .contact-item > a:hover { text-decoration: underline; }
.legacy-home .hours-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.legacy-home .hours-text strong { color: #fff; font-size: 1.05rem; font-weight: 800; }
.legacy-home .hours-text span { color: #fff; font-size: 1rem; line-height: 1.5; }
.legacy-home .contact-form-side { position: relative; }
.legacy-home .contact-form-card {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: -120px;
    padding: 38px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}
.legacy-home .contact-form-card input,
.legacy-home .contact-form-card textarea {
    width: 100%;
    padding: 18px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font: inherit;
}
.legacy-home .contact-form-card textarea { min-height: 148px; resize: vertical; }
.legacy-home .phone-row { display: flex; }
.legacy-home .phone-row .prefix {
    display: flex;
    align-items: center;
    padding: 18px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
}
.legacy-home .phone-row input { flex-grow: 1; border-radius: 0 10px 10px 0; }
.legacy-home .privacy-row { display: flex; align-items: flex-start; gap: 12px; color: #666; font-size: 0.9rem; text-align: left; }
.legacy-home .privacy-row input { width: auto; margin-top: 5px; flex-shrink: 0; cursor: pointer; }
.legacy-home .privacy-row a { color: var(--legacy-primary); font-weight: 600; text-decoration: underline; }
.legacy-home .btn-submit {
    padding: 20px;
    color: #333;
    background: var(--legacy-yellow);
    border: 0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.legacy-home .btn-submit:hover { transform: translateY(-3px); }

.legacy-home .legacy-footer {
    padding: 190px 0 35px;
    color: var(--legacy-text);
    text-align: center;
    background: #d7e3ef;
    border-top: 1px solid #b9cadc;
}
.legacy-home .legacy-footer .container { width: min(100% - 56px, 1120px); }
.legacy-home .footer-logo { width: auto; height: 50px; margin: 0 auto 25px; object-fit: contain; }
.legacy-home .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0 0 30px; padding: 0; list-style: none; }
.legacy-home .footer-nav a { color: #35506f; font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.legacy-home .footer-nav a:hover { color: var(--legacy-primary); }
.legacy-home .footer-divider { width: 100%; height: 1px; margin: 20px auto; background: #c7d5e4; }
.legacy-home .legacy-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #4f6782;
    border: 0;
    font-size: 0.85rem;
}
.legacy-home .riveria-link { color: #4f6782; text-decoration: none; }
.legacy-home .riveria-link:hover { color: var(--legacy-primary); }

@media (max-width: 992px) {
    .legacy-home .site-header { height: 76px; }
    .legacy-home .site-nav { min-height: 76px; padding: 0 18px; }
    .legacy-home .logo-box img { width: 96px; height: 48px; }
    .legacy-home .logo-box span { font-size: 0.44rem; }
    .legacy-home .js .menu-toggle,
    .js .legacy-home .menu-toggle { display: inline-flex; }
    .legacy-home .nav-links {
        position: fixed;
        top: 76px;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 76px);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 28px 24px 32px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border: 0;
        box-shadow: none;
    }
    .legacy-home .nav-links.is-open { display: flex; }
    .legacy-home .nav-links li { width: 100%; border-bottom: 1px solid rgba(0, 48, 135, 0.08); }
    .legacy-home .nav-links li:last-child { margin-top: 20px; border-bottom: 0; }
    .legacy-home .nav-links a { display: block; width: 100%; padding: 18px 0; font-size: 1.05rem; }
    .legacy-home .nav-links .nav-cta { display: inline-flex; width: auto; padding: 12px 20px; }
    .legacy-home .hero { min-height: 620px; padding-top: 76px; }
    .legacy-home .hero-content { width: min(100% - 40px, 1120px); padding-inline: 24px; }
    .legacy-home .services,
    .legacy-home .about-section { width: min(100% - 40px, 100%); padding: 90px 0; }
    .legacy-home .service-grid,
    .legacy-home .team-grid { grid-template-columns: 1fr; gap: 26px; }
    .legacy-home .contact-section { padding: 90px 0 120px; }
    .legacy-home .contact-layout { grid-template-columns: 1fr; gap: 34px; width: min(100% - 40px, 980px); padding: 50px 28px 120px; border-radius: 26px; }
    .legacy-home .contact-info-side h2 { font-size: 2.5rem; text-align: center; }
    .legacy-home .contact-items-container { max-width: 720px; margin: 0 auto; }
    .legacy-home .contact-form-card { margin-bottom: -90px; padding: 30px; }
    .legacy-home .legacy-footer { padding-top: 150px; }
    .legacy-home .legacy-footer .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
    .legacy-home .site-header { height: 72px; }
    .legacy-home .site-nav { min-height: 72px; padding: 0 16px; }
    .legacy-home .logo-box img { width: 92px; height: 46px; }
    .legacy-home .logo-box span { font-size: 0.42rem; }
    .legacy-home .nav-links { top: 72px; height: calc(100vh - 72px); padding: 24px 20px 28px; }
    .legacy-home .nav-links a { padding: 16px 0; font-size: 1rem; }
    .legacy-home .hero { min-height: 700px; padding-top: 72px; }
    .legacy-home .hero-media::after { background: rgba(0, 0, 0, 0.7); }
    .legacy-home .hero-content { width: min(100% - 44px, 1120px); padding-inline: 22px; }
    .legacy-home .section-title { margin-bottom: 28px; font-size: 2.1rem; }
    .legacy-home .services,
    .legacy-home .about-section { width: min(100% - 44px, 100%); padding: 80px 0; }
    .legacy-home .card-img-box { padding: 18px 18px 0; }
    .legacy-home .card-content { padding: 24px 20px; }
    .legacy-home .service-list { padding: 0 24px; }
    .legacy-home .about-text { margin-bottom: 40px; font-size: 1rem; }
    .legacy-home .team-member { padding: 32px 24px; }
    .legacy-home .team-member img { width: 130px; height: 130px; }
    .legacy-home .faq-section { width: min(100% - 44px, 1120px); padding: 80px 0; }
    .legacy-home .faq-item { border-radius: 14px; }
    .legacy-home .faq-item summary { padding: 20px 54px 20px 22px; font-size: 1rem; }
    .legacy-home .faq-item summary::after { right: 20px; }
    .legacy-home .faq-item p { padding: 0 22px 20px; font-size: 0.96rem; }
    .legacy-home .contact-section { padding: 80px 0 100px; }
    .legacy-home .contact-layout { width: 100%; margin: 0; padding: 40px 16px 100px; border-radius: 0; }
    .legacy-home .contact-info-side h2 { font-size: 2.15rem; }
    .legacy-home .contact-items-container { width: 100%; gap: 18px; }
    .legacy-home .contact-item { align-items: flex-start; gap: 14px; }
    .legacy-home .icon-circle { width: 48px; height: 48px; font-size: 1.15rem; }
    .legacy-home .contact-item > span:not(.icon-circle),
    .legacy-home .contact-item > a { font-size: 1rem; }
    .legacy-home .contact-form-card { margin-bottom: -70px; padding: 24px 16px; border-radius: 16px; }
    .legacy-home .contact-form-card input,
    .legacy-home .contact-form-card textarea { padding: 15px; }
    .legacy-home .phone-row .prefix { padding: 15px; }
    .legacy-home .btn-submit { padding: 18px; font-size: 1rem; }
    .legacy-home .legacy-footer { padding-top: 120px; }
    .legacy-home .footer-logo { height: 44px; }
    .legacy-home .footer-nav { gap: 14px; }
    .legacy-home .legacy-footer .footer-bottom { font-size: 0.8rem; }
}
