/* Gemeinsames Aussehen aller Unterseiten (About, Projects, Artwork, Contact).
   Die Landing Page hat ihr eigenes Layout und nutzt diese Datei nicht. */

@font-face {
  font-family: 'Anybody';
  src: url('../fonts/Anybody%5Bwdth,wght%5D.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.18);
  --surface: #0d0d0d;
  --topbar-h: 64px;
  --page-w: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
}
:root[data-theme="light"] {
  --bg: #f2f2f0;
  --fg: #111;
  --muted: rgba(17, 17, 17, 0.55);
  --line: rgba(17, 17, 17, 0.18);
  --surface: #e8e8e5;
}

* { box-sizing: border-box; }

html { scroll-padding-top: var(--topbar-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Anybody', system-ui, sans-serif;
  font-weight: 350;
  font-size: 17px;
  line-height: 1.55;
  transition: background-color 0.4s, color 0.4s;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Seitenrahmen ---------------------------------------------------- */
.page {
  width: min(100%, var(--page-w));
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 32px) var(--gutter) 64px;
}

/* Topbar (js/site-chrome.js) ---------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 calc(var(--gutter) + 48px) 0 var(--gutter); /* rechts Platz für den Theme-Umschalter */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav { margin-left: auto; }
.topbar ul { display: flex; gap: clamp(14px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.topbar nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 350;
  transition: font-weight 0.3s var(--ease);
}
.topbar nav a:hover, .topbar nav a:focus-visible { font-weight: 750; }
/* Platz für die fette Variante reservieren, damit das Menü beim Hover nicht springt */
.topbar nav a { display: inline-flex; flex-direction: column; }
.topbar nav a::after { content: attr(data-label); font-weight: 750; height: 0; visibility: hidden; overflow: hidden; }
.topbar nav a[aria-current="page"] {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

@media (max-width: 640px) {
  .topbar { gap: 16px; padding-right: 64px; } /* rechts bleibt Platz für den Theme-Umschalter */
  .topbar .brand { display: none; }
  .topbar nav { margin-left: 0; min-width: 0; }
  .topbar ul { gap: 14px; }
  .topbar nav a { font-size: 11px; letter-spacing: 0.08em; }
}

/* Footer ---------------------------------------------------------- */
.footer {
  width: min(100%, var(--page-w));
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* Kästchen-Link, z. B. „Contact me“ --------------------------------- */
.box-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--fg);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.box-link .arrow { transition: transform 0.3s var(--ease); }
.box-link:hover, .box-link:focus-visible { background: var(--fg); color: var(--bg); }
.box-link:hover .arrow, .box-link:focus-visible .arrow { transform: translateX(4px); }

/* Platzhalter-Seiten ---------------------------------------------- */
.placeholder { min-height: 50vh; display: grid; place-content: center; text-align: center; color: var(--muted); }

/* Rechtstexte (Impressum, Datenschutz) ------------------------------ */
.legal { max-width: 70ch; }
.legal h1 { font-size: 28px; font-weight: 750; margin: 0 0 24px; }
.legal h2 { font-size: 17px; font-weight: 750; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 1.2em; }
/* Platzhalter, die vor der Veröffentlichung ersetzt werden müssen */
.legal mark { background: #ffd84d; color: #111; padding: 0 3px; }
