/* ==========================================================
   Florian Döhnert-Breyer — Personal One-Pager
   Light editorial style: narrow column, quiet zinc palette,
   type-led, subtle motion.
   ========================================================== */

:root {
  --bg: #fafaf9;
  --bg-soft: #f4f4f3;
  --ink: #18181b;
  --ink-soft: #52525b;
  --ink-faint: #a1a1aa;
  --line: #e4e4e7;
  --accent: #1d4ed8;
  --card: #ffffff;
  --max: 44rem;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #dbeafe; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ---------- header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
header.site.scrolled { border-bottom-color: var(--line); }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav .brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: color .2s;
}
.nav .brand:hover { color: var(--accent); }
.nav .logo { width: 2.75rem; height: 2.75rem; display: block; }

.nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  font-size: .85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav ul a { transition: color .2s; }
.nav ul a:hover { color: var(--ink); }

.lang {
  font-size: .8rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .7rem;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.lang:hover { color: var(--ink); border-color: var(--ink-faint); }

/* ---------- mobile menu ---------- */

.menu-btn { display: none; }

@media (max-width: 700px) {
  .nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(24, 24, 27, .18);
    padding: .4rem 1.5rem 1rem;
    font-size: 1.05rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  body.menu-open .nav ul {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav ul li:last-child { border-bottom: 0; }
  .nav ul a { display: block; padding: .9rem .1rem; }

  .lang { margin-left: auto; }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: .1rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
  }
  .menu-btn span {
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s ease;
  }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 5.5rem 4rem;
}

.hero .photo {
  position: absolute;
  right: -4rem;
  top: 1.5rem;
  width: min(22rem, 42vw);
  height: auto;
  border: 0;
  border-radius: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
}

.hero h1,
.hero .tagline,
.hero .intro,
.hero .cta-row {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .hero { padding-top: 3rem; }
  .hero .photo {
    position: static;
    display: block;
    width: 70%;
    margin: 0 0 .5rem auto;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero .tagline {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  max-width: 28rem;
}

.hero .intro {
  margin-top: 1.6rem;
  max-width: 28rem;
  color: var(--ink-soft);
}

.hero .cta-row {
  margin-top: 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 550;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s, transform .15s;
}
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: #000; transform: translateY(-1px); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- sections ---------- */

section { padding-block: 5rem 4.25rem; }
section.tight { padding-top: 0; }

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .98rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--ink);
  flex: none;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: -0.025em;
  font-weight: 680;
  margin-bottom: 1.25rem;
}

section p + p { margin-top: 1rem; }
section .prose { color: var(--ink-soft); }
section .prose strong { color: var(--ink); font-weight: 620; }
section .prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color .2s, color .2s;
}
section .prose a:hover { color: var(--accent); border-color: var(--accent); }

hr.sep {
  border: 0;
  border-top: 1px solid #dcdce0;
  width: 100%;
  margin: 1.5rem 0 0;
}

/* ---------- key facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.fact {
  background: var(--card);
  padding: 1.5rem 1.25rem 1.35rem;
}

.fact .num {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fact .label {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- venture cards ---------- */

.cards { display: grid; gap: 1rem; }

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.6rem;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
  will-change: transform;
}
.card:hover {
  border-color: var(--ink-faint);
  box-shadow: 0 18px 40px -18px rgba(24, 24, 27, .3);
}

.card .card-id {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.card .card-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .4rem;
  object-fit: contain;
  flex: none;
  color: var(--ink);
}

.card .card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card .role {
  font-size: .78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.card p {
  margin-top: .5rem;
  font-size: .93rem;
  color: var(--ink-soft);
}

.card .arrow {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
  color: var(--ink-faint);
  font-size: .95rem;
}
.card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.tl-progress {
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-2.1rem + 0.5px);
  top: 26.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-faint);
}
.timeline li:last-child { border-bottom: 0; }

.timeline .year {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: .15rem;
}

.timeline .what { font-size: .97rem; }
.timeline .what strong { font-weight: 640; letter-spacing: -0.01em; }
.timeline .what span { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: .15rem; }
.timeline .what a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.timeline .what a:hover { border-color: var(--ink); }

@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- personal / mosaic ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem 1.35rem;
}

.tile .doodle {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: .75rem;
  color: #2d2a26;
}
.tile h3 { font-size: .98rem; font-weight: 650; letter-spacing: -0.015em; }
.tile p { margin-top: .35rem; font-size: .87rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; }
}

/* ---------- press ---------- */

.press { list-style: none; }

.press li { border-bottom: 1px solid var(--line); }
.press li:last-child { border-bottom: 0; }

.press a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem .25rem;
  transition: background .2s;
  border-radius: .5rem;
}
.press a:hover { background: var(--bg-soft); }

.press .outlet {
  font-size: .8rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.press .title { font-size: .95rem; font-weight: 520; }

/* ---------- quote ---------- */

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 38rem;
  border-left: 3px solid var(--ink);
  padding: .35rem 0 .35rem 1.35rem;
  margin: 0 0 2.25rem;
}
.quote.credo {
  margin: 2.75rem 0 0;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  border-left-width: 4px;
}

.quote .attr {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .85rem;
  color: var(--ink-faint);
}

/* ---------- contact / footer ---------- */

.contact-links {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: .82rem;
  color: var(--ink-faint);
}

footer .foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { transition: color .2s; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 1rem; }

/* ---------- motion ----------
   Reveals laufen über CSS-Transitions (robust, auch ohne WAAPI);
   script.js vergibt .pre/.in und Stagger-Delays. Motion-Library
   übernimmt nur Scroll-Progress und Hover-Springs. */

.pre {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition:
    opacity .75s cubic-bezier(.21, .47, .32, .98),
    transform .75s cubic-bezier(.21, .47, .32, .98),
    filter .75s cubic-bezier(.21, .47, .32, .98);
}
.pre.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; filter: none; transition: none; }
}
