/* Design «Zukunft» · Anmelde-, Registrier- und Fehlerseiten
   Weltraum-Stil von modernhosting.ch / Power Panel: Sternenhimmel mit bewegtem
   Punktenetz, Glas-Karte «Mission Control», Verlauf Violett - Cyan - Mint.
   Eigenstaendig (braucht kein anderes Stylesheet), nur auf Anmelde-, Registrier- und Fehlerseiten geladen.
   Keine externen Quellen: Schriften lokal (SIL Open Font License, ../fonts/OFL-*.txt).
   Bewegung nur mit html.zl-motion (setzt zukunft-login.js). Ohne JavaScript, bei
   «Bewegung reduzieren» oder nach «Pause» steht alles still. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/rajdhani-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/rajdhani-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --zl-edge {
  syntax: '<angle>';
  initial-value: 220deg;
  inherits: true;
}

/* ---------- Grundlagen ---------- */
html.zl-html {
  color-scheme: dark;
  background: #070a13;
  overflow-x: hidden;
  overflow-x: clip;
}
body.zl {
  --zl-bg: #070a13;
  --zl-surface: #0d1322;
  --zl-text: #eef3ff;
  --zl-dim: #a6b2ca;
  --zl-faint: #8794b0;
  --zl-cyan: #69e1f5;
  --zl-mint: #9af5d4;
  --zl-violet: #a492ff;
  --zl-indigo: #6550db;
  --zl-danger: #ffb2c0;
  --zl-hair: rgba(255, 255, 255, .18);
  --zl-field: rgba(4, 7, 14, .62);
  --zl-field-border: #6b7a99;
  --zl-grad: linear-gradient(105deg, var(--zl-violet), var(--zl-cyan) 65%, var(--zl-mint));
  --zl-font: Inter, Arial, Helvetica, sans-serif;
  --zl-title: Rajdhani, Inter, Arial, sans-serif;
  --zl-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: radial-gradient(ellipse at 75% 30%, rgba(113, 82, 218, .2), transparent 55%), var(--zl-bg);
  color: var(--zl-text);
  font: 400 15px/1.6 var(--zl-font);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.zl *, .zl *::before, .zl *::after { box-sizing: border-box; }
.zl :where(h1, p, form, figure) { margin: 0; }
.zl ::selection { background: var(--zl-violet); color: var(--zl-bg); }
.zl [hidden] { display: none !important; }
.zl :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--zl-cyan);
  outline-offset: 3px;
}
.zl a { color: var(--zl-cyan); text-underline-offset: 3px; }
.zl a:hover { color: var(--zl-mint); }

/* Sprunglink */
.zl-skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  background: var(--zl-cyan); color: #04121a !important; font-weight: 600; text-decoration: none;
}
.zl-skip:focus { top: 12px; }

/* ---------- Himmel ---------- */
.zl-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.zl-net { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.zl-nebula { position: absolute; border-radius: 50%; }
.zl-nebula-a {
  top: -28vh; right: -24vw; width: 78vw; height: 92vh; transform: rotate(-30deg);
  background: radial-gradient(ellipse at center, rgba(52, 44, 130, .72), rgba(37, 32, 95, .3) 38%, transparent 66%);
}
.zl-nebula-b {
  bottom: -32vh; left: -22vw; width: 64vw; height: 74vh;
  background: radial-gradient(ellipse at center, rgba(71, 206, 235, .14), rgba(101, 80, 219, .08) 42%, transparent 68%);
}
.zl-planet {
  position: absolute; top: calc(100% - 12vh); left: 36%;
  width: 300vmax; height: 300vmax; margin-left: -150vmax;
  border-top: 1px solid rgba(154, 245, 212, .55); border-radius: 50%;
  background: radial-gradient(circle at 50% 0, rgba(105, 225, 245, .2), rgba(26, 36, 72, .9) 5%, #04070e 14%);
  box-shadow: 0 -6px 36px rgba(105, 225, 245, .2), 0 -36px 140px rgba(164, 146, 255, .24), inset 0 16px 60px rgba(105, 225, 245, .14);
}
.zl-scan {
  position: absolute; inset: 0; opacity: .16;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, var(--zl-bg) 3px 4px);
}

/* ---------- Seitenraster ---------- */
.zl-page {
  position: relative; z-index: 1;
  display: grid; grid-template-rows: auto 1fr auto;
  width: min(1120px, 100% - 48px); min-height: 100vh; min-height: 100dvh;
  margin-inline: auto;
}
.zl-head { display: flex; align-items: center; padding: 26px 0 6px; min-width: 0; }
.zl-brand {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0;
  color: var(--zl-text) !important; text-decoration: none;
}
.zl-brand img, .zl-brand svg { display: block; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; }
.zl-brand .zl-logo-tile { padding: 3px; background: #fff; }
.zl-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.zl-brand-name { font: 700 24px/1.1 var(--zl-title); letter-spacing: .01em; overflow-wrap: anywhere; }
.zl-brand-sub {
  margin-top: 3px; color: var(--zl-dim);
  font: 500 10.5px/1.3 var(--zl-mono); letter-spacing: .16em; text-transform: uppercase;
}
.zl-main { display: grid; place-items: center; padding-block: 20px 34px; min-width: 0; }
.zl-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 20px; padding: 6px 0 22px; color: var(--zl-faint); font-size: 13px;
}
.zl-foot p { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.zl-foot a { color: var(--zl-dim); }
.zl-pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 2px;
  border: 0; background: none; color: var(--zl-dim);
  font: 12px/1.4 var(--zl-mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.zl-pause:hover, .zl-pause[aria-pressed="true"] { color: var(--zl-cyan); }
.zl-pause::before {
  content: ""; width: 9px; height: 9px; flex: 0 0 9px; border: 1px solid currentColor; border-radius: 2px;
}
.zl-pause[aria-pressed="true"]::before { background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------- Karte ---------- */
.zl-flight {
  width: min(440px, 100%); margin: 0 0 8px 6px; color: var(--zl-faint);
  font: 11px/1.4 var(--zl-mono); letter-spacing: .15em;
}
.zl-flight b { color: var(--zl-cyan); font-weight: 500; }
.zl-stack { width: min(440px, 100%); min-width: 0; }
.zl-card {
  position: relative; isolation: isolate;
  width: 100%; padding: 34px 32px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 29, 52, .82), rgba(9, 13, 25, .88));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(101, 80, 219, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
/* Kantenlicht folgt dem Zeiger */
.zl-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--zl-edge), transparent 0 60%, rgba(105, 225, 245, .85) 78%, rgba(164, 146, 255, .7) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}
/* Tastaturfokus in der Karte: Kantenlicht und Ecken leuchten staerker */
.zl-card:focus-within { border-color: rgba(105, 225, 245, .32); }
.zl-card:focus-within::before { opacity: 1; }
.zl-card:focus-within .zl-card-fx { --c: rgba(154, 245, 212, .95); }
/* Andock-Ecken */
.zl-card-fx { position: absolute; inset: -9px; pointer-events: none; --c: rgba(105, 225, 245, .7); }
.zl-card-fx::before, .zl-card-fx::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--c);
}
.zl-card-fx::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 8px; }
.zl-card-fx::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 8px; }
.zl-rocket {
  position: absolute; top: -34px; right: 20px; width: 44px; height: 84px; pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(105, 225, 245, .35));
}
.zl-rocket svg { display: block; width: 100%; height: 100%; overflow: visible; }

.zl-eyebrow {
  margin-bottom: 6px; color: var(--zl-cyan);
  font: 500 11px/1.4 var(--zl-mono); letter-spacing: .16em; text-transform: uppercase;
}
.zl-title {
  margin: 0 0 6px; padding-right: 44px;
  font: 700 clamp(2rem, 7vw, 2.5rem)/1.05 var(--zl-title); letter-spacing: .005em; color: var(--zl-text);
  background: var(--zl-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere; width: fit-content; max-width: 100%;
}
.zl-lead { margin: 0 0 20px; color: var(--zl-dim); font-size: 14.5px; }

/* ---------- Meldungen ---------- */
.zl-alert {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 178, 192, .55); background: rgba(255, 178, 192, .09);
  color: var(--zl-danger); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
.zl-alert--ok { border-color: rgba(154, 245, 212, .5); background: rgba(154, 245, 212, .08); color: var(--zl-mint); }
.zl-alert--info { border-color: rgba(105, 225, 245, .45); background: rgba(105, 225, 245, .08); color: var(--zl-cyan); }

/* ---------- Formular ---------- */
.zl-form { display: grid; gap: 4px; }
.zl-label {
  display: block; margin: 12px 0 6px; color: #d3dcee;
  font: 600 13px/1.3 var(--zl-font); letter-spacing: .02em;
}
.zl-form .zl-label:first-child { margin-top: 0; }
.zl-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 6px; }
.zl-labelrow .zl-label { margin: 0; }
.zl-small { font-size: 13px; }
.zl-input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--zl-field-border); background: var(--zl-field); color: var(--zl-text);
  font: 400 16px/1.4 var(--zl-font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.zl-input::placeholder { color: var(--zl-faint); }
.zl-input:hover { border-color: #8391ad; }
.zl-input:focus { outline: none; border-color: var(--zl-cyan); box-shadow: 0 0 0 3px rgba(105, 225, 245, .28); background: rgba(4, 7, 14, .82); }
.zl-input:-webkit-autofill { -webkit-text-fill-color: var(--zl-text); box-shadow: 0 0 0 60px #0b1120 inset; caret-color: var(--zl-text); }
.zl-hint { margin: 6px 0 0; color: var(--zl-dim); font-size: 13px; line-height: 1.5; }
.zl-check { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--zl-dim); font-size: 14px; }
.zl-check input { width: 18px; height: 18px; accent-color: var(--zl-cyan); flex: 0 0 auto; }

.zl-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; margin-top: 16px; padding: 12px 20px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 18px/1.2 var(--zl-title); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
}
.zl-btn--primary {
  background: var(--zl-grad); color: #060913 !important;
  box-shadow: 0 8px 30px rgba(101, 80, 219, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.zl-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(105, 225, 245, .34), inset 0 1px 0 rgba(255, 255, 255, .4); filter: brightness(1.06); }
.zl-btn--primary:active { transform: translateY(0); }
.zl-btn--ghost {
  margin-top: 0; background: rgba(105, 225, 245, .07); border-color: rgba(105, 225, 245, .6); color: var(--zl-text) !important;
}
.zl-btn--ghost:hover { background: rgba(105, 225, 245, .16); border-color: var(--zl-cyan); }
.zl-btn[disabled], .zl-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.zl-sep {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--zl-faint);
  font: 500 11px/1.4 var(--zl-mono); letter-spacing: .14em; text-transform: uppercase;
}
.zl-sep::before, .zl-sep::after { content: ""; flex: 1; height: 1px; background: var(--zl-hair); }
.zl-links { margin-top: 20px; text-align: center; font-size: 14px; color: var(--zl-dim); }
.zl-links a { font-weight: 600; }
.zl-links p + p { margin-top: 6px; }

/* Breite Karte (Registrierung) und Felder in Zeilen */
.zl-stack.zl-stack--breit { width: min(600px, 100%); }
.zl-stack--breit .zl-flight { width: 100%; }
.zl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.zl-field { min-width: 0; }
.zl-field .zl-label { margin-top: 12px; }
.zl-form > .zl-field:first-child .zl-label, .zl-row:first-child .zl-label { margin-top: 0; }
.zl-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--zl-cyan) 50%), linear-gradient(135deg, var(--zl-cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.zl-select option { background: var(--zl-surface); color: var(--zl-text); }
.zl-input[aria-invalid="true"] { border-color: var(--zl-danger); }
.zl-fielderr { display: block; margin-top: 6px; color: var(--zl-danger); font-size: 13px; line-height: 1.4; }
.zl-meta { margin: 0 0 18px; color: var(--zl-dim); font-size: 14px; }
.zl-title--klein { font-size: clamp(1.7rem, 6vw, 2.1rem); }
@media (max-width: 560px) { .zl-row { grid-template-columns: minmax(0, 1fr); } }

/* Start: Karte hebt beim Absenden kurz ab (nur mit Bewegung) */
html.zl-launch .zl-rocket { transform: translateY(-14px); transition: transform 1s cubic-bezier(.5, 0, 1, .6); }

/* ---------- Bewegung (nur html.zl-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Einmaliger Auftritt (rein CSS, laeuft bei Pause/Tabwechsel nicht neu an) */
  .zl-card { animation: zl-in .9s cubic-bezier(.2, .7, .2, 1) .05s backwards; }
  html.zl-motion:not(.zl-paused) .zl-flame { transform-box: fill-box; transform-origin: 50% 0; animation: zl-flame .32s ease-in-out infinite alternate; }
  html.zl-motion:not(.zl-paused) .zl-rocket svg { animation: zl-float 5s ease-in-out infinite; }
  html.zl-motion:not(.zl-paused) .zl-card-fx { animation: zl-pulse 4.5s ease-in-out infinite; }
}
@keyframes zl-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes zl-flame { from { transform: scaleY(.82); opacity: .8; } to { transform: scaleY(1.12); opacity: 1; } }
@keyframes zl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes zl-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .zl-page { width: calc(100% - 32px); }
  .zl-head { padding-top: 18px; }
  .zl-brand-name { font-size: 21px; }
  .zl-card { padding: 28px 20px 22px; border-radius: 18px; }
  .zl-card-fx { inset: -6px; }
  .zl-rocket { right: 12px; top: -30px; width: 38px; height: 72px; }
  .zl-flight { margin-left: 2px; }
  .zl-planet { top: calc(100% - 8vh); }
}
@media (max-width: 340px) {
  .zl-page { width: calc(100% - 24px); }
  .zl-card { padding: 24px 14px 18px; }
  .zl-brand-sub { letter-spacing: .1em; }
}

/* ---------- Kontrast / erzwungene Farben ---------- */
@media (prefers-reduced-transparency: reduce) {
  .zl-card { background: #0d1322; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .zl-sky, .zl-card-fx, .zl-rocket { display: none; }
  .zl-card, .zl-input, .zl-btn { border: 1px solid CanvasText; }
  .zl-title { -webkit-text-fill-color: currentColor; background: none; color: CanvasText; }
  .zl-btn--primary { background: ButtonFace; color: ButtonText !important; }
}
