/* ============================================================
   jan-abraham.de — Sprecher · Schauspieler · Voice Acting
   Bildwelt: die Sprecherkabine. Schwarz, Schaumstoff, eine warme Lampe.
   ============================================================ */

:root {
  --ink:        #0e0c0a;   /* Kabine */
  --ink-2:      #171310;   /* Paneel */
  --ink-3:      #221c17;   /* Schaumstoff-Kante */
  --paper:      #ece4d6;   /* Text */
  --paper-dim:  #a99d8b;   /* Nebentext */
  --paper-mute: #6f6558;   /* Labels */
  --amber:      #e39b3a;   /* die Lampe */
  --amber-hi:   #f5b85c;
  --amber-deep: #8f5416;
  --line:       rgba(236, 228, 214, 0.13);
  --line-soft:  rgba(236, 228, 214, 0.07);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(18px, 5vw, 72px);
  --maxw: 1240px;
  --measure: 62ch;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Korn — die Kabine ist nie ganz still */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.eyebrow--amber { color: var(--amber); }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(14,12,10,0.92), rgba(14,12,10,0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 60px;
}
.brand {
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.brand small {
  font-family: var(--mono); font-weight: 400; font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute);
}
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); font-size: 0.92rem; }
.nav-links a { white-space: nowrap; color: var(--paper-dim); padding-block: 6px; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--paper); border-bottom-color: var(--amber); }
@media (max-width: 720px) {
  .brand small { display: none; }
  .nav-links { gap: 14px; font-size: 0.82rem; }
  .nav-links a[data-optional] { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  align-items: end;
  min-height: min(82vh, 860px);
  border-bottom: 1px solid var(--line-soft);
}
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 30%;
  filter: contrast(1.04);
}
/* Das Bild verschwindet in die Kabine hinein */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent 55%, var(--ink) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(14,12,10,0.55) 0%, transparent 30%);
}
.hero-text {
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(40px, 6vw, 80px) 0;
  display: flex; flex-direction: column; gap: 28px;
}
.hero h1 {
  font-size: clamp(3.4rem, 9.5vw, 8.4rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  display: flex; flex-direction: column;
  margin-left: -0.04em;
}
.hero h1 .last { color: var(--amber); font-style: italic; font-weight: 500; }
.hero-claim {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--paper-dim);
  max-width: 30ch;
  text-wrap: balance;
}
.hero-claim strong { color: var(--paper); font-weight: 500; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--amber-hi); color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(227,155,58,0.6); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { background: rgba(236,228,214,0.06); color: var(--paper); box-shadow: none; }
.btn svg { width: 14px; height: 14px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px;
  margin: 0; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.hero-facts div { display: flex; flex-direction: column; gap: 4px; }
.hero-facts dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); }
.hero-facts dd { margin: 0; font-size: 0.95rem; color: var(--paper); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 11; max-width: 100%; }
  .hero-media img { object-position: 60% 25%; }
  .hero-media::after {
    background:
      linear-gradient(to top, var(--ink) 0%, transparent 45%);
  }
  .hero-text { padding: 8px var(--gutter) 48px; margin-top: -60px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------ */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; z-index: 1; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px 48px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.section-head h2 em { font-style: italic; color: var(--amber); font-weight: 400; }
.section-head .lede { color: var(--paper-dim); max-width: var(--measure); font-size: 1.05rem; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Hörproben — Seite A / Seite B, wie auf der Kassette
   ------------------------------------------------------------ */
.tape { display: grid; gap: 56px; }
.tape-side { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px 40px; }
.tape-label { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.tape-label .side {
  font-family: var(--display); font-size: 2.6rem; font-weight: 300; font-style: italic;
  line-height: 1; color: var(--amber);
  font-variation-settings: "opsz" 72;
}
.tape-label .eyebrow { line-height: 1.5; }
.tape-label .count { font-family: var(--mono); font-size: 0.72rem; color: var(--paper-mute); }
@media (max-width: 800px) {
  .tape-side { grid-template-columns: 1fr; gap: 14px; }
  .tape-label { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
}

.tracks { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.track {
  display: grid;
  grid-template-columns: 52px minmax(190px, 0.9fr) minmax(0, 1.6fr) 56px;
  align-items: center; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.track:hover { background: linear-gradient(to right, rgba(227,155,58,0.05), transparent 60%); }
.track.is-playing { background: linear-gradient(to right, rgba(227,155,58,0.09), transparent 70%); }
.play {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play .ic-pause { display: none; }
.play:hover { transform: scale(1.06); border-color: var(--amber); }
.is-playing .play { background: var(--amber); color: var(--ink); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(227,155,58,0.14); }
.is-playing .play .ic-play { display: none; }
.is-playing .play .ic-pause { display: block; }
.is-loading .play { opacity: 0.6; cursor: progress; }

.track-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.track-meta h3 { font-size: 1.28rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 40; }
.track-meta p { font-size: 0.86rem; color: var(--paper-dim); }
.track-meta p i { font-style: italic; color: var(--paper); }

.wave {
  display: flex; align-items: center; gap: 2px;
  height: 44px; cursor: pointer;
  --p: 0;
}
.wave span {
  flex: 1 1 0; min-width: 0;
  height: calc(14% + var(--h) * 86%);
  min-height: 3px;
  background: var(--paper-mute);
  border-radius: 1px;
  opacity: 0.75;
  transition: background 0.12s linear, opacity 0.12s linear;
}
.wave span.on { background: var(--amber); opacity: 1; }
.is-playing .wave span:not(.on) { opacity: 0.55; }
.time { font-family: var(--mono); font-size: 0.78rem; color: var(--paper-dim); text-align: right; font-variant-numeric: tabular-nums; }
.is-playing .time { color: var(--amber-hi); }

@media (max-width: 800px) {
  .track {
    grid-template-columns: 46px minmax(0, 1fr) 50px;
    grid-template-areas: "play meta time" "wave wave wave";
    gap: 10px 14px; padding: 14px 0;
  }
  .play { grid-area: play; width: 42px; height: 42px; }
  .track-meta { grid-area: meta; }
  .time { grid-area: time; }
  .wave { grid-area: wave; height: 36px; }
}

/* ------------------------------------------------------------
   Über mich
   ------------------------------------------------------------ */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-media { position: relative; }
.about-media img { border-radius: 2px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media figcaption {
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(14,12,10,0.7); padding: 6px 10px; border-radius: 2px;
}
.about-quote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25;
  color: var(--paper); margin-top: 28px;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.about-quote span { color: var(--amber); }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.1em; color: var(--paper-dim); font-size: 1.04rem; }
.prose p:first-child { color: var(--paper); font-size: 1.15rem; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose .cut {
  font-family: var(--display); font-style: italic; color: var(--paper);
  font-size: 1.25rem; line-height: 1.4;
  padding-left: 18px; border-left: 2px solid var(--amber);
  margin-top: 0.4em;
}
.prose .cut span { display: block; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Vita
   ------------------------------------------------------------ */
.vita-list { border-top: 1px solid var(--line); }
.vita-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.vita-row .y { font-family: var(--mono); font-size: 0.8rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.vita-row .t { font-family: var(--display); font-size: 1.15rem; font-weight: 500; font-variation-settings: "opsz" 40; }
.vita-row .r { color: var(--paper); font-size: 0.95rem; }
.vita-row .r::before { content: "als "; color: var(--paper-mute); }
.vita-row .pr { color: var(--paper-dim); font-size: 0.88rem; }
.vita-row.is-upcoming .t::after {
  content: "in Produktion"; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--amber); padding: 3px 7px; border-radius: 2px; margin-left: 10px; vertical-align: middle;
}
@media (max-width: 800px) {
  .vita-row { grid-template-columns: 58px minmax(0, 1fr); gap: 4px 16px; }
  .vita-row .r, .vita-row .pr { grid-column: 2; }
}

details.more { margin-top: 28px; border-top: 1px solid var(--line); }
details.more summary {
  cursor: pointer; list-style: none;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-size: 1.25rem; font-weight: 500;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--amber); transition: transform 0.2s ease;
}
details.more[open] summary::after { content: "–"; }
details.more summary small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-mute); font-weight: 400; }
.more-body { padding-bottom: 24px; display: grid; gap: 32px; }
.more-group h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 8px; }
.more-group .vita-list { border-top-color: var(--line-soft); }
.more-group .vita-row { padding: 9px 0; }
.more-group .vita-row .t { font-size: 1rem; }

.vita-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 6vw, 72px); }
.vita-side h3 { font-size: 1.35rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vita-side li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; font-size: 0.92rem; border-bottom: 1px solid var(--line-soft); }
.vita-side li .y { font-family: var(--mono); font-size: 0.74rem; color: var(--amber); padding-top: 3px; font-variant-numeric: tabular-nums; }
.vita-side li b { font-weight: 600; color: var(--paper); display: block; }
.vita-side li span { color: var(--paper-dim); display: block; }
@media (max-width: 900px) { .vita-side { grid-template-columns: 1fr; gap: 28px; } }

.vita-dl { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--paper-dim); font-size: 0.92rem; }

/* ------------------------------------------------------------
   Studio
   ------------------------------------------------------------ */
.studio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: 4 / 3; }
.studio-gallery figure:first-child { grid-column: 1 / -1; }
.studio-gallery figure:first-child img { aspect-ratio: 16 / 9; }
.studio-gallery figure { margin: 0; }
.gear { border-top: 1px solid var(--line); margin-top: 24px; }
.gear li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.98rem; }
.gear li span:first-child { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-mute); padding-top: 4px; }
.gear li span:last-child { color: var(--paper); }
@media (max-width: 800px) { .studio { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------ */
.contact {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end;
}
.contact h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -0.03em; line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.contact h2 em { font-style: italic; color: var(--amber); font-weight: 400; }
.contact-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-lines a, .contact-lines div {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500;
  font-variation-settings: "opsz" 40;
  overflow-wrap: anywhere;
}
.contact-lines span:first-child { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-mute); font-weight: 400; }
.contact-lines a:hover span:last-child { color: var(--amber-hi); }
.contact-note { color: var(--paper-dim); font-size: 0.95rem; margin-top: 18px; max-width: 48ch; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line-soft); padding-block: 28px 36px; position: relative; z-index: 1; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.82rem; color: var(--paper-mute); }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--paper); }

/* ------------------------------------------------------------
   Rechtliches (Impressum / Datenschutz)
   ------------------------------------------------------------ */
.legal { padding-block: clamp(48px, 7vw, 96px); max-width: 72ch; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; margin-bottom: 8px; font-variation-settings: "opsz" 96, "SOFT" 30; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; margin-bottom: 0.5em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; margin-bottom: 0.4em; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: var(--paper-dim); margin-bottom: 0.8em; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal address { font-style: normal; color: var(--paper); line-height: 1.7; }
.legal a { color: var(--amber); border-bottom: 1px solid rgba(227,155,58,0.35); }
.legal .eyebrow { display: block; margin-bottom: 16px; }
.legal .back { display: inline-flex; margin-top: 40px; }

/* ------------------------------------------------------------
   Einblenden — sichtbar im Ruhezustand, sanft beim Laden
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(1) { animation-delay: 0.05s; }
  .hero-text > :nth-child(2) { animation-delay: 0.15s; }
  .hero-text > :nth-child(3) { animation-delay: 0.3s; }
  .hero-text > :nth-child(4) { animation-delay: 0.42s; }
  .hero-text > :nth-child(5) { animation-delay: 0.55s; }
}
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
