/* =========================================================================
   Der öffentliche Challenge-Aufruf.

   Die Seite gehört technisch zu lozi, steht aber unter der Adresse des
   Anmeldeportals — also trägt sie dessen Aussehen: dieselben Farben und
   Schriften wie in apps/indico/branding/custom/css. Die Schriftdateien liefert
   nginx unter /pwa/fonts/ aus; steht die Seite ausnahmsweise direkt unter dem
   lozi-Hostnamen, greift still der System-Font-Stack.

   Bewusst ohne Framework und ohne eine einzige fremde Adresse: die Seite ist
   das erste, was Externe von uns sehen, und sie soll niemandes IP-Adresse
   weitergeben.
   ========================================================================= */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/pwa/fonts/IBMPlexSans-400-latin.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/pwa/fonts/IBMPlexSans-500-latin.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/pwa/fonts/JetBrainsMono-400-latin.woff2) format("woff2");
}

:root {
  --bg: #0a0c10;
  --card: #0c0f14;
  --card2: #11141a;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.15);
  --text: #eef2f7;
  --text2: #d3dae4;
  --muted: #9aa4b5;
  --accent: #5e9bff;
  --accent2: #8bb8ff;
  --good: #5ad2a0;
  --bad: #ff8a8a;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.head,
main,
.foot {
  max-width: 46rem;
  margin: 0 auto;
}

.head {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 0.9rem;
  color: var(--text2);
  max-width: 40rem;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.block-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.block > h2 + .field {
  margin-top: 1.25rem;
}

.field {
  display: block;
  margin: 0 0 1.5rem;
  border: 0;
  padding: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0;
}

.label em {
  color: var(--accent);
  font-style: normal;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.2rem 0 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--bad);
}

.count {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.row {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 34rem) {
  .row {
    grid-template-columns: 1fr;
  }
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text2);
}

.choice input {
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
}

/* Der Honeypot: aus dem Blickfeld, aber nicht display:none — manche Bots
   überspringen versteckte Felder, und genau die will man fangen. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #05070b;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--accent2);
  border-color: var(--accent2);
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

button.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line2);
}

button.ghost:hover {
  background: var(--card2);
  color: var(--accent2);
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
}

.status[data-tone="error"] {
  color: var(--bad);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--card);
}

.notice-done {
  border-color: rgba(90, 210, 160, 0.4);
}

.notice-done h2 {
  color: var(--good);
}

.notice p {
  color: var(--text2);
}

.notice .ref {
  font-size: 0.9rem;
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.foot p {
  margin: 0.25rem 0;
}

a {
  color: var(--accent);
}
