/* ==========================================================================
   Aufgabini – Beta-Anmeldung (/beta/)
   Ergänzt assets/css/style.css; nutzt dieselben Tokens (Papier, Tinte,
   Sonne, Sticker-Schatten).
   ========================================================================== */

/* ---------- Hero ---------- */
.beta-hero {
  padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.beta-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.beta-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}
.beta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}
.beta-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 2px 3px 0 var(--ink);
}
.beta-chips li:nth-child(2) {
  background: var(--pink-soft);
  transform: rotate(-1.5deg);
}
.beta-chips li:nth-child(3) {
  background: var(--mint);
  transform: rotate(1deg);
}

.brand__beta {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.15rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

/* ---------- Freie Plätze ---------- */
.slots {
  display: grid;
  gap: 0.9rem;
  max-width: 440px;
  margin-top: 1.8rem;
  padding: 1rem 1.2rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-sticker);
}
.slots__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.slots__label span {
  color: var(--ink-soft);
  font-weight: 700;
}
.slots__label b {
  color: var(--ink);
  font-weight: 900;
}
.slots__row.is-full .slots__label span {
  color: #b3312e;
  font-weight: 900;
}
.slot-bar {
  width: 100%;
  height: 10px;
  overflow: visible;
}
.slot-bar__track {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
.slot-bar__fill {
  fill: var(--green);
}
.is-full .slot-bar__fill {
  fill: var(--pink);
}

/* ---------- Formular-Karte ---------- */
.beta-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  box-shadow: 6px 8px 0 var(--ink);
  scroll-margin-top: 110px;
}
.beta-card::before {
  content: "★";
  position: absolute;
  top: -22px;
  right: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(12deg);
  box-shadow: 2px 3px 0 var(--ink);
}

.beta-step {
  border: 0;
  padding: 0;
  margin: 0 0 1.4rem;
  min-width: 0;
  transition: opacity 0.25s var(--ease);
}
.beta-step legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  margin-bottom: 0.75rem;
  font-weight: 900;
  font-size: 1.05rem;
}
.beta-step legend label {
  cursor: inherit;
}
.beta-step__num {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.beta-step.is-locked {
  opacity: 0.45;
}
.beta-step .field {
  margin-bottom: 0;
}
.field input:disabled {
  cursor: not-allowed;
  background: var(--paper-2);
}

/* ---------- Plattform-Slider ---------- */
.platform-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  isolation: isolate;
}
.platform-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.platform-switch label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.1;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s var(--ease);
}
.platform-switch label:hover {
  color: var(--ink);
}
.platform-switch label svg {
  flex: none;
  width: 22px;
  height: 22px;
}
.platform-switch label small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}
.platform-switch input:disabled + label {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.platform-switch input:disabled + label small {
  text-decoration: none;
}
.platform-switch input:checked + label {
  color: var(--ink);
}
.platform-switch input:focus-visible + label {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.platform-switch__thumb {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.45s var(--ease), opacity 0.25s var(--ease);
}
/* Auswahl: per :has() (ohne JS) und per Klasse (JS-Fallback). */
.platform-switch:has(input:checked) .platform-switch__thumb,
.platform-switch.is-picked .platform-switch__thumb {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.platform-switch:has(#pf-android:checked) .platform-switch__thumb,
.platform-switch.is-android .platform-switch__thumb {
  transform: translateX(100%) scale(1);
}

.beta-error {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #b3312e;
}
.beta-consent {
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}
.beta-consent + .beta-error {
  margin: -0.2rem 0 0.8rem;
}
.beta-submit {
  margin-top: 1rem;
  min-height: 58px;
  font-size: 1.08rem;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld. */
.beta-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Erfolg ---------- */
.beta-done {
  text-align: center;
  padding: 0.6rem 0 0.4rem;
}
.beta-done__badge {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1rem;
  border-radius: 26px;
  background: var(--mint);
  border: 2px solid var(--ink);
  font-size: 2.6rem;
  transform: rotate(-6deg);
  box-shadow: 3px 4px 0 var(--ink);
  animation: beta-pop 0.6s var(--ease) both;
}
.beta-done h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.beta-done p {
  max-width: 40ch;
  margin-inline: auto;
}
@keyframes beta-pop {
  from {
    transform: rotate(-6deg) scale(0.4);
    opacity: 0;
  }
  to {
    transform: rotate(-6deg) scale(1);
    opacity: 1;
  }
}

/* ---------- Anleitung ---------- */
.guide-tabs {
  display: none;
  width: max-content;
  max-width: 100%;
  gap: 0.3rem;
  padding: 5px;
  margin: 0 auto 2.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}
.js .guide-tabs {
  display: flex;
}
.guide-tabs button {
  min-height: 46px;
  padding: 0.5rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 900 0.98rem var(--font-body);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.guide-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
.guide-panel + .guide-panel {
  margin-top: 3rem;
}
.js .guide-panel + .guide-panel {
  margin-top: 0;
}
.guide-panel__title {
  text-align: center;
  margin-bottom: 2.2rem;
}
.js .guide-panel__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide;
}
.guide li {
  position: relative;
  counter-increment: guide;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
  padding: 1.6rem 1.3rem 1.7rem;
  box-shadow: var(--shadow-sticker);
}
.guide li:nth-child(2) {
  background: var(--sun-soft);
  transform: translateY(18px) rotate(0.6deg);
}
.guide li:nth-child(3) {
  background: var(--mint);
  transform: rotate(-0.6deg);
}
.guide li::before {
  content: counter(guide);
  position: absolute;
  top: -22px;
  left: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  border: 3px solid var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.guide img {
  width: min(100%, 190px);
  height: auto;
  margin: 0.2rem auto 1.2rem;
}
.guide h3 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0;
  margin-bottom: 0.35em;
}
.guide p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Datenschutz ---------- */
.beta-privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.beta-privacy__box {
  margin: 0;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sticker);
}
.beta-privacy__box ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

/* ---------- Responsiv ---------- */
@media (max-width: 920px) {
  .beta-hero__grid,
  .beta-privacy {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .guide {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    max-width: 420px;
    margin-inline: auto;
  }
  .guide li:nth-child(n) {
    transform: none;
  }
  .guide img {
    width: min(100%, 170px);
  }
}
@media (max-width: 420px) {
  .platform-switch label {
    flex-direction: column;
    gap: 0.2rem;
    min-height: 66px;
    border-radius: 26px;
  }
  .platform-switch,
  .platform-switch__thumb {
    border-radius: 30px;
  }
  .platform-switch__thumb {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-switch__thumb,
  .beta-step,
  .guide-tabs button {
    transition: none;
  }
  .beta-done__badge {
    animation: none;
  }
}
