:root {
    --cl-primary: #0887af;
    --cl-primary-dark: #076f90;
    --cl-primary-deep: #055b76;
    --cl-primary-soft: #eaf7fb;
    --cl-accent: #1ccce0;
    --cl-ink: #17313b;
    --cl-muted: #5f7078;
    --cl-border: #dce9ed;
    --cl-surface: #ffffff;
    --cl-surface-soft: #f6fafb;
    --cl-shadow: 0 18px 50px rgba(18, 63, 78, .10);
    --cl-shadow-soft: 0 10px 30px rgba(18, 63, 78, .07);
    --cl-shadow-hover: 0 24px 60px rgba(18, 63, 78, .14);
    --cl-radius: 1.25rem;
    --cl-radius-sm: .9rem;
}

html { scroll-behavior: smooth; }
body {
    color: var(--cl-ink);
    background: var(--cl-surface);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: var(--cl-ink);
    background: rgba(28, 204, 224, .28);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cl-ink);
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--cl-primary-dark); }
a:hover { color: var(--cl-primary-deep); }

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 2000;
    padding: .75rem 1rem;
    border-radius: .75rem;
    background: #fff;
    color: var(--cl-ink);
    box-shadow: var(--cl-shadow);
}
.skip-link:focus { top: 1rem; }

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 233, 237, .86);
    box-shadow: 0 8px 28px rgba(18, 63, 78, .045);
    backdrop-filter: blur(14px);
}
.navbar {
    min-height: 78px;
    padding-block: .55rem;
}
.navbar-brand {
    min-width: 0;
    text-decoration: none;
}
.navbar-brand img {
    border-radius: 50%;
    filter: drop-shadow(0 5px 12px rgba(8, 135, 175, .12));
}
.brand-copy { display: grid; line-height: 1.05; color: var(--cl-ink); }
.brand-copy strong { font-size: 1.05rem; letter-spacing: .005em; }
.brand-copy small { margin-top: .25rem; color: var(--cl-muted); font-size: .72rem; letter-spacing: .18em; }
.nav-link {
    color: var(--cl-ink);
    font-weight: 650;
    border-radius: .7rem;
    padding: .58rem .85rem !important;
    transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--cl-primary-deep);
    background: var(--cl-primary-soft);
}

.btn-primary {
    --bs-btn-bg: var(--cl-primary-dark);
    --bs-btn-border-color: var(--cl-primary-dark);
    --bs-btn-hover-bg: var(--cl-primary-deep);
    --bs-btn-hover-border-color: var(--cl-primary-deep);
    --bs-btn-active-bg: var(--cl-primary-deep);
    --bs-btn-active-border-color: var(--cl-primary-deep);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    padding-inline: 1.15rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(5, 91, 118, .13);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(5, 91, 118, .18);
}
.btn-outline-primary,
.btn-outline-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    font-weight: 700;
}

.btn-language {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--cl-border);
    min-height: 44px;
    border-radius: .8rem;
    color: var(--cl-ink);
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 63, 78, .04);
}
.btn-language img, .language-menu img, .mobile-language-link img {
    border-radius: .2rem;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.language-menu {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    min-width: 15rem;
    padding: .5rem;
    border-color: var(--cl-border);
    border-radius: 1rem;
    box-shadow: var(--cl-shadow);
}
.language-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: .65rem;
    padding: .6rem .7rem;
}
.language-menu .dropdown-item.active,
.language-menu .dropdown-item:active {
    color: var(--cl-ink);
    background: var(--cl-primary-soft);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, rgba(28, 204, 224, .20), transparent 30%),
        radial-gradient(circle at 70% 92%, rgba(8, 135, 175, .07), transparent 28%),
        linear-gradient(180deg, #f9fcfd 0%, #fff 100%);
    border-bottom: 1px solid var(--cl-border);
}
.py-lg-6 { padding-top: 6.5rem !important; padding-bottom: 6.5rem !important; }
.eyebrow {
    color: var(--cl-primary-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.display-title {
    max-width: 14ch;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.045em;
}
.hero-text {
    max-width: 64ch;
    color: var(--cl-muted);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    line-height: 1.72;
}
.hero-mark {
    width: min(100%, 390px);
    aspect-ratio: 1;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(220, 233, 237, .82);
    border-radius: 44% 56% 52% 48% / 47% 45% 55% 53%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .4) 42%, transparent 65%),
        linear-gradient(145deg, #fff, var(--cl-primary-soft));
    box-shadow: var(--cl-shadow);
}
.hero-mark img { width: 44%; height: auto; }

.section-space { padding: 5.5rem 0; }
.section-heading { max-width: 760px; }
.section-heading h2, .page-hero h1 {
    font-weight: 760;
    letter-spacing: -.03em;
}
.section-heading h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.12;
}
.display-title, .section-heading h2, .page-hero h1, .project-detail-hero h1, .project-card h3 { overflow-wrap: anywhere; }
.section-heading p, .page-hero p {
    color: var(--cl-muted);
    line-height: 1.72;
}
.section-heading p { font-size: 1.04rem; }
.project-type-card {
    padding: 2rem;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow-soft);
}
.project-type-card h3 { margin-top: 1.6rem; font-size: 1.35rem; }
.project-type-card p { margin-bottom: 0; color: var(--cl-muted); }
.type-number {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .9rem;
    color: var(--cl-primary-dark);
    background: var(--cl-primary-soft);
    font-weight: 800;
}
.page-hero {
    padding: 5.5rem 0 3.8rem;
    background:
        radial-gradient(circle at 88% 18%, rgba(28, 204, 224, .12), transparent 30%),
        linear-gradient(180deg, #f8fbfc 0%, var(--cl-surface-soft) 100%);
    border-bottom: 1px solid rgba(220, 233, 237, .8);
}
.page-hero .container-xl { max-width: 960px; }
.page-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
}
.page-hero p { max-width: 70ch; font-size: 1.08rem; }
.empty-state {
    padding: 2.2rem;
    border: 1px dashed #b9d4dc;
    border-radius: var(--cl-radius);
    background: var(--cl-surface-soft);
    color: var(--cl-muted);
}
.route-chip code {
    display: inline-block;
    padding: .5rem .75rem;
    border-radius: .65rem;
    color: var(--cl-primary-dark);
    background: var(--cl-primary-soft);
}

.mobile-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mobile-language-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem;
    border: 1px solid var(--cl-border);
    border-radius: .7rem;
    color: var(--cl-ink);
    text-decoration: none;
}
.mobile-language-link.active { background: var(--cl-primary-soft); border-color: #b9dbe5; }
.mobile-language-link span { min-width: 0; overflow-wrap: anywhere; }

#mainMenu {
    --bs-offcanvas-width: min(100vw, 420px);
    border-inline-start: 0;
    box-shadow: -18px 0 55px rgba(18, 63, 78, .15);
}
#mainMenu .offcanvas-header {
    padding: 1.2rem 1.25rem 1rem;
    border-bottom: 1px solid var(--cl-border);
}
#mainMenu .offcanvas-body {
    min-height: 0;
    padding: 1.15rem 1.25rem 1.5rem;
    overscroll-behavior: contain;
}
#mainMenu .nav-link { padding: .72rem .85rem !important; }
#mainMenu .mobile-language-link img { flex: 0 0 auto; }

.site-footer {
    position: relative;
    overflow: hidden;
    color: #d7e5ea;
    background:
        radial-gradient(circle at 88% 20%, rgba(28, 204, 224, .10), transparent 24%),
        #102a34;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.site-footer strong {
    color: #fff;
    letter-spacing: .01em;
}
.site-footer p { max-width: 52ch; color: #a9c0c8; }
.footer-nav {
    display: flex;
    gap: .65rem 1.05rem;
    flex-wrap: wrap;
}
.footer-nav a {
    padding-block: .25rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
    color: var(--cl-accent);
    border-bottom-color: rgba(28, 204, 224, .55);
}

:focus-visible { outline: 3px solid var(--cl-primary-dark); outline-offset: 3px; }
.site-footer a:focus-visible { outline-color: #fff; }

[dir="rtl"] .dropdown-menu-end { --bs-position: start; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .ms-lg-2 { margin-left: 0 !important; }

@media (max-width: 991.98px) {
    .py-lg-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
    .hero-mark { max-width: 290px; }
}
@media (max-width: 575.98px) {
    .mobile-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-language-link { padding: .55rem .6rem; font-size: .9rem; }
    .brand-copy small { display: none; }
    .section-space { padding: 4rem 0; }
}
@media (max-width: 359.98px) {
    .mobile-language-grid { grid-template-columns: 1fr; }
}


@media (max-width: 991.98px) {
    .site-header .container-xl { padding-inline: 1.1rem; }
    .navbar { min-height: 72px; }
}

@media (max-width: 575.98px) {
    .navbar-brand { gap: .65rem !important; }
    .navbar-brand img { width: 48px; height: 48px; }
    .brand-copy strong { font-size: 1rem; }
    .hero-section .btn,
    .about-contact-card .btn { width: 100%; }
    .project-card-actions .btn { flex: 1 1 100%; }
    .site-footer .container-xl { gap: 1.5rem !important; }
    .footer-nav { gap: .45rem 1rem; }
}

/* Phase 4 – echte Projektdaten */
.project-group + .project-group { margin-top: 5rem; }
.project-group-compact + .project-group-compact { margin-top: 4.5rem; }
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(205, 225, 231, .92);
    border-radius: var(--cl-radius);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: #c3dfe7;
    box-shadow: var(--cl-shadow-hover);
}
.project-card-media {
    display: block;
    overflow: hidden;
    background: #f4f8f9;
    border-bottom: 1px solid rgba(220, 233, 237, .72);
    text-decoration: none;
}
.project-card-media img {
    display: block;
    width: 100%;
    height: auto;
}
.project-card:hover .project-card-media img { transform: none; }
.project-card-placeholder,
.project-detail-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(8, 135, 175, .45);
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.08em;
}
.project-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.65rem;
}
.project-card h3 {
    margin-bottom: .8rem;
    line-height: 1.18;
}
.project-card h3 a { color: var(--cl-ink); text-decoration: none; }
.project-card h3 a:hover { color: var(--cl-primary-dark); }
.project-card-text {
    color: var(--cl-muted);
    line-height: 1.68;
}
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 750;
    line-height: 1;
}
.project-badge-type { color: var(--cl-primary-dark); background: var(--cl-primary-soft); }
.project-badge-status { color: #42535a; background: #eef2f3; }
.project-context-note {
    margin: -.15rem 0 .85rem;
    color: var(--cl-primary-dark);
    font-size: .88rem;
    font-weight: 700;
}
.project-context-note-large { margin: 0 0 1rem; font-size: 1rem; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: .85rem; }
.project-card-actions .btn { border-radius: .75rem; font-weight: 700; }

.project-detail-hero {
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(28, 204, 224, .15), transparent 32%),
        var(--cl-surface-soft);
}
.project-detail-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.04em;
}
.project-lead { max-width: 62ch; color: var(--cl-muted); font-size: 1.15rem; }
.project-detail-media {
    overflow: hidden;
    border: 1px solid var(--cl-border);
    border-radius: calc(var(--cl-radius) + .35rem);
    background: #fff;
    box-shadow: var(--cl-shadow-hover);
}
.project-detail-media img { width: 100%; height: auto; display: block; }
.project-detail-content { max-width: 980px; }
.project-copy-block + .project-copy-block { margin-top: 4rem; }
.project-copy-block h2 { margin-bottom: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.project-copy { color: #42535a; font-size: 1.06rem; }
.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
    background: #f4f8f9;
    border-radius: 1rem;
    border: 1px solid var(--cl-border);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .project-card,
    .project-card-media img,
    .btn-primary,
    .nav-link { transition: none; }
    .btn-primary:hover,
    .project-card:hover { transform: none; }
}

/* Phase 9 – Kontaktformular */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.contact-copy {
    position: sticky;
    top: 7.5rem;
}
.contact-copy h2 {
    margin-bottom: 1rem;
    font-weight: 760;
    letter-spacing: -.025em;
}
.contact-copy p { color: var(--cl-muted); }
.contact-note {
    padding-top: 1rem;
    border-top: 1px solid var(--cl-border);
    font-size: .95rem;
}
.contact-form-card {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid rgba(205, 225, 231, .92);
    border-radius: var(--cl-radius);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow-soft);
}
.contact-form-card .form-label { font-weight: 700; }
.contact-form-card .form-control {
    min-height: 48px;
    border-color: var(--cl-border);
    border-radius: .8rem;
}
.contact-form-card textarea.form-control { min-height: 170px; }
.contact-form-card .form-control:focus,
.contact-form-card .form-check-input:focus {
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 .2rem rgba(8, 135, 175, .14);
}
.form-honeypot {
    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;
}
html[dir="rtl"] .contact-form-card .form-check { padding-right: 1.5em; padding-left: 0; }
html[dir="rtl"] .contact-form-card .form-check-input { float: right; margin-right: -1.5em; margin-left: 0; }

@media (max-width: 991.98px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-copy { position: static; }
}

/* Phase 16 – Rechtliche Seiten */
.legal-content { max-width: 960px; }
.legal-section { padding: 2rem 0; border-bottom: 1px solid var(--cl-border); }
.legal-section:first-of-type { padding-top: 0; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { margin-bottom: 1rem; font-size: 1.35rem; font-weight: 750; }
.legal-section p, .legal-section li, .legal-section dd, .legal-section address { color: var(--cl-muted); line-height: 1.75; }
.legal-section a { color: var(--cl-primary-dark); }
.legal-facts { display: grid; gap: .85rem; margin: 0; }
.legal-facts > div { display: grid; grid-template-columns: minmax(160px, .65fr) 1.35fr; gap: 1rem; }
.legal-facts dt { font-weight: 700; }
.legal-facts dd { margin: 0; }
.legal-updated { color: var(--cl-muted); font-size: .95rem; }
@media (max-width: 575.98px) { .legal-facts > div { grid-template-columns: 1fr; gap: .15rem; } }


/* Über uns */
.about-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(28, 204, 224, .16), transparent 28%),
        var(--cl-surface-soft);
}
.about-display {
    max-width: 13ch;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}
.about-lead {
    max-width: 62ch;
    color: var(--cl-muted);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    line-height: 1.7;
}
.about-story-photos {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1rem;
    align-items: start;
}
.about-photo {
    overflow: hidden;
    border: 1px solid var(--cl-border);
    border-radius: calc(var(--cl-radius) + .25rem);
    background: var(--cl-surface);
    box-shadow: var(--cl-shadow);
}
.about-photo:first-child { grid-row: span 2; align-self: center; }
.about-photo img,
.about-life-photo img {
    display: block;
    width: 100%;
    height: auto;
}
.about-copy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.about-copy-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    background: var(--cl-surface);
    box-shadow: 0 12px 32px rgba(18, 63, 78, .06);
}
.about-copy-number {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--cl-primary-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.about-copy-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 750;
    letter-spacing: -.02em;
}
.about-copy-card p {
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.75;
}
.about-life-section { background: #fbfdfe; }
.about-life-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.about-life-photo {
    overflow: hidden;
    border: 1px solid var(--cl-border);
    border-radius: 1rem;
    background: var(--cl-surface);
}
.about-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: calc(var(--cl-radius) + .4rem);
    color: #fff;
    background: #102a34;
}
.about-contact-card h2 {
    margin-bottom: 1rem;
    font-weight: 760;
    letter-spacing: -.025em;
}
.about-contact-card p:not(.eyebrow) {
    max-width: 66ch;
    color: #c2d3d9;
    line-height: 1.7;
}
.about-contact-card .eyebrow { color: #8fe9f3; }
.about-contact-action { flex: 0 0 auto; }

@media (max-width: 991.98px) {
    .about-copy-grid { grid-template-columns: 1fr; }
    .about-contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
    .about-story-photos { grid-template-columns: 1fr 1fr; }
    .about-photo:first-child { grid-column: 1 / -1; grid-row: auto; }
    .about-life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 419.98px) {
    .about-story-photos,
    .about-life-grid { grid-template-columns: 1fr; }
}

/* Design-Feinschliff 2 – Seitenrhythmus und Projektseiten */
.project-group > .section-heading {
    position: relative;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(220, 233, 237, .9);
}
.project-group > .section-heading::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 3.25rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cl-primary-dark), var(--cl-accent));
}
.project-group > .section-heading p:last-child { margin-bottom: 0; }

.project-card-body { gap: .08rem; }
.project-card .project-meta { margin-bottom: .95rem !important; }
.project-card-text { margin-bottom: 1.1rem; }
.project-card-actions {
    margin-top: auto;
    border-top: 1px solid rgba(220, 233, 237, .72);
}
.project-card-actions .btn { min-width: 8rem; }

.project-detail-hero .project-meta { margin-bottom: 1.15rem !important; }
.project-detail-hero .project-lead {
    margin-top: 1.2rem;
    line-height: 1.75;
}
.project-detail-content { padding-inline: clamp(.75rem, 3vw, 1.5rem); }
.project-copy-block {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border: 1px solid rgba(205, 225, 231, .9);
    border-radius: var(--cl-radius);
    background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
    box-shadow: 0 12px 34px rgba(18, 63, 78, .055);
}
.project-copy-block + .project-copy-block { margin-top: 2rem; }
.project-copy-block h2 {
    position: relative;
    padding-inline-start: 1rem;
}
.project-copy-block h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .18em;
    bottom: .12em;
    width: 3px;
    border-radius: 999px;
    background: var(--cl-primary);
}
.project-copy {
    max-width: 78ch;
    line-height: 1.82;
}
.project-gallery { margin-top: .25rem; }
.project-gallery > [class*="col-"] { display: flex; }
.project-gallery img {
    align-self: flex-start;
    padding: .35rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 63, 78, .06);
}

.contact-copy {
    padding: 1.5rem 0 1.5rem 1.35rem;
    border-inline-start: 3px solid rgba(8, 135, 175, .32);
}
.contact-copy h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.contact-note {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
}
.contact-form-card .form-control:hover { border-color: #c2dce4; }
.contact-form-card .form-check-label { color: #42535a; line-height: 1.55; }
.contact-form-card .btn-primary { min-width: 9.5rem; }

.legal-content {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid rgba(205, 225, 231, .88);
    border-radius: var(--cl-radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(18, 63, 78, .05);
}
.legal-section { padding: 2.15rem 0; }
.legal-section:first-of-type { padding-top: .25rem; }
.legal-section:last-child { padding-bottom: .25rem; }
.legal-section h2 {
    position: relative;
    padding-inline-start: .95rem;
}
.legal-section h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .2em;
    bottom: .18em;
    width: 3px;
    border-radius: 999px;
    background: var(--cl-primary);
}
.legal-facts > div {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(220, 233, 237, .58);
}
.legal-facts > div:last-child { border-bottom: 0; }

@media (max-width: 991.98px) {
    .project-detail-content { padding-inline: .75rem; }
    .contact-copy {
        padding: 0 0 1.25rem;
        border-inline-start: 0;
        border-bottom: 1px solid var(--cl-border);
    }
}

@media (max-width: 575.98px) {
    .project-group > .section-heading { padding-bottom: 1.15rem; }
    .project-copy-block { padding: 1.25rem; }
    .project-copy-block h2 { font-size: 1.45rem; }
    .legal-content {
        padding: 1.2rem;
        border-radius: 1rem;
    }
    .legal-section { padding: 1.65rem 0; }
}
