:root {
    --gold: #A6843E;
    --gold-deep: #8A6B2E;
    --gold-light: #CBAE74;
    --cream: #F7F3EA;
    --cream-deep: #EFE8D8;
    --ink: #211F1B;
    --anthracite: #3A372F;
    --line: #DCD0B4;
    --max: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

h1.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

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

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    background: #fff;
    color: var(--ink);
    padding: 10px 14px;
    border: 1px solid var(--line);
}

.skip-link:focus {
    transform: none;
}

/* HERO BANNER */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transform-origin: center top;
    will-change: transform;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
            180deg,
            rgba(247, 243, 234, .94) 0%,
            rgba(247, 243, 234, .72) 32%,
            rgba(247, 243, 234, .55) 55%,
            rgba(247, 243, 234, .93) 100%
    );
}

.hero-banner-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, var(--cream) 100%);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: 60px;
}

.site-nav {
    display: flex;
    gap: 40px;
    font-size: 14.5px;
    letter-spacing: .02em;
    color: var(--anthracite);
}

.site-nav a:hover {
    color: var(--gold-deep);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
    position: relative;
    z-index: 2;
    padding: 185px 0 88px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.hero-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--gold-deep);
}

h1.hero-title {
    max-width: 780px;
    font-size: 54px;
    line-height: 1.12;
    color: var(--ink);
}

h1.hero-title em {
    font-style: italic;
    color: var(--gold-deep);
    font-weight: 500;
}

.hero-sub {
    max-width: 560px;
    margin-top: 26px;
    font-size: 18px;
    color: var(--anthracite);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
}

.hero > .wrap {
    will-change: transform, opacity;
}

/* SCROLL MOTION */
.motion-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
            opacity .7s cubic-bezier(.22, 1, .36, 1),
            transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--anthracite);
    color: #fff;
    font-size: 14.5px;
    letter-spacing: .03em;
    transition: background .2s ease;
}

.btn-primary:hover {
    background: var(--ink);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--gold);
    color: var(--anthracite);
    font-size: 14.5px;
}

/* PERSON */
.person {
    padding: 90px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.person-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.person-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 2px;
    overflow: hidden;
}

.person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-quote-mark {
    display: block;
    margin-bottom: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    line-height: .4;
    color: var(--gold-light);
}

.person h2 {
    margin-bottom: 18px;
    font-size: 30px;
}

.person p {
    max-width: 620px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--anthracite);
}

.person-sig {
    margin-top: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--ink);
}

.person-sig span {
    display: block;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 12.5px;
    letter-spacing: .05em;
    color: var(--anthracite);
}

/* QUALIFIKATION */
.qual {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.qual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 18px;
}

.qual-block h3 {
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.qual-block ul {
    list-style: none;
}

.qual-block li {
    padding: 4px 0;
    border-bottom: 1px solid var(--cream-deep);
    font-size: 14px;
    color: var(--anthracite);
}

.qual-block li:last-child {
    border-bottom: none;
}

/* SHARED SECTIONS */
.services,
.refs {
    padding: 96px 0;
}

.section-head {
    max-width: 660px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-eyebrow {
    margin-bottom: 14px;
    font-size: 12.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.section-head h2 {
    font-size: 34px;
}

.section-head .pain {
    margin-top: 16px;
    font-size: 16px;
    color: var(--anthracite);
}

/* SERVICES */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    padding: 42px 34px;
    background: var(--cream);
}

.service-num {
    margin-bottom: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    letter-spacing: .05em;
    color: var(--gold-deep);
}

.service-card h3 {
    margin-bottom: 14px;
    font-family: 'Fraunces', serif;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 15px;
    color: var(--anthracite);
}

.service-tags {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

/* STATS */
.stats {
    padding: 56px 0;
    background: var(--anthracite);
}

.stats-grid {
    display: flex;
    justify-content: space-between;
}

.stat {
    flex: 1;
    border-right: 1px solid #54503f;
    text-align: center;
    color: #fff;
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    color: var(--gold-light);
}

.stat-label {
    margin-top: 6px;
    font-size: 12.5px;
    letter-spacing: .05em;
    color: #cfc7ab;
}

/* REFERENCES */
.refs .section-head {
    max-width: 620px;
    margin: 0 auto 54px;
}

.ref-clients {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.ref-logos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px 48px;
    flex-wrap: wrap;
}

.ref-logos::after {
    content: '';
    flex-basis: 100%;
    width: 0;
    order: 1;
}

.ref-logos > *:nth-child(n + 5) {
    order: 2;
}
.ref-logos img {
    display: block;
    width: auto;
    height: 32px;
    opacity: .55;
    transition: opacity .3s ease;
}

.ref-logos img:hover {
    opacity: 1;
}

.ref-logo--schenker {
    height: 26px !important;
}

.ref-logo--rlp {
    height: 48px !important;
    margin-bottom: -9px;
}

.ref-logo--postbank {
    height: 22px !important;
}

.ref-projects-head {
    margin-top: 64px;
    margin-bottom: 0;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ref-card {
    position: relative;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--line);
}

.ref-card-sector {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.ref-card h3 {
    margin-bottom: 10px;
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.ref-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--anthracite);
}

.ref-card-year {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: .04em;
    color: #9b9180;
}

/* APPROACH */
.approach {
    padding: 90px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.approach h2 {
    margin-bottom: 30px;
    font-size: 30px;
}

.approach-list {
    list-style: none;
}

.approach-list li {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.approach-list li:first-child {
    border-top: 1px solid var(--line);
}

.approach-num {
    width: 28px;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    color: var(--gold-deep);
}

.approach-list h3 {
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
}

.approach-list p {
    font-size: 14.5px;
    color: var(--anthracite);
}

.approach-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.av-option {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.av-option.active {
    opacity: 1;
    pointer-events: auto;
}

.av-a {
    flex-direction: column;
    padding: 48px;
    background: var(--anthracite);
}

.av-a-line {
    width: 40px;
    height: 1px;
    margin-bottom: 28px;
    background: var(--gold);
}

.av-a-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .01em;
    text-align: center;
    color: var(--gold-light);
}

.av-a-sub {
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8b8578;
}

.av-b {
    background: var(--anthracite);
}

.av-b img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
}

.av-c {
    flex-direction: column;
    justify-content: center;
    background: var(--cream);
}

.av-c svg {
    width: 58%;
    height: auto;
}

.av-toggle {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.av-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: .25s ease;
}

.av-dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

.av-dot:hover:not(.active) {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* CONTACT */
.contact {
    padding: 110px 0;
    text-align: center;
}

.contact h2 {
    max-width: 600px;
    margin: 0 auto 18px;
    font-size: 36px;
}

.contact > .wrap > p {
    max-width: 480px;
    margin: 0 auto 38px;
    font-size: 16px;
    color: var(--anthracite);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    font-size: 14.5px;
}

.contact-details div {
    display: flex;
    flex-direction: column;
}

.contact-details b {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.contact-form {
    max-width: 560px;
    margin: 56px auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-field-error {
    min-height: 20px;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #9b3f35;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: #9b3f35;
}

.form-field input.is-invalid:focus,
.form-field textarea.is-invalid:focus {
    border-color: #9b3f35;
    outline: 1px solid rgba(155, 63, 53, .2);
    outline-offset: 1px;
}

.form-field input.is-valid,
.form-field textarea.is-valid {
    border-color: #83946f;
}

.form-submit {
    margin-top: 6px;
    padding: 15px 34px;
    border: none;
    background: var(--anthracite);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    letter-spacing: .03em;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--ink);
}

.form-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: #8b8676;
}

.form-message {
    max-width: 560px;
    margin: 26px auto 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
}

.form-message.success {
    border-color: #83946f;
}

.form-message.error {
    border-color: #a36b61;
}

.hopo {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* FOOTER */
.site-footer {
    padding: 46px 0;
    background: var(--anthracite);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #cfc7ab;
}

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

.footer-links span {
    margin: 0 4px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-immo {
    margin-top: 6px;
}

.footer-immo a {
    color: #9b9180;
    font-size: 11.5px;
    letter-spacing: .03em;
}

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #54503f;
    border-radius: 50%;
    color: #cfc7ab;
    transition: .2s ease;
}

.social-icons a:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.social-icons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* LEGAL PAGES */
.legal-page {
    padding: 80px 0 100px;
    background: #fff;
}

.legal-page .wrap {
    max-width: 900px;
}

.legal-page h1 {
    margin-bottom: 28px;
    font-size: 42px;
}

.legal-page h2 {
    margin: 34px 0 12px;
    font-size: 26px;
}

.legal-page p,
.legal-page li {
    margin-bottom: 12px;
    color: var(--anthracite);
}

.legal-page ul {
    padding-left: 20px;
}

.legal-placeholder {
    padding: 16px 18px;
    border: 1px solid var(--gold-light);
    background: var(--cream);
}

@media (max-width: 800px) {
    .wrap {
        padding: 0 24px;
    }

    .site-header {
        padding: 12px 0;
    }

    .brand img {
        height: 38px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 12px 24px rgba(33, 31, 27, .08);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--cream-deep);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    h1.hero-title {
        font-size: 36px;
    }

    .hero {
        padding: 72px 0 68px;
    }

    .person-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .person-photo {
        max-width: 360px;
    }

    .qual-grid,
    .service-grid,
    .ref-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 24px 0;
    }

    .stat {
        flex: 1 1 50%;
        border-right: none;
    }

    .contact-details {
        flex-direction: column;
        gap: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .footer-bottom {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 18px;
    }

    .brand img {
        height: 36px;
    }

    .hero-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 12px 4px;
    }

    .ref-logos {
        gap: 30px;
    }

    .ref-logos img {
        max-width: 110px;
        object-fit: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hero-banner-bg img,
    .hero > .wrap {
        transform: none !important;
        opacity: 1 !important;
        will-change: auto;
    }
}

/* LEGAL CONTENT */
.legal {
    padding: 80px 0 100px;
    background: #fff;
}

.legal-copy {
    max-width: 840px;
}

.legal-copy h1 {
    margin-bottom: 30px;
    font-size: 42px;
}

.legal-copy h2 {
    margin: 34px 0 12px;
    font-size: 26px;
}

.legal-copy p {
    margin-bottom: 16px;
    color: var(--anthracite);
}

.legal-copy a {
    border-bottom: 1px solid var(--gold-light);
}

.legal-warning {
    margin-top: 34px;
    padding: 18px 20px;
    border: 1px solid var(--gold-light);
    background: var(--cream);
}
