/* =========================================================================
   Audio Portfolio – Yusuf Cagabey
   Reines CSS · mobile-first · dunkles, neutrales Theme
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Farben */
  --bg:            #0b0c0d;
  --bg-elev-1:     #111315;
  --bg-elev-2:     #16191c;
  --surface:       #14171a;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --text:          #e9eaec;
  --text-muted:    #a4a8ad;
  --text-dim:      #71767c;

  --accent:        #c89968;          /* gedämpftes Kupfer/Sand – Studio-Anmutung */
  --accent-soft:   rgba(200, 153, 104, 0.14);
  --accent-line:   rgba(200, 153, 104, 0.45);

  --focus:         #e2c39a;

  /* Typo */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Maße */
  --container: 1120px;
  --radius:    14px;
  --radius-sm: 10px;

  /* Übergänge */
  --t-fast:  140ms ease;
  --t-base:  220ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

button { font: inherit; }

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* ---------- Skip-Link & Focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1208;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; outline: none; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 12, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: none;
  gap: 6px;
}
.primary-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.primary-nav a:hover {
  color: var(--text);
  background: var(--bg-elev-1);
}

@media (min-width: 800px) {
  .primary-nav { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg) 100%);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.prose {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.05vw + 0.85rem, 1.08rem);
  line-height: 1.7;
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 96px);
  isolation: isolate;
  overflow: hidden;
}

/* Blurred Foto-Hintergrund (Apollo-Stillleben) */
.hero-bg {
  position: absolute;
  /* extra inset, damit der Blur-Rand nicht sichtbar ist */
  inset: -40px;
  background-image: url("images/apollo-hero.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.65) saturate(1);
  transform: translateZ(0); /* GPU-Hinweis für saubere Skalierung */
  z-index: -2;
}

/* Gradient-Overlay über dem Foto: dezent, damit Text lesbar bleibt */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* leichter Bottom-Vignette für Textkontrast */
    linear-gradient(180deg, rgba(11,12,13,0.15) 0%, rgba(11,12,13,0.05) 100%),
    /* die ursprünglichen Akzent-Glows */
    radial-gradient(900px 500px at 85% -10%, rgba(200, 153, 104, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(140, 170, 200, 0.06), transparent 60%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-inner { display: grid; gap: 22px; }

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.accent { color: var(--accent); }

.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.25rem);
  color: var(--text);
  max-width: 56ch;
}
.hero-text {
  margin: 0;
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-meta {
  margin: clamp(28px, 5vw, 44px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-meta > div {
  background: var(--bg);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

@media (min-width: 720px) {
  .hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 14px;
  --btn-px: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-base),
              border-color var(--t-base), color var(--t-base);
  min-height: 48px;          /* Touch-Ziel */
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #d6a978;
  color: #1a1208;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--text);
  background: var(--accent-soft);
}

/* ---------- Chips ---------- */
.chips {
  list-style: none;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: border-color var(--t-fast), background-color var(--t-fast),
              color var(--t-fast);
}
.chips li:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Video ---------- */
.video-frame {
  margin: 0;
  display: grid;
  gap: 14px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  color: var(--text-muted);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(200, 153, 104, 0.10), transparent 70%),
    var(--bg-elev-2);
}
.video-placeholder p { margin: 0; font-size: 0.95rem; }
.video-placeholder p:first-of-type { color: var(--text); font-weight: 500; }
.video-hint { font-size: 0.82rem !important; color: var(--text-dim); }
.video-hint code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.video-frame figcaption {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---------- Audio Cards ---------- */
.audio-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .audio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.audio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 18px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.audio-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.audio-card-head { display: grid; gap: 8px; }
.audio-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.audio-card-head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.audio-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.audio-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.audio-meta li span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 6px;
}

.audio-player {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.audio-player audio {
  width: 100%;
  height: 40px;
  display: block;
}

/* ---------- Audio A/B Card mit Toggle-Slider ---------- */
@media (min-width: 820px) {
  .audio-card-ab { grid-column: 1 / -1; }
}

.ab-switcher {
  display: grid;
  gap: 14px;
}

/* Toggle-Container */
.ab-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  align-self: start;
  width: 100%;
  max-width: 360px;
  isolation: isolate;
}

/* Sliding Indicator (der "Knopf") */
.ab-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--bg-elev-2);
  border-radius: 999px;
  transition: transform var(--t-base), background-color var(--t-base);
  z-index: 0;
}
.ab-tabs[data-active="processed"] .ab-tab-indicator {
  transform: translateX(100%);
  background: var(--accent-soft);
}

/* Tab-Buttons */
.ab-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: color var(--t-base);
  min-height: 44px;
}
.ab-tab[aria-selected="true"] { color: var(--text); }
.ab-tab[data-track="processed"][aria-selected="true"] { color: var(--accent); }

/* Pin-Badge (A / B) */
.ab-pin {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0;
  font-weight: 600;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base);
}
.ab-tab[data-track="processed"][aria-selected="true"] .ab-pin {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1208;
}

/* Audio-Player darunter */
.ab-player {
  background: var(--bg);
  border-color: var(--line-strong);
}

/* ---------- CV Grid ---------- */
.cv-grid {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  gap: clamp(16px, 2.4vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 30px);
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 18px;
  transition: border-color var(--t-base);
}
.cv-card:hover { border-color: var(--accent-line); }

.cv-card-feature {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(200, 153, 104, 0.06), rgba(200, 153, 104, 0) 60%),
    var(--surface);
}
.cv-card-feature .cv-step {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}

.cv-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.cv-lead strong { color: var(--accent); font-weight: 600; }
.bullets li em {
  font-style: normal;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}
.bullets li strong { color: var(--text); font-weight: 600; }

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.lang-row strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.cv-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cv-step {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--accent-line);
}
.cv-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.timeline li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 153, 104, 0.15);
}
.timeline .time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.timeline .role {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.timeline .org {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.timeline .desc {
  margin: 6px 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bullets */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Setup Grid ---------- */
.setup-grid {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .setup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.setup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px);
  transition: border-color var(--t-base), transform var(--t-base);
}
.setup-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.setup-card h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.setup-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.setup-card li {
  font-size: 0.96rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.setup-card li:last-child { border-bottom: 0; }
.setup-card li.muted { color: var(--text-dim); font-style: italic; }
.setup-card .muted-inline {
  color: var(--text-dim);
  font-size: 0.84em;
  margin-left: 4px;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.contact-card {
  position: relative;
  display: grid;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px);
  min-height: 96px;
  transition: border-color var(--t-base), background-color var(--t-base),
              transform var(--t-base);
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--accent-line);
  background: var(--bg-elev-2);
  color: var(--text);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  word-break: break-word;
}
.contact-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 1.05rem;
  color: var(--accent);
  transition: transform var(--t-base);
}
.contact-card:hover .contact-arrow { transform: translateX(4px); }
.contact-static { cursor: default; }
.contact-static:hover {
  border-color: var(--line);
  background: var(--surface);
  transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-meta { color: var(--text-dim); }

@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
