/* Schriften liegen lokal im Ordner fonts/ (keine Verbindung zu Google) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-tight-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-tight-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0e0d0c;
  --surface: #1a1816;
  --fg: #efebe5;
  --muted: #9a938a;
  --line: #2c2926;
  --accent: #c9a46a;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(16px, 4vw, 56px);
}

.site-header .brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav { display: flex; gap: 28px; margin-left: auto; }

.site-header nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--fg); }

/* ---------- Startseite ---------- */

.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 104px clamp(16px, 4vw, 56px) 64px;
}

.portrait {
  position: relative;
  justify-self: end;
  width: min(100%, calc(100svh - 168px), 680px);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 40% 35%, #3a332c 0%, transparent 65%),
    linear-gradient(160deg, #241f1b, #121110);
  overflow: hidden;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wird nur sichtbar, solange kein Foto da ist */
.portrait .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro { max-width: 560px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.intro h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.job {
  margin-top: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc8be;
}

.tagline {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 40px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.facts dt { white-space: nowrap; }
.facts dt small { font-size: 0.5em; letter-spacing: 0; color: var(--muted); }

.facts dd { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

.facts div { display: flex; flex-direction: column-reverse; }

.lead {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.lead em { color: var(--fg); font-style: normal; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover { border-color: var(--fg); }

.button.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.button.primary:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Projektseite ---------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px clamp(16px, 4vw, 56px) 80px;
}

.page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}

.head-photo {
  position: relative;
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.head-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
  transform: scaleX(-1); /* gespiegelt, damit der Blick zur Überschrift geht */
}

/* Bildnachweis, dezent unten rechts im Foto */
.credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 18px 10px 7px 24px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(to top left, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

/* Nachweis links unten (Startfoto, gespiegeltes Projektfoto) */
.portrait .credit,
.head-photo .credit {
  right: auto;
  left: 0;
  padding: 18px 24px 7px 10px;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.55), transparent 70%);
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.page-head p { color: var(--muted); max-width: 52ch; }

.section-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  margin-bottom: 80px;
}

.highlights li {
  background: var(--bg);
  padding: 28px 24px 32px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.highlights h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 8px 0 auto;
  padding-bottom: 20px;
}

.meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.role { color: var(--muted); font-size: 0.95rem; }

.filmography { list-style: none; border-top: 1px solid var(--line); }

.filmography li {
  display: grid;
  grid-template-columns: 72px 1fr 200px 220px;
  gap: 4px 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

/* Jahreszahl nur beim ersten Eintrag eines Jahres zeigen */
.filmography li:not(.new-year) .y { visibility: hidden; }
.filmography li.new-year { border-top: 1px solid #47423c; margin-top: -1px; }

.filmography .y { color: var(--accent); font-variant-numeric: tabular-nums; }
.filmography .s,
.filmography .d { color: var(--muted); font-size: 0.85rem; }
.filmography .d::before { content: "Regie: "; }

.more { margin-top: 48px; }

/* ---------- Impressum & Datenschutz ---------- */

.legal { max-width: 760px; margin: 0; margin-inline: auto; }
.legal .page-head { display: block; margin-bottom: 48px; }

.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

.legal p { color: #c9c2b8; margin-bottom: 12px; }
.legal a { color: var(--fg); text-underline-offset: 3px; }
.legal .legal-date { margin-top: 48px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Bradford (Blog-Archiv) ---------- */

.blog { max-width: 760px; }
.blog .page-head { display: block; }

.blog-toc { border-top: 1px solid var(--line); margin-bottom: 40px; }
.blog-toc ol { list-style: none; }
.blog-toc a {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-toc a:hover { color: var(--accent); }
.blog-toc span { flex: 0 0 150px; color: var(--muted); font-size: 0.85rem; padding-top: 2px; }

.blog article { padding: 56px 0 8px; border-top: 1px solid var(--line); }
.blog article .meta { margin-bottom: 8px; }
.blog article h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.post p { color: #d6d0c7; margin-bottom: 16px; line-height: 1.75; }
.post a { color: var(--accent); }
.post img { width: auto; max-width: 100%; height: auto; margin: 28px 0; float: none !important; }

/* Versteckter Link in der Fußzeile der Startseite */
.egg {
  margin-left: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.18;
  transition: opacity 0.3s, color 0.3s;
}
.egg:hover, .egg:focus-visible { opacity: 1; color: var(--accent); }

/* ---------- Fußzeile ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover,
.site-footer a[aria-current="page"] { color: var(--fg); }

/* ---------- Handy ---------- */

@media (max-width: 860px) {
  .site-header { padding: 20px 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.7rem; letter-spacing: 0.1em; }

  .home {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 76px;
  }
  .portrait {
    justify-self: start;
    width: min(100%, 72svh);
  }
  .facts { gap: 16px 20px; }
  .facts dt { font-size: 1.5rem; }

  .page { padding-top: 96px; }
  .page-head { grid-template-columns: 1fr; gap: 32px; }
  .head-photo { width: 100%; grid-row: 1; }

  .filmography li { grid-template-columns: 52px auto 1fr; column-gap: 8px; }
  .filmography .t { grid-column: 2 / -1; }
  .filmography .s { grid-column: 2; }
  .filmography .d::before { content: "· Regie: "; }
  .highlights li { min-height: 0; }
  .blog-toc a { flex-direction: column; gap: 0; }
  .blog-toc span { flex-basis: auto; }
}
