/* Anmeldeseite des Mathematikwettbewerbs: eigenständig (liegt in einem Ordner, den nginx ohne Anmeldung ausliefert). */
:root { --bg: #f5f5f7; --surface: #fff; --text: #1d1d1f; --muted: #5f6570; --line: #dcdce2; --accent: #0a66d6; --on-accent: #fff; --danger: #b3211a; --danger-bg: #fdecea; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f0f12; --surface: #1a1a1f; --text: #f3f3f6; --muted: #a4a9b4; --line: #34343d; --accent: #4c9bff; --on-accent: #06152b; --danger: #ff7a70; --danger-bg: #3a1815; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.box { width: min(26rem, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
h1 { margin: 0 0 8px; font-size: 1.5rem; }
.muted { color: var(--muted); } .small { font-size: .9rem; margin-bottom: 0; }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .9rem; }
label.zeile { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
label.zeile input { width: auto; margin-top: .25rem; }
input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; }
button { margin-top: 18px; width: 100%; padding: 11px 14px; border: 0; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
button[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); font-size: .92rem; }
.msg[hidden] { display: none; }
.klein-hinweis { display: none; padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: .92rem; }
@media (max-width: 700px) { .klein-hinweis { display: block; } }
.fuss { font-size: .85rem; color: var(--muted); }
.lead { margin: 0 0 12px; font-size: 1.02rem; }
.vorteile { margin: 0 0 16px; padding-left: 1.2rem; } .vorteile li { margin: 4px 0; }

/* „Bitte warten …“ während der Anmeldung */
.warten { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--text); font-size: .95rem; }
.warten[hidden] { display: none; }
.warten .kreisel { flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: .2rem solid var(--line); border-top-color: var(--accent); animation: warten-dreh .8s linear infinite; }
.warten .zusatz { color: var(--muted); }
@keyframes warten-dreh { to { transform: rotate(360deg); } }
@keyframes warten-puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .warten .kreisel { animation: warten-puls 1.6s ease-in-out infinite; border-color: var(--accent); } }
