/* =========================================================================
   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: "Dax Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Dax Pro"), local("DaxPro-Regular"), local("Dax Pro Regular"), local("Dax-Regular"),
       url(/pwa/fonts/DaxPro-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "Dax Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Dax Pro Medium"), local("DaxPro-Medium"), local("Dax-Medium"),
       url(/pwa/fonts/DaxPro-Medium.woff2) format("woff2");
}
@font-face {
  font-family: "Dax Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Dax Pro Bold"), local("DaxPro-Bold"), local("Dax-Bold"),
       url(/pwa/fonts/DaxPro-Bold.woff2) format("woff2");
}
:root {
  --bg: #000000;
  --card: rgba(255, 255, 255, 0.05);
  --card2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --line2: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --text2: #d9d9d9;
  --muted: #969696;
  --accent: #ff003a;
  --accent2: #ff003a;
  --good: #ffffff;
  --bad: #ff003a;
  --mono: "Dax Pro", Arial, Helvetica, sans-serif;
  --sans: "Dax Pro", Arial, Helvetica, 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: #ffffff;
  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(255, 255, 255, 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;
}

/* Die drei Pflichtverweise in einer Zeile, mit Platz dazwischen statt eines
   Trennzeichens — auf schmalen Schirmen brechen sie einzeln um. */
.foot .recht {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

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

/* --- Die Navigationsleiste des Portals -------------------------------------
   Dieselbe wie überall. Die Variablennamen dieser Seite heißen anders als in
   den React-Anwendungen (--card statt --karte), der Rest ist Wort für Wort
   derselbe Stil. */

.lozi-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 0 1rem;
  padding: 0.35rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.lozi-nav-liste {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.lozi-nav-liste::-webkit-scrollbar { display: none; }

.lozi-nav-punkt { margin: 0; padding: 0; }

.lozi-nav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text2);
}
.lozi-nav-link:hover,
.lozi-nav-link:focus-visible {
  background: var(--card2);
  color: var(--text);
}

/* Der aktive Punkt trägt Farbe und Gewicht, keine Fläche — das bleibt auch
   dann ein Unterschied, wenn jemand die Farbe nicht unterscheiden kann. */
.lozi-nav-aktiv,
.lozi-nav-aktiv:hover {
  background: none;
  color: var(--accent2);
  font-weight: 600;
}

@media (max-width: 48rem) {
  .lozi-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 0.2rem 0.4rem;
    padding-bottom: calc(0.2rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line2);
    border-bottom: 0;
    box-shadow: 0 -0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  }
  .lozi-nav-liste { justify-content: space-between; padding: 0; }
  .lozi-nav-link { padding: 0.55rem 0.5rem; font-size: 0.82rem; }

  /* Platz für die Leiste, sonst verdeckt sie die Fußzeile. */
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
}

.lozi-nav-zeile {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lozi-nav-zeile .lozi-nav-liste {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.lozi-nav-logo {
  flex: none;
  /* Rechts, so verlangt es der BWI-Styleguide. */
  margin-left: auto;
  display: block;
  line-height: 0;
}
.lozi-nav-logo img {
  display: block;
  height: 4.5rem;
  width: auto;
}
@media (max-width: 48rem) {
  .lozi-nav-logo { display: none; }
  .lozi-nav-zeile { padding: 0; }
}
