:root {
    --bg: #f4f4f4;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-soft: #ebebeb;
    --ink: #101010;
    --muted: #5f5f5f;
    --line: rgba(16, 16, 16, 0.12);
    --accent: #111111;
    --accent-deep: #000000;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
}

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

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

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(244, 244, 244, 0.86);
    border-bottom: 1px solid rgba(16, 16, 16, 0.05);
}

.site-header__inner,
.site-footer__inner,
.hero,
.section,
.page-hero,
.article {
    width: var(--content);
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.site-brand__mark {
    position: relative;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
}

.site-brand__glyph {
    position: absolute;
    inset: 0.2rem 0.15rem 0.1rem 0.15rem;
    border: 2px solid var(--ink);
    border-top-right-radius: 0.35rem;
    border-bottom-right-radius: 0.45rem;
    border-bottom-left-radius: 0.45rem;
    border-top-left-radius: 0.45rem;
}

.site-brand__glyph::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0.52rem;
    height: 0.52rem;
    background: var(--bg);
    border-bottom-left-radius: 0.4rem;
}

.site-brand__dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--ink);
}

.site-brand__wordmark {
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-header__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    position: relative;
}

.language-switcher summary {
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.7rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
}

.language-switcher__label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.language-switcher__value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.language-switcher__caret {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1;
}

.language-switcher[open] .language-switcher__caret {
    transform: rotate(180deg);
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: grid;
    gap: 0.35rem;
    min-width: 8.6rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    z-index: 20;
}

.language-switcher__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-width: 0;
    height: 2.45rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.language-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(16, 16, 16, 0.08);
    line-height: 1;
    flex: 0 0 auto;
}

.language-switcher__flag--hr {
    background:
        linear-gradient(180deg,
        #ff0000 0 33.333%,
        #ffffff 33.333% 66.666%,
        #171796 66.666% 100%);
}

.language-switcher__flag--en {
    background:
        linear-gradient(90deg, transparent 0 36%, #ffffff 36% 64%, transparent 64% 100%),
        linear-gradient(180deg, transparent 0 36%, #ffffff 36% 64%, transparent 64% 100%),
        linear-gradient(90deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
        linear-gradient(180deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
        #1f3f8f;
}

.language-switcher__flag--de {
    background:
        linear-gradient(180deg,
        #101010 0 33.333%,
        #c8102e 33.333% 66.666%,
        #f6c400 66.666% 100%);
}

.language-switcher__code {
    line-height: 1;
    white-space: nowrap;
}

.language-switcher__item:hover,
.language-switcher__item.is-active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.site-nav a {
    color: var(--muted);
    font-size: 0.96rem;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--ink);
}

.site-nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

.site-nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 1px;
    margin: 0.32rem auto;
    background: var(--ink);
}

.hero {
    padding: 4rem 0 2rem;
}

.hero__grid,
.split-content,
.contact-layout {
    display: grid;
    gap: 2rem;
}

.hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: #3f3f3f;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

h3 {
    font-size: 1.45rem;
}

.hero__intro,
.page-hero__intro,
.section__lede,
.contact-cta p,
.service-card p,
.blog-card p,
.contact-list p,
.panel p,
.rich-content,
.site-footer__title {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 2.25rem;
}

.button,
.text-link {
    transition: 180ms ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
}

.button--primary {
    background: var(--ink);
    color: #fff;
}

.button--primary:hover {
    background: #000;
}

.button--secondary {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
}

.button--secondary:hover {
    background: rgba(255, 255, 255, 0.92);
}

.text-link {
    font-weight: 700;
    color: var(--accent-deep);
}

.text-link:hover {
    color: var(--ink);
}

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

.hero__stats div,
.service-card,
.blog-card,
.panel,
.contact-panel,
.contact-map,
.contact-cta,
.image-card img {
    border-radius: var(--radius-lg);
}

.hero__stats div,
.service-card,
.blog-card,
.panel,
.contact-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.hero__stats div {
    padding: 1rem;
}

.hero__stats strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.hero__stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero__visual {
    position: relative;
}

.image-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-card--hero img {
    aspect-ratio: 9 / 10;
}

.hero__quote {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    max-width: 16rem;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.hero__quote p {
    margin: 0;
    line-height: 1.6;
}

.section,
.page-hero,
.article {
    padding: 2rem 0 5rem;
}

.section--vision {
    padding-top: 3rem;
}

.section__intro {
    margin-bottom: 1.5rem;
}

.section__intro--with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.split-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.split-content--reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.panel,
.contact-panel {
    padding: 1.6rem;
}

.panel--light {
    background: var(--surface-strong);
}

.rich-content p:first-child,
.rich-content ul:first-child,
.rich-content ol:first-child {
    margin-top: 0;
}

.rich-content p:last-child,
.rich-content ul:last-child,
.rich-content ol:last-child {
    margin-bottom: 0;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.25rem;
}

.rich-content li {
    margin-bottom: 0.65rem;
}

.service-grid,
.blog-grid,
.service-detail {
    display: grid;
    gap: 1.4rem;
}

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

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

.service-card,
.blog-card {
    padding: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.service-card__eyebrow,
.blog-card__eyebrow,
.site-footer__eyebrow {
    margin: 0 0 0.75rem;
    color: #444444;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.service-card h3,
.blog-card h3,
.service-card h2,
.blog-card h2 {
    margin-bottom: 0.8rem;
}

.service-card h2,
.service-card h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-card h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 0.9;
}

.service-card h3 {
    line-height: 1;
}

.service-card p,
.blog-card p {
    max-width: 100%;
}

.section--process .image-card img,
.contact-map iframe {
    width: 100%;
    min-height: 100%;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #eaeaea 100%);
    box-shadow: var(--shadow);
}

.page-hero {
    padding-top: 4rem;
}

.page-hero--article {
    padding-bottom: 2rem;
}

.page-hero h1 {
    max-width: 13ch;
}

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

.contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
}

.contact-list {
    display: grid;
    gap: 1.15rem;
}

.contact-list span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.contact-list a {
    font-weight: 700;
}

.contact-map {
    overflow: hidden;
    min-height: 28rem;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    border: 0;
    height: 100%;
}

.section--article {
    padding-top: 0;
}

.rich-content--article {
    width: min(780px, 100%);
}

.site-footer {
    padding: 1rem 0 3rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(32, 26, 23, 0.1);
}

.site-footer__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
    text-align: right;
}

@media (max-width: 1080px) {
    .hero__grid,
    .split-content,
    .split-content--reverse,
    .contact-layout,
    .service-detail {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .site-header__controls {
        gap: 0.65rem;
    }

    .site-nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(255, 253, 249, 0.96);
        border: 1px solid rgba(32, 26, 23, 0.08);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 0.5rem 0;
    }

    .hero__stats,
    .blog-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .section__intro--with-link,
    .contact-cta,
    .site-footer__inner {
        flex-direction: column;
        align-items: start;
    }

    .site-footer__meta {
        text-align: left;
    }

    .contact-map {
        min-height: 20rem;
    }
}

@media (max-width: 560px) {
    :root {
        --content: min(100vw - 1.25rem, 100%);
    }

    .site-header__inner {
        min-height: 74px;
    }

    .hero,
    .section,
    .page-hero,
    .article {
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero__quote {
        position: static;
        max-width: none;
        margin-top: 1rem;
    }

    .language-switcher__label {
        display: none;
    }

    .language-switcher__trigger {
        padding: 0 0.75rem;
    }

    .site-brand__wordmark {
        font-size: 1.65rem;
    }
}
