:root {
    --lobmeyer-blue: #08a5d2;
    --lobmeyer-blue-dark: #087eaa;
    --lobmeyer-ink: #24313a;
    --lobmeyer-muted: #65747d;
    --lobmeyer-soft: #f3f8fa;
    --lobmeyer-line: #dce8ec;
    --lobmeyer-rail: 238px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    color: var(--lobmeyer-ink);
    background: #fff;
    font: 16px/1.75 Raleway, Arial, Helvetica, sans-serif;
}
a { color: var(--lobmeyer-blue-dark); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 20; padding: 8px 12px; background: #fff; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: var(--lobmeyer-rail);
    padding: 26px 18px 20px;
    overflow-y: auto;
    color: #fff;
    background: var(--lobmeyer-blue);
}
.brand { display: block; margin-bottom: 36px; padding: 8px; background: #fff; }
.brand img { display: block; width: 100%; height: 126px; object-fit: contain; }
.brand-mobile, .mobile-nav { display: none; }
.desktop-nav ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.desktop-nav li { margin: 0; }
.desktop-nav a {
    display: block;
    padding: 11px 8px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background-color .2s ease;
}
.desktop-nav a:hover, .desktop-nav a:focus, .desktop-nav .active > a { background: rgba(255,255,255,.16); }
.sidebar-contact { display: grid; gap: 4px; margin-top: auto; padding-top: 28px; text-align: center; font-size: 13px; }
.sidebar-contact a { color: #fff; text-decoration: none; }

#site-content { margin-left: var(--lobmeyer-rail); }
.page-section { padding: clamp(64px, 9vw, 130px) clamp(30px, 8vw, 118px); scroll-margin-top: 24px; }
.eyebrow {
    margin: 0 0 18px;
    color: var(--lobmeyer-blue-dark);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.moduletable { min-width: 0; margin: 0; }
.moduletable > h3 { margin: 0 0 24px; }

.hero {
    min-height: 90vh;
    background: linear-gradient(115deg, #fff 62%, #f1f9fb 62%);
}
.hero > .eyebrow { margin-bottom: 20px; }
.hero .moduletable { max-width: 1050px; }
.hero .moduletable > h3 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(34px, 4.9vw, 62px);
    line-height: 1.14;
    font-weight: 500;
}
.hero .mod-custom { display: flow-root; }
.hero .mod-custom img {
    float: right;
    width: min(31%, 270px) !important;
    max-height: 460px;
    height: auto;
    margin: 8px 0 24px 42px;
    object-fit: cover;
    box-shadow: 18px 18px 0 var(--lobmeyer-blue);
}
.hero .mod-custom h2, .hero .mod-custom h3, .hero .mod-custom h4 {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.45;
    font-weight: 500;
}
.hero .mod-custom p { max-width: 850px; }
.hero .mod-custom p:last-child { color: var(--lobmeyer-blue-dark); font-weight: 700; }

.offer-section, .vita-section { background: var(--lobmeyer-soft); }
.offer-section .moduletable > h3, .approach-section h1, .approach-section h2,
.vita-section .moduletable > h3, .clients-section .moduletable > h3,
.contact-section .moduletable > h3 {
    margin: 0 0 34px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.2;
    font-weight: 500;
}
.offer-section .mod-custom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.offer-section .mod-custom h3 {
    display: flex;
    align-items: flex-end;
    min-height: 172px;
    margin: 0;
    padding: 26px;
    background: #fff;
    border-bottom: 3px solid var(--lobmeyer-blue);
    font-size: 19px;
    line-height: 1.45;
    font-weight: 600;
}

.approach-section { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .8fr); gap: 7vw; align-items: start; }
.approach-copy { min-width: 0; max-width: 980px; }
.approach-copy .com-content-article__info { margin: 0 0 18px; color: var(--lobmeyer-muted); font-size: 12px; }
.approach-copy p { max-width: 900px; }
.promise { margin-top: 48px; padding: 32px; color: #fff; background: var(--lobmeyer-blue); }
.promise .eyebrow { color: #e5f8ff; }
.promise .moduletable > h3 { margin: 0 0 18px; font-size: 28px; line-height: 1.25; font-weight: 500; }
.promise ul { margin: 0; padding: 0; list-style: none; }
.promise li, .promise .mod-custom p { margin: 0; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.35); }
.promise li::before, .promise .mod-custom p::before { content: "✓"; margin-right: 12px; }

.vita-section .mod-custom { max-width: 900px; }
.vita-section .mod-custom p:first-child { max-width: 760px; margin-bottom: 36px; }
.vita-section .mod-custom p:not(:first-child) {
    position: relative;
    margin: 0;
    padding: 9px 0 9px 25px;
    border-left: 2px solid var(--lobmeyer-blue);
}
.vita-section .mod-custom p:not(:first-child)::before {
    position: absolute;
    top: 18px;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lobmeyer-blue);
    content: "";
}
.clients-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr); column-gap: 7vw; align-items: center; }
.clients-section > .eyebrow { grid-column: 1 / -1; align-self: end; }
.clients-section .moduletable { grid-column: 1; grid-row: 2; }
.clients-section .moduletable ul { columns: 2; padding-left: 20px; }
.clients-section .moduletable li { padding: 7px 0; break-inside: avoid; }
.section-image { display: block; width: 100%; height: 310px; object-fit: cover; }
.clients-section > .section-image { grid-column: 2; grid-row: 2; }

.contact-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7vw; align-items: center; background: var(--lobmeyer-soft); }
.contact-copy { min-width: 0; }
.contact-section .moduletable > h3 { margin-bottom: 12px; }
.contact-section .section-image { height: 330px; }
.contact-section a { color: var(--lobmeyer-blue-dark); }
.site-footer { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; padding: 26px clamp(30px, 8vw, 118px); color: var(--lobmeyer-muted); font-size: 12px; }
.site-footer a { color: var(--lobmeyer-blue-dark); text-decoration: none; }
.site-footer p { margin: 0; }

@media (max-width: 1000px) {
    :root { --lobmeyer-rail: 200px; }
    .sidebar { padding: 20px 12px; }
    .page-section { padding: 68px 38px; }
    .offer-section .mod-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-section { grid-template-columns: 1fr; gap: 28px; }
    .promise { margin-top: 0; }
    .clients-section, .contact-section { gap: 35px; }
}

@media (max-width: 650px) {
    :root { --lobmeyer-rail: 0px; }
    .sidebar { position: sticky; top: 0; display: block; width: 100%; height: auto; padding: 8px 14px; overflow: visible; }
    .brand { display: none; }
    .brand-mobile { display: block; width: 68px; margin: 0 auto 5px; padding: 0; background: transparent; }
    .brand-mobile img { height: 42px; object-fit: contain; }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; list-style: none; }
    .mobile-nav li { flex: 0 0 auto; }
    .mobile-nav a { display: block; padding: 8px 10px; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 700; white-space: nowrap; }
    .sidebar-contact { display: none; }
    #site-content { margin-left: 0; }
    .page-section { padding: 56px 22px; }
    .hero { min-height: auto; background: #fff; }
    .hero .mod-custom img { float: none; display: block; width: min(75%, 280px) !important; max-height: 300px; margin: 18px auto 28px; box-shadow: 9px 9px 0 var(--lobmeyer-blue); }
    .hero .moduletable > h3 { font-size: 42px; }
    .offer-section .mod-custom { grid-template-columns: 1fr; }
    .offer-section .mod-custom h3 { min-height: 0; }
    .clients-section, .contact-section { grid-template-columns: 1fr; }
    .clients-section > .eyebrow { grid-column: 1; }
    .clients-section .moduletable, .clients-section > .section-image { grid-column: 1; grid-row: auto; }
    .clients-section .moduletable ul { columns: 1; }
    .clients-section > .section-image, .contact-section .section-image { height: 230px; }
    .contact-section .section-image { grid-row: 1; }
    .site-footer { padding: 24px 22px; gap: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}


/* Footer legal links: integrated with the contact area */
#bottom-d .footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--lobmeyer-line);
    list-style: none;
}
#bottom-d .footer-legal-menu li { margin: 0; padding: 0; }
#bottom-d .footer-legal-menu li + li {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--lobmeyer-line);
}
#bottom-d .footer-legal-menu a {
    color: var(--lobmeyer-muted);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease;
}
#bottom-d .footer-legal-menu a:hover,
#bottom-d .footer-legal-menu a:focus-visible {
    color: var(--lobmeyer-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 650px) {
    #bottom-d .footer-legal-menu { gap: 10px 14px; padding-top: 14px; }
    #bottom-d .footer-legal-menu li + li {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}


/* Footer navigation and back-to-top links */
.site-footer .footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer .footer-legal-menu li { margin: 0; padding: 0; }
.site-footer .footer-legal-menu li + li {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid var(--lobmeyer-line);
}
.site-footer .footer-legal-menu a {
    color: var(--lobmeyer-blue-dark);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer .footer-legal-menu a:hover,
.site-footer .footer-legal-menu a:focus-visible {
    color: var(--lobmeyer-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 650px) {
    .site-footer .footer-legal-menu { gap: 10px 14px; }
    .site-footer .footer-legal-menu li + li {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}


/* Compact back-to-top action in the footer */
.site-footer .footer-back-to-top { margin: 0; }
.site-footer .footer-back-to-top a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--lobmeyer-blue);
    color: var(--lobmeyer-blue-dark);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.site-footer .footer-back-to-top a:hover,
.site-footer .footer-back-to-top a:focus-visible {
    color: #fff;
    background: var(--lobmeyer-blue-dark);
    border-color: var(--lobmeyer-blue-dark);
}


/* Hide homepage-only intro sections on Joomla article pages */
#site-content:has(.com-content-article) > #top-a,
#site-content:has(.com-content-article) > #top-b {
    display: none;
}


/* Keep intro sections on the homepage; hide them only on standalone articles */
#site-content:has(.com-content-article) > #top-a,
#site-content:has(.com-content-article) > #top-b {
    display: block;
}
#site-content:has(.page-header) > #top-a,
#site-content:has(.page-header) > #top-b {
    display: none;
}


/* Omit the empty Vita heading section on the Impressum page only */
body:has(#mod-menu61 li.item-251.current) #bottom-a {
    display: none;
}


/* Omit the empty Vita heading section on the Datenschutz page only */
body:has(#mod-menu61 li.item-252.current) #bottom-a {
    display: none;
}
