:root {
  --bg: #f7f6f3;
  --fg: #1a1a1a;
  --muted: #716e67;
  --soft: #55534e;
  --line: #d9d6cf;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 7vw, 88px);
}

main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 34rem; }

h1 {
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.portrait {
  display: block;
  width: clamp(128px, 32vw, 168px);
  height: clamp(128px, 32vw, 168px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  background: var(--line);
}

.role { color: var(--muted); margin-top: 0.6rem; font-size: 1.0625rem; }

.bio {
  margin-top: 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--soft);
}
.bio a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.bio a:hover { color: var(--fg); text-decoration-color: currentColor; }

ul { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--line); }
li { border-bottom: 1px solid var(--line); }

ul a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  color: var(--fg);
  text-decoration: none;
}
ul a span { color: var(--muted); font-size: 0.875rem; transition: transform .2s ease; }
ul a:hover span, ul a:focus-visible span { transform: translateX(3px); color: var(--fg); }

a:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

footer { font-size: 0.8125rem; color: var(--muted); padding-top: 3rem; }
footer a { color: inherit; text-underline-offset: 3px; margin-right: 1.25rem; }
footer a:hover { color: var(--fg); }

/* Impressum */
.legal main { justify-content: flex-start; }
.legal h1 { font-size: 1.5rem; margin-bottom: 2rem; }
.legal h2 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 1.75rem 0 0.25rem; }
.legal p, .legal li { font-size: 0.9375rem; }
.legal p + p { margin-top: 0.75rem; }
.legal h3 { font-size: 0.9375rem; font-weight: 500; margin: 1.25rem 0 0.25rem; }
.legal ul { list-style: disc; border: 0; margin: 0.5rem 0 0 1.1rem; }
.legal li { border: 0; }
.legal main a:not(.back) { color: var(--fg); text-underline-offset: 3px; }
.legal main a.plain, .legal main a.plain:hover, .legal main a.plain:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
  cursor: text;
}
.legal .back { color: var(--muted); font-size: 0.875rem; text-decoration: none; display: inline-block; margin-bottom: 3rem; }
.legal .back:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
