/* Öffentliche Landingpage + Login-Modal – Thema „Neon & Glas“ (thema.ugur.at, themes/neon-glas)
   Cyan/Magenta auf Tiefschwarz, Glaskarten, langsam treibende Farbwolken über einem Raster.
   Keine externen Schriften/Bilder; nur Systemschriften. */
:root {
  --bg: #05060a;
  --text: #f1f5f9;
  --muted: #a3aec2;
  --muted-hi: #c0c9d8;
  --kicker-c: #67e8f9;
  --kicker-m: #f0abfc;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --magenta: #e879f9;
  --amber: #fbbf24;
  --danger: #fb7185;
  --grey: #94a3b8;
  --glass: rgba(14, 17, 28, 0.62);
  --glass-hi: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --grad: linear-gradient(100deg, var(--cyan), var(--magenta));
  --r-lg: 24px;
  --r-md: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 16px/1.6 var(--sans); color: var(--text); background: transparent;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--bg); border: 1px solid var(--cyan); border-radius: 8px; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .3; will-change: transform; }
.blob.b1 { width: 58vmax; height: 58vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .55), rgba(34, 211, 238, 0) 68%);
  animation: drift1 32s ease-in-out infinite alternate; }
.blob.b2 { width: 52vmax; height: 52vmax; right: -20vmax; top: 18vh;
  background: radial-gradient(circle at 50% 50%, rgba(232, 121, 249, .5), rgba(232, 121, 249, 0) 68%);
  animation: drift2 38s ease-in-out infinite alternate; }
.blob.b3 { width: 40vmax; height: 40vmax; left: 20vw; bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, .35), rgba(45, 212, 191, 0) 70%);
  animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(10vw, -12vh) scale(1.1); } }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

/* ---------- Glas ---------- */
.glass {
  background: linear-gradient(var(--glass-hi), var(--glass-hi)), var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.glow:hover, .glow:focus-within {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 0 28px -4px rgba(34, 211, 238, .45), 0 0 60px -20px rgba(232, 121, 249, .55);
  transform: translateY(-2px);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: box-shadow .25s, transform .2s, background-color .25s, border-color .25s, opacity .2s;
}
.btn-primary { background: var(--grad); color: #05060a; box-shadow: 0 0 24px -6px rgba(34, 211, 238, .7); }
.btn-primary:hover { box-shadow: 0 0 32px -2px rgba(34, 211, 238, .75), 0 0 48px -8px rgba(232, 121, 249, .8); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 20px -6px rgba(34, 211, 238, .7); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--cyan-2); font: 500 14px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 10, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 0 18px -4px rgba(34, 211, 238, .8); }
.brand b { color: var(--cyan); font-weight: 700; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 500 14px/1 var(--mono); white-space: nowrap; }
.nav a::before { content: "#"; color: var(--kicker-c); margin-right: 4px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: rgba(14, 17, 28, .6);
}
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted-hi); max-width: 60ch; margin: 0 0 32px; }
.lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grey); box-shadow: 0 0 0 3px rgba(148, 163, 184, .15); }
.dot.ok { background: var(--cyan); box-shadow: 0 0 10px 1px rgba(34, 211, 238, .8); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px 0 rgba(34, 211, 238, .4); } }

/* Hero-Terminal */
.term { margin: 0; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights span { width: 11px; height: 11px; border-radius: 50%; }
.lights span:nth-child(1) { background: var(--danger); }
.lights span:nth-child(2) { background: var(--amber); }
.lights span:nth-child(3) { background: var(--cyan); }
.term-title { font: 500 13px/1.2 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 3px 12px 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 6, 10, .5); }
.state.ok { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.term-body { margin: 0; padding: 18px 20px; background: rgba(3, 4, 8, .72); font-size: 14px; line-height: 1.7; color: var(--text); overflow-x: auto; white-space: pre-wrap; }
.term-body .p { color: var(--magenta); }
.term-body .k { color: var(--cyan); }
.term-body .m { color: var(--muted); }
.term-body .s { color: var(--cyan-2); }

/* ---------- Abschnitte ---------- */
section.sec { padding: 88px 0; scroll-margin-top: 80px; }
.head { max-width: 720px; margin-bottom: 40px; }
.kicker { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker-c); margin-bottom: 14px; }
.kicker.m { color: var(--kicker-m); }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.head p { color: var(--muted-hi); font-size: 18px; margin: 0; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
p code, li code { font-size: .9em; color: var(--cyan-2); background: rgba(34, 211, 238, .08); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why .card { padding: 26px 24px; }
.why .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.why .card:nth-child(odd) .ico { color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); }
.why .card:nth-child(even) .ico { color: var(--magenta); background: rgba(232, 121, 249, .1); border: 1px solid rgba(232, 121, 249, .3); }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { padding: 26px 22px; }
.step .no { display: block; font: 700 13px/1 var(--mono); color: var(--magenta); letter-spacing: .1em; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sec-list li { padding: 18px 22px; border-radius: var(--r-md); color: var(--muted); font-size: 15px; }
.sec-list strong { color: var(--text); display: block; margin-bottom: 4px; }

section.sec-cta { padding-top: 0; }
.cta { position: relative; padding: 56px 40px; text-align: center; border-radius: 28px; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cta p { color: var(--muted-hi); font-size: 18px; margin: 0 auto 28px; max-width: 52ch; }
.cta .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; background: rgba(5, 6, 10, .6); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 8px; }
footer nav a:hover { color: var(--cyan-2); }

/* ---------- Login-Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 3, 6, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease-out; }
.modal-card {
  position: relative; width: 100%; max-width: 420px; padding: 30px 28px 24px;
  border-color: rgba(34, 211, 238, .35);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .15), 0 0 40px -8px rgba(34, 211, 238, .45), 0 30px 80px rgba(0, 0, 0, .7);
  animation: pop .22s ease-out;
}
.modal-card h2 { font-size: 26px; margin: 0 0 6px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); border-color: var(--line-strong); }
.login-step { display: flex; flex-direction: column; gap: 10px; }
.login-step p { margin: 0 0 6px; font-size: 15px; }
.login-step label { font-size: 14px; font-weight: 600; color: var(--muted-hi); }
.login-step input {
  min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(3, 4, 8, .6); color: var(--text); font: 16px/1.3 var(--sans);
}
.login-step input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.login-step .code-input { font: 600 24px/1.2 var(--mono); letter-spacing: .4em; text-align: center; }
.login-step .btn { margin-top: 6px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.login-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--muted-hi); }
.login-msg.err { color: var(--danger); }
.login-msg.ok { color: var(--cyan-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .bar { min-height: 60px; gap: 10px; }
  .nav { display: none; }
  .hero { padding: 48px 0 32px; }
  section.sec { padding: 60px 0; }
  .steps, .why, .sec-list { grid-template-columns: 1fr; }
  .cta { padding: 40px 20px; }
  .actions .btn { flex: 1 1 100%; }
  .term-body { font-size: 13px; padding: 14px; }
  .blob { filter: blur(30px); opacity: .28; }
  .blob.b1 { width: 90vw; height: 90vw; left: -30vw; top: -20vw; }
  .blob.b2 { width: 80vw; height: 80vw; right: -30vw; }
  .blob.b3 { display: none; }
  .glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .modal-card { padding: 26px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glow:hover, .glow:focus-within, .btn-primary:hover { transform: none; }
}
