:root {
    --color-ink: #252525;
    --color-muted: #6d6d6d;
    --color-paper: #ffffff;
    --color-soft: #f4f8f9;
    --color-blue: #21acd2;
    --color-blue-dark: #087d9e;
    --color-orange: #f59b24;
    --color-border: #dce7ea;
    --content-width: 78rem;
    --text-width: 52rem;
    --page-padding: clamp(1.25rem, 4vw, 4.5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

a {
    color: var(--color-blue-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--color-orange);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-paper);
    background: var(--color-ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    padding: 1.35rem var(--page-padding) 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
}

.site-header__identity {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) auto minmax(7rem, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.brand-wordmark,
.brand-symbol {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.brand-wordmark {
    width: clamp(14rem, 25vw, 21rem);
    aspect-ratio: 3.37 / 1;
}

.brand-symbol {
    justify-self: end;
    width: clamp(3.5rem, 6vw, 5.5rem);
    height: clamp(4.75rem, 8vw, 7.3rem);
}

.brand-crop {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('../img/wortwoertlich-logo.png');
    background-repeat: no-repeat;
}

.brand-crop--wordmark {
    background-size: 122.3% 100%;
    background-position: right center;
}

.brand-crop--symbol {
    background-size: auto 100%;
    background-position: left center;
}

.practice-name {
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.practice-name strong,
.practice-name span {
    display: block;
}

.practice-name strong {
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 600;
}

.practice-name span {
    margin-top: 0.25rem;
    color: var(--color-muted);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.primary-navigation {
    width: min(100%, var(--content-width));
    margin: 1rem auto 0;
}

.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu--main {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 0.25rem;
}

.menu--main > li {
    position: relative;
}

.menu--main a {
    display: block;
    padding: 0.75rem 0.9rem;
    color: var(--color-ink);
    text-decoration: none;
}

.menu--main a:hover,
.menu--main a:focus-visible,
.menu--main a.menu-current,
.menu--main a.menu-parent {
    color: var(--color-blue-dark);
}

.menu--main ul {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    display: none;
    min-width: 14rem;
    margin: 0;
    padding: 0.4rem;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    box-shadow: 0 1rem 2.5rem rgba(18, 56, 66, 0.12);
    list-style: none;
}

.menu--main li:hover > ul,
.menu--main li:focus-within > ul {
    display: block;
}

.menu-toggle {
    display: none;
}

.site-main {
    min-height: 45vh;
}

.content-section {
    padding: clamp(3rem, 7vw, 7rem) var(--page-padding);
}

.content-section--accent {
    background: var(--color-soft);
}

.content-shell {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.content-shell--narrow {
    max-width: var(--text-width);
}

.content-shell > :first-child {
    margin-top: 0;
}

.content-shell > :last-child {
    margin-bottom: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    font-weight: 500;
}

h2 {
    margin-top: 2.5rem;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.site-footer {
    padding: clamp(2.5rem, 5vw, 4rem) var(--page-padding);
    color: #e9f4f6;
    background: #183e48;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(15rem, 1.3fr) minmax(12rem, 1fr) auto;
    gap: 2rem;
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.site-footer p {
    margin: 0.4rem 0 0;
}

.site-footer a {
    color: inherit;
}

.menu--footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.menu--footer ul {
    display: none;
}

@media (max-width: 56rem) {
    .site-header {
        padding-bottom: 1rem;
    }

    .site-header__identity {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .brand-wordmark {
        width: min(17rem, 63vw);
    }

    .brand-symbol {
        width: 3.5rem;
        height: 4.75rem;
    }

    .practice-name {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.7rem;
        width: 100%;
        margin: 1rem 0 0;
        padding: 0.75rem 1rem;
        color: var(--color-ink);
        background: var(--color-soft);
        border: 1px solid var(--color-border);
        font: inherit;
        cursor: pointer;
    }

    .menu-toggle__icon,
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        display: block;
        width: 1.4rem;
        height: 2px;
        background: currentColor;
    }

    .menu-toggle__icon {
        position: relative;
    }

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

    .menu-toggle__icon::before {
        top: -0.42rem;
    }

    .menu-toggle__icon::after {
        top: 0.42rem;
    }

    .primary-navigation {
        display: none;
        margin-top: 0.75rem;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .menu--main {
        display: block;
    }

    .menu--main a {
        border-bottom: 1px solid var(--color-border);
    }

    .menu--main ul {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 1rem;
        border: 0;
        box-shadow: none;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

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