/*
 * CSS Maintenance Notes
 * 1) Keep section order: Base -> Components -> State -> Media.
 * 2) Prefer direct component rules over broad wildcard selectors.
 * 3) Keep square UI defaults (border-radius: 0) unless explicitly required.
 */

:root {
    --bg: #ebeff4;
    --surface: #ffffff;
    --surface-soft: #f6f9fc;
    --text: #2b3d50;
    --muted: #435b73;
    --brand-blue: #1a60ab;
    --brand-green: #0aaf34;
    --brand-tertiary: #f0c66e;
    --line: #c8d7e7;
    --shadow: 0 8px 24px rgba(26, 96, 171, 0.12);
    --container: min(1320px, calc(100% - 2rem));
    --anchor-offset: 134px;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ebeff4 0%, #f5f8fb 42%, #ebeff4 100%);
    line-height: 1.6;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
}

a:hover {
    color: var(--brand-green);
}

.skip-link {
    position: absolute;
    left: 0.6rem;
    top: -3rem;
    z-index: 1003;
    background: #0b3f74;
    color: #fff;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
}

.skip-link:focus {
    top: 0.6rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 2px;
}

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

.container {
    width: var(--container);
    margin: 0 auto;
}

main {
    padding-bottom: 2.25rem;
}

main [id],
.site-footer[id] {
    scroll-margin-top: var(--anchor-offset, 134px);
}

/* Components */

.cleanup-preview-banner {
    background: #8a130b;
    color: #fff4f2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.cms-system-badge {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(138, 19, 11, 0.94);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.cms-system-badge-frontend {
    background: rgba(11, 63, 116, 0.92);
}

.cleanup-preview-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.cleanup-preview-time {
    opacity: 0.88;
}

.cleanup-preview-exit {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.18rem 0.55rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.cleanup-preview-exit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.tracking-consent-layer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1200;
    background: linear-gradient(180deg, rgba(16, 34, 54, 0.98), rgba(9, 24, 40, 0.98));
    border-top: 1px solid rgba(148, 198, 238, 0.38);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.28);
    color: #e9f3ff;
}

.tracking-consent-inner {
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.6rem 0;
}

.tracking-consent-copy {
    display: grid;
    gap: 0.15rem;
    flex: 1 1 560px;
    min-width: 0;
}

.tracking-consent-copy strong {
    font-size: 0.95rem;
    color: #f3f9ff;
}

.tracking-consent-copy span {
    font-size: 0.84rem;
    color: #c6dcef;
}

.tracking-consent-services {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
}

.tracking-consent-services li {
    margin: 0;
}

.tracking-consent-services label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #c6dcef;
    cursor: pointer;
}

.tracking-consent-services input {
    margin-top: 0;
}

.tracking-consent-services input[type='checkbox'] {
    width: auto;
    flex: 0 0 auto;
}

.consent-btn-info {
    margin-top: 0.3rem;
    width: fit-content;
    background: rgba(255, 255, 255, 0.06);
    color: #d9ecfb;
    border-color: rgba(154, 204, 244, 0.34);
}

.tracking-cookie-info {
    margin-top: 0.45rem;
    background: rgba(5, 21, 35, 0.45);
    border: 1px solid rgba(154, 204, 244, 0.28);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
}

.tracking-cookie-info > strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    color: #f2f9ff;
}

.tracking-cookie-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.tracking-cookie-list li {
    display: grid;
    gap: 0.05rem;
}

.tracking-cookie-name {
    font-size: 0.79rem;
    font-weight: 700;
    color: #f4fbff;
}

.tracking-cookie-meta,
.tracking-cookie-purpose {
    font-size: 0.76rem;
    color: #c6dcef;
}

.tracking-consent-actions {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        'accept save'
        'decline save';
    gap: 0.5rem;
    flex: 0 1 360px;
}

.tracking-consent-actions .consent-btn {
    min-width: 0;
    text-align: center;
    white-space: normal;
}

.tracking-consent-actions .consent-btn-accept {
    grid-area: accept;
}

.tracking-consent-actions .consent-btn-save {
    grid-area: save;
}

.tracking-consent-actions .consent-btn-decline {
    grid-area: decline;
}

.consent-btn {
    border: 1px solid rgba(154, 204, 244, 0.42);
    border-radius: 8px;
    padding: 0.38rem 0.72rem;
    cursor: pointer;
    white-space: nowrap;
}

.consent-btn-accept {
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
    border-color: rgba(154, 204, 244, 0.42);
    font-weight: 600;
}

.consent-btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
}

.consent-btn-save {
    background: rgba(5, 132, 209, 0.2);
    color: #eff8ff;
}

.consent-btn:hover {
    filter: brightness(1.04);
}

.tracking-consent-layer a:focus-visible,
.tracking-consent-layer button:focus-visible,
.tracking-consent-layer input:focus-visible {
    outline: 3px solid #9fd5ff;
    outline-offset: 2px;
}

.site-header {
    background: var(--brand-blue);
    border-bottom: 0;
    box-shadow: 0 2px 12px rgba(26, 96, 171, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-image {
    height: 190px;
    background-image: url('../uploads/redaxx_platzhalter.jpg');
    background-position: center 24%;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 2px solid #c2d5e8;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
}

.brand {
    min-width: 148px;
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 112px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-blue);
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    border-radius: 0;
}

.menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 1.2rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -0.36rem;
}

.menu-toggle-icon::after {
    top: 0.36rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: translateY(0.36rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: translateY(-0.36rem) rotate(-45deg);
}

.main-nav {
    margin-left: auto;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.28rem;
}

.main-nav li {
    position: relative;
}

.nav-link-wrap {
    display: flex;
    align-items: stretch;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.3rem 0.78rem;
    color: #fff;
    border-bottom: 0;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.56);
}

.main-nav a.is-active,
.main-nav a[aria-current="page"],
.main-nav a[aria-current="location"],
.main-nav a.is-active span,
.main-nav a[aria-current="page"] span,
.main-nav a[aria-current="location"] span {
    color: #fff;
    font-weight: 700;
}

@media (min-width: 761px) {
    .nav-wrap {
        justify-content: space-between;
    }

    .main-nav {
        order: 1;
        margin-left: 0;
        margin-right: auto;
    }

    .brand {
        order: 3;
        margin-left: auto;
    }

    .has-submenu::after {
        content: '';
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 12px;
    }

    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a:hover,
    .main-nav a:hover span {
        color: rgba(255, 255, 255, 0.56);
    }
}

.submenu-caret {
    margin-left: 0.35rem;
    font-weight: 700;
}

.submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #000;
    width: 2rem;
}

.submenu {
    list-style: none;
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    min-width: 240px;
    margin: 0;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 0;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.submenu a {
    width: 100%;
    justify-content: flex-start;
    color: #000;
    border-bottom: 1px solid #dce8f4;
    font-size: 0.9rem;
    padding: 0.42rem 0.75rem;
}

.submenu li:last-child a {
    border-bottom: 0;
}

.submenu a:hover,
.submenu a.is-active {
    color: var(--brand-green);
    background: #f5fbf7;
    border-bottom-color: #dce8f4;
}

.submenu a.is-active {
    font-weight: 700;
}

.hero {
    margin-top: 0;
}

.hero .hero-slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-slider {
    position: relative;
    display: grid;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: var(--shadow);
    background: #0d3154;
}

.slide {
    position: relative;
    grid-area: 1 / 1;
    min-height: 440px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.7s ease;
}

.slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease, opacity 0.7s ease;
}

.slide.is-active > img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 31, 58, 0.82) 0%, rgba(7, 31, 58, 0.45) 58%, rgba(7, 31, 58, 0.16) 100%);
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 3.2rem 0 3rem;
    max-width: 700px;
}

.kicker {
    margin: 0 0 0.55rem;
    color: var(--brand-green);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.list-date {
    margin: 0 0 0.05rem;
    color: #4a4a4a;
    font-size: 0.72rem;
    line-height: 1.2;
}

.list-title {
    margin: 0 0 0.2rem;
    color: var(--brand-blue);
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
}

.list-subheading {
    margin: 0 0 0.55rem;
    color: var(--brand-tertiary);
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}

.slide .kicker {
    color: #7ef1aa;
}

.slide h1,
.slide h2 {
    margin: 0 0 0.8rem;
    line-height: 1.25;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.slide p {
    margin: 0 0 1.15rem;
}

.slider-controls {
    position: absolute;
    right: 0.75rem;
    bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 3;
}

.slider-btn {
    border: 1px solid #1d5f99;
    border-radius: 0;
    width: 2.1rem;
    height: 2.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-blue);
    cursor: pointer;
}

.slider-toggle {
    position: relative;
    min-width: 2.1rem;
}

.slider-toggle::before,
.slider-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-toggle::before {
    left: 0.78rem;
    width: 0;
    height: 0;
    border-top: 0.34rem solid transparent;
    border-bottom: 0.34rem solid transparent;
    border-left: 0.54rem solid var(--brand-blue);
    opacity: 0;
}

.slider-toggle::after {
    left: 0.69rem;
    width: 0.72rem;
    height: 0.68rem;
    background:
        linear-gradient(90deg, var(--brand-blue) 0 34%, transparent 34% 66%, var(--brand-blue) 66% 100%);
    opacity: 1;
}

.slider-toggle.is-paused::before {
    opacity: 1;
}

.slider-toggle.is-paused::after {
    opacity: 0;
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 0.35rem;
}

.slider-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
}

.slider-dot.is-active {
    background: #fff;
}

.section {
    padding: 1.35rem 0;
}

body.cms-arrival-mode #main-content > :not(.arrival-contact-page) {
    display: none;
}

body.cms-arrival-mode #main-content > .arrival-contact-page {
    display: block;
}

.page-hero {
    padding: 1.4rem 0 0.9rem;
}

.page-hero h1 {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    color: var(--brand-blue);
}

.references-page-hero .container {
    text-align: center;
}

.references-page-hero {
    padding-top: 4.2rem;
}

.references-page-hero h1 {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-top: 0.6rem;
    padding-bottom: 0.35rem;
    color: var(--brand-tertiary);
    text-transform: uppercase;
}

.references-page-hero h1::after {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    bottom: 0;
    height: 4px;
    background: currentColor;
}

.detail-hero {
    min-height: min(62vh, 620px);
    padding: 0;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.detail-hero .detail-hero-content {
    width: clamp(230px, 33.1vw, 547px);
    aspect-ratio: 2.5 / 1;
    box-sizing: border-box;
    padding: clamp(0.9rem, 2.2vw, 1.7rem);
    background: #ffffff;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 761px) {
    .detail-hero .detail-hero-content {
        width: 547px;
        max-width: min(547px, calc(100% - 2rem));
    }
}

.detail-hero .detail-date {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.25;
}

.detail-hero h1,
.detail-hero .kicker,
.detail-hero p {
    color: #111111;
    text-shadow: none;
}

.detail-hero .detail-hero-content h1 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
    line-height: 1.25;
}

.detail-hero .detail-hero-content h1 + p {
    margin-top: 0;
    font-size: 1.2rem;
    line-height: 1.35;
}

.detail-hero .detail-hero-back {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
}

.detail-hero .detail-hero-back .btn {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.detail-hero .detail-hero-back .btn:hover,
.detail-hero .detail-hero-back .btn:focus-visible {
    background: var(--brand-green);
    color: #ffffff;
    border-color: var(--brand-green);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin: 0 auto;
}

.detail-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.detail-gallery .card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center;
}

.detail-gallery .card-media.js-gallery-image {
    cursor: zoom-in;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    padding: 0;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 12, 22, 0.84);
}

.gallery-lightbox-panel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
    background: #0f2136;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    overflow: hidden;
}

.gallery-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #091523;
}

.gallery-lightbox-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: #091523;
    border: 0;
    transform: translateX(0);
    opacity: 1;
}

.gallery-lightbox-image.is-next {
    transform: translateX(100%);
    opacity: 0;
}

.gallery-lightbox-stage.is-animating .gallery-lightbox-image {
    transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.42s ease;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(218, 232, 246, 0.42);
    border-radius: 999px;
    background: rgba(7, 18, 34, 0.76);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:focus-visible,
.gallery-lightbox-close:focus-visible {
    background: rgba(12, 34, 64, 0.9);
}

.gallery-lightbox-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-lightbox-prev {
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
}

.gallery-lightbox-caption {
    margin: 0;
    padding: 0.55rem 0.9rem;
    color: #e6eef7;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    background: rgba(9, 21, 35, 0.82);
    border-radius: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 2rem);
    bottom: 1rem;
    z-index: 2;
    pointer-events: none;
}

.hero-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.hero-grid.hero-grid-split {
    grid-template-columns: 1fr 1fr;
}

.hero-grid.hero-grid-no-image {
    grid-template-columns: 1fr;
}

.hero-grid.hero-grid-image-left > .card {
    order: 2;
}

.hero-grid.hero-grid-image-left > .panel {
    order: 1;
}

.content-element-image-panel {
    padding: 0;
    overflow: hidden;
}

.content-element-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0;
}

.content-element-text-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-element-title-wrap .content-element-block-title {
    position: relative;
    display: inline-block;
    margin: 0.6rem auto 2.5rem;
    padding-bottom: 0.35rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    color: var(--brand-tertiary);
    text-transform: uppercase;
    text-align: center;
}

.content-element-title-wrap {
    text-align: center;
    padding-top: 4.2rem;
}

.page-hero .content-element-title-wrap {
    padding-top: 2.9rem;
}

.content-element-block-title::after {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    bottom: 0;
    height: 4px;
    background: currentColor;
}

.home-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1360px;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: 2.1rem;
}

.home-start-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.home-start-brand img {
    width: min(100%, 320px);
    height: auto;
}

.home-start-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: #fff;
    background: #0d3154;
    background-image: var(--tile-bg-image);
    background-size: 105% 105%;
    background-position: center;
}

.home-start-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 105%;
    height: 105%;
    top: -2.5%;
    left: -2.5%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    transform: none;
    backface-visibility: hidden;
}

.home-start-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.34));
    transition: background 0.3s ease;
}

.home-start-tile-title {
    position: relative;
    inset: auto;
    z-index: 2;
    display: block;
    text-align: center;
    padding: 0;
    font-size: clamp(1.55rem, 3.4vw, 2.25rem);
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: none;
}

.home-start-tile-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    padding: 1rem;
}

.home-start-tile-icon {
    width: clamp(88px, 9vw, 116px);
    height: clamp(88px, 9vw, 116px);
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.home-start-tile:hover,
.home-start-tile:focus-visible {
    color: #fff;
}

.home-start-tile:hover .home-start-tile-media,
.home-start-tile:focus-visible .home-start-tile-media {
    transform: none;
}

.home-start-tile:hover .home-start-tile-overlay,
.home-start-tile:focus-visible .home-start-tile-overlay {
    background: linear-gradient(180deg, rgba(57, 74, 94, 0.88), rgba(57, 74, 94, 0.88));
}

.contact-grid {
    grid-template-columns: 1fr 2fr;
}

.team-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.team-avatars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.team-avatars img {
    width: 100%;
    height: 138px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid var(--line);
    background: #fff;
}

.team-avatars img:nth-child(2) {
    object-fit: contain;
    padding: 0.35rem;
}

.team-avatars-single {
    grid-template-columns: 1fr;
}

.team-avatars-single img {
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    padding: 0;
}

.panel,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0.95rem;
    box-shadow: var(--shadow);
    min-width: 0;
}

.profile-image-card .panel-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}

.profile-image-card {
    padding: 0;
    overflow: hidden;
}

.profile-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.panel h2,
.card h2,
.card h3 {
    margin: 0.25rem 0 0.6rem;
    color: var(--brand-blue);
    line-height: 1.35;
}

.card small,
.stat span,
.form-note {
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.grid-3 .card {
    display: flex;
    flex-direction: column;
}

.reference-card {
    display: flex;
    flex-direction: column;
}

.grid-3 .card > p:last-child,
.reference-card > p:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.grid-3 .card > p:last-child .btn,
.reference-card > p:last-child .btn {
    min-height: 2.5rem;
}

.grid-3 .card .service-link {
    margin-top: auto;
    align-self: flex-start;
}

.home-news-grid .card-media {
    height: 220px;
}

.card-media,
.panel-image,
.about-portrait-grid img {
    width: 100%;
    border-radius: 0;
    border: 1px solid var(--line);
    margin-bottom: 0.65rem;
    object-fit: cover;
}

.about-portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.btn,
.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0.52rem 0.85rem;
    font-weight: 600;
    border: 1px solid #1b66b2;
}

.btn-primary,
.service-link {
    background: var(--brand-blue);
    color: #fff;
}

.btn-primary:hover,
.service-link:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--brand-blue);
}

.btn-secondary:hover {
    color: #fff;
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #afc6dc;
    border-radius: 999px;
    font-size: 0.76rem;
    padding: 0.18rem 0.56rem;
    margin: 0.15rem 0.2rem 0.15rem 0;
    background: #f4f9ff;
    color: var(--brand-blue);
}

.hero-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0.45rem 0.6rem;
    min-width: 108px;
    background: var(--surface-soft);
}

.stat strong {
    display: block;
    color: var(--brand-blue);
}

.references-wrap {
    position: relative;
}

.references-list-grid .card-media {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center;
}

.references-list-grid .card > a {
    display: block;
    height: 220px;
    overflow: hidden;
}

.reference-card > a img,
.references-list-grid .card > a img,
.home-news-grid .card > a img,
.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.examples-card .card-media {
    margin-bottom: 0.35rem;
}

.examples-slider {
    position: relative;
}

.examples-viewport {
    overflow: hidden;
}

.examples-track {
    display: flex;
    transition: transform 0.3s ease;
}

.example-slide {
    min-width: 100%;
    margin: 0;
}

.example-slide figcaption {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.examples-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.examples-hint {
    margin-top: 0.55rem;
}

.references-viewport {
    overflow: hidden;
    padding: 24px 24px 26px;
    margin: -24px -24px -26px;
}

.references-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    will-change: transform;
}

.reference-card {
    min-width: calc((100% - 2rem) / 3);
}

.reference-card > a {
    display: block;
    height: 220px;
    overflow: hidden;
}

.reference-card .card-media {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center;
}

.references-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.references-controls.is-hidden {
    display: none;
}

.contact-form {
    margin-top: 0.8rem;
}

.form-row {
    margin-bottom: 0.75rem;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
    color: #34516f;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #b8cbde;
    border-radius: 0;
    padding: 0.58rem 0.62rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

textarea {
    min-height: 105px;
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    line-height: 1.4;
}

.consent-check input[type="checkbox"] {
    width: auto;
    margin: 0.15rem 0 0;
    flex: 0 0 auto;
}

.consent-check span {
    display: block;
}

.form-error {
    color: #b10f2e;
    font-size: 0.82rem;
}

.form-status {
    border-radius: 0;
    padding: 0.55rem 0.65rem;
    margin: 0.65rem 0;
}

.form-status.success {
    border: 1px solid #0aaf34;
    color: #0a8230;
    background: #ebffef;
}

.form-status.error {
    border: 1px solid #cf5d66;
    color: #a5192f;
    background: #fff0f2;
}

.contact-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0.9rem 0;
}

.contact-map-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.contact-map-hint {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.contact-lightbox[hidden] {
    display: none;
}

.contact-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1002;
}

.contact-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 20, 34, 0.72);
    cursor: zoom-out;
}

.contact-lightbox-panel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
}

.contact-lightbox-panel img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: contain;
    background: #f6fbff;
}

.contact-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 18, 34, 0.72);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.site-footer {
    margin-top: 1.4rem;
    border-top: 0;
    background: var(--brand-blue);
    color: #e9f2fb;
    padding: 1rem 0 1.2rem;
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    color: #d7e9fb;
}

.assigned-contact-quick {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid #c8d9ea;
    background: #ffffff;
}

.assigned-contact-quick h3 {
    margin: 0 0 0.35rem;
    color: #000;
}

.assigned-contact-quick p {
    margin: 0 0 0.65rem;
}

.assigned-contact-form {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    width: 49%;
    margin: 0 auto;
    margin-top: 3rem;
}

.footer-grid h3 {
    margin: 0 0 0.3rem;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.2;
}

.footer-col-logo {
    display: flex;
    align-items: flex-start;
}

.footer-col-logo img {
    width: min(100%, 220px);
    height: auto;
}

.footer-meta {
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: #d7e6f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-meta-line {
    display: inline-flex;
    align-items: center;
}

.footer-meta-left {
    margin-right: auto;
}

.footer-meta-right {
    white-space: nowrap;
}

.footer-legal-links {
    display: flex;
    gap: 0.85rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-legal-links a:hover {
    border-bottom-color: currentColor;
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cms-inline-toolbar {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1px solid #98b6d3;
    border-radius: 0;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cms-inline-toolbar.cms-toolbar-dirty {
    background: #fff0f3;
    border-color: #f472b6;
}

body.cms-inline-toolbar-collapsed .cms-inline-toolbar {
    transform: translate(-135%, -50%);
    opacity: 0;
    pointer-events: none;
}

.cms-inline-toolbar-toggle {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: none;
    border: 1px solid #98b6d3;
    border-radius: 8px;
    background: #fff;
    color: #24425f;
    width: 1.9rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

body.cms-inline-toolbar-collapsed .cms-inline-toolbar-toggle {
    display: inline-flex;
}

.cms-inline-toolbar .cms-toolbar-collapse-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.4rem;
    background: #edf5fc;
}

.cms-inline-toolbar button {
    border: 1px solid #b4c9df;
    border-radius: 6px;
    background: #f7fbff;
    padding: 0.35rem 0.5rem;
    color: #24425f;
    cursor: pointer;
}

.cms-inline-toolbar button:disabled {
    cursor: not-allowed;
}

.cms-inline-toolbar button.is-active {
    background: #dff3e7;
    border-color: #76b98d;
    color: #185036;
}

.cms-inline-toolbar button[data-cms-save] {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
}

.cms-inline-toolbar button[data-cms-save]:hover:not(:disabled) {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
}

.cms-inline-toolbar button[data-cms-cancel] {
    border-color: #6e1f1f;
    background: #812727;
    color: #fff;
}

.cms-inline-toolbar button[data-cms-cancel]:hover:not(:disabled) {
    border-color: #551717;
    background: #691f1f;
    color: #fff;
}

.cms-inline-toolbar .cms-toolbar-link {
    margin-top: 0.75rem;
    position: relative;
    border: 1px solid #0f2f63;
    border-radius: 6px;
    background: #143f82;
    padding: 0.35rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cms-inline-toolbar .cms-toolbar-backend {
    border: 1px solid var(--brand-green);
    border-radius: 6px;
    background: var(--brand-green);
    padding: 0.35rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cms-inline-toolbar .cms-toolbar-backend:hover {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
}

.cms-inline-toolbar .cms-toolbar-link::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    top: -0.55rem;
    height: 1px;
    background: rgba(148, 174, 206, 0.5);
}

.cms-inline-toolbar .cms-toolbar-link:hover {
    background: #0f2f63;
    border-color: #0b2450;
    color: #fff;
}

.cms-inline-toolbar .cms-toolbar-logout {
    margin-top: 0.2rem;
    border: 1px solid #0f2f63;
    border-radius: 6px;
    background: #143f82;
    padding: 0.35rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cms-inline-toolbar .cms-toolbar-logout:hover {
    background: #0f2f63;
    border-color: #0b2450;
    color: #fff;
}

.cms-inline-toolbar span {
    font-size: 0.75rem;
    color: #3d5b78;
}

.cms-inline-toolbar span:empty {
    display: none;
}

.cms-media-modal[hidden] {
    display: none;
}

.cms-media-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
}

.cms-media-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, 0.55);
}

.cms-media-panel {
    position: relative;
    width: min(860px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    background: #fff;
    border-radius: 0;
    border: 1px solid #b7cde2;
    box-shadow: var(--shadow);
    padding: 0.85rem;
    overflow: auto;
}

.cms-media-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.cms-media-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-blue);
}

.cms-media-close,
.cms-media-upload button {
    border: 1px solid #b4c9df;
    border-radius: 8px;
    background: #f7fbff;
    color: var(--brand-blue);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}

.cms-media-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.cms-media-alt-label {
    display: block;
    margin: 0.2rem 0 0.3rem;
    font-size: 0.82rem;
    color: #274c71;
}

.cms-media-alt-input {
    width: 100%;
    border: 1px solid #b4c9df;
    border-radius: 8px;
    background: #fff;
    color: #173f66;
    padding: 0.42rem 0.56rem;
    margin-bottom: 0.65rem;
}

.cms-media-alt-input:focus {
    outline: 2px solid rgba(15, 84, 160, 0.2);
    outline-offset: 0;
    border-color: #7ea5cf;
}

.cms-media-status {
    font-size: 0.85rem;
    color: #446484;
    margin-bottom: 0.65rem;
}

.cms-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.cms-media-item {
    border: 1px solid #b4c9df;
    border-radius: 0;
    background: #f7fbff;
    padding: 0.45rem;
    text-align: left;
    cursor: pointer;
    color: #234f77;
}

.cms-media-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d2dfed;
    margin-bottom: 0.35rem;
}

.cms-media-item span {
    display: block;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-link-modal[hidden] {
    display: none;
}

.cms-link-modal {
    position: fixed;
    inset: 0;
    z-index: 1002;
}

.cms-link-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, 0.55);
}

.cms-link-panel {
    position: relative;
    width: min(460px, calc(100% - 2rem));
    margin: 6vh auto;
    background: #fff;
    border: 1px solid #b7cde2;
    box-shadow: var(--shadow);
    padding: 0.85rem;
}

.cms-link-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.cms-link-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-blue);
}

.cms-link-close,
.cms-link-cancel,
.cms-link-remove,
.cms-link-apply {
    border: 1px solid #b4c9df;
    border-radius: 0;
    background: #f7fbff;
    color: var(--brand-blue);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}

.cms-link-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: #355675;
}

.cms-link-input {
    width: 100%;
    border: 1px solid #b4c9df;
    background: #fff;
    color: #12385e;
    padding: 0.45rem 0.55rem;
}

.cms-link-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: #4b6580;
}

.cms-link-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    color: #355675;
    font-size: 0.88rem;
}

.cms-link-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid #8fb0cf;
    background: #fff;
    display: inline-grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cms-link-check input[type="checkbox"]::after {
    content: "";
    width: 0.34rem;
    height: 0.58rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.12s ease;
}

.cms-link-check input[type="checkbox"]:checked {
    border-color: var(--brand-green);
    background: var(--brand-green);
}

.cms-link-check input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

.cms-link-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.cms-link-check span {
    line-height: 1.15;
}

.cms-link-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.cms-link-apply {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
}

.cms-link-remove {
    margin-right: auto;
    border-color: #7f1d1d;
    background: #991b1b;
    color: #fff;
}

.cms-editable,
.cms-editable-image,
.cms-editable-link {
    outline: 2px dashed rgba(10, 175, 52, 0.65);
    outline-offset: 2px;
    cursor: text;
}

.cms-editable-image,
.cms-editable-link {
    cursor: pointer;
}

body.cms-edit-mode [data-cms-path][data-cms-field-no] {
    position: relative;
}

body.cms-edit-mode [data-cms-path][data-cms-field-no]::before {
    content: "#" attr(data-cms-field-no);
    position: absolute;
    top: -0.55rem;
    left: -0.35rem;
    z-index: 5;
    font-size: 0.66rem;
    line-height: 1;
    color: #fff;
    background: var(--brand-green);
    border: 1px solid var(--brand-green);
    border-radius: 999px;
    padding: 0.12rem 0.32rem;
    pointer-events: none;
}

.cms-number-badge-wrap {
    position: relative;
    display: inline-block;
}

.cms-number-badge-wrap.is-image {
    display: block;
}

.cms-number-badge-wrap .cms-field-number-badge {
    display: none;
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    z-index: 6;
    font-size: 0.66rem;
    line-height: 1;
    color: #fff;
    background: var(--brand-green);
    border: 1px solid var(--brand-green);
    border-radius: 999px;
    padding: 0.12rem 0.32rem;
    pointer-events: none;
}

body.cms-edit-mode .cms-number-badge-wrap .cms-field-number-badge {
    display: inline-flex;
}

body.cms-edit-mode.cms-hide-field-numbers [data-cms-path][data-cms-field-no]::before {
    display: none;
}

body.cms-edit-mode.cms-hide-field-numbers .cms-number-badge-wrap .cms-field-number-badge {
    display: none;
}

/* Media */

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-start-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 100%;
        margin: 0 auto;
        margin-top: 1.9rem;
        margin-bottom: 1.8rem;
    }

    .home-start-brand {
        margin-top: 2.25rem;
    }

    .hero-grid,
    .contact-grid,
    .team-strip {
        grid-template-columns: 1fr;
    }

    .hero-grid.hero-grid-split:not(.hero-grid-no-image) > .panel {
        order: 1;
    }

    .hero-grid.hero-grid-split:not(.hero-grid-no-image) > .card {
        order: 2;
    }

    .reference-card {
        min-width: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 760px) {
    .detail-hero {
        --detail-hero-mobile-image-height: clamp(190px, 58vw, 300px);
        display: block;
        min-height: 0;
        padding: var(--detail-hero-mobile-image-height) 0 0;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center top;
    }

    .detail-hero .detail-hero-content {
        width: 100vw;
        max-width: 100vw;
        aspect-ratio: auto;
        min-height: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .detail-hero .detail-hero-back {
        position: static;
        margin-top: 0.8rem;
    }

    .section {
        padding: 1rem 0;
    }

    .nav-wrap {
        min-height: 74px;
        gap: 0.6rem;
    }

    .header-image {
        height: 128px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.7rem;
        height: 2.7rem;
        min-height: 2.7rem;
        padding: 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.35rem);
        right: 0.6rem;
        left: 0.6rem;
        border: 1px solid #b9cede;
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 0.35rem;
        max-height: min(78vh, 560px);
        overflow-y: auto;
    }

    .main-nav.is-open {
        display: block;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 96px;
        height: 72px;
    }

    .nav-link-wrap {
        min-height: 46px;
    }

    .main-nav > ul {
        display: block;
    }

    .main-nav a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        border-bottom: 1px solid #dce8f4;
        min-height: 46px;
        padding: 0.55rem 0.7rem;
        color: var(--brand-blue);
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.3;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        color: var(--brand-blue);
        background: #eef4fa;
        border-bottom-color: #bfd3e7;
    }

    .main-nav a.is-active {
        color: var(--brand-blue);
        background: transparent;
        border-bottom-color: #bfd3e7;
        font-weight: 700;
    }

    .main-nav a.is-active span,
    .main-nav a[aria-current="page"] span,
    .main-nav a[aria-current="location"] span {
        color: var(--brand-blue);
        font-weight: 700;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        color: #0b2f52;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #fff;
        border: 0;
        border-left: 2px solid #c9dff5;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0 0 0.45rem;
        max-height: 0;
        overflow: hidden;
    }

    .has-submenu.is-expanded > .submenu {
        max-height: 420px;
    }

    .submenu a {
        color: #0b2f52;
        border-bottom: 1px solid #dce8f4;
        background: transparent;
        min-height: 42px;
        padding-left: 1rem;
        font-size: 1rem;
        font-weight: 500;
    }

    .submenu a:hover,
    .submenu a.is-active {
        color: #07233f;
        background: #eef4fa;
    }

    .assigned-contact-quick {
        padding: 0.75rem;
    }

    .content-element-title-wrap {
        padding-top: 1.45rem;
    }

    .content-element-title-wrap .content-element-block-title {
        margin: 0.25rem auto 1.2rem;
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    .hero-grid .card,
    .hero-grid .panel,
    .contact-grid .card,
    .team-strip,
    .section .card {
        padding: 0.8rem;
    }

    .home-start-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 340px;
        gap: 1rem;
        margin-top: 1.35rem;
        margin-bottom: 1.5rem;
    }

    .home-start-brand {
        margin-top: 1.4rem;
    }

    .home-start-tile {
        width: 100%;
        max-width: 340px;
    }

    .home-start-tile-title {
        font-size: clamp(1.35rem, 5.8vw, 1.7rem);
    }

    .home-start-tile-icon {
        width: 72px;
        height: 72px;
    }

    .slide {
        min-height: 300px;
    }

    .hero .hero-slider {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .slide-content {
        padding: 2rem 0 2.4rem;
        max-width: 100%;
    }

    .slide h1,
    .slide h2 {
        font-size: clamp(1.25rem, 6.2vw, 1.7rem);
        line-height: 1.22;
    }

    .slider-controls {
        right: 0.55rem;
        bottom: 0.6rem;
        gap: 0.35rem;
    }

    .slider-btn {
        width: 2.2rem;
        height: 2.2rem;
    }

    .examples-card .card-media,
    .reference-card .card-media,
    .home-news-grid .card-media,
    .references-list-grid .card-media {
        height: 180px;
        width: min(100%, 280px);
        margin-left: auto;
        margin-right: auto;
    }

    .reference-card .card-media,
    .references-list-grid .card-media {
        width: 100%;
        max-width: none;
    }

    .reference-card > a {
        height: 220px;
    }

    .reference-card > a .card-media {
        width: 100%;
        height: 100%;
    }

    .references-list-grid .card > a {
        height: 220px;
    }

    .gallery-lightbox-nav,
    .gallery-lightbox-close {
        width: 2.3rem;
        height: 2.3rem;
    }

    .gallery-lightbox-prev {
        left: 0.55rem;
    }

    .gallery-lightbox-next {
        right: 0.55rem;
    }

    .references-viewport {
        padding: 10px 10px 14px;
        margin: -10px -10px -14px;
    }

    .detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-3,
    .about-portrait-grid,
    .two-col,
    .footer-grid,
    .team-avatars {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: clamp(1.2rem, 6vw, 1.65rem);
    }

    .footer-grid {
        width: 100%;
        margin-top: 1.25rem;
    }

    .reference-card {
        min-width: 100%;
        max-width: 100%;
    }

    .example-slide {
        min-width: 100%;
        max-width: 100%;
    }

    .footer-meta {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .footer-meta-left {
        margin-right: 0;
    }

    .footer-meta-right {
        white-space: normal;
    }

    .footer-legal-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        white-space: normal;
    }

    .cms-inline-toolbar {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 8px;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cms-media-panel {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .tracking-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracking-consent-actions {
        width: 100%;
    }

    .tracking-consent-services label {
        font-size: 0.78rem;
    }

    .consent-btn-info {
        width: 100%;
        text-align: center;
    }

    .tracking-cookie-info {
        width: 100%;
    }

    .tracking-consent-actions .consent-btn {
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1rem, var(--container));
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand-logo {
        width: 86px;
        height: 64px;
    }

    .main-nav {
        left: 0.45rem;
        right: 0.45rem;
    }

    .slide {
        min-height: 250px;
    }

    .slide-content {
        padding: 1.6rem 0 2rem;
    }

    .examples-card .card-media,
    .reference-card .card-media,
    .home-news-grid .card-media,
    .references-list-grid .card-media {
        height: 150px;
        width: min(100%, 220px);
    }

    .reference-card .card-media,
    .references-list-grid .card-media {
        width: 100%;
        max-width: none;
    }

    .reference-card > a {
        height: 200px;
    }

    .reference-card > a .card-media {
        width: 100%;
        height: 100%;
    }

    .references-list-grid .card > a {
        height: 200px;
    }

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

    .home-start-tile {
        width: min(100%, 292px);
    }

    .home-start-tile-title {
        font-size: clamp(1.15rem, 6.8vw, 1.45rem);
    }

    .home-start-tile-icon {
        width: 60px;
        height: 60px;
    }

    .reference-card,
    .example-slide {
        min-width: 100%;
        max-width: 100%;
    }
}
