@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/web/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/web/opensans-latin.woff2") format("woff2"); }

/* Layout: Aufbau und Bildsprache der Original-Seite (S/W-Foto im Kopf, Gelb als Akzent), modern in einer Spalte bis 70rem; auf dem Handy einspaltig. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #666660;
  --line: #e3e3de;
  --accent: #ffc20e;
  --accent-ink: #1c1c1c;
  --hero-fg: #ffffff;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616; --surface: #1f1f1f; --ink: #ededea; --muted: #a2a29b; --line: #2e2e2c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161616; --surface: #1f1f1f; --ink: #ededea; --muted: #a2a29b; --line: #2e2e2c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
.wrap {
  max-width: 70rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); }

/* Kopf mit Foto */
.hero { position: relative; color: var(--hero-fg); background: #111; overflow: hidden; max-width: 96rem; margin-inline: auto; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.1) 75%); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: clamp(30rem, 70vh, 44rem); padding-block: 1.5rem 3rem; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; }
.hero-text { margin-top: auto; max-width: 34rem; }
.hero-text .kicker { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; margin: 0 0 0.25rem; }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1rem; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero .role { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); margin: 0; }
.hero .role strong { font-weight: 600; }

/* Abschnitte */
section.block .wrap { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
section.block + section.block .wrap { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); line-height: 1.15; font-weight: 800; margin: 0 0 2rem; text-wrap: balance; }
h2::after { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--accent); margin-top: 0.75rem; }
p { margin: 0 0 1rem; max-width: 62ch; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.about-photo { width: 100%; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; }
.about .info { margin-top: 1.75rem; }
.info { margin: 0; display: grid; gap: 0.85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.5rem; }
.info div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; }
.info dt { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.info dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.interests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.interests h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.interests p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.project { text-decoration: none; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.project .pic { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--line); }
.project .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .project .pic img { transition: transform .35s ease; }
  .project:hover .pic img { transform: scale(1.04); }
}
.project h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.project p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.98rem; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; margin-top: clamp(3.5rem, 8vw, 5rem); padding-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
.story-label { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.story h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; font-weight: 800; margin: 0 0 1.25rem; text-wrap: balance; }
.story-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.story-photos figure { margin: 0; min-width: 0; }
.story-photos img { width: 100%; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }
.story-photos .wide { grid-column: 1 / -1; }
.story-photos .wide img { aspect-ratio: 3 / 2; object-position: 50% 45%; }
.story-photos figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.experience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3.5rem; align-items: start; }
.experience .portrait { width: 100%; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; }
.experience .lead { color: var(--muted); margin-bottom: 2rem; }
.cv { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; border-left: 2px solid var(--line); }
.cv li { position: relative; padding-left: 1.5rem; }
.cv li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.cv li.now::before { background: var(--accent); border-color: var(--accent); }
.cv .when { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv h3 { margin: 0.1rem 0 0.25rem; font-size: 1.1rem; font-weight: 700; }
.cv p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.mail { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 800; overflow-wrap: anywhere; user-select: all; min-width: 0; }
.copy { font: 600 0.95rem var(--font-body); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; }
.status { color: var(--muted); font-size: 0.95rem; min-height: 1.5em; margin-top: 0.5rem; }

footer a { display: inline-block; padding-block: 0.6rem; position: relative; z-index: 1; }
footer .wrap { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.5rem 2.5rem; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 860px) {
  .about, .experience, .story { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 22rem; }
  .experience .portrait { max-width: 22rem; }
  .interests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.subhead-os { margin: 3rem 0 0; font-size: 1.15rem; }
.project-mini { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 0.9rem 1rem; max-width: 30rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.project-mini img { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 8px; }
.project-mini strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.project-mini:hover { border-color: var(--accent); }
@media (max-width: 600px) {
  .hero > img { object-position: 72% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 14%, rgba(0,0,0,0) 32%), linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.2) 100%); }
  .hero .wrap { min-height: 34rem; }
  .interests { grid-template-columns: 1fr; gap: 1.5rem; }
  .projects { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .projects .project:first-child { grid-column: 1 / -1; }
}

/* Rechtliche Unterseiten */
.subhead { background: #111; color: var(--hero-fg); }
.subhead .wrap { padding-block: 1.5rem; }
.subhead .top nav a { color: var(--hero-fg); }
.legal { overflow-wrap: break-word; hyphens: auto; }
.legal .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; margin: 0 0 2rem; }
.legal h1::after { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--accent); margin-top: 0.75rem; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
.legal h2::after { display: none; }
.legal h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.legal ul { max-width: 62ch; padding-left: 1.25rem; margin: 0 0 1rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.todo { background: var(--accent); color: var(--accent-ink); padding: 0 0.3em; border-radius: 3px; font-weight: 600; }
.back { display: inline-block; margin-top: 2.5rem; }
