/* Studio Bouza — shared styles: a printed document on a cream table
   1 tokens and fonts   2 type   3 top bar and footer   4 the 12-column grid
   5 sheets, spreads and the fold   6 the project document   7 smaller screens
   8 Leistungen, Über mich, Kontakt, 404 */

/* ---------- 1 tokens and fonts ---------- */
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/eb-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-500.woff2") format("woff2"); }

:root {
  --paper: #E8E4DC;        /* page background, the "table" */
  --sheet: #F6F4F0;        /* paper sheets */
  --ink: #1E1C19;          /* text */
  --muted: #5E5952;        /* italic sublines, roman numerals, dt labels */
  --faint: #77726A;        /* page footer, page numbers, small caps labels */
  --placeholder: #DCD6CC;  /* image placeholders */
  --accent: #773016;       /* only the current menu item and link hover */
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --gap: 24px;
  --margin: 64px;
  --col: 87.33px;          /* (1440 - 2 x 64 - 11 x 24) / 12 */
  --bar: 34px;             /* top bar, from the top of the window */
  --top: 96px;             /* space above the first sheet */
  --foot: 32px;            /* page footer, from the bottom of the page */
  --between: 56px;         /* space between sheets */
  --peek: 64px;            /* how much of the next sheet shows below the first */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.7; }
/* short pages: the footer still sits at the bottom of the window */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 2 type ----------
   .t spaced capital titles (EB Garamond) · .sub small italic sublines ·
   .body running text (Hanken Grotesk) · .statement the closing sentence ·
   .caps small labels · .meta page footer and numbers · .num roman numerals.
   Italic only for sublines, captions and fact labels, never above 18px. */
h1, h2, h3, p, dl, figure { margin: 0; }
h1, h2, h3, .t { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; }
h3 { font-size: 14px; }
.t.title { font-size: 30px; line-height: 1.25; letter-spacing: 0.18em; }
/* centred spaced capitals: letter-spacing also follows the last letter, so
   pad the start by the same amount to keep the letters on the centre line */
.title-block .t { padding-left: 0.18em; }
.sub { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--muted); }
.body { font-size: 14px; line-height: 1.7; }
.body.small { font-size: 13px; }
.statement { font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.caps { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.meta { font-size: 10px; line-height: 1.4; letter-spacing: 0.02em; color: var(--faint); }
.num { font-family: var(--serif); font-size: 13px; color: var(--muted); }
dl.facts { display: grid; grid-template-columns: 92px 1fr; row-gap: 4px; align-items: baseline; }
dt { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
dd { margin: 0; font-size: 13px; line-height: 1.5; }
.link { font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.measure { max-width: 400px; }

/* ---------- 3 top bar and footer ----------
   Fixed on every page: the name left, the pages right (a "Menü" sheet on
   phones). A band of page colour appears behind it once the page scrolls. */
.topbar { position: fixed; top: var(--bar); left: 0; right: 0; z-index: 50; pointer-events: none; }
.topbar::before { content: ""; opacity: 0; transition: opacity 200ms ease-out; position: absolute; left: 0; right: 0; top: calc(-1 * var(--bar)); height: calc(var(--bar) + 52px); background: linear-gradient(var(--paper) 70%, rgba(232, 228, 220, 0)); pointer-events: none; }
.scrolled .topbar::before { opacity: 1; }
.shelf-page .topbar::before { display: none; }
.topbar-row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 0 var(--margin); }   /* above the paper band */
.topbar a, .topbar button { pointer-events: auto; }
.wordmark { font-family: var(--serif); font-size: 17px; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.3; }
.nav-links { display: flex; align-items: baseline; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.nav-links a[aria-current] { color: var(--accent); }
.lang { margin-left: 12px; color: var(--faint); }
.lang a { color: var(--faint); }

.menu { position: relative; display: none; }
.menu-btn { appearance: none; background: none; border: 0; padding: 0; font: 13px/1.3 var(--body); color: var(--ink); cursor: pointer; pointer-events: auto; }
.paper {
  position: absolute; top: -6px; right: -6px; z-index: 40;
  width: max-content; min-width: min(300px, calc(100vw - 20px)); max-width: calc(100vw - 20px);
  padding: 52px 40px 40px; background: var(--sheet); color: var(--ink);
  box-shadow: 0 1px 1px rgba(40, 30, 20, 0.05), 0 16px 32px -16px rgba(40, 30, 20, 0.28);
  visibility: hidden; pointer-events: none;
}
.paper.open { visibility: visible; pointer-events: auto; }
.menu-close { position: absolute; top: 8px; right: 12px; appearance: none; background: none; border: 0; padding: 6px 8px; font: 22px/1 var(--serif); color: var(--ink); cursor: pointer; }
.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-item + .menu-item { margin-top: 22px; }
.menu-item + .menu-item.menu-sub { margin-top: 10px; }
.menu-item.menu-sub { padding-left: 24px; }
.menu-link { font-family: var(--serif); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; }
a.menu-link[aria-current] { color: var(--accent); }

/* page footer: © left, Impressum and Datenschutz right, the same distance
   from the bottom on every page (on the shelf it sits in the bottom board's shadow) */
.site-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--margin) var(--foot); color: var(--muted); }

/* ---------- 4 the 12-column grid ----------
   12 columns with 24 px gutters between 64 px margins (1312 px at 1440);
   the outer tracks are the margin minus one gutter.
   Column n runs from grid line n+1 to n+2; a sheet spans all twelve. */
.grid {
  display: grid; column-gap: var(--gap);
  grid-template-columns: minmax(calc(var(--margin) - var(--gap)), 1fr) repeat(12, minmax(0, var(--col))) minmax(calc(var(--margin) - var(--gap)), 1fr);
}

/* overlay: add ?raster to an address to see the columns */
.raster { display: none; }
.show-raster .raster {
  display: grid; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  column-gap: var(--gap); grid-template-columns: minmax(calc(var(--margin) - var(--gap)), 1fr) repeat(12, minmax(0, var(--col))) minmax(calc(var(--margin) - var(--gap)), 1fr);
}
.show-raster .raster i { background: rgba(230, 60, 110, 0.08); }
.show-raster .raster i:first-child { grid-column: 2; }

/* ---------- 5 sheets, spreads and the fold ---------- */
.doc { row-gap: var(--between); padding: var(--top) 0 var(--between); }
/* the next sheet always peeks in at the bottom of the window, so the sheets read
   as a stack to scroll through (not a book to click). Never below 560 px:
   on very short windows the text wins over the peek. Only the height gives way:
   stretch keeps the sheet at full width, the same as every sheet below it. */
@media (min-width: 1101px) {
  main { container-type: inline-size; }   /* 100cqw: the width the sheets sit in */
  /* a set height instead of the proportion plus a height limit: with both,
     Firefox narrows the sheet to keep its proportion (Chrome does not) */
  .doc > .sheet.spread:first-child {
    --ratio: 1.6;
    --first: min(
      calc(min(100cqw - 2 * var(--margin), 12 * var(--col) + 11 * var(--gap)) / var(--ratio)),
      max(560px, calc(100vh - var(--top) - var(--between) - var(--peek))));
    aspect-ratio: auto;
    height: var(--first);
  }
  @supports (height: 100svh) {
    .doc > .sheet.spread:first-child {
      --first: min(
        calc(min(100cqw - 2 * var(--margin), 12 * var(--col) + 11 * var(--gap)) / var(--ratio)),
        max(560px, calc(100svh - var(--top) - var(--between) - var(--peek))));
    }
  }
  .doc > .sheet.spread.short:first-child { --ratio: 2.05; }
  /* sheets of text: that height is only the least, they grow with their text
     (min-height: min-content would do it in Chrome, but Firefox ignores it) */
  .doc > .sheet.spread:first-child:not(:has(img, figure)) { height: auto; min-height: var(--first); }
}
.sheet {
  grid-column: 2 / 14; position: relative; background: var(--sheet);
  box-shadow: 0 1px 1px rgba(40, 30, 20, 0.05), 0 22px 44px -22px rgba(40, 30, 20, 0.28);
  aspect-ratio: 1.6; /* landscape, 820 px tall at 1440; grows if the text needs more */
}
.sheet.short { aspect-ratio: 2.05; }
/* paper grain, also over the photos: "printed on paper" */
.sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spread { display: grid; grid-template-columns: 1fr 1fr; }
/* the fold: darkening towards a sharp line, then a thin highlight */
.fold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 70px); width: 140px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(40, 30, 20, 0) 0%, rgba(40, 30, 20, 0.03) 38%, rgba(40, 30, 20, 0.075) 49.3%, rgba(40, 30, 20, 0.16) 49.9%, rgba(255, 255, 255, 0.6) 50.25%, rgba(255, 255, 255, 0.12) 56%, rgba(255, 255, 255, 0) 66%);
}
.pg { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 44px 52px 32px; }
.pg-text { padding-left: 72px; }
.pg-text, .pg.grow { min-height: auto; }   /* text pages grow the sheet rather than overflow */
.pg-photo { padding: 36px 36px 32px 44px; }
.single { display: flex; flex-direction: column; padding: 44px 52px 32px; }

.head .sub { margin-top: 4px; }
/* rows of mixed type sit on the last line's baseline */
.row { display: flex; justify-content: space-between; align-items: last baseline; gap: 24px; }
.row.end { justify-content: flex-end; }
.foot-doc { margin-top: 28px; }
.page-no { margin-left: auto; }
/* the last line on a page sits on its bottom edge: trim the space below the
   baseline, so text of any size at the foot of facing pages shares a line */
.foot-doc, .page-no, .row > * { text-box: trim-end cap alphabetic; }

/* images fill the space left on their page; missing ones show a labelled box */
.fig { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fill { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
/* drawings and some photos are never cropped: whole, on the page's left edge */
.fill.whole { object-fit: contain; object-position: left top; }
/* a drawing in the middle of its page (the floor plan), caption centred below */
.fig-centre { margin-top: 28px; }
.fig-centre .fill.whole { object-position: center; }
.fig-centre figcaption { justify-content: center; }
.fig figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; }
.fig figcaption .sub { font-size: 14px; }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; background: var(--placeholder); color: var(--faint); font-size: 11px; letter-spacing: 0.03em; }

/* ---------- 6 the project document ---------- */
.title-block { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.title-block .sub { font-size: 18px; }
.intro { display: grid; grid-template-columns: 120px 1fr; column-gap: 24px; align-items: baseline; }
.intro > .sub { font-size: 15px; }
.intro .facts { margin-top: 22px; }
.title-block + .intro + .foot-doc { margin-top: 40px; }
/* a narrow page (laptops up to ~1300 px): the label goes above the text, so
   the text keeps a comfortable measure */
.pg { container-type: inline-size; }
@container (max-width: 560px) {
  .intro { display: block; }
  .intro .body { margin-top: 8px; }
  .intro .facts { margin-top: 18px; }
}
.hero { object-position: 58% 60%; }
.pg-photo .row { margin-top: 14px; }

.lid { height: 150px; }
.gap-40 { height: 40px; }
.centred { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; max-width: 420px; }
.layers { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 4px; font-size: 13px; line-height: 1.5; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.trio article { display: flex; flex-direction: column; gap: 3px; }
.trio-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 11px; }   /* the photos' own proportion */
.trio .t { margin-top: 2px; }
.trio .sub { font-size: 14px; }
.trio .body { margin-top: 10px; max-width: 330px; }
.detail-foot { margin-top: auto; padding-top: 32px; }
.detail-foot .foot-doc { margin-top: 0; }
.detail-title { text-align: right; }
.detail-title .sub { margin-top: 2px; }
.detail-title .page-no { display: block; margin-top: 14px; }

/* before and after: two tall photos side by side on one sheet, the text beside
   them. The columns keep the photos near their own proportion (about 1 : 1.9). */
.later-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr 1.1fr; column-gap: 20px; }
.later-side { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; }
.later-side .body { margin-top: 24px; max-width: 340px; }
.later-no { display: none; }

.invite { display: flex; flex-direction: column; gap: 28px; }
.links { display: flex; gap: 28px; }
.push { margin-top: auto; }
.push .foot-doc { margin-top: 0; }
.end-row { justify-content: flex-end; }
.closing-no { display: flex; flex-direction: column; align-items: flex-end; }

/* shown only on phones (layouts that differ from desktop) */
.only-phone, .invite.only-phone { display: none; }

/* ---------- 7 smaller screens ---------- */
/* tablet and phone: the two pages of a spread stack and the fold runs
   across, exactly between two halves of equal height */
@media (max-width: 1100px) {
  .sheet, .sheet.short { aspect-ratio: auto; box-shadow: 0 1px 1px rgba(40, 30, 20, 0.05), 0 16px 32px -16px rgba(40, 30, 20, 0.28); }
  .spread { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; min-height: var(--mh, 1040px); }
  .fold::after {
    left: 0; right: 0; width: auto; top: calc(50% - 60px); height: 120px;
    background: linear-gradient(180deg, rgba(40, 30, 20, 0) 0%, rgba(40, 30, 20, 0.03) 38%, rgba(40, 30, 20, 0.075) 49.3%, rgba(40, 30, 20, 0.16) 49.9%, rgba(255, 255, 255, 0.6) 50.3%, rgba(255, 255, 255, 0.12) 56%, rgba(255, 255, 255, 0) 66%);
  }
  .pg, .pg-text, .pg-photo, .single { padding: 28px 22px 20px; }
  .no-phone { display: none; }
  .only-phone { display: block; }
  .invite.only-phone { display: flex; }
  .foot-doc { display: none; }
  .closing-no .foot-doc { display: block; }

  .title-block { gap: 10px; }
  .title-block .sub { font-size: 16px; }
  .intro { display: block; }
  .intro > .sub { font-size: 14px; }
  .intro .body { margin-top: 8px; }
  .intro .facts { margin-top: 18px; }
  .pg-photo .row { margin-top: 12px; }

  .lid { height: auto; }
  .lid + .fig, .head + .gap-40 + .fig { margin-top: 24px; }
  .gap-40 { display: none; }
  .fig { min-height: 160px; }
  .fig figcaption { gap: 8px; margin-top: 10px; }
  .centred { gap: 22px; max-width: none; }
  .layers { column-gap: 12px; row-gap: 3px; }

  .single { gap: 36px; }
  .trio { column-gap: 14px; }
  .fig .fill { max-height: 620px; }   /* stacked pages: images stay a sensible size */
  .trio-img { margin-bottom: 9px; }
  .trio .body { margin-top: 8px; max-width: none; }
  .detail-foot { padding-top: 0; justify-content: flex-end; }

  .later-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 12px; }
  .later-grid .fill { flex: none; aspect-ratio: 861 / 1600; }
  .later-side { grid-column: 1 / -1; grid-row: 1; padding: 0; }
  .later-side .body { max-width: none; margin-top: 16px; }
  .later-side .push { display: none; }
  .later-no { display: flex; margin-top: 20px; }

  .invite.only-phone { margin: auto 0; gap: 20px; }   /* in the middle of its page */
  .links { gap: 24px; }
  .enquiry .pg-text { justify-content: flex-end; }
  .enquiry .centred { display: none; }
  .end-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .closing-no { flex-direction: row; justify-content: space-between; align-items: flex-end; }

}
/* phone: 16 px margins, smaller type */
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr; row-gap: 36px; }
  :root { --gap: 16px; --margin: 16px; --bar: 22px; --top: 76px; --between: 32px; }
  .grid, .show-raster .raster { grid-template-columns: 0 repeat(12, minmax(0, 1fr)) 0; }
  .nav-links { display: none; }
  .menu { display: flex; align-items: baseline; gap: 20px; }
  .menu .lang { margin-left: 0; font-size: 13px; }
  .wordmark { font-size: 15px; letter-spacing: 0.22em; }

  .t, h2 { font-size: 14px; }
  h3 { font-size: 13px; }
  .t.title { font-size: 22px; line-height: 1.3; }
  .sub { font-size: 15px; }
  .body { line-height: 1.65; }
  .statement { font-size: 21px; }
  dl.facts { grid-template-columns: 84px 1fr; }

}
/* ---------- 8 Leistungen, Über mich, Kontakt, 404 ---------- */
/* Leistungen */
.intro-end { margin-top: auto; display: grid; gap: 10px; }
.intro-end + .row { margin-top: 24px; }
.svc-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; max-width: 440px; }
.svc-item { display: flex; flex-direction: column; gap: 3px; }
.svc-item .t { margin-top: 2px; }
.svc-item .sub { font-size: 14px; }
.svc-item .body { margin-top: 8px; }
.small-facts { margin-top: 12px; grid-template-columns: 76px 1fr; }
.small-facts dt { font-size: 13px; }
.steps-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; max-width: 420px; }
.steps-list li { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; }
.steps-list .body { margin-top: 4px; }
.fee-text { margin: 40px 0 28px; }
/* the fee labels keep to one line: the column takes the longest of them */
dl.fee-facts { grid-template-columns: max-content 1fr; column-gap: 24px; }
@media (max-width: 1100px) {
  /* halves as tall as their content, and no fold */
  .spread.uneven { grid-template-rows: auto auto; min-height: 0; }
  .spread.uneven::after { display: none; }
  .spread.uneven .push { margin-top: 24px; }
  .svc-list { gap: 30px; max-width: none; }
  .steps-list { margin-top: 24px; gap: 20px; }
  .fee-text { margin: 24px 0 20px; }
}

/* Über mich */
.pg-portrait { padding: 36px 44px 32px 36px; }
.pg-portrait .foot-doc { margin-top: 20px; }
.about-lead { margin-top: 40px; }
.about-no { margin-top: 24px; }
.cv-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; max-width: 460px; }
.cv-list li { display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; align-items: baseline; }
.cv-list .num { font-variant-numeric: tabular-nums; }
.cv-name { font-size: 14px; line-height: 1.5; }
.cv-name.link { padding-bottom: 1px; }
.cv-meta { font-size: 13px; line-height: 1.5; color: var(--muted); }
.cv-role { font-size: 13px; line-height: 1.5; }
@media (max-width: 1100px) {
  .pg-portrait { padding: 28px 22px 20px; }
  .about-lead { margin-top: 24px; }
  .cv-list { margin-top: 24px; max-width: none; }
}

/* Kontakt */
.contact-details { display: grid; gap: 40px; max-width: 420px; }
.contact-details + .foot-doc { margin-top: 32px; }
.contact-ask { display: grid; gap: 36px; max-width: 420px; }
/* side by side: the details on the left and the invitation on the right start
   on one line, 88 px below the title block (title line + gap + subline);
   --contact-shift puts the first E-Mail line on the statement's baseline */
@media (min-width: 1101px) {
  .contact-spread { --contact-top: calc(30px * 1.25 + 4px + 16px * 1.35 + 88px); --contact-shift: 8px; }
  .contact-details { margin-top: calc(88px + var(--contact-shift)); }
  .contact-details + .foot-doc { margin-top: auto; padding-top: 32px; }
  .contact-ask { margin-top: var(--contact-top); }
  .contact-ask + .row.end { margin-top: auto; padding-top: 32px; }
}
.question-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.question-list li { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; }
@media (max-width: 1100px) {
  .contact-details { margin-top: 32px; gap: 32px; }
  .contact-ask { margin: auto 0; gap: 22px; padding: 32px 0; }   /* in the middle of its page */
}

/* 404 */
.note-sheet { aspect-ratio: 2.4; display: flex; flex-direction: column; gap: 28px; }
.note-text { margin-top: 12px; }
@media (max-width: 1100px) {
  .note-sheet { gap: 22px; }
  .note-sheet .foot-doc { display: block; }
}

/* Impressum, Datenschutz */
.legal { aspect-ratio: auto; display: flex; flex-direction: column; gap: 48px; }
.legal-body { display: grid; gap: 36px; }
.legal-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 24px; align-items: baseline; }
.legal-sec .t { font-size: 14px; }
.legal-text { display: grid; gap: 14px; max-width: 560px; }
.legal-text .link { font-size: inherit; border-bottom-width: 1px; padding-bottom: 0; overflow-wrap: anywhere; }
.legal .facts { grid-template-columns: 92px 1fr; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover, .legal-links a[aria-current] { color: var(--accent); }
@media (max-width: 760px) {
  .legal { gap: 32px; }
  .legal-body { gap: 28px; }
  .legal-sec { grid-template-columns: 1fr; row-gap: 10px; }
  .legal .foot-doc { display: block; }
}
