/* ==========================================================================
   ki-kuenstler.ch — Cinematic Dark
   ========================================================================== */

:root {
  --bg: #0B0B12;
  --surface: #12121C;
  --surface-deep: #101018;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #F2F1F7;
  --text-soft: #B9B7C9;
  --muted: #9B99AC;
  --muted-deep: #6D6B80;
  --accent-a: #8A5CF6;
  --accent-b: #39D7DA;
  --gradient: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  --font-display: 'Syne', 'Avenir Next', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-b); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg);
}
.btn-primary:hover {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(138, 92, 246, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 500;
}
.btn-ghost:hover { border-color: var(--accent-b); }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links .btn { padding: 11px 24px; font-size: 15px; }

/* Navigation der Unterseiten (Impressum / Datenschutz) — bleibt auch mobil sichtbar */
.nav-back {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  top: -120px; left: 8%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--accent-a) 0%, transparent 65%);
  opacity: 0.16;
}
.hero::after {
  top: 60px; right: 2%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-b) 0%, transparent 65%);
  opacity: 0.12;
}

.hero > .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-b);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 1100px;
}

.hero-sub {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-soft);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Showreel */
.showreel {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showreel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(138, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(57, 215, 218, 0.14) 0%, transparent 55%),
    var(--surface-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.showreel-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label { font-size: 17px; color: var(--muted); padding: 0 16px; text-align: center; }
.placeholder-hint { font-size: 13px; color: var(--muted-deep); text-align: center; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

/* Klebende Navigation darf beim Ankersprung nichts verdecken */
section[id], .showreel[id] { scroll-margin-top: 90px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 44px);
}

.section-sub {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--accent-b); color: var(--text); }
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tile {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tile.hidden { display: none; }

.tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tile-media img,
.tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-media.placeholder-a { background: radial-gradient(ellipse at 40% 30%, rgba(138, 92, 246, 0.28) 0%, transparent 60%), var(--surface); }
.tile-media.placeholder-b { background: radial-gradient(ellipse at 70% 60%, rgba(57, 215, 218, 0.2) 0%, transparent 60%), var(--surface); }
.tile-media.placeholder-c { background: radial-gradient(ellipse at 30% 75%, rgba(138, 92, 246, 0.16) 0%, transparent 60%), var(--surface); }
.tile-media.placeholder-d { background: radial-gradient(ellipse at 60% 25%, rgba(57, 215, 218, 0.16) 0%, transparent 60%), var(--surface); }

.tile-top, .tile-bottom { position: relative; z-index: 1; }

.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }

.tile-badge {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tile-play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover .tile-play { opacity: 1; }

.tile-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(transparent, rgba(11, 11, 18, 0.6));
  margin: -20px;
  padding: 32px 20px 20px;
}
.tile-title { font-weight: 600; font-size: 17px; }
.tile-meta { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 36px 32px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card.card-featured { border-color: rgba(138, 92, 246, 0.35); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon.icon-a { background: rgba(138, 92, 246, 0.15); color: var(--accent-a); }
.card-icon.icon-b { background: rgba(57, 215, 218, 0.12); color: var(--accent-b); }
.card-icon.icon-c { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.portrait-frame {
  height: 520px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: var(--surface-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 { margin: 0; }
.about-lead { font-size: 19px; font-weight: 600; margin: 0; }
.about-text p { margin: 0; color: var(--muted); line-height: 1.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
}
.step h3 { margin: 0; font-size: 17px; font-weight: 600; font-family: var(--font-body); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--muted);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent-b); }

.faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -260px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-a) 0%, transparent 65%);
  opacity: 0.14;
  pointer-events: none;
}

.contact > .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  max-width: 900px;
}

.contact-sub { margin: 0; font-size: 18px; color: var(--muted); }
.contact-email { font-size: 15px; color: var(--muted-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 14px;
  color: var(--muted-deep);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 28px; }
.site-footer a { color: var(--muted-deep); }
.site-footer a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 40px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 40px 0 12px;
}
.legal p, .legal li { color: var(--text-soft); line-height: 1.75; }
.legal a { color: var(--accent-b); }
.legal .placeholder { color: var(--accent-a); font-weight: 600; }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait-frame { height: 380px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    padding: 12px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; }
  .nav-links .btn { margin-top: 8px; }

  .logo { font-size: 19px; }
  .nav-back { font-size: 14px; }
  .nav-back a { white-space: nowrap; }
  .nav-back-long { display: none; }

  .hero { padding: 56px 0 64px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { height: 240px; }
  .showreel-frame { border-radius: 14px; }
  .play-circle { width: 60px; height: 60px; }
}
