/* ============================================================
   Österreichs erste KI Party — "AI Summer Night"
   ============================================================ */

:root {
  /* Base */
  --bg:        #0a0612;
  --bg-soft:   #120a20;
  --ink:       #f6eefe;
  --ink-dim:   #b7a8cf;
  --ink-faint: #6f6188;

  /* Sunset (REAL / summer) */
  --coral:   #ff5e7e;
  --magenta: #ff3d9a;
  --gold:    #ffb347;

  /* Electric (KI) */
  --cyan:   #3df0ff;
  --violet: #9d6bff;

  --line: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.035);

  --radius: 20px;
  --maxw: 1120px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

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

/* Stellt sicher, dass das hidden-Attribut nie von display-Regeln überschrieben wird */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---------- Atmospheric background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -10%, #1c0f33 0%, transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob--coral {
  width: 46vw; height: 46vw;
  top: -10vw; left: -8vw;
  background: radial-gradient(circle, var(--coral), transparent 65%);
  animation: drift1 22s ease-in-out infinite;
}
.blob--magenta {
  width: 40vw; height: 40vw;
  top: 20vh; right: -10vw;
  background: radial-gradient(circle, var(--magenta), transparent 65%);
  animation: drift2 26s ease-in-out infinite;
}
.blob--cyan {
  width: 38vw; height: 38vw;
  bottom: -12vw; left: 25vw;
  background: radial-gradient(circle, var(--cyan), transparent 65%);
  opacity: 0.4;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(6vw, 4vh) scale(1.12); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1.05); }
  50%     { transform: translate(-5vw, 6vh) scale(0.92); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-4vw, -6vh) scale(1.15); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  opacity: 0.5;
}

.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--cyan));
  box-shadow: 0 0 16px var(--magenta);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.topbar__meta {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Shared ---------- */
.gradient-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--coral) 28%, var(--magenta) 55%, var(--violet) 78%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vs-real { color: var(--gold); font-weight: 600; }
.vs-ai   { color: var(--cyan); font-weight: 600; }
.muted   { color: var(--ink-faint); font-weight: 400; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(.2,.7,.2,1) 0.1s forwards;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 var(--coral);
  animation: ripple 2s infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(255,94,126,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,94,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,94,126,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 12vw, 8.5rem);
  margin-bottom: 36px;
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__title .line:nth-child(1){ animation-delay: 0.15s; }
.hero__title .line:nth-child(2){ animation-delay: 0.28s; }
.hero__title .line:nth-child(3){ animation-delay: 0.42s; }
.line--em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink-dim);
  font-size: 0.62em;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-dim);
  margin-bottom: 44px;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.55s forwards;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

/* Equalizer motif */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-bottom: 48px;
  opacity: 0;
  animation: rise 1s ease 0.7s forwards;
}
.equalizer span {
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--coral), var(--cyan));
  animation: eq 1.2s ease-in-out infinite;
}
.equalizer span:nth-child(odd)  { background: linear-gradient(to top, var(--magenta), var(--gold)); }
.equalizer span:nth-child(1){ animation-delay:-.1s } .equalizer span:nth-child(2){ animation-delay:-.5s }
.equalizer span:nth-child(3){ animation-delay:-.9s } .equalizer span:nth-child(4){ animation-delay:-.3s }
.equalizer span:nth-child(5){ animation-delay:-.7s } .equalizer span:nth-child(6){ animation-delay:-.2s }
.equalizer span:nth-child(7){ animation-delay:-.6s } .equalizer span:nth-child(8){ animation-delay:-1s }
.equalizer span:nth-child(9){ animation-delay:-.4s } .equalizer span:nth-child(10){ animation-delay:-.8s }
.equalizer span:nth-child(11){ animation-delay:-.15s } .equalizer span:nth-child(12){ animation-delay:-.55s }
.equalizer span:nth-child(13){ animation-delay:-.95s } .equalizer span:nth-child(14){ animation-delay:-.35s }
.equalizer span:nth-child(15){ animation-delay:-.75s } .equalizer span:nth-child(16){ animation-delay:-.25s }
.equalizer span:nth-child(17){ animation-delay:-.65s } .equalizer span:nth-child(18){ animation-delay:-.05s }
.equalizer span:nth-child(19){ animation-delay:-.45s } .equalizer span:nth-child(20){ animation-delay:-.85s }
@keyframes eq {
  0%,100% { height: 14px; }
  50%     { height: 64px; }
}

/* Interessenten-Zähler */
.interest-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.9rem;
  color: var(--ink-dim);
  animation: rise 0.7s ease forwards;
}
.interest-count strong { color: var(--ink); font-weight: 600; }
.interest-count__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}

.cta-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: #14091f;
  background: linear-gradient(100deg, var(--gold), var(--coral) 45%, var(--magenta));
  box-shadow: 0 12px 40px -8px rgba(255,61,154,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  animation: rise 0.9s ease 0.85s forwards;
}
.cta-scroll:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 50px -6px rgba(255,61,154,0.7); }
.cta-scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(4px) } }

/* ---------- Concept ---------- */
.concept {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}
.concept__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,94,126,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 12px;
  position: relative;
}
.card p { color: var(--ink-dim); font-size: 1rem; position: relative; }

/* ---------- Facts ---------- */
.facts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--bg-soft);
  padding: 34px 28px;
  text-align: center;
}
.fact__label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.fact__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.fact__hint { color: var(--ink-faint); font-weight: 400; font-size: 0.85rem; }

/* ---------- Signup ---------- */
.signup {
  max-width: 680px;
  margin: 60px auto;
  padding: 24px;
}
.signup__inner {
  position: relative;
  padding: 52px 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(157,107,255,0.4);
  overflow: hidden;
}
.signup__inner::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 3px;
  background: linear-gradient(100deg, var(--gold), var(--coral), var(--magenta), var(--violet), var(--cyan));
}
.signup__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  text-align: center;
  margin-bottom: 16px;
}
.signup__sub {
  text-align: center;
  color: var(--ink-dim);
  margin-bottom: 36px;
  font-size: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,0.25);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,61,154,0.18);
}
.field input.invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,94,126,0.18);
}

/* Checkbox (Benachrichtigung) */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 4px;
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.checkbox__box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0,0,0,0.25);
  color: #14091f;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.checkbox__box svg { opacity: 0; transform: scale(0.5); transition: opacity .15s ease, transform .15s ease; }
.checkbox input:checked + .checkbox__box {
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  border-color: transparent;
}
.checkbox input:checked + .checkbox__box svg { opacity: 1; transform: scale(1); }
.checkbox input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 3px rgba(255,61,154,0.3);
}
.checkbox__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-dim);
}
.checkbox__text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.submit {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 17px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #14091f;
  background: linear-gradient(100deg, var(--gold), var(--coral) 40%, var(--magenta) 75%, var(--violet));
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 40px -10px rgba(255,61,154,0.6);
  transition: transform .2s ease, box-shadow .2s ease, background-position .6s ease;
}
.submit:hover:not(:disabled) { background-position: 100% 50%; transform: translateY(-2px); }
.submit:active:not(:disabled) { transform: translateY(0); }
.submit:disabled { cursor: wait; opacity: 0.9; }

.submit__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(20,9,31,0.35);
  border-top-color: #14091f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  top: 50%; left: 50%;
  margin: -9px 0 0 -9px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.submit.loading .submit__text { opacity: 0; }
.submit.loading .submit__spinner { display: block; }

.form__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 16px;
}
.form__note.error { color: var(--coral); }

/* Success */
.success { text-align: center; padding: 20px 10px; animation: rise .6s ease forwards; }
.success__icon {
  width: 70px; height: 70px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #14091f;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 0 40px -4px rgba(61,240,255,0.5);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) forwards;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.success p { color: var(--ink-dim); max-width: 420px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer__links a:hover { color: var(--ink); border-color: var(--magenta); }
.footer__meta { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Legal page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 36px;
  transition: color .2s ease;
}
.legal__back:hover { color: var(--ink); }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 8px;
}
.legal__intro { color: var(--ink-dim); margin-bottom: 40px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 34px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--cyan); }
.legal strong { color: var(--ink); }
.legal .placeholder {
  color: var(--gold);
  background: rgba(255,179,71,0.1);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .concept__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .signup__inner { padding: 38px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__tag { flex-wrap: wrap; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__title .line, .hero__tag, .hero__lead, .cta-scroll, .equalizer { opacity: 1; transform: none; }
}
