/* ==========================================================================
   TNIO – öffentliche Seiten (Vorregistrierung, Pass)
   ========================================================================== */

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

body.pub {
  background: #07061c;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Animierter Hintergrund ---------- */
.aurora { position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; filter: blur(70px) saturate(130%); }
.aurora i { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; opacity: .75; will-change: transform; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: 0; top: 0; background: radial-gradient(circle, #d81e78 0, transparent 62%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 70vmax; height: 70vmax; right: -5vmax; bottom: -10vmax; background: radial-gradient(circle, #2f33d8 0, transparent 60%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 45vmax; height: 45vmax; left: 35%; top: 30%; background: radial-gradient(circle, #a020c8 0, transparent 60%); opacity: .55; animation: drift3 30s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 35vmax; height: 35vmax; right: 15%; top: 5%; background: radial-gradient(circle, #ff4d96 0, transparent 60%); opacity: .35; animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(18vmax, 14vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, -12vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-14vmax, 10vmax, 0) scale(1.25); } }

.noise {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain { 33% { transform: translate(-2%, 1.5%); } 66% { transform: translate(1.5%, -2%); } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(7, 6, 28, .7), rgba(7, 6, 28, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { font-family: var(--display); font-size: 22px; letter-spacing: .14em; text-decoration: none; }
.count {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.count .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 0 0 rgba(255, 77, 150, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 150, 0); } }
.count b { font-variant-numeric: tabular-nums; font-weight: 800; }
.count small { color: var(--muted); font-weight: 600; margin-right: 4px; }

/* ---------- Hero ---------- */
.hero2 { padding: clamp(20px, 3.5vw, 44px) clamp(16px, 4vw, 48px) 0; max-width: 1280px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-hot); }
.mega {
  font-family: var(--display); text-transform: uppercase; margin: 0;
  font-size: clamp(30px, 4.6vw, 60px); line-height: .95; letter-spacing: -.02em;
}
.mega .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.mega .ln > span { display: inline-block; transform: translateY(105%) skewY(6deg); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.mega .ln:nth-child(2) > span { transition-delay: .12s; }
.mega .outline { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .9); }
.ready .mega .ln > span { transform: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.chip svg { width: 14px; height: 14px; opacity: .7; }
.chip--hot { border-color: rgba(255, 77, 150, .5); background: rgba(216, 30, 120, .16); }

/* ---------- Hauptbereich ---------- */
.stage { max-width: 1280px; margin: 0 auto; padding: clamp(22px, 3.5vw, 44px) clamp(16px, 4vw, 48px) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } .stage .form-col { order: -1; } }
.info-col { padding-top: 8px; }
.info-col .h-xl { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; }
.info-col .copy { font-size: 16px; }

.h-xl { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 4.4vw, 54px); line-height: .95; margin: 0 0 18px; }
.copy { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 52ch; margin: 0 0 30px; }

.steps2 { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps2 li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), border-color .3s, background .3s;
}
.steps2 li:hover { transform: translateX(6px); border-color: rgba(255, 77, 150, .45); background: rgba(216, 30, 120, .08); }
.steps2 .n { font-family: var(--display); font-size: 28px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-hot); }
.steps2 h3 { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .02em; margin: 2px 0 6px; }
.steps2 p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); line-height: 1.55; }

/* ---------- Formular-Karte ---------- */
.glass {
  position: relative; border-radius: 10px; padding: 1px; isolation: isolate;
  background: conic-gradient(from var(--spin), rgba(255, 77, 150, .9), rgba(47, 51, 216, .6), rgba(255, 255, 255, .1), rgba(160, 32, 200, .8), rgba(255, 77, 150, .9));
  animation: spin 7s linear infinite;
  box-shadow: 0 40px 120px -40px rgba(216, 30, 120, .7), 0 0 0 1px rgba(255, 255, 255, .04);
}
@keyframes spin { to { --spin: 360deg; } }
.glass::after { content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 20px; background: inherit; filter: blur(40px); opacity: .35; }
.glass-in {
  position: relative; border-radius: 9px; padding: clamp(24px, 4vw, 44px); overflow: hidden;
  background: rgba(12, 10, 40, .82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.glass-in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 77, 150, .16), transparent 60%);
}
.glass:hover .glass-in::before { opacity: 1; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; background: rgba(25, 195, 125, .14); color: #3ee6a0; border: 1px solid rgba(25, 195, 125, .4); white-space: nowrap; }
.form-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); line-height: .95; margin: 14px 0 10px; }
.form-sub { margin: 0 0 26px; color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.55; }

.f { position: relative; margin-bottom: 14px; }
.f input {
  width: 100%; font: inherit; font-size: 17px; color: #fff;
  padding: 26px 18px 10px; border-radius: 4px; outline: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.f input:hover { border-color: rgba(255, 255, 255, .28); }
.f input:focus { border-color: var(--accent-hot); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 77, 150, .18); }
.f label {
  position: absolute; left: 19px; top: 18px; margin: 0; pointer-events: none;
  font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .55);
  transform-origin: left top; transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .25s;
}
.f input:focus + label, .f input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.72); color: rgba(255, 255, 255, .8); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.f input:not(:placeholder-shown):valid ~ .ok { opacity: 1; transform: none; }
.f .ok { position: absolute; right: 16px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%; background: rgba(25, 195, 125, .2); color: #3ee6a0; display: grid; place-items: center; font-size: 12px; opacity: 0; transform: scale(.5); transition: .3s cubic-bezier(.16, 1, .3, 1); }
.f input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #1a1740 inset; caret-color: #fff; }

.toggle { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; margin: 18px 0 22px; text-transform: none; letter-spacing: 0; font-size: 14px; color: rgba(255, 255, 255, .85); font-weight: 500; line-height: 1.5; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { flex: none; width: 44px; height: 26px; border-radius: 3px; background: rgba(255, 255, 255, .14); position: relative; transition: background .3s; margin-top: 1px; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 2px; background: #fff; transition: transform .35s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--accent-hot); outline-offset: 3px; }
.toggle small { color: var(--muted); }

.cta {
  position: relative; overflow: hidden; width: 100%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 21px 28px; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #d81e78, #ff4d96 45%, #a020c8);
  background-size: 200% 100%;
  box-shadow: 0 18px 50px -14px rgba(255, 77, 150, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, background-position .6s;
}
.cta::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta:hover { transform: translateY(-2px) scale(1.01); background-position: 100% 0; box-shadow: 0 26px 60px -14px rgba(255, 77, 150, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cta:active { transform: scale(.98); }
.cta .arrow { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.cta:hover .arrow { transform: translateX(5px); }
.cta .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rot .7s linear infinite; }
.cta.is-loading .spin { display: block; }
.cta.is-loading .arrow, .cta.is-loading .lbl { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }

.fine2 { margin: 18px 0 0; font-size: 12px; line-height: 1.65; color: rgba(255, 255, 255, .5); }
.fine2 a { color: rgba(255, 255, 255, .78); text-decoration-color: var(--accent); }
.err2 { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 4px; background: rgba(255, 59, 92, .14); border: 1px solid rgba(255, 59, 92, .5); font-size: 14px; animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Line-up ---------- */
.lineup { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); }
.lineup .kick { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-hot); margin: 0 0 10px; }
.acts2 { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.acts2 li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 7vw, 92px); line-height: .95;
  transition: color .3s, padding-left .5s cubic-bezier(.16, 1, .3, 1);
}
.acts2 li:hover { color: var(--accent-hot); padding-left: 14px; }
.acts2 li small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--muted); white-space: nowrap; }
.acts2 li.guest { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.acts2 li.guest:hover { color: var(--accent-hot); -webkit-text-stroke-color: var(--accent-hot); }

.foot2 { max-width: 1280px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 48px) 50px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .1); }
.foot2 nav { display: flex; gap: 20px; }
.foot2 a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.foot2 a:hover { color: #fff; }

/* ---------- Scroll-Reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Pass-Seite ---------- */
.pass2 { max-width: 560px; margin: 0 auto; padding: clamp(28px, 6vw, 70px) 16px 60px; text-align: center; }
.pass2 .mega { font-size: clamp(40px, 10vw, 80px); }
.pass2 .note { margin: 22px auto 30px; max-width: 46ch; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.6; }
.pass2 .note b { color: #fff; }
.tilt { perspective: 1200px; margin: 0 auto; max-width: 420px; }
.tilt-in {
  position: relative; border-radius: 10px; overflow: hidden; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 50px 100px -40px rgba(216, 30, 120, .8), 0 0 0 1px rgba(255, 255, 255, .14);
  animation: floaty 6s ease-in-out infinite;
}
.tilt-in img { display: block; width: 100%; height: auto; }
.tilt-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: overlay; }
@keyframes floaty { 50% { translate: 0 -10px; } }
.pass-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; }
.pass-actions .wide { grid-column: 1 / -1; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 18px; border-radius: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s, border-color .3s;
}
.pbtn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.pbtn--main { background: #fff; color: #000; border-color: #fff; }
.pbtn--main:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #fff; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; text-align: left; }
.info-grid div { padding: 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.info-grid small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-grid b { font-size: 15px; }
.okmsg { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto; padding: 10px 16px; border-radius: 4px; background: rgba(25, 195, 125, .14); border: 1px solid rgba(25, 195, 125, .45); color: #b9f5da; font-size: 14px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

@media (max-width: 520px) {
  .count small { display: none; }
  .pass-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .noise, .glass, .cta::before, .tilt-in, .count .dot { animation: none !important; }
  .mega .ln > span, .rv { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- ALTCHA (Spam-Schutz) ---------- */
.captcha { margin: 4px 0 18px; min-height: 58px; }
.captcha altcha-widget {
  --altcha-max-width: 100%;
  --altcha-border-radius: 4px;
  --altcha-border-width: 1px;
  --altcha-border-color: rgba(255, 255, 255, .16);
  --altcha-color-base: rgba(255, 255, 255, .05);
  --altcha-color-base-content: #fff;
  --altcha-color-neutral: rgba(255, 255, 255, .35);
  --altcha-color-primary: #ff4d96;
  --altcha-color-success: #19c37d;
  --altcha-color-error: #ff3b5c;
  --altcha-checkbox-border-radius: 3px;
  --altcha-input-border-radius: 3px;
  --altcha-shadow: none;
  --altcha-spinner-color: #ff4d96;
  display: block; font-size: 14px;
}

/* ---------- Impressum & Datenschutz ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 60px; }
.legal .h-xl { font-size: clamp(30px, 5vw, 52px); margin-bottom: 28px; }
.legal h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(17px, 2vw, 21px); letter-spacing: .02em; margin: 40px 0 12px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal a { color: #fff; text-decoration-color: var(--accent-hot); text-underline-offset: 3px; }
.legal .card-l { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: rgba(255, 255, 255, .04); margin: 0 0 14px; }
.legal .muted { color: var(--muted); font-size: 14px; }
.pt-img { display: block; max-width: 100%; height: auto; }
