/* Bruckmann & Berisha — prototype stylesheet.
   Order: fonts, tokens (tokens.json), base, type, buttons, header, sections, hero, page head, components,
   Wegweiser and search, documents, form, contact band, footer, quick bar, motion, breakpoints, print.
   Breakpoints: 1200 px (navigation collapses), 900 px (single column), 620 px (phone).
   Checked at 320, 360, 390, 768, 1024, 1280 and 1440 px. Class-based throughout.
   Everything is readable without site.js; the script only adds behaviour (see PROTOTYPE-NOTES.md). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-serif-4-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-italic-latin.woff2") format("woff2"); }

:root {
  --brand: #073B40;
  --accent: #287F86;
  --accent-text: #1F6C73;
  --accent-light: #8CCFCB;
  --text: #122C30;
  --muted: #56676A;
  --surface: #F7F5F1;
  --white: #FFFFFF;
  --pale: #E6F0EE;
  --border: #D7E2DF;
  --field: #6E8A8C;
  --error: #A12B2B;
  --error-pale: #FBF1F0;
  --on-brand: #D7E2DF;
  --on-brand-muted: #B9CFCD;
  --on-brand-line: rgba(255, 255, 255, 0.2);
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: clamp(56px, 8vw, 104px);
  --radius: 4px;
  --wrap: 1280px;
  --pad: clamp(20px, 4.4vw, 56px);
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(7, 59, 64, 0.06), 0 14px 32px -18px rgba(7, 59, 64, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur: 520ms;
  --rise: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 4px; }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 500; text-wrap: balance; overflow-wrap: break-word; }
p, dl, dd, ol, ul { margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
mark { border-radius: 2px; background: #CBE8E5; color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--text); font-weight: 600; }
.skip-link:focus { left: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* type */
.eyebrow { margin-bottom: 16px; font-family: var(--font-body); font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.h1, .h2, .h3 { font-family: var(--font-heading); font-weight: 500; }
.h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
.h1--profile { font-size: clamp(38px, 4.4vw, 64px); }
.h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.h2--small { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.15; }
.h3 { font-size: 28px; line-height: 1.2; }
.accent-italic { font-style: italic; font-weight: 400; color: var(--accent-text); }
.lead { max-width: 700px; font-size: 21px; line-height: 1.55; color: var(--muted); }
.text-large { font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.label { font-size: 15px; font-weight: 600; }
/* text links: the underline moves away from the text on hover (works for wrapped lines too) */
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-thickness: 1px; transition: text-underline-offset 0.24s var(--ease), color var(--dur-fast); }
.link-strong:hover { text-underline-offset: 7px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--accent-text); color: var(--white); }
.btn--secondary { border-color: var(--brand); background: transparent; color: var(--brand); }
.btn--secondary:hover { background: var(--brand); color: var(--white); }
.btn--light { background: var(--white); color: var(--brand); }
.btn--light:hover { background: var(--pale); color: var(--brand); }
.btn--small { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn .icon { transition: transform 0.28s var(--ease); }
.btn:hover .icon--down { transform: translateY(2px); }
.btn:hover .icon--right { transform: translateX(3px); }
.btn.is-busy { cursor: progress; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.icon { flex-shrink: 0; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); view-transition-name: site-header; transition: box-shadow 0.3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height 0.3s var(--ease); }
.site-logo { display: flex; align-items: center; min-width: 0; min-height: 48px; }
.site-logo picture { display: block; }
.site-logo img { width: clamp(318px, calc(100vw - 925px), 400px); height: auto; transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle__btn { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 22px); font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav__contact { display: none; }
.nav-link { padding: 12px 0; color: var(--text); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.24s var(--ease); }
.nav-link:hover { color: var(--text); background-size: 100% 2px; }
.nav-link.is-active { background-size: 100% 2px; }
/* compact state once the page has scrolled (class set on <html> by site.js) */
.is-scrolled { --header-h: 68px; }
.is-scrolled .site-header { box-shadow: var(--shadow); }

.is-scrolled .site-logo img { transform: scale(0.88); }

/* sections */
.section { padding: var(--space-6) 0; }
.section--tight { padding: clamp(48px, 5.6vw, 72px) 0; }
.section--flush-top { padding-top: 0; }
.section--line { border-top: 1px solid var(--border); }
.section--pale { background: var(--pale); }
.section--brand { background: var(--brand); color: var(--white); }
.section--brand .eyebrow { color: var(--accent-light); }
.section--brand a { color: var(--white); }
.section--brand a:hover { color: var(--accent-light); }
.section--brand .btn--light, .section--brand .btn--light:hover { color: var(--brand); }
.section--brand :focus-visible { outline-color: var(--accent-light); }
.section--brand mark { background: var(--accent-light); color: var(--brand); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 44px; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px clamp(40px, 6.2vw, 80px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.with-aside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px clamp(40px, 6.8vw, 88px); align-items: start; }
.with-aside > aside { position: sticky; top: calc(var(--header-h) + 24px); }
.gap-large { display: flex; flex-direction: column; gap: 64px; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }

/* hero */
.hero { padding: clamp(32px, 4.4vw, 56px) 0 clamp(56px, 7.5vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(32px, 5.6vw, 72px); align-items: center; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__text .eyebrow { margin-bottom: 0; }
.hero__contact { align-self: stretch; display: flex; flex-wrap: wrap; gap: 0 40px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 16px; }
.hero__contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text); }
.hero__panel { display: flex; flex-direction: column; gap: 22px; min-height: 560px; padding: 28px; border-radius: var(--radius); background: var(--brand); color: var(--white); font-size: 15px; }
.hero__panel :focus-visible { outline-color: var(--accent-light); }
.hero__panel-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid var(--on-brand-line); }
.hero__panel-muted { color: var(--on-brand-muted); }
/* the monogram, drawn three times from the one logo file: both halves open from the mirror axis, then the reflection settles */
.hero__mark { position: relative; width: 58%; margin: auto; aspect-ratio: 900 / 607; }
.hero__mark span { position: absolute; inset: 0; background: url("img/monogramm-weiss.png") center / 100% 100% no-repeat; }
.hero__mark-left { clip-path: inset(0 50% 31% 0); }
.hero__mark-right { clip-path: inset(0 0 31% 50%); }
.hero__mark-reflection { clip-path: inset(69% 0 0 0); }
.hero__finder { display: flex; flex-direction: column; gap: 12px; }
.hero__finder-label { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* page head */
.page-head { padding: 40px 0 clamp(48px, 5.6vw, 72px); }
.page-head .h1 { margin-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head--brand { padding-bottom: clamp(40px, 5vw, 64px); background: var(--brand) url("img/monogramm-ton.png") right var(--pad) top 64px / 400px auto no-repeat; color: var(--white); }
.page-head--brand .breadcrumb, .page-head--brand .lead { color: var(--on-brand); }
.page-head--brand .eyebrow { color: var(--accent-light); }
.page-head--brand a { color: var(--white); }
.page-head--brand :focus-visible { outline-color: var(--accent-light); }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 30px; }
.page-head__actions .btn { margin-bottom: 10px; }
/* in-page navigation: stays below the header while the page scrolls */
.subnav-bar { position: sticky; top: var(--header-h); z-index: 20; border-top: 1px solid rgba(255, 255, 255, 0.25); background: var(--brand); color: var(--white); transition: top 0.3s var(--ease); }
.subnav-bar :focus-visible { outline-color: var(--accent-light); outline-offset: -3px; }
.subnav { display: flex; gap: 0 clamp(24px, 3.2vw, 40px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; font-size: 16px; font-weight: 500; white-space: nowrap; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; flex: none; align-items: center; min-height: 60px; color: var(--white); text-decoration: none; background: linear-gradient(var(--accent-light), var(--accent-light)) 0 100% / 0 3px no-repeat; transition: background-size 0.3s var(--ease), color var(--dur-fast); }
.subnav a:hover { color: var(--accent-light); }
.subnav a[aria-current] { color: var(--accent-light); background-size: 100% 3px; }

/* principles, services, steps, posts: a fine rule that draws when the block enters the screen */
.principle, .service, .step, .post-card { position: relative; }
.principle::before, .service::before, .step::before, .post-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--text); transform-origin: 0 50%; }
.principle::before, .service::before { height: 2px; background: var(--accent); }
.principle { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.step__num { font-family: var(--font-heading); font-size: 64px; line-height: 1; color: var(--accent); }
.timeline { padding: 0; list-style: none; }
.timeline__item { display: flex; gap: 28px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 19px; }
.timeline__item:first-child { border-top-color: var(--text); }
.timeline__year { flex: 0 0 72px; font-family: var(--font-heading); font-size: 26px; line-height: 1.2; color: var(--accent-text); }

/* mirror: Rechtsberatung | Notariat */
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--accent-light); }
.mirror__half { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 64px 8px 0; background: var(--brand); }
.mirror__half + .mirror__half { padding: 8px 0 8px 64px; }
.mirror__label { font-size: 13px; font-weight: 600; color: var(--accent-light); }
.mirror__title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; }
.mirror__text { max-width: 460px; font-size: 18px; color: var(--on-brand); }
.mirror__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.mirror__link .icon { transition: transform 0.28s var(--ease); }
.mirror__link:hover .icon { transform: translateX(4px); }
.mirror--light { background: var(--accent); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.mirror--light .mirror__half { padding-top: 32px; padding-bottom: 32px; background: var(--surface); color: var(--text); text-decoration: none; }
.mirror--light .mirror__label { color: var(--accent-text); }
.mirror--light .mirror__text { color: var(--muted); }
.mirror--light .mirror__title { font-size: clamp(30px, 3vw, 42px); font-family: var(--font-heading); font-weight: 500; }

/* search field and its feedback (shown once site.js runs) */
.search { position: relative; display: none; align-items: center; }
.js .search { display: flex; }
.search__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search__input { width: 100%; height: 56px; padding: 0 52px 0 46px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 17px; appearance: none; }
.search__input::placeholder { color: var(--muted); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.search__clear { position: absolute; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
.search__clear:hover { background: var(--pale); color: var(--brand); }
.finder__status { min-height: 26px; font-size: 15px; color: var(--muted); }
.finder__reset { min-height: 26px; padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.finder__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--pale); }
.finder__empty-title { font-family: var(--font-heading); font-size: 24px; line-height: 1.25; }

/* Wegweiser: both areas of the firm side by side on the mirror axis, searchable by concern */
.wg__head { margin-bottom: 44px; }
.wg__tools { display: none; grid-template-columns: auto minmax(0, 560px); justify-content: start; align-items: center; gap: 12px 28px; margin-top: 36px; padding: 24px 0 0; border-top: 1px solid var(--on-brand-line); scroll-margin-top: calc(var(--header-h) + 8px); }
.wg__tools > :not(.wg__tools-label) { grid-column: 2; }
.js .wg__tools { display: grid; }
.wg__tools-label { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; }
.wg__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--on-brand-muted); }
.wg .finder__status { color: var(--on-brand-muted); }
.wg .finder__reset { color: var(--white); }
.wg .finder__empty { margin-bottom: 40px; background: rgba(255, 255, 255, 0.08); }
/* while a search is active the two column heads step back, so the hits sit directly under the field */
.wg .is-filtered .wg__examples, .wg .is-filtered .wg__col-head .mirror__text, .wg .is-filtered .wg__col-head .mirror__link { display: none; }
.wg .is-filtered .wg__col-head .mirror__title { font-size: 30px; }
.wg .is-filtered .wg__list { margin-top: 18px; }
.wg .is-filtered .wg__head { margin-bottom: 28px; }
.wg__mirror { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wg__mirror::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--accent-light); transform-origin: 50% 0; }
.wg__col { display: flex; flex-direction: column; align-items: stretch; padding: 8px clamp(32px, 5vw, 64px) 8px 0; }
.wg__col + .wg__col { padding: 8px 0 8px clamp(32px, 5vw, 64px); }
.wg__col-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wg__list { margin-top: 28px; border-top: 1px solid var(--on-brand-line); }
.wg__none { padding: 18px 4px; border-bottom: 1px solid var(--on-brand-line); font-size: 15px; color: var(--on-brand-muted); }
.wg-item { border-bottom: 1px solid var(--on-brand-line); }
.wg-item > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; min-height: 68px; padding: 14px 4px; list-style: none; cursor: pointer; transition: background-color var(--dur-fast); }
.wg-item > summary::-webkit-details-marker { display: none; }
.wg-item > summary:hover { background: rgba(255, 255, 255, 0.06); }
.wg-item__title { margin: 0; font-family: var(--font-heading); font-size: 25px; font-weight: 500; line-height: 1.2; }
.wg-item__lead { grid-column: 1; font-size: 15px; line-height: 1.45; color: var(--on-brand-muted); }
.wg-item__icon { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-light); transition: transform 0.32s var(--ease); }
.wg-item[open] > summary .wg-item__icon { transform: rotate(45deg); }
.wg-item__body { display: flex; flex-direction: column; gap: 18px; padding: 6px 4px 26px; }
.wg-item__matters { padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 16px; line-height: 1.4; color: var(--on-brand); }
.wg-item__matters li { position: relative; padding: 5px 0 5px 18px; break-inside: avoid; }
.wg-item__matters li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--accent-light); }
.wg-item__person { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.45; }
.wg-item__person img { flex-shrink: 0; width: 56px; height: 70px; object-fit: cover; border-radius: var(--radius); }
.wg-item__person a, .wg-item__docs a { font-weight: 600; }
.wg-item__docs { font-size: 15px; line-height: 1.45; }
.wg-item__label { display: block; font-size: 13px; font-weight: 400; color: var(--on-brand-muted); }
.wg-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* rows: posts, 404 */
.rows { border-top: 1px solid var(--text); }
.rows--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px 40px; min-height: 76px; padding: 18px 8px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; background: linear-gradient(var(--pale), var(--pale)) 0 0 / 0 100% no-repeat; transition: background-size 0.4s var(--ease); }
.row:hover { color: var(--text); background-size: 100% 100%; }
.row__title { flex: 1 1 320px; font-family: var(--font-heading); font-size: 26px; line-height: 1.2; }
.row__title--large { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; }
.row__text { flex: 1.2 1 300px; font-size: 16px; color: var(--muted); }
.row__meta { flex: 0 0 210px; font-size: 14px; color: var(--muted); }
.row .icon { color: var(--accent); transition: transform 0.28s var(--ease); }
.row:hover .icon { transform: translateX(4px); }

/* people */
.people { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.group-label { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--text); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.6; }
.buero { padding: 18px 24px 24px; border-radius: var(--radius); background: var(--pale); }
.buero__note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.person { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.person:hover { color: var(--text); }
.person__photo { margin-bottom: 12px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--pale); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__name { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; font-weight: 500; }
.person__name--large { font-size: 30px; line-height: 1.15; }
.person__role { font-size: 16px; color: var(--muted); }
.person__more { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-underline-offset 0.24s var(--ease); }
a:hover .person__more { text-underline-offset: 8px; }
.buero-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.person-inline { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 24px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.person-inline > .stack { min-width: 0; }
.person-inline img { width: 128px; height: 160px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius); }
.person-inline--small img { width: 96px; height: 120px; }
.person-inline--plain { padding: 0; border: 0; }

/* documents */
.doc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: 22px 8px; border-bottom: 1px solid var(--border); }
.doc__title { font-size: 24px; line-height: 1.25; }
.doc__desc { font-size: 16px; color: var(--muted); }
.doc__meta { font-size: 14px; color: var(--muted); }
.doc--compact { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; }
.card .doc--compact { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0; border-bottom: 0; }
.card .doc--compact .btn { justify-self: start; }
.doc-tools { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-top: 30px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { border-color: var(--brand); background: var(--brand); color: var(--white); }
.chip__count { font-weight: 400; opacity: 0.75; }
.chip--plain { min-height: 44px; padding: 0 14px; font-weight: 400; background: transparent; }
.chip--on-brand, .section--brand .chip--on-brand { min-height: 44px; padding: 0 14px; border-color: rgba(255, 255, 255, 0.4); background: transparent; color: var(--white); font-weight: 500; }
.chip--on-brand:hover, .section--brand .chip--on-brand:hover { border-color: var(--white); background: var(--white); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-group { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
/* in the library the first group that is shown starts flush, whichever it is after filtering */
.doc-list > .doc-group { margin-top: 0; }
.doc-list > .doc-group:not([hidden]) ~ .doc-group { margin-top: 56px; }
.doc-group__title { margin-bottom: 20px; }
.doc-list { scroll-margin-top: calc(var(--header-h) + 24px); }


/* posts */
.post-card { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; color: var(--text); text-decoration: none; }
.post-card:hover { color: var(--text); }
.post-card__meta { font-size: 14px; color: var(--muted); }
.post-card__title { font-family: var(--font-heading); font-size: 28px; line-height: 1.2; font-weight: 500; }
.post-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 72px; align-items: center; color: var(--text); text-decoration: none; }
.post-feature__title { font-family: var(--font-heading); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -0.015em; }
.post-feature__panel { min-height: 320px; border-radius: var(--radius); background: var(--brand) url("img/monogramm-weiss.png") center 56% / 44% auto no-repeat; }
.article { display: flex; flex-direction: column; gap: 40px; max-width: 720px; font-size: 19px; line-height: 1.7; }
.article__part { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.notice { padding: 18px 22px; border-radius: var(--radius); background: var(--pale); font-size: 16px; line-height: 1.55; }
.toc { display: flex; flex-direction: column; font-size: 16px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding-left: 0; border-top: 1px solid var(--border); border-left: 2px solid transparent; color: var(--text); text-decoration: none; transition: padding-left 0.3s var(--ease), border-color 0.3s, color var(--dur-fast); }
.toc a:last-child { border-bottom: 1px solid var(--border); }
.toc a:hover { color: var(--accent-text); }
.toc a[aria-current] { padding-left: 12px; border-left-color: var(--accent); color: var(--accent-text); font-weight: 600; }
/* reading progress: CSS only, where the browser supports scroll timelines (see the motion block) */
.read-progress { display: none; }

/* facts, lists, cards */
.facts { display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 32px; padding: 20px 0; border-top: 1px solid var(--border); }
.fact:first-child { border-top-color: var(--text); }
.fact dt { padding-top: 3px; font-size: 14px; font-weight: 600; }
.fact--narrow { grid-template-columns: 120px minmax(0, 1fr); padding: 18px 0; }
.fact--action { align-items: center; padding: 10px 0; }
.fact--action dt { padding-top: 0; }
.fact--action dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 44px; }
.fact__big { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.copy { display: none; }
.js .copy { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--radius); background: none; color: var(--accent-text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.js .copy:hover { background: var(--pale); color: var(--brand); }
.fact--action .copy { margin-left: auto; }
.vita { display: flex; flex-direction: column; gap: 8px; }
.vita__row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
.vita__year { color: var(--muted); }
.dash-list { padding: 0; list-style: none; font-size: 19px; }
.dash-list li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--border); }
.dash-list li:first-child { border-top-color: var(--text); }
.dash-list li:last-child { border-bottom: 1px solid var(--border); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 10px; height: 1px; background: var(--accent); }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.card .eyebrow { margin-bottom: 0; color: var(--muted); }
/* label left, value right; a value that does not fit (a long e-mail address in a narrow card) moves below its label in one piece */
.kv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 48px; border-top: 1px solid var(--border); }
.kv > .muted { white-space: nowrap; }
.kv a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.service { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.profile { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "photo main" "card main"; gap: 24px clamp(40px, 5.6vw, 72px); align-items: start; }
.profile__main { grid-area: main; min-width: 0; }
.profile__main > .facts { align-self: stretch; }
.profile__card { grid-area: card; }
.profile__photo { grid-area: photo; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--pale); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__role { font-size: 22px; line-height: 1.4; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 760px; font-size: 18px; }
.prose h2 { margin-top: 34px; font-size: 30px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }

/* form */
.form { display: flex; flex-direction: column; gap: 22px; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); scroll-margin-top: calc(var(--header-h) + 20px); }
.form__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; align-self: stretch; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--field); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 17px; transition: border-color var(--dur-fast); }
.textarea { height: auto; min-height: 168px; max-height: 60vh; padding: 14px 16px; line-height: 1.5; resize: vertical; field-sizing: content; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.input:user-invalid, .textarea:user-invalid, .input[aria-invalid="true"], .textarea[aria-invalid="true"] { border: 2px solid var(--error); }
.field__error { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--error); }
.field__error .icon { margin-top: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.5; }
.check input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; accent-color: var(--brand); }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.form__hint { font-size: 15px; color: var(--muted); }
.form__context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding: 4px 6px 4px 16px; border-radius: var(--radius); background: var(--pale); font-size: 15px; }
.form__summary { padding: 16px 20px; border: 2px solid var(--error); border-radius: var(--radius); background: var(--error-pale); font-size: 15px; }
.form__summary-title { margin-bottom: 6px; font-weight: 600; color: var(--error); }
.form__summary ul { padding-left: 20px; }
.form__summary a { display: inline-flex; align-items: center; min-height: 32px; color: var(--error); font-weight: 500; }
.form__summary:focus { outline: 3px solid var(--error); outline-offset: 3px; }
.form__result { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--pale); font-size: 16px; line-height: 1.55; }
.form__result:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.form__result-title { font-family: var(--font-heading); font-size: 22px; line-height: 1.25; }

/* contact band and footer */
.cta { padding: var(--space-6) 0; background: var(--brand); color: var(--white); }
.cta__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px clamp(40px, 6.2vw, 80px); align-items: end; }
.cta .eyebrow { color: var(--accent-light); }
.cta__title { margin-bottom: 22px; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -0.015em; }
.cta__text { max-width: 520px; font-size: 18px; color: var(--on-brand); }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; padding: 6px 0; border-top: 1px solid var(--on-brand-line); }
.cta__row a { display: inline-flex; align-items: center; min-height: 44px; }
.cta__row:nth-child(3) { border-bottom: 1px solid var(--on-brand-line); }
.cta__label { color: var(--on-brand-muted); }
.cta__value { text-align: right; }
.cta a { color: var(--white); }
.cta a:hover { color: var(--accent-light); }
.cta .btn--light, .cta .btn--light:hover, .page-head--brand .btn--light, .page-head--brand .btn--light:hover { color: var(--brand); }
.cta .actions { margin-top: 28px; }
.cta :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }
.site-footer { background: var(--brand); color: var(--white); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 48px; padding: 56px 0 44px; border-top: 1px solid var(--on-brand-line); }
.site-footer__logo { width: 280px; height: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__title { margin-bottom: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; }
.site-footer__bottom { padding: 20px 0 28px; border-top: 1px solid var(--on-brand-line); font-size: 13px; color: var(--on-brand-muted); }
.quickbar { display: none; }

/* motion ------------------------------------------------------------------
   1. Page load: the first screen rises in once (CSS only).
   2. Scroll: site.js marks blocks below the first screen with data-reveal="out" and switches them to "in"
      as they enter the screen. Without the script nothing is ever hidden.
   3. Page change: a short cross-fade where the browser supports view transitions (needs http, not file://). */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes open-from-axis { from { clip-path: inset(0 50% 31% 50%); } }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__text > *, .hero__panel, .page-head > .wrap > * { animation: rise-in 0.75s var(--ease-out) backwards; }
.hero__text > :nth-child(2), .page-head > .wrap > :nth-child(2) { animation-delay: 70ms; }
.hero__text > :nth-child(3), .page-head > .wrap > :nth-child(3) { animation-delay: 140ms; }
.hero__text > :nth-child(4), .page-head > .wrap > :nth-child(4) { animation-delay: 210ms; }
.hero__text > :nth-child(5), .page-head > .wrap > :nth-child(5) { animation-delay: 280ms; }
.hero__text > :nth-child(6), .page-head > .wrap > :nth-child(6) { animation-delay: 350ms; }
.hero__panel { animation-delay: 160ms; }
.hero .accent-italic { animation: fade-in 0.9s 0.4s var(--ease) backwards; }
.hero__mark-left, .hero__mark-right { animation: open-from-axis 0.95s 0.35s var(--ease-out) backwards; }
.hero__mark-reflection { animation: settle 0.9s 0.95s var(--ease-out) backwards; }
.hero__finder, .hero__panel-foot { animation: fade-in 0.7s 0.55s var(--ease) backwards; }

/* the hidden state is set without a transition, so marking blocks at load costs nothing; only the way in is animated */
[data-reveal="out"] { opacity: 0; transform: translateY(var(--rise)); }
[data-reveal="out"]::before { transform: scaleX(0); }
[data-reveal="in"] { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
[data-reveal="in"]::before { transition: transform 0.9s var(--ease-out); transition-delay: inherit; }
.wg__mirror[data-reveal] { opacity: 1; transform: none; }
.wg__mirror[data-reveal="out"]::before { transform: scaleY(0); }
.wg__mirror[data-reveal="out"] > * { opacity: 0; transform: translateY(var(--rise)); }
.wg__mirror[data-reveal="in"]::before { transition: transform 1.1s var(--ease-out); }
.wg__mirror[data-reveal="in"] > * { transition: opacity var(--dur) 0.2s var(--ease), transform var(--dur) 0.2s var(--ease); }
[data-reveal-i="1"] { transition-delay: 70ms; }
[data-reveal-i="2"] { transition-delay: 140ms; }
[data-reveal-i="3"] { transition-delay: 210ms; }
[data-reveal-i="4"] { transition-delay: 280ms; }
[data-reveal-i="5"] { transition-delay: 350ms; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .wg-item::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .wg-item[open]::details-content { block-size: auto; }
}

@supports (animation-timeline: scroll()) {
  .read-progress { display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 3px; background: var(--accent); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root block); }
}

/* wide screens show the full navigation: the menu switch is out of the tab order there */
@media (min-width: 1201px) {
  .nav-toggle { display: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s ease both; }
::view-transition-new(root) { animation: vt-in 0.36s var(--ease-out) both; }

/* navigation collapses: tablets and small laptops */
@media (max-width: 1200px) {
  :root { --header-h: 72px; }
  .is-scrolled { --header-h: 64px; }
  .site-logo img { width: 380px; }
  .nav-toggle__btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-width: 122px; min-height: 44px; padding: 0 14px; border: 1px solid var(--brand); border-radius: var(--radius); color: var(--brand); font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
  .nav-toggle:focus-visible + .nav-toggle__btn { outline: 3px solid var(--accent); outline-offset: 3px; }
  .nav-toggle__icon { position: relative; width: 16px; height: 12px; }
  .nav-toggle__icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
  .nav-toggle__icon span:first-child { top: 2px; }
  .nav-toggle__icon span:last-child { top: 9px; }
  .nav-toggle__close { display: none; }
  .nav-toggle:checked + .nav-toggle__btn { background: var(--brand); color: var(--white); }
  .nav-toggle:checked + .nav-toggle__btn .nav-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle__btn .nav-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }
  .nav-toggle:checked + .nav-toggle__btn .nav-toggle__open { display: none; }
  .nav-toggle:checked + .nav-toggle__btn .nav-toggle__close { display: inline; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; background: var(--brand); white-space: normal; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0s 0.26s; }
  .nav-toggle:checked ~ .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav .nav-link { display: flex; flex: none; align-items: center; min-height: 58px; padding: 0; border-bottom: 1px solid var(--on-brand-line); background: none; color: var(--white); font-family: var(--font-heading); font-size: 26px; font-weight: 400; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color var(--dur-fast); }
  .site-nav .nav-link:hover, .site-nav .nav-link.is-active { color: var(--accent-light); }
  .site-nav > .btn, .site-nav__contact { opacity: 0; transition: opacity 0.4s 0.3s var(--ease); }
  .nav-toggle:checked ~ .site-nav .nav-link, .nav-toggle:checked ~ .site-nav > .btn, .nav-toggle:checked ~ .site-nav .site-nav__contact { opacity: 1; transform: none; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(1) { transition-delay: 40ms; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(2) { transition-delay: 80ms; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(3) { transition-delay: 120ms; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(4) { transition-delay: 160ms; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(5) { transition-delay: 200ms; }
  .nav-toggle:checked ~ .site-nav .nav-link:nth-child(6) { transition-delay: 240ms; }
  .site-nav > .btn { flex: none; margin-top: 24px; min-height: 54px; background: var(--white); color: var(--brand); font-size: 17px; }
  .site-nav > .btn:hover { background: var(--pale); color: var(--brand); }
  .site-nav :focus-visible { outline-color: var(--accent-light); }
  .site-nav__contact { display: flex; flex: none; flex-direction: column; margin-top: 20px; font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--on-brand-muted); }
  .site-nav__contact a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--white); font-weight: 600; text-decoration: none; }
  .site-nav__contact a .icon { color: var(--accent-light); }
  .site-nav__contact > span { padding-top: 8px; }
  .nav-open { overflow: hidden; }
  .hero__panel { min-height: 500px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .buero .people-cards .person { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 20px; }
  .buero .people-cards .person__photo { flex: 0 0 112px; margin-bottom: 0; }
  .buero .people-cards .person__name { flex: 1 1 200px; }
  .buero .people-cards .person__role, .buero .people-cards .person__more { flex-basis: 100%; }
  .profile { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .with-aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .fact { grid-template-columns: 160px minmax(0, 1fr); gap: 6px 24px; }
  .fact--narrow { grid-template-columns: 120px minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px 32px; }
}

/* single column: small tablets and phones */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .is-scrolled { --header-h: 60px; }
  .site-logo img { width: 320px; }
  .nav-toggle__btn { min-width: 118px; }
  .section__head { margin-bottom: 28px; }
  .hero__grid, .split, .cols-2, .with-aside, .mirror, .wg__mirror, .cta__grid, .post-feature, .profile, .buero-row, .profile .fact { grid-template-columns: minmax(0, 1fr); }
  .profile .fact { gap: 6px; }
  .wg__tools { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .wg__tools > :not(.wg__tools-label) { grid-column: 1; }
  .with-aside > aside, .sticky-col { position: static; }
  .profile { grid-template-areas: "photo" "main" "card"; grid-template-rows: auto; gap: 28px; }
  .hero__panel { min-height: 0; gap: 20px; padding: 24px 20px 20px; }
  .hero__mark { width: min(56%, 240px); margin: 8px auto 4px; }
  .hero__text { gap: 22px; }
  .hero .actions { width: 100%; }
  .hero .btn { flex: 1 1 220px; }
  .lead { font-size: 18px; }
  .h3 { font-size: 24px; }
  .page-head { padding-top: 28px; }
  .page-head--brand { background-image: none; }
  .breadcrumb { margin-bottom: 12px; }
  .mirror__half, .mirror__half + .mirror__half { padding: 28px 0; }
  .mirror--light .mirror__half { padding: 24px 0; }
  .wg__head { margin-bottom: 32px; }
  .vita__row span, .fact dd, .wg-item__lead, .doc__desc { overflow-wrap: break-word; }
  .wg__mirror::before { display: none; }
  .wg__col, .wg__col + .wg__col { padding: 0; }
  .wg__col + .wg__col { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--accent-light); }
  .wg__col.is-empty { display: none; }
  .wg__col.is-empty + .wg__col { margin-top: 0; padding-top: 0; border-top: 0; }
  .row { min-height: 60px; padding: 12px 0; }
  .row__title { flex-basis: 200px; font-size: 22px; }
  .row__text, .row__meta { flex-basis: 100%; }
  .row--wrap { flex-wrap: wrap; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 18px; padding-top: 16px; }
  .step__num { font-size: 44px; }
  .step .h3 { flex: 1 1 200px; align-self: center; }
  .step p { flex-basis: 100%; }
  .post-card__title { font-size: 23px; }
  .post-feature__panel { min-height: 200px; }
  .article { font-size: 18px; }
  .timeline__item { gap: 18px; font-size: 17px; }
  .timeline__year { flex-basis: 60px; font-size: 22px; }
  .profile__photo { max-width: 320px; }
  .buero-row .person__photo { max-width: 200px; }
  .cta__row { font-size: 16px; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 44px 0 36px; }
  .site-footer__logo { width: 210px; }
  .site-footer__col:first-child { grid-column: 1 / -1; }
  .site-footer__bottom { padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  .site-footer__col { gap: 0; }
  .site-footer__col a { display: flex; align-items: center; min-height: 44px; }
  .site-footer__col span { padding: 4px 0; }
  .quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--white); box-shadow: 0 -10px 28px -20px rgba(7, 59, 64, 0.35); view-transition-name: quickbar; transition: transform 0.36s var(--ease), visibility 0s; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--field); border-radius: var(--radius); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
  .quickbar a:active { background: var(--pale); }
  .quickbar .icon { color: var(--accent); }
  .quickbar .quickbar__primary { border-color: var(--brand); background: var(--brand); color: var(--white); }
  .quickbar .quickbar__primary .icon { color: var(--accent-light); }
  .quickbar.is-away, .nav-open .quickbar { transform: translateY(110%); visibility: hidden; transition: transform 0.36s var(--ease), visibility 0s 0.36s; }
}

/* small tablets: two or three across where a phone gets one */
@media (min-width: 621px) and (max-width: 900px) {
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .cols-3.people-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .people-cards .person__name { font-size: 22px; }
  .profile { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); grid-template-areas: "photo main" "card card"; gap: 28px 32px; }
  .hero__panel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 28px; }
  .hero__mark { flex: 0 0 200px; width: 200px; margin: 0; }
  .hero__finder { flex: 1 1 280px; }
  .hero__panel-foot { flex: 1 1 100%; }
}

/* phones */
@media (max-width: 620px) {
  p, li, dd, .vita__row span { hyphens: auto; }
  .cols-3, .rows--2col, .field-row { grid-template-columns: minmax(0, 1fr); }
  .cols-3 { gap: 32px; }
  .cols-3.people-cards { gap: 20px; }
  .people-cards .person { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; }
  .people-cards .person__photo { flex: 0 0 88px; margin-bottom: 0; }
  .people-cards .person__name { flex: 1 1 180px; min-width: 0; font-size: 22px; }
  .people-cards .person__role, .people-cards .person__more { flex-basis: 100%; }
  .buero { padding: 16px 16px 18px; }
  .buero .people-cards .person__photo { flex-basis: 88px; }
  .hero .btn { flex-basis: 100%; }
  .doc, .doc--compact { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .doc .btn { width: 100%; }
  .doc__title { font-size: 22px; }
  .fact, .fact--narrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fact--action { padding: 12px 0 6px; }
  .vita__row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .person-inline { gap: 16px; }
  .person-inline img { width: 96px; height: 120px; }
  .person__name--large { font-size: 26px; }
  .wg-item__title { font-size: 23px; }
  .wg-item > summary { min-height: 60px; padding: 10px 4px; }
  .wg-item:not([open]) .wg-item__lead { display: none; }
  .wg-item:not([open]) > summary { row-gap: 0; }
  .wg-item__matters { columns: 1; }
  .form { padding: 24px 20px; }
  .finder__empty { padding: 22px 20px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__col:nth-child(-n+2) { grid-column: 1 / -1; }
}

/* the narrowest phones: a little more room for the logo */
@media (max-width: 380px) {
  .site-header__inner { gap: 12px; }
  .nav-toggle__btn { min-width: 104px; padding: 0 10px; gap: 8px; }
}

@media (hover: none) {
  .row:hover { background-size: 0 100%; }
  .person:hover .person__photo img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal="out"], .wg__mirror[data-reveal="out"] > * { opacity: 1; transform: none; }
  [data-reveal="out"]::before, .wg__mirror[data-reveal="out"]::before { transform: none; }
  .read-progress { display: none; }
  @view-transition { navigation: none; }
}

@media print {
  :root { --header-h: 0px; }
  body { background: #fff; font-size: 11pt; }
  .site-header { position: static; }
  .nav-toggle, .nav-toggle__btn, .site-nav, .quickbar, .cta, .skip-link, .search, .copy, .subnav-bar, .read-progress, .hero__finder, .doc-nav, .wg__examples { display: none !important; }
  .section, .hero, .page-head { padding: 18pt 0; }
  .section--brand, .hero__panel, .page-head--brand, .site-footer { background: none !important; color: var(--text) !important; }
  .section--brand a, .page-head--brand a, .site-footer a, .wg-item__lead, .wg-item__matters, .wg-item__label, .mirror__text, .mirror__label { color: var(--text) !important; }
  .hero__mark, .site-footer__logo { display: none; }
  .with-aside > aside { position: static; }
  [data-reveal], .wg__mirror[data-reveal] > * { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
