/* ============================================================
   Post-Digital Art Chemnitz — Style
   Palette: Schwarz · Bordeaux · Grün (+ verlaufende Blobs)
   ============================================================ */

:root {
  --bg: #070708;
  --ink: #f2efe9;
  --ink-dim: rgba(242, 239, 233, 0.62);
  --bordeaux: #8a1e3f;
  --bordeaux-deep: #4a0e22;
  --bordeaux-hot: #ff2e63;
  --green: #3dffa0;
  --lime: #c8ff3d;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--bordeaux-hot); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0c0c0e; }
::-webkit-scrollbar-thumb { background: var(--bordeaux); border-radius: 6px; border: 2px solid #0c0c0e; }
::-webkit-scrollbar-thumb:hover { background: var(--bordeaux-hot); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--lime); }

/* ---------- Overlays: Rauschen + Scanlines ---------- */
.noise {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 90;
}
.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 89;
}

/* ---------- Glas ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(16, 16, 20, 0.88); }
}

/* ---------- Platzhalter (zum Ausfüllen) ---------- */
.placeholder {
  border: 1.5px dashed rgba(61, 255, 160, 0.55);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  color: var(--ink-dim);
  background: rgba(61, 255, 160, 0.05);
  font-size: 0.95rem;
}
.placeholder-inline { margin-top: 0.8rem; padding: 0.7rem 0.9rem; font-size: 0.88rem; }
.ph-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(61, 255, 160, 0.5);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 1180px);
  margin: 0 auto;
  padding: 13vh 0 4vh;
}
.eyebrow {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}
.eyebrow .dot { color: var(--bordeaux-hot); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10.5vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.hero-title .line { display: block; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-title .line:nth-child(2) { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(60px) skewY(4deg); }
  to { opacity: 1; transform: none; }
}
.line-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}
.line-outline .ast { color: var(--green); -webkit-text-stroke: 0; font-size: 0.5em; vertical-align: 0.55em; }
.line-gradient {
  background: linear-gradient(95deg, var(--bordeaux-hot) 10%, var(--bordeaux) 45%, var(--green) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Glitch-Effekt auf der ersten Zeile */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}
.glitch::before { color: var(--green); animation: glitch-a 3.2s infinite steps(2, end); clip-path: inset(0 0 62% 0); }
.glitch::after { color: var(--bordeaux-hot); animation: glitch-b 2.7s infinite steps(2, end); clip-path: inset(58% 0 0 0); }
@keyframes glitch-a {
  0%, 88% { transform: none; opacity: 0; }
  90% { transform: translate(-6px, 2px); opacity: 0.9; }
  94% { transform: translate(5px, -2px); opacity: 0.9; }
  98%, 100% { transform: none; opacity: 0; }
}
@keyframes glitch-b {
  0%, 80% { transform: none; opacity: 0; }
  84% { transform: translate(6px, 1px); opacity: 0.9; }
  90% { transform: translate(-5px, -1px); opacity: 0.9; }
  96%, 100% { transform: none; opacity: 0; }
}
.hero-lede {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-dim);
}
.hero-lede strong { color: var(--ink); }

.hero-glitch {
  position: absolute;
  top: 12vh; left: 0;
  width: 100%; height: 42vh;
  z-index: 1;
  opacity: 0.8;
  animation: glitchfloat 7s ease-in-out infinite alternate;
}
@keyframes glitchfloat {
  from { transform: translateY(0) skewX(0deg); }
  to { transform: translateY(-18px) skewX(-1.5deg); }
}

/* Ticket */
.ticket {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  width: fit-content;
  margin-top: 2.4rem;
  padding: 1.3rem 1.8rem;
  position: relative;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ticket-date { display: flex; align-items: baseline; gap: 0.7rem; }
.ticket-day {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--bordeaux-hot);
}
.ticket-month {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.1;
  color: var(--green);
}
.ticket-meta p { font-size: 1rem; }
.ticket-where { color: var(--ink-dim); }

.btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(100deg, var(--bordeaux-hot), var(--bordeaux));
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.15); color: var(--bg); }
.btn-ph { background: linear-gradient(100deg, var(--green), var(--lime)); opacity: 0.75; }

.scroll-hint {
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; color: var(--green); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Verlaufende Farb-Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.blob-a {
  width: 46vw; height: 46vw;
  top: -12vh; right: -10vw;
  background: radial-gradient(circle at 40% 40%, var(--bordeaux-hot), var(--bordeaux-deep) 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.blob-b {
  width: 38vw; height: 38vw;
  bottom: -8vh; left: -8vw;
  background: radial-gradient(circle at 60% 40%, var(--green), #064a2c 75%);
  opacity: 0.4;
  animation: drift-b 19s ease-in-out infinite alternate;
}
.blob-c {
  width: 24vw; height: 24vw;
  top: 34vh; left: 38vw;
  background: radial-gradient(circle, var(--lime), transparent 70%);
  opacity: 0.22;
  animation: drift-c 13s ease-in-out infinite alternate;
}
.blob-static { animation: none; position: absolute; }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 8vh) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, -6vh) scale(0.9); } }
@keyframes drift-c { from { transform: translate(0, 0); } to { transform: translate(-4vw, -6vh); } }

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 12, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Allgemeine Sektionen ---------- */
.section { position: relative; padding: 18vh 0; overflow: hidden; }
.wrap { position: relative; z-index: 2; width: min(92vw, 1080px); margin: 0 auto; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.grad-text {
  background: linear-gradient(95deg, var(--bordeaux-hot), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--ink-dim); max-width: 40rem; font-size: 1.1rem; }

/* Manifest-Text */
.manifest-text {
  max-width: 46rem;
  border-left: 3px solid var(--bordeaux-hot);
  padding-left: clamp(1rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.manifest-text p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink);
}
.manifest-text p:last-child { color: var(--green); }

/* Rotierender Scramble-Text */
.rotator-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  max-width: 60rem;
  margin-bottom: 2rem;
  min-height: 2.8em;
}
.rotator { color: var(--green); text-shadow: 0 0 24px rgba(61, 255, 160, 0.45); }

/* ---------- Gepinnte Scroll-Sektionen ---------- */
.pin { position: relative; height: var(--pin-h, 300vh); }
.pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Zoom-Sektion ---------- */
#zoom::before,
#zoom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 24vh;
  pointer-events: none;
  z-index: 5;
}
#zoom::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
#zoom::after { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
.zoom-stage { align-items: center; }
.zoom-art {
  width: min(78vw, 62vh);
  will-change: transform;
}
.zoom-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 80px rgba(138, 30, 63, 0.45)); }
.zoom-art .rings { transform-origin: 300px 300px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 10vh 0 6vh;
  text-align: center;
}
.footer-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 11vw, 9rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 233, 0.35);
  margin-bottom: 3rem;
}
.footer-big em { color: var(--bordeaux-hot); -webkit-text-stroke: 0; font-style: normal; }
.footer-row {
  width: min(92vw, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.footer-row .placeholder { width: 100%; }
.impressum {
  width: min(92vw, 34rem);
  text-align: left;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.impressum summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  list-style: none;
}
.impressum summary::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-right: 0.55rem;
  border-left: 6px solid var(--bordeaux-hot);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.impressum[open] summary::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--bordeaux-hot);
  border-bottom: none;
}
.impressum-body { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero-inner { padding-top: 11vh; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 5rem); }
  .line-outline { -webkit-text-stroke-width: 1.3px; }
  .ticket { gap: 1rem; padding: 1.1rem 1.3rem; }
  .pin { height: calc(var(--pin-h, 300vh) * 0.85); }
  .section { padding: 14vh 0; }
  .zoom-art { width: min(88vw, 52vh); }
  .rotator-line { min-height: 4.3em; }
  .chat-frame-svg { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .glitch::before, .glitch::after { display: none; }
}

/* ---------- Chat (Webhook) ---------- */
.chat-inline {
  position: relative;
  width: 100%;
  max-width: 46rem;
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 22px;
  background: #0b0b10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.chat-frame-svg {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.cf-main {
  fill: none;
  stroke: var(--bordeaux-hot);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
  stroke-dasharray: 7 9;
  animation: framedrift 26s linear infinite;
}
.cf-alt {
  fill: none;
  stroke: var(--green);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
}
.cf-crack {
  fill: none;
  stroke: var(--green);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
}
@keyframes framedrift { to { stroke-dashoffset: -320; } }
.chat-head {
  border-radius: 22px 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(100deg, rgba(138, 30, 63, 0.55), rgba(61, 255, 160, 0.12));
  border-bottom: 1px solid var(--glass-border);
}
.chat-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chat-status {
  font-size: 0.72rem;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: liveblink 1.8s ease-in-out infinite;
}
@keyframes liveblink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chat-body {
  height: 340px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
}
.msg {
  max-width: 84%;
  padding: 0.6rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgin 0.28s ease both;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
@keyframes msgin {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  white-space: normal;
}
.msg.bot strong { color: var(--green); }
.msg.bot em { color: var(--lime); }
.msg.bot code {
  background: rgba(61, 255, 160, 0.14);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}
.msg.bot ul, .msg.bot ol { margin: 0.35rem 0; padding-left: 1.2rem; }
.msg.bot li { margin: 0.15rem 0; }
.msg.consent {
  border: 1px dashed rgba(61, 255, 160, 0.55);
  background: rgba(61, 255, 160, 0.06);
  max-width: 100%;
}
.msg.consent a { color: var(--green); text-decoration: underline; }
.btn-accept {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--green), var(--lime));
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.btn-accept:hover { filter: brightness(1.1); transform: translateY(-1px); }
.chat-input:disabled { opacity: 0.5; cursor: not-allowed; }
.msg.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--bordeaux-hot), var(--bordeaux));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.error {
  align-self: flex-start;
  background: rgba(255, 46, 99, 0.12);
  border: 1px dashed rgba(255, 46, 99, 0.6);
  color: var(--ink);
}
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 0.8rem 1rem; }
.msg.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: typingblink 1s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingblink {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 22px 22px;
}
.chat-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.6rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--green); }
.chat-input::placeholder { color: rgba(242, 239, 233, 0.4); }
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  background: linear-gradient(100deg, var(--green), var(--lime));
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.chat-send:hover { filter: brightness(1.12); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.ic { display: inline-block; vertical-align: -1px; }
@media (max-width: 760px) {
  .chat-body { height: 300px; }
}
