/* DJ Hallucination — djhallucination.de
   Halluzinations-Shader-Ästhetik. Cyan/Magenta. */

:root {
  --bg:        #08080d;
  --surface:   #14141f;
  --text:      #f2f2f5;
  --text-dim:  #9a9aa8;
  --cyan:      #00d9f0;
  --magenta:   #ff2d9b;
  --border:    rgba(255,255,255,.10);
  --radius:    16px;
  --maxw:      1100px;
  --nav-h:     68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .cplayer-wave { cursor: none; }

a { color: var(--cyan); text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .75; }

/* Content über dem Shader */
.nav, .hero, section, footer { position: relative; z-index: 2; }
section { padding: 7rem 1.5rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin-bottom: 1.2rem;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: .6rem; font-weight: 700; }
p { color: var(--text-dim); font-size: 1.08rem; }
p + p { margin-top: 1.1rem; }
.lead { color: var(--text); font-size: 1.2rem; }

/* ---------- Shader-Hintergrund ---------- */
.shader-bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh; display: block;
}
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Custom-Cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cursor {
  width: 34px; height: 34px; margin: -17px;
  border: 1.5px solid var(--cyan);
  transition: width .22s ease, height .22s ease, margin .22s ease, border-color .22s ease;
}
.cursor.hot { width: 58px; height: 58px; margin: -29px; border-color: var(--magenta); }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(8,8,13,.4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(8,8,13,.85); border-bottom-color: var(--border); }
.nav-brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; }
.nav-brand:hover { opacity: 1; }
.nav-brand-text { font-size: 1.05rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: .98rem; padding: .4rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; min-height: 44px;
  border: 0; font-family: inherit; will-change: transform;
  transition: box-shadow .2s ease;
}
.btn-primary { background: linear-gradient(120deg, var(--cyan), var(--magenta)); color: #07070b; }
.btn-primary:hover { opacity: 1; box-shadow: 0 12px 36px -8px rgba(0,217,240,.55); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(8,8,13,.4); }
.btn-ghost:hover { border-color: var(--cyan); opacity: 1; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 3rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
}
.hero-copy h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); margin-bottom: 1.5rem; }
.hero-copy h1 .line { display: block; }
.hero-copy h1 .line:first-child {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
}
.hero-copy .tagline { font-size: 1.25rem; max-width: 32ch; }
.hero-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 832 / 1216;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.9);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,8,13,.6));
  pointer-events: none;
}
.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 999px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; background: var(--cyan); border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1} 60%{transform:translateY(14px);opacity:.2} }

/* ---------- Glitch ---------- */
.glitch {
  position: relative; display: inline-block;
  background: linear-gradient(120deg, var(--magenta) 25%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden; opacity: 0; -webkit-text-fill-color: currentColor;
}
.glitch::before { color: var(--cyan); }
.glitch::after  { color: var(--magenta); }
.glitch:hover::before, .glitch.glitch-burst::before { opacity: .85; animation: glitch-top .5s steps(2,end) infinite; }
.glitch:hover::after,  .glitch.glitch-burst::after  { opacity: .85; animation: glitch-bot .5s steps(2,end) infinite; }
@keyframes glitch-top {
  0%,100% { clip-path: inset(0 0 70% 0); transform: translate(-3px,-2px); }
  50%     { clip-path: inset(40% 0 20% 0); transform: translate(3px,1px); }
}
@keyframes glitch-bot {
  0%,100% { clip-path: inset(75% 0 0 0); transform: translate(3px,2px); }
  50%     { clip-path: inset(30% 0 45% 0); transform: translate(-3px,-1px); }
}

/* ---------- Zitate (Shader scheint durch) ---------- */
.quote { background: rgba(8,8,13,.5); text-align: center; padding: 7rem 1.5rem; }
.quote.quote-alt { background: rgba(8,8,13,.5); }
.quote blockquote { max-width: 800px; margin: 0 auto; position: relative; }
.quote blockquote::before {
  content: "“"; position: absolute; top: -3.4rem; left: 50%; transform: translateX(-50%);
  font-size: 8rem; line-height: 1; color: var(--cyan); opacity: .3;
}
.quote blockquote p {
  font-size: clamp(1.4rem, 3.3vw, 2.2rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: var(--text);
}
.quote cite {
  display: block; margin-top: 1.4rem; font-style: normal;
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600;
}

/* ---------- Content-Sektionen (ruhiger Hintergrund) ---------- */
.idea, .music, .about, .feedback { background: rgba(8,8,13,.92); }

/* ---------- Idee / Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: rgba(20,20,31,.7); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,217,240,.4); }
.card .num { font-size: .85rem; font-weight: 700; color: var(--magenta); letter-spacing: .1em; margin-bottom: .8rem; }
.card p { font-size: .98rem; }

/* ---------- Musik / Tracks ---------- */
.track-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center;
  background: rgba(20,20,31,.7); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; margin-top: 1.25rem;
}
.track-cover {
  aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid; place-items: center; font-size: 3.5rem;
}
.track-meta .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 0; }
.tag { font-size: .78rem; padding: .25rem .7rem; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-dim); }

/* ---------- Custom-Waveform-Player ---------- */
.cplayer {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem;
  background: rgba(0,0,0,.35); border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem .9rem .5rem .5rem;
}
.cplayer-play {
  width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  position: relative; transition: transform .15s ease;
}
.cplayer-play::before {
  content: ""; position: absolute; top: 50%; left: 53%;
  transform: translate(-50%,-50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #07070b;
  transition: opacity .15s ease;
}
.cplayer-play::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 4px; height: 15px; background: #07070b;
  box-shadow: 7px 0 0 #07070b; opacity: 0; transition: opacity .15s ease;
}
.cplayer.playing .cplayer-play::before { opacity: 0; }
.cplayer.playing .cplayer-play::after  { opacity: 1; }
.cplayer-wave { flex: 1; height: 46px; min-width: 0; }
.cplayer-time {
  font-variant-numeric: tabular-nums; font-size: .9rem;
  color: var(--text-dim); min-width: 3.2ch; text-align: right;
}

/* ---------- Video-Card ---------- */
.video-card {
  display: grid; grid-template-columns: 232px 1fr; gap: 2.4rem; align-items: center;
  background: rgba(20,20,31,.7); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; margin-top: 1.25rem;
}
.video-card video { width: 100%; aspect-ratio: 9/16; border-radius: 12px; background: #000; display: block; }
.video-meta .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Feedback ---------- */
.feedback { text-align: center; }
.feedback .wrap { max-width: 720px; }
.feedback-intro { margin-bottom: 2.5rem; }
.fb-form { text-align: left; display: grid; gap: 1.2rem; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fb-form label { display: grid; gap: .45rem; }
.fb-form label > span { font-size: .92rem; font-weight: 600; color: var(--text); }
.fb-form label small { color: var(--text-dim); font-weight: 400; }
.fb-form input, .fb-form select, .fb-form textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: .85rem 1rem; color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color .2s ease;
}
.fb-form input:focus, .fb-form select:focus, .fb-form textarea:focus {
  outline: none; border-color: var(--cyan);
}
.fb-form textarea { resize: vertical; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.fb-mail { font-size: .95rem; }
.fb-status { font-size: .98rem; font-weight: 600; min-height: 1.2em; }
.fb-status.ok { color: var(--cyan); }
.fb-status.err { color: var(--magenta); }
.fb-privacy { font-size: .82rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
footer { background: rgba(8,8,13,.92); border-top: 1px solid var(--border); padding: 3rem 1.5rem 2rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; }
.footer-brand span { color: var(--text-dim); font-size: .85rem; }
.footer-social, .footer-legal { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.footer-social a { color: var(--text-dim); font-weight: 600; font-size: .95rem; position: relative; will-change: transform; }
.footer-social a:hover { color: var(--text); opacity: 1; }
.footer-social a[data-soon]::after {
  content: attr(data-soon); position: absolute; top: -.7rem; right: -1.6rem;
  font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--magenta); border: 1px solid var(--magenta); border-radius: 999px; padding: .05rem .35rem;
}
.footer-legal a { color: var(--text-dim); font-size: .95rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.6rem; color: var(--text-dim); font-size: .85rem; }
.footer-quote { font-style: italic; }

/* ---------- Hintergrundmusik-Schalter ---------- */
.sound-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem .6rem .8rem; border-radius: 999px;
  background: rgba(8,8,13,.8); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text-dim); font-family: inherit; font-size: .8rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}
.sound-toggle:hover { border-color: var(--cyan); color: var(--text); }
.sound-toggle.on { border-color: var(--cyan); color: var(--text); }
.sound-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.sound-bars i {
  width: 3px; height: 5px; border-radius: 2px;
  background: linear-gradient(var(--cyan), var(--magenta));
  opacity: .45; transition: opacity .25s ease;
}
.sound-toggle.on .sound-bars i { opacity: 1; animation: eq 0.9s ease-in-out infinite; }
.sound-toggle.on .sound-bars i:nth-child(2) { animation-delay: .15s; }
.sound-toggle.on .sound-bars i:nth-child(3) { animation-delay: .3s; }
.sound-toggle.on .sound-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%,100%{height:5px} 50%{height:16px} }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
body.js-anim .reveal { opacity: 0; transform: translateY(24px); }
body.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Sub-Pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  position: relative; z-index: 2; }
.legal h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.legal p, .legal li { color: var(--text-dim); font-size: 1rem; }
.legal ul { margin: .6rem 0 .6rem 1.2rem; }
.legal a { word-break: break-word; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  section { padding: 4.5rem 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.5rem 2rem;
    background: rgba(8,8,13,.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; min-height: 44px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 3rem); }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .scroll-hint { display: none; }
  .cards { grid-template-columns: 1fr; }
  .track-card { grid-template-columns: 1fr; text-align: center; }
  .track-cover { max-width: 160px; margin: 0 auto; }
  .track-meta .tags { justify-content: center; }
  .video-card { grid-template-columns: 1fr; text-align: center; }
  .video-card video { max-width: 280px; margin: 0 auto; }
  .video-meta .tags { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .fb-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .glitch:hover::before, .glitch:hover::after,
  .glitch.glitch-burst::before, .glitch.glitch-burst::after { animation: none; }
  .scroll-hint span { animation: none; }
}
