/*
 * bohni.online Layout
 * Der Font ist Inter; Systemschriften bleiben als Fallback.
 */
@font-face {
  font-family: "Inter";
  src: url("./InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #eeeeee;
  --surface: #ffffff;
  --surface-alt: #f9f9f9;
  --surface-soft: #f7f7f7;
  --hover-surface: #f6f6f8;
  --hover-alt: #f1f1f4;
  --text: #222222;
  --muted: #606060;
  --quiet: #777777;
  --line: #c9c9c9;
  --hairline: #dddddd;
  --accent: #5649b0;
  --accent-border: #5649b0;
  --accent-soft: rgb(86 73 176 / 7%);
  --shadow: 0 7px 36px rgb(34 34 34 / 4%);
  --radius: 5px;
  --topbar-height: 92px;
  --tabs-height: 51px;
  --sticky-offset: calc(var(--topbar-height) + var(--tabs-height) + 16px);
  --panel-offset: calc(var(--topbar-height) + var(--tabs-height));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c1c1c;
  --surface: #1e1e1e;
  --surface-alt: #282828;
  --surface-soft: #262626;
  --hover-surface: #252525;
  --hover-alt: #303030;
  --text: #eeeeee;
  --muted: #bbbbbb;
  --quiet: #929292;
  --line: #454545;
  --hairline: #383838;
  --accent: #b4a8f6;
  --accent-border: #9184ee;
  --accent-soft: rgb(180 168 246 / 9%);
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #1c1c1c;
    --surface: #1e1e1e;
    --surface-alt: #282828;
    --surface-soft: #262626;
    --hover-surface: #252525;
    --hover-alt: #303030;
    --text: #eeeeee;
    --muted: #bbbbbb;
    --quiet: #929292;
    --line: #454545;
    --hairline: #383838;
    --accent: #b4a8f6;
    --accent-border: #9184ee;
    --accent-soft: rgb(180 168 246 / 9%);
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.66;
}
a {
  color: var(--text);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 600; letter-spacing: -.027em; }
p + p { margin-top: .85em; }
strong { font-weight: 650; }
::selection { background: var(--accent-soft); color: var(--text); }
[id] { scroll-margin-top: var(--sticky-offset); }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:target { scroll-margin-top: var(--sticky-offset); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 101;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--accent-border);
}
.skip-link:focus { transform: none; }

.site-shell, .site-topbar-inner { width: min(100% - 56px, 1080px); margin-inline: auto; }
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
}
.site-topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding-block: 11px 12px;
}
.eyebrow {
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .145em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
.site-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: fit-content;
  font-size: clamp(1.38rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -.048em;
  line-height: 1.25;
  text-decoration: none;
}
.site-name:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-border); }
.name-period { color: var(--accent); }
.role-line {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.role-line span { color: var(--quiet); padding-inline: .15em; }

.theme-control {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  flex: none;
  min-width: 0;
}
.theme-control label { position: relative; display: block; cursor: pointer; }
.theme-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.theme-control label > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  position: relative;
  color: var(--muted);
  border-radius: var(--radius);
  transition: background-color .14s ease, color .14s ease;
}
.theme-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-control label > span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--accent-border);
  opacity: 0;
}
.theme-control input:checked + span { color: var(--text); }
.theme-control input:checked + span::after { opacity: 1; }
.theme-control label:hover span { background: var(--hover-surface); }

.intro { max-width: 840px; margin-top: clamp(48px, 7vw, 82px); }
.intro h1 { font-size: clamp(2.15rem, 5vw, 3.3rem); letter-spacing: -.055em; font-weight: 630; }
.intro p { max-width: 780px; color: var(--muted); font-size: clamp(1.02rem, 1.55vw, 1.12rem); line-height: 1.76; margin-top: 20px; }

.primary-nav {
  display: flex;
  gap: 38px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 78px);
}
/* Die Tabs bleiben unter der Kopfzeile stehen, nicht nur innerhalb der Einleitung. */
.js .primary-nav {
  position: sticky;
  /* Leichte Überlappung verhindert Subpixel-Lücken mit durchscheinendem Inhalt. */
  top: calc(var(--topbar-height) - 1px);
  z-index: 40;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 10px 2px 15px;
  font-weight: 575;
  font-size: .99rem;
  text-decoration: none;
  color: var(--muted);
}
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); }
.primary-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-border);
}

main {
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.content-panel { padding: clamp(28px, 5.4vw, 62px); }
.content-panel[id], .content-panel[id]:target { scroll-margin-top: var(--panel-offset); }
.js .content-panel:not(.is-active) { display: none; }
.section-opening { max-width: 750px; padding-bottom: 30px; }
.section-opening h2 { font-size: clamp(1.85rem, 3.5vw, 2.35rem); margin-top: 6px; }
.section-opening p:last-child { margin-top: 14px; color: var(--muted); line-height: 1.73; }

.current-work {
  padding: 26px clamp(20px, 4vw, 34px);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-left: 1px solid var(--accent-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 5px 0 48px;
  transition: background-color .16s ease, border-color .16s ease;
}
.current-work-label {
  display: flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 650; color: var(--muted);
  text-transform: uppercase; letter-spacing: .10em;
}
.current-work-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-border); }
.current-work h3 { margin-top: 12px; font-size: clamp(1.06rem, 2vw, 1.22rem); }
.current-work p { margin-top: 11px; color: var(--muted); font-size: .94rem; line-height: 1.74; }

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; width: 1px;
  background: var(--hairline); top: 9px; bottom: 26px; left: 184px;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  column-gap: 56px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-entry::before {
  content: "";
  position: absolute; left: 179px; top: 7px; width: 11px; height: 11px;
  border: 2px solid var(--accent-border);
  background: var(--surface);
  border-radius: 50%;
}
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-date {
  display: flex; justify-content: flex-start; align-items: flex-end;
  flex-direction: column;
  gap: 0;
  color: var(--quiet);
  font-size: .79rem;
  line-height: 1.45;
  text-align: right;
  font-weight: 525;
  padding-top: 2px;
}
.timeline-body { padding-bottom: 5px; }
.timeline-body h3 { font-size: 1.14rem; letter-spacing: -.027em; }
.timeline-body p { margin-top: 11px; color: var(--muted); font-size: .92rem; line-height: 1.72; }
.timeline-body .entry-role { margin-top: 5px; font-size: .82rem; font-weight: 545; color: var(--text); }
.timeline-body .role-note { font-size: .78rem; font-weight: 400; color: var(--quiet); }
.entry-links {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 5px 17px; margin-top: 14px;
}
.entry-links a { font-size: .80rem; font-weight: 550; }
.entry-links a span, .project-back a span { color: var(--accent); }
.entry-links span, .project-back span { display: inline-block; font-size: .85em; }
.timeline-entry--quiet h3 { color: var(--muted); font-size: 1.04rem; font-weight: 500; }
.timeline-entry--quiet::before { border-color: var(--line); background: var(--surface-alt); }
.section-end-link {
  border-top: 1px solid var(--hairline);
  margin-top: 45px; padding-top: 24px; color: var(--muted);
  font-size: .88rem;
}
.section-end-link a { font-weight: 600; }

.project-group { margin-top: 32px; }
.project-group + .project-group { margin-top: 82px; }
.group-heading {
  display: grid; grid-template-columns: 56px minmax(0,1fr);
  column-gap: 12px;
  border-top: 1px solid var(--line); padding: 23px 0 30px;
}
.group-number { color: var(--quiet); font-weight: 650; font-size: .95rem; padding-top: 18px; letter-spacing: -.02em; }
.group-heading h3 { font-size: clamp(1.35rem, 2.7vw, 1.85rem); margin-top: 4px; }
.group-heading p:last-child { margin-top: 11px; color: var(--muted); font-size: .89rem; max-width: 680px; }
.project {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 25px clamp(20px, 3vw, 32px);
  margin: 0 0 18px;
  scroll-margin-top: var(--sticky-offset);
  transition: background-color .16s ease, border-color .16s ease;
}
.project-header { margin-bottom: 16px; }
.project-kind {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .69rem;
  letter-spacing: .115em;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 9px;
}
.project h4 { font-size: clamp(1.18rem, 2.35vw, 1.47rem); }
.project-subtitle { color: var(--quiet); margin-top: 10px; font-size: .79rem; line-height: 1.55; }
.project > p:not(.project-back), .project-details p {
  font-size: .91rem; color: var(--muted); line-height: 1.74;
}
.project > p + p { margin-top: 11px; }
.project--lead { border-left: 2px solid var(--accent-border); padding: clamp(25px, 4vw, 40px); background: var(--surface-alt); margin-bottom: 25px; }
.project--lead h4 { font-size: clamp(1.38rem, 2.75vw, 1.85rem); }
.project--lead .project-summary { color: var(--text) !important; font-size: .99rem !important; line-height: 1.7; }
.project-details {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 27px 30px; margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.project-details h5 { font-size: .94rem; margin-bottom: 8px; font-weight: 650; }
.project--medium { border-left: 2px solid var(--line); }
.project--compact { padding-top: 21px; padding-bottom: 19px; background: var(--surface); }
.project--compact h4 { font-size: 1.15rem; }
.project-back {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  border-top: 1px solid var(--hairline);
  margin-top: 26px !important;
  padding-top: 15px;
  color: var(--quiet); font-size: .79rem; line-height: 1.65;
}
.project-back a { font-weight: 550; }
.project-reference {
  padding: 10px 5px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted); font-size: .84rem;
  scroll-margin-top: var(--sticky-offset);
}
.project-reference .project-kind { margin-bottom: 6px; }
.project-reference strong { color: var(--text); }
.project-reference a { margin-left: 5px; }
.project--finale { margin-bottom: 0; }

.site-footer {
  position: relative;
  padding: 26px 2px 54px;
  color: var(--quiet); font-size: .82rem; line-height: 1.7;
}
.footer-overview {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: clamp(125px, 13%, 155px); align-items: start;
}
.footer-overview > * { min-width: 0; padding-right: 16px; }
.footer-heading { display: block; color: var(--muted); font-weight: 600; }
.site-footer address { display: flex; flex-direction: column; font-style: normal; }
.footer-contact a { display: block; overflow-wrap: anywhere; }
.footer-privacy summary {
  position: absolute; top: 26px; right: 2px;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-weight: 600;
  cursor: pointer; list-style: none;
}
.footer-privacy summary::-webkit-details-marker { display: none; }
.footer-privacy summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.footer-privacy[open] summary::after { transform: translateY(2px) rotate(225deg); }
.footer-privacy summary:hover { color: var(--text); }
.footer-privacy summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.footer-privacy-copy {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: .79rem; line-height: 1.7;
}

@media (hover: hover) and (pointer: fine) {
  .current-work:hover {
    background: var(--hover-alt);
    border-color: var(--line);
    border-left-color: var(--accent-border);
  }
  .project:hover { background: var(--hover-surface); border-color: var(--line); }
  .project--lead:hover { background: var(--hover-alt); }
}

@media (max-width: 760px) {
  :root { --topbar-height: 108px; }
  .site-shell, .site-topbar-inner { width: min(100% - 32px, 620px); }
  .site-topbar-inner { column-gap: 8px; }
  .intro { margin-top: 42px; }
  .primary-nav { margin-top: 40px; }
  .content-panel { padding: 30px 20px 38px; }
  .timeline::before { left: 9px; top: 8px; bottom: 12px; }
  .timeline-entry { display: block; padding-left: 34px; padding-bottom: 34px; }
  .timeline-entry::before { left: 4px; top: 5px; }
  .timeline-date { display: flex; flex-direction: row; gap: 6px; text-align: left; align-items: center; margin-bottom: 10px; font-size: .76rem; }
  .timeline-body h3 { font-size: 1.11rem; }
  .project-details { grid-template-columns: 1fr; gap: 21px; }
  .group-heading { grid-template-columns: 42px minmax(0,1fr); }
  .group-number { padding-top: 18px; }
  .project-group + .project-group { margin-top: 62px; }
  .footer-overview { grid-template-columns: 1fr; padding-right: 0; row-gap: 14px; }
  .footer-privacy summary { position: static; margin-top: 14px; }
}
@media (max-width: 420px) {
  :root { --topbar-height: 124px; }
  .site-shell, .site-topbar-inner { width: min(100% - 24px, 620px); }
  .role-line { font-size: .79rem; }
  .theme-control { gap: 1px; }
  .theme-control label > span { width: 38px; height: 40px; }
  .content-panel { padding: 25px 16px 34px; }
  .intro h1 { font-size: 2.05rem; }
  .group-heading { grid-template-columns: 1fr; }
  .group-number { padding-top: 0; margin-bottom: 4px; }
  .project, .project--lead { padding: 22px 17px; }
  .site-footer { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-control label > span, .project, .current-work { transition: none; }
}
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --page: white; --surface: white; --surface-alt: white; --text: black; --muted: #333; --quiet: #555; --line: #bbb; --hairline: #ddd; --accent: #333; --accent-border: #333; }
  .site-shell { width: 100%; }
  .site-topbar { position: static; border: 0; }
  .site-topbar-inner { width: 100%; }
  .theme-control, .primary-nav, .skip-link { display: none !important; }
  .js .content-panel:not(.is-active) { display: block; }
  main { border: 0; box-shadow: none; }
  .content-panel { padding: 18px 0; }
  .project { break-inside: avoid; }
}
