/* The identity block (Brief 16): avatar, name, socials, the sentence and Book a call, from one source in three places:
   the pinned top of the homepage sidebar, the case study top bar and the case study sign-off. identity.js writes it into
   <dm-identity size="bar|full">; this file is its only look. Values are the homepage's (:root and .dark of start/aufbau/f4/;
   the pinned top of the chosen sidebar, start/aufbau/x5/ and c1/, measured at 1440: 376 px wide, 16 px gaps, avatar 44,
   name 17/23.8, icons 20 with 12 px gaps, the sentence at the sidebar's one text size 15/22, button 44 high; at 390 its phone
   top: 16 px gaps, the sentence 17/23.8). Every class starts with id-, so nothing here reaches the homepage's or a page's rules. */
@font-face { font-family: 'Identity Geist'; font-weight: 100 900; font-display: swap; src: url('/assets/geist-a369fcf5.woff2') format('woff2'); }
@font-face { font-family: 'Identity Geist Mono'; font-weight: 100 900; font-display: swap; src: url('/assets/geist-mono-fba8f577.woff2') format('woff2'); }

/* the homepage's tokens, light; dark on the homepage (.dark) and on a dark page ground (identity.js sets data-id-ink).
   Dom, 20 Nov 2026: "Projektseiten und Legal ... sollten im dunklen Modus auch dunkel sein." The case pages and Legal take the
   same .dark on <html> as the homepage (identity.js), so these tokens also sit on :root there: --id-bg is the page ground
   (the homepage's --bg), and case.css and Legal paint their ground and ink from them. */
:root, dm-identity, .id-ink {
  --id-bg: #fff;
  --id-fg: #121212; --id-muted: #0000008c;
  --id-btn-bg: #121212; --id-btn-fg: #fff; --id-btn-hover: 255 255 255;
  --id-surface: 0 0 0;                                  /* --surface-hover: hairlines and rings */
  --id-sans: 'Identity Geist', Geist, system-ui, sans-serif;
  --id-mono: 'Identity Geist Mono', 'Geist Mono', ui-monospace, monospace;
}
:root.dark, :is(.dark, :root[data-id-ink="dark"]) :is(dm-identity, .id-ink) {
  --id-bg: #0b0b0b;
  --id-fg: #f4f4f4; --id-muted: #ffffff73;
  --id-btn-bg: #f4f4f4; --id-btn-fg: #0b0b0b; --id-btn-hover: 0 0 0;
  --id-surface: 255 255 255;
}
:root.dark { color-scheme: dark; }

dm-identity { display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; color: var(--id-fg);
  font: 400 17px/23.8px var(--id-sans); letter-spacing: normal; text-align: left; -webkit-font-smoothing: antialiased; }
dm-identity * { box-sizing: border-box; margin: 0; padding: 0; }
dm-identity a { color: inherit; text-decoration: none; }
dm-identity a:focus-visible { outline: 2px solid var(--id-fg); outline-offset: 2px; border-radius: 6px; }
dm-identity img { display: block; max-width: none; }

/* the row: avatar and name (a link home, or the page's h1 on the homepage), the three socials on the right */
.id-row { display: flex; align-items: center; gap: 12px; }
.id-me { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.id-me img { width: 44px; height: 44px; border-radius: 50%; }
.id-name { font: inherit; font-weight: 500; color: var(--id-fg); }   /* the desktop sidebar's name weight, everywhere (fix 50) */
.id-icons { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--id-muted); }
.id-icons a { display: grid; place-items: center; width: 20px; height: 20px; transition: transform 150ms; }
.id-icons a:hover { transform: scale(1.1); }
.id-icons svg { width: 20px; height: 20px; }
.id-sent { font-size: 15px; line-height: 22px; color: var(--id-fg); }
.id-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* the homepage's button: 44 px, a pill, 16 px sides, 17/23.8; on hover the ground grows 3 % and a faint sheen fades in.
   Dom, 19 Nov 2026 (#319): "Alle Buttons, die wir haben, sollten Pillen sein." The corner was 12 px; only the corner changed. */
.id-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 9999px; font-size: 17px; line-height: 23.8px; white-space: nowrap; cursor: pointer; }
dm-identity .id-btn { color: var(--id-btn-fg); }
dm-identity .id-btn:focus-visible { border-radius: 9999px; }
.id-btn::before, .id-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  transition: transform 120ms ease-out, opacity 120ms ease-out; }
.id-btn::before { background: var(--id-btn-bg); }
.id-btn::after { opacity: 0; background: radial-gradient(circle closest-side, rgb(var(--id-btn-hover) / .15), transparent), rgb(var(--id-btn-hover) / .03); }
.id-btn:hover::before, .id-btn:hover::after { transform: scale(1.03); }
.id-btn:hover::after { opacity: 1; }
.id-btn:active::before, .id-btn:active::after { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .id-btn::before, .id-btn::after, .id-icons a { transition: none; } }

/* bar: the compact form in one line */
dm-identity[size="bar"] { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
dm-identity[size="bar"] .id-right { display: flex; align-items: center; gap: 16px; }
/* fix 50: no small button in the bar any more; Book a call is the one .id-btn above (44 high, 12 corner, 17/23.8) everywhere */

/* phones: the homepage's phone top (the sentence at 17/23.8); every target 44 px */
@media (max-width: 767.98px) {
  dm-identity[size="full"] .id-sent { font-size: 17px; line-height: 23.8px; }
  dm-identity[size="full"] .id-icons { gap: 0; margin-right: -12px; }
  dm-identity[size="full"] .id-icons a { width: 44px; height: 44px; }
  dm-identity[size="bar"] .id-icons { display: none; }
}
