/* ==========================================================================
   Ben Berscheid – Personal Website
   Ein Stylesheet, keine externen Ressourcen.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #fbfbf9;          /* gebrochenes Weiß */
  --surface: #f3f3f0;
  --ink: #111113;         /* Anthrazit/Schwarz */
  --ink-2: #3a3a3d;
  --muted: #6b6b70;       /* 5.1:1 auf --bg */
  --line: #e2e2dd;
  --line-strong: #cfcfc9;

  /* Systemschriften: SF Pro auf Apple-Geräten, Segoe UI / Roboto andernorts.
     Es werden keine Schriftdateien geladen (siehe README → Typografie). */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 60px;
  --section-space: clamp(96px, 13vw, 176px);
  --radius: clamp(12px, 1.6vw, 20px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Typografische Skala */
  --fs-display: clamp(2.75rem, 11vw, 6rem);
  --fs-h2: clamp(2.125rem, 4.4vw, 3.5rem);
  --fs-statement: clamp(1.75rem, 4vw, 3.125rem);
  --fs-lead: clamp(1.25rem, 2.2vw, 1.75rem);

  --ink-soft: #85858a;    /* zweite Headline-Zeile, nur für große Schrift (3.5:1) */
  --surface-2: #efeee9;   /* Tonfläche hinter dem Hero-Foto */

  /* BECASO: Farben exakt aus dem Logo übernommen */
  --venture-bg: #0f3027;
  --venture-ink: #eeeade;
  --venture-muted: rgba(238, 234, 222, .72);
  --venture-line: rgba(238, 234, 222, .18);

  /* Bildausschnitte (object-position), abgestimmt auf die Originalfotos. */
  --hero-focus: 50% 45%;
  --sport-focus: 50% 92%;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

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

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

::selection { background: var(--ink); color: var(--bg); }

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

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: .9375rem;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 249, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__name {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current]::after { transform: scaleX(1); }

/* Sehr schmale Displays: Name ausblenden, Navigation nutzt die volle Breite. */
@media (max-width: 380px) {
  .site-header__name { display: none; }
  .site-header__inner { justify-content: center; }
  .site-nav { gap: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;   /* Tonfläche hinter dem Foto endet am Fensterrand */
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 104px));
}
.hero__inner {
  display: grid;
  row-gap: clamp(48px, 9vw, 72px);
}

.hero__name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__name::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ink);
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero__line { display: block; text-wrap: balance; }
.hero__line--soft { color: var(--ink-soft); }

.hero__sub {
  max-width: 30ch;
  margin-top: clamp(24px, 3.2vw, 40px);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink-2);
}

.hero__scroll {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 6px;
  transition: color .2s var(--ease);
}
.hero__scroll-line {
  width: 40px; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.hero__scroll:hover { color: var(--ink); }
.hero__scroll:hover .hero__scroll-line { transform: scaleX(1.5); }

/* Foto: bewusst kompakt (Original 920 px), dahinter eine versetzte Tonfläche. */
.hero__visual {
  position: relative;
  width: 84%;
}
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16%;
  bottom: -28px;
  left: 30%;
  right: calc(-1 * var(--gutter) - 16%);
  background: var(--surface-2);
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--hero-focus);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 640px) {
  .hero__visual { width: 66%; }
  .hero__visual::before { right: calc(-1 * var(--gutter) - 40%); }
}
@media (min-width: 720px) { .hero__scroll { display: inline-flex; } }

/* Desktop: Text links, Hochformat-Foto rechts. */
@media (min-width: 900px) {
  .hero {
    min-height: min(100svh, 960px);
    display: flex;
    align-items: center;
    padding-bottom: clamp(40px, 5vw, 72px);
  }
  .hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .hero__text { grid-column: 1 / span 7; }
  .hero__title { font-size: clamp(3.75rem, 6.6vw, 6.25rem); }
  .hero__visual {
    grid-column: 8 / span 5;
    justify-self: end;
    width: 100%;
    max-width: 460px;
  }
  .hero__visual::before {
    top: 14%;
    bottom: -40px;
    left: -22%;
    right: -50vw;
  }
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: var(--section-space);
  /* Beim Sprung über die Navigation landet die Überschrift knapp unter der Leiste. */
  scroll-margin-top: calc(56px - var(--section-space));
}
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { margin-top: var(--section-space); border-top: 1px solid var(--line); }
.section--venture,
.section--venture + .section { border-top: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .section__head {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
  .section__head--static { position: static; }
  .section__body { grid-column: 5 / span 8; }
}
@media (min-width: 1200px) {
  .section__body { grid-column: 5 / span 7; }
}

.section__index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.section__index::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .5;
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}

/* Fließtext */
.prose { max-width: 64ch; }
.prose p + p { margin-top: 1.15em; }
.prose p { color: var(--ink-2); }
/* Silbentrennung nur auf schmalen Displays, wo lange deutsche Wörter sonst Lücken reißen. */
@media (max-width: 599px) {
  .prose p { hyphens: auto; -webkit-hyphens: auto; }
}

.lead {
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -.012em;
}
.prose .lead { color: var(--ink); }
.prose .lead + p { margin-top: 1.6em; }

/* About: großer Einstieg, Rest zweispaltig */
.lead--display {
  font-size: var(--fs-lead);
  line-height: 1.4;
  letter-spacing: -.02em;
  font-weight: 500;
  text-wrap: pretty;
}
.columns {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.columns p { break-inside: avoid; }
@media (min-width: 1100px) {
  .section--about .prose { max-width: none; }
  .columns {
    columns: 2;
    column-gap: 48px;
  }
  .columns p { hyphens: auto; -webkit-hyphens: auto; }
  .columns p:first-child + p { margin-top: 1.15em; }
}

/* ---------- Currently Building (BECASO) ---------- */
.section--venture {
  background: var(--venture-bg);
  color: var(--venture-ink);
}
.section--venture ::selection { background: var(--venture-ink); color: var(--venture-bg); }
.section--venture :focus-visible { outline-color: var(--venture-ink); }
.section--venture .section__index { color: var(--venture-muted); }
.section--venture .prose p { color: var(--venture-muted); }
.section--venture .prose .lead { color: var(--venture-ink); }

.venture {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(32px, 6vw, 56px);
}

/* Das Logo wird unverändert gezeigt. Sein Hintergrund entspricht exakt der
   Abschnittsfarbe; die weiche Maske außerhalb des Kreises verhindert nur
   sichtbare Kanten durch Kompression. */
.venture__mark { --logo: clamp(220px, 30vw, 360px); }
.venture__logo {
  width: var(--logo);
  height: var(--logo);
  margin-left: calc(var(--logo) * -.08);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%);
}

.facts {
  display: grid;
  margin-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--venture-line);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--venture-line);
}
@media (min-width: 560px) {
  .facts > div { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
}
.facts dt {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--venture-muted);
  padding-top: .2em;
}
.facts dd { font-size: .9688rem; color: var(--venture-ink); }

@media (min-width: 900px) {
  .venture {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .venture__head { grid-column: 1 / -1; }
  .venture__mark { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 48px); }
  .venture__body { grid-column: 7 / span 6; }
}
@media (min-width: 1200px) {
  .venture__body { grid-column: 7 / span 5; }
}

/* ---------- Beyond Business ---------- */
.statement {
  max-width: 20ch;
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
  margin-top: clamp(64px, 10vw, 144px);
}
.story__text p { max-width: 40ch; }
.story__media { position: relative; }
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.story--sport .story__media img { object-position: var(--sport-focus); }

/* Feiner, versetzter Rahmen als grafischer Akzent hinter dem Sportfoto. */
.story--sport .story__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.story--sport .story__media { width: 74%; isolation: isolate; }
.story--travel .story__media { width: 90%; margin-left: auto; }

@media (min-width: 600px) and (max-width: 899px) {
  .story--sport .story__media { width: 56%; }
  .story--travel .story__media { width: 72%; }
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .story__text, .story__media { grid-row: 1; }
  .story__text p { font-size: 1.125rem; line-height: 1.6; }

  .story--sport .story__media { grid-column: 2 / span 4; width: 100%; }
  .story--sport .story__text  { grid-column: 8 / span 4; align-self: center; }

  .story--travel .story__text  { grid-column: 2 / span 4; align-self: end; padding-bottom: clamp(24px, 4vw, 64px); }
  .story--travel .story__media { grid-column: 7 / span 6; width: 100%; max-width: 600px; margin: 0 0 0 auto; }
}

.story__text p::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin-bottom: 20px;
  background: var(--ink);
}

.beyond__outro { margin-top: clamp(64px, 10vw, 144px); }
.beyond__outro .section__body {
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

/* ---------- Let’s Connect ---------- */
.connect__title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.05em;
}

.connect__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(56px, 8vw, 80px);
  margin-top: clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .connect__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .connect__social { grid-column: 1 / span 5; }
  .connect__calls  { grid-column: 7 / span 6; }
}

.socials { border-top: 1px solid var(--ink); }
.social {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon name arrow" "icon handle arrow";
  align-items: center;
  column-gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.social__icon { grid-area: icon; width: 28px; height: 28px; color: var(--ink); }
.social__name {
  grid-area: name;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.social__handle { grid-area: handle; font-size: .9375rem; color: var(--muted); }
.social .arrow { grid-area: arrow; }

.arrow {
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.social:hover .arrow,
.call:hover .arrow { transform: translate(3px, -3px); color: var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .social:hover, .call:hover { padding-left: 8px; }
}

.subhead {
  margin-bottom: 0;
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.calls { border-top: 1px solid var(--ink); }
.call {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num duration"
    "num cta";
  align-items: baseline;
  column-gap: 12px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.call__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}
.call__title {
  grid-area: title;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.call__duration {
  grid-area: duration;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.call__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .9375rem;
  color: var(--ink-2);
}
@media (min-width: 560px) {
  .call {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "num title cta"
      "num duration cta";
    align-items: center;
  }
  .call__num { align-self: start; padding-top: .45em; }
  .call__cta { margin-top: 0; }
}

.calls__note {
  margin-top: 14px;
  font-size: .8125rem;
  color: var(--muted);
}

.mail {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: .9375rem;
  color: var(--muted);
}
.mail a {
  margin-left: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease);
  overflow-wrap: anywhere;
}
.mail a:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: .875rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.site-footer__name { color: var(--ink); font-weight: 600; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { display: inline-block; padding-block: 4px; transition: color .2s var(--ease); }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__copy { margin-left: auto; }
@media (max-width: 599px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__copy { margin-left: 0; }
}

/* ---------- Dezente Einblendung (nur mit JS, nur ohne reduzierte Bewegung) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(14px); }
  .reveal-in {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: var(--section-space); }
.legal .prose { max-width: 70ch; }
.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 40px;
}
.legal h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.legal h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.0625rem; font-weight: 600; }
.legal ul { list-style: disc; padding-left: 1.25em; color: var(--ink-2); }
.legal li + li { margin-top: .4em; }
.legal a:not(.back) { border-bottom: 1px solid var(--line-strong); }
.legal a:not(.back):hover { border-bottom-color: var(--ink); }
.back { font-size: .875rem; color: var(--muted); }
.back:hover { color: var(--ink); }

.draft-banner {
  margin-bottom: 40px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-size: .9375rem;
  color: var(--ink);
}
.todo {
  display: inline;
  padding: 1px 6px;
  border: 1px dashed var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink);
  background: var(--surface);
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero__scroll, .skip-link { display: none; }
  .hero { padding-top: 0; }
}
