/* Bewusst ohne externe Ressourcen (keine Web-Fonts, kein CDN, kein Tracking) — DSGVO-freundlich */
:root {
  --bg: #0b0d12;
  --bg-soft: #121521;
  --fg: #e7e9ee;
  --muted: #9aa1b2;
  --line: rgba(255, 255, 255, .08);
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --green: #4ade80;
  --card: rgba(18, 21, 33, .72);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --fg: #11131a;
    --muted: #5b6275;
    --line: rgba(17, 19, 26, .08);
    --cyan: #0891b2;
    --violet: #7c3aed;
    --green: #16a34a;
    --card: rgba(255, 255, 255, .8);
    --shadow: 0 30px 80px -30px rgba(17, 19, 26, .25);
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }

/* Hintergrund: feines Raster + zwei weiche Lichtflecken */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.glow {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .28;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow.a { background: var(--cyan);   top: -14rem; left: -10rem; }
.glow.b { background: var(--violet); bottom: -16rem; right: -12rem; animation-delay: -9s; }

@keyframes drift {
  to { transform: translate(6rem, 4rem) scale(1.1); }
}

main {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.brand svg { width: 2.25rem; height: 2.25rem; }
/* Logo-Farben als Klassen statt style="…" — Inline-Styles würde die CSP (style-src 'self') blockieren */
.c-stop-cyan { stop-color: var(--cyan); }
.c-stop-violet { stop-color: var(--violet); }
.c-stroke-cyan { stroke: var(--cyan); }
.c-stroke-violet { stroke: var(--violet); }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: .8rem;
  backdrop-filter: blur(8px);
}

.dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
  70%  { box-shadow: 0 0 0 .5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
}

.eyebrow {
  color: var(--cyan);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 750;
}

h1 .grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--card);
  font-size: .85rem;
}

/* Terminal-Karte */
.terminal {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--line);
}

.terminal-bar .title {
  width: auto;
  height: auto;
  background: none;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: .75rem;
}

.terminal pre {
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: .88rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.line { opacity: 0; animation: reveal .4s ease forwards; }
.line:nth-child(1) { animation-delay: .3s; }
.line:nth-child(2) { animation-delay: .9s; }
.line:nth-child(3) { animation-delay: 1.4s; }
.line:nth-child(4) { animation-delay: 1.9s; }
.line:nth-child(5) { animation-delay: 2.4s; }
.line:nth-child(6) { animation-delay: 3s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.prompt { color: var(--violet); }
.ok     { color: var(--green); }
.info   { color: var(--cyan); }
.dim    { color: var(--muted); }

.cursor {
  display: inline-block;
  width: .55rem;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .line { opacity: 1; }
}

/* Footer-Links */
footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

.brand { color: inherit; text-decoration: none; }

/* Rechtsseiten (Impressum, später Datenschutz) */
.legal {
  max-width: 44rem;
  padding: 3.5rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 2.5rem;
}

.legal section {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(12px);
}

.legal h2 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}

.legal p + p { margin-top: .75rem; }

.legal a { color: var(--fg); text-underline-offset: .2em; }

.legal .back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--muted);
  text-decoration: none;
}
.legal .back:hover { color: var(--fg); }

/* Platzhalter deutlich sichtbar, damit nichts vergessen wird */
.todo {
  padding: .05rem .35rem;
  border-radius: .3rem;
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: #f59e0b;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
}
