/* MONO – Designsystem
   Fläche schwarz oder weiß, Schrift Hanken Grotesk, klare Kanten.
   Rot und Grün kommen hier bewusst nicht vor. */

/* Schriften – lokal, SIL Open Font License (siehe /fonts/OFL.txt) */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2");
}

/* Tokens – Theme "hell" (Standard) */
:root {
  color-scheme: light dark;

  --white: #ffffff;
  --black: #0a0a0a;

  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-muted: #6b6b6b;
  --hair: rgba(0, 0, 0, 0.08);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 12px;
  --radius-button: 7px;
  --radius-full: 999px;
  --shadow: 0 5px 14px rgba(0, 0, 0, 0.12);

  --measure: 65ch;
  --gutter: 20px;
}

/* Theme "dunkel" */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0a0a0a;
    --ink: #ffffff;
    --ink-muted: #a3a3a3; /* nie #6b6b6b auf Schwarz */
    --hair: rgba(255, 255, 255, 0.14);
  }
}

/* Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
address {
  margin: 0;
}

address {
  font-style: normal;
}

/* Links: Unterstreichung oder Gewicht, nie farbig */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Typo-Stufen */
.web-display {
  font-size: 48px; /* web-display-s auf Mobile */
  line-height: 50px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.web-h1 {
  font-size: 34px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.web-h2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.web-lead {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.web-body {
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
}

.web-kicker {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink-muted);
}

.web-caption {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .web-display {
    font-size: 64px;
    line-height: 62px;
    letter-spacing: -2px;
  }
}

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1;
}

/* Wortmarke (klein, Unterseiten) */
.site-header {
  padding-top: 24px;
}

.wordmark {
  display: inline-block;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

/* Startseite */
.hero {
  padding-top: 72px;
  padding-bottom: 40px;
}

.hero .web-kicker {
  margin-bottom: 12px;
}

.hero .web-display {
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 120px;
  }
}

/* Buttons */
.links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  padding-bottom: 72px;
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: opacity 120ms ease;
}

.button:hover {
  text-decoration: none;
  opacity: 0.88;
}

.button:active {
  opacity: 0.8;
}

.button-meta {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.1px;
  opacity: 0.72;
}

/* Karte */
.card {
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 20px;
}

/* Rechtstexte */
.legal {
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal > .web-h1 {
  margin-bottom: 32px;
}

.legal section + section {
  margin-top: 36px;
}

.legal .web-h2 {
  margin-bottom: 10px;
}

.legal p + p,
.legal p + address,
.legal address + p,
.legal ul + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  padding-left: 20px;
}

.todo {
  margin-bottom: 40px;
}

.todo .web-kicker {
  margin-bottom: 6px;
}

.placeholder {
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 24px 0 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  /* Mindestens 44px Trefferfläche auf Touch */
  display: inline-block;
  padding: 13px 0;
  margin: -13px 0;
}

.footer-nav a[aria-current="page"] {
  font-weight: 800;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* Fotos – Kante 12px wie Karten, kein Schatten */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  background: var(--hair);
}

/* Avatar Startseite */
.avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  background: var(--hair);
  object-fit: cover;
}

@media (min-width: 640px) {
  .avatar {
    width: 120px;
    height: 120px;
  }
}

.hero-more {
  margin-top: 16px;
  font-weight: 800;
}

/* Über mich */
.about {
  padding-top: 56px;
  padding-bottom: 72px;
}

.about-hero {
  display: grid;
  gap: 32px;
  margin-bottom: 56px;
}

.about-intro .web-kicker {
  margin-bottom: 12px;
}

.about-intro .web-display {
  margin-bottom: 20px;
}

.about-portrait {
  max-width: 400px;
}

@media (min-width: 720px) {
  .about-hero {
    grid-template-columns: 1fr 240px;
    align-items: end;
  }

  .about-portrait {
    max-width: none;
  }
}

.about section + section,
.about figure + section {
  margin-top: 48px;
}

.about .web-h2 {
  margin-bottom: 16px;
}

.about-figure {
  margin: 56px 0 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--hair);
}

.timeline .web-caption {
  margin-bottom: 2px;
}

.timeline .web-lead + p {
  margin-top: 4px;
}

.links-compact {
  padding-bottom: 0;
}
