/* ============================================================
   AI Impact Sessions — nicht2030.ch
   Bespoke design layer on top of Tailwind (Play CDN).
   Mirrors the "Factsheet V1A" look: dark editorial, Geist,
   mono-forward labels, accent #1FA3E9, square accent mark.
   ============================================================ */

:root {
  --accent: #1FA3E9;
  --ink: #0B0E14;
  --muted: #c7ccd6;
  --label: #6b7180;
  --hair: rgba(255, 255, 255, 0.10);
}

html { scroll-behavior: smooth; }
body { letter-spacing: -0.01em; }

/* ---- Mono eyebrow / label ---- */
.mono-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---- Hero display headline ---- */
.display-xl {
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-size: clamp(3.6rem, 15vw, 11rem);
}

/* The blue square accent mark after "Sessions" */
.sq {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  background: var(--accent);
  margin-left: 0.12em;
  vertical-align: baseline;
}

/* ---- Programm list (grid: time | content) ---- */
.programm { width: 100%; }
.programm li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.5rem 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
  align-items: start;
}
.programm li:last-child { border-bottom: 1px solid var(--hair); }
.programm time {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.1rem;
}
.programm li.hot time { color: var(--accent); }
.programm .title {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0;
}
.programm .who {
  display: block;
  margin-top: 0.3rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: #8a909c;
}

/* ---- Speaker cards ---- */
.spk {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}
.spk--accent { background: var(--accent); }
.spk--outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--hair);
}
.spk-body { padding: 1.5rem; }
@media (min-width: 640px) { .spk-body { padding: 1.75rem; } }

/* Compact speaker cards ("Ebenfalls auf der Bühne") */
.spk-mini {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--hair);
}
.spk-mini__body { padding: 0.95rem 1.05rem 1.15rem; }
.spk-mini h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.spk-mini .affil { margin-top: 0.2rem; font-size: 0.8rem; color: #8a909c; }
.spk-mini .role {
  margin-top: 0.7rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.spk-mini--tba { border-style: dashed; }

/* photo placeholder */
.spk-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px),
    rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--hair);
}
.spk-photo--sm { aspect-ratio: 4 / 3; }
.spk-photo--dark {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.10) 0 14px, transparent 14px 28px),
    rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.spk-photo > span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.spk-photo--dark > span { color: rgba(11, 14, 20, 0.5); }

/* ---- Gallery placeholders ---- */
.ph {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    rgba(255, 255, 255, 0.02);
}
.ph.has-img { border-style: solid; border-color: var(--hair); background: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

/* ---- Form ---- */
.form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 1.5rem;
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }

.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(31, 163, 233, 0.06);
}
/* Rot erst, nachdem der Gast das Feld berührt & ungültig verlassen hat */
.field input:user-invalid {
  border-color: rgba(239, 68, 68, 0.55);
}

/* ---- Stufen-Radios ---- */
.field-legend {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.radio-row { display: grid; gap: 0.5rem; }
.radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio:hover { border-color: rgba(255, 255, 255, 0.3); }
.radio input { width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.radio span { font-size: 0.9rem; color: var(--muted); }
.radio strong { color: #fff; font-weight: 600; }
.radio:has(input:checked) { border-color: var(--accent); background: rgba(31, 163, 233, 0.08); }

/* ---- Lightbox (Event-Galerie) ---- */
#gallery .ph.has-img { cursor: pointer; }
#gallery .ph.has-img img { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
#gallery .ph.has-img:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(5, 7, 11, 0.93);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.85);
}
.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.lightbox__close { top: 20px; right: 22px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) .lightbox__img { animation: lbin 0.25s ease-out both; }
  @keyframes lbin { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
}

#form-msg.ok    { color: #6ee7b7; }
#form-msg.error { color: #fca5a5; }

#submit-btn.loading .btn-arrow { display: none; }
#submit-btn.loading .btn-label::after { content: "…"; }

/* ---- Footer ---- */
footer { background: #080a0f; }

/* ============================================================
   Drei Stufen der KI-Nutzung
   ============================================================ */
.lvl {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 232px;
}
.lvl__num { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.lvl__title { font-size: 1.5rem; font-weight: 600; margin-top: 1.1rem; letter-spacing: -0.01em; }
.lvl__body { margin-top: 0.85rem; font-size: 0.95rem; line-height: 1.55; }
.lvl__kicker { margin-top: auto; padding-top: 1.25rem; font-style: italic; font-weight: 600; font-size: 0.9rem; }

/* Tag/Marker oben auf jeder Karte — macht „für wen / was" klar */
.lvl__tag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 01 Spielen — FOKUS des Events (heller Höhepunkt = hier holen wir Neulinge ab) */
.lvl--1 { background: var(--accent); border: 1px solid var(--accent); }
.lvl--1 .lvl__tag { background: rgba(11, 14, 20, 0.18); color: var(--ink); }
.lvl--1 .lvl__num { color: rgba(11, 14, 20, 0.5); }
.lvl--1 .lvl__title { color: var(--ink); }
.lvl--1 .lvl__body { color: rgba(11, 14, 20, 0.85); }
.lvl--1 .lvl__kicker { color: var(--ink); }
.lvl--focus { box-shadow: 0 0 0 1px var(--accent), 0 22px 60px -26px rgba(31, 163, 233, 0.55); }

/* 02 Anwenden — halb-hellblau (nächster Schritt) */
.lvl--2 { background: rgba(31, 163, 233, 0.07); border: 1px solid rgba(31, 163, 233, 0.30); }
.lvl--2 .lvl__tag { background: rgba(31, 163, 233, 0.14); color: var(--accent); }
.lvl--2 .lvl__num { color: var(--accent); }
.lvl--2 .lvl__title { color: #fff; }
.lvl--2 .lvl__body { color: var(--muted); }
.lvl--2 .lvl__kicker { color: var(--accent); }

/* 03 Systematisieren — Ausblick, gedämpft */
.lvl--3 { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); }
.lvl--3 .lvl__tag { background: rgba(255, 255, 255, 0.06); color: #8a909c; }
.lvl--3 .lvl__num { color: #8a909c; }
.lvl--3 .lvl__title { color: #fff; }
.lvl--3 .lvl__body { color: var(--muted); }
.lvl--3 .lvl__kicker { color: #8a909c; }

/* Framing note under the levels */
.lvl-note {
  display: flex;
  gap: 1.1rem;
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}
.lvl-note__bar { flex: none; width: 3px; border-radius: 3px; background: var(--accent); align-self: stretch; }

/* ============================================================
   Motion / micro-animations
   ============================================================ */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal (staggered via --i) — only hide when JS is active to reveal again */
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
    will-change: opacity, transform;
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Hero entrance */
  .hero-rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-rise.d1 { animation-delay: 0.05s; }
  .hero-rise.d2 { animation-delay: 0.16s; }
  .hero-rise.d3 { animation-delay: 0.30s; }
  .hero-rise.d4 { animation-delay: 0.42s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }

  /* Blinking cursor-style accent square — a quiet digital heartbeat */
  .sq { animation: sqpulse 2.4s ease-in-out infinite; }
  @keyframes sqpulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.9); }
  }

  /* Slow drift of the hero glow */
  .glow { animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-50px, 36px) scale(1.1); }
  }

  /* Hover lift */
  .card-lift:hover { transform: translateY(-5px); }
  .spk.card-lift:hover { box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6); }
}
