:root {
  --bg: #0e0b1a; --card: #1a1530; --fg: #f4f1ff; --muted: #b3abd1;
  --pink: #ff3d81; --orange: #ffb02e; --cyan: #2ee6d6; --line: #2e2650;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6;
  overflow-x: hidden;
}
/* Sprachumschaltung: nur Elemente der aktiven Sprache zeigen */
html[lang="de"] body [lang="en"], html[lang="en"] body [lang="de"] { display: none; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }
.logo {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 800; font-size: 1.1rem;
  padding: .3rem .7rem; border-radius: .6rem; color: #160d1f;
  background: linear-gradient(100deg, var(--pink), var(--orange));
}
.lang {
  background: none; border: 2px solid var(--fg); color: var(--fg); border-radius: 999px;
  padding: .35rem .9rem; font: inherit; font-weight: 700; cursor: pointer;
}
.lang:hover { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.hero { display: grid; gap: 2.5rem; padding: 3rem 0 4rem; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 1fr; padding: 5rem 0 6rem; } }
.hello { font-weight: 700; color: var(--cyan); margin: 0; }
h1 { font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: .95; margin: .3rem 0 1.2rem; letter-spacing: -.04em; }
.grad {
  background: linear-gradient(100deg, var(--pink), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0; }
.btn {
  display: inline-block; margin-top: 2rem; padding: .9rem 1.7rem; border-radius: .8rem;
  background: linear-gradient(100deg, var(--pink), var(--orange)); color: #160d1f;
  font-weight: 800; text-decoration: none; transition: transform .15s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }

.term {
  background: #07060d; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 0 0 6px #ff3d8122, 0 30px 60px -20px #ff3d8155;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9rem; overflow: hidden;
}
.term-bar { display: flex; gap: .4rem; padding: .7rem .9rem; background: #12101f; }
.term-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--pink); }
.term-bar i:nth-child(2) { background: var(--orange); }
.term-bar i:nth-child(3) { background: var(--cyan); }
.term pre { margin: 0; padding: 1.1rem 1.2rem 1.4rem; white-space: pre-wrap; color: #d9d4f0; }
.p { color: var(--cyan); } .k { color: var(--orange); } .s { color: var(--pink); } .ok { color: #6dff9a; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--fg); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 5rem; }
.stat { border: 2px solid var(--line); border-radius: 1rem; padding: 1.3rem; }
.stat b { display: block; font-size: 2.6rem; line-height: 1; font-weight: 900; }
.stat:nth-child(1) b { color: var(--pink); } .stat:nth-child(2) b { color: var(--orange); } .stat:nth-child(3) b { color: var(--cyan); }
.stat span { color: var(--muted); }

h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin: 0 0 1.5rem; }
h2::after { content: ""; display: block; width: 4rem; height: .35rem; margin-top: .5rem; border-radius: 1rem; background: linear-gradient(90deg, var(--pink), var(--orange)); }
section { margin-bottom: 5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border-radius: 1.2rem; padding: 1.5rem; transition: transform .2s; }
.card:hover { transform: translateY(-6px); }
.card .icon { font-size: 2rem; }
.card h3 { margin: .5rem 0; font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0 0 1rem; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: #ffffff12; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -.6rem; top: .35rem; width: .9rem; height: .9rem;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--pink);
}
.timeline .when { font-weight: 800; color: var(--orange); }
.timeline h3 { margin: .1rem 0; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--muted); }

.cta { text-align: center; background: linear-gradient(120deg, #ff3d8126, #ffb02e1f); border-radius: 1.5rem; padding: 3rem 1.5rem; }
.cta h2::after { margin-inline: auto; }
.cta p { color: var(--muted); max-width: 32rem; margin: 0 auto; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .term-wrap { transform: none; }
}

footer nav { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .5rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
.logo { text-decoration: none; }

/* Rechtstexte */
.legal { max-width: 46rem; padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 .8rem; }
.legal h2::after { width: 2.5rem; height: .25rem; }
.legal p, .legal li { color: var(--muted); }
.legal a:not(.btn) { color: var(--cyan); }
.todo { background: var(--orange); color: #160d1f; font-weight: 800; padding: 0 .3rem; border-radius: .25rem; }
.notice { border-left: 4px solid var(--orange); background: #ffb02e14; border-radius: .5rem; padding: .2rem 1.2rem; margin: 1.5rem 0; }
.notice strong { color: var(--fg); }


/* Chibi-Figur sitzt auf dem Terminal-Fenster */
.term-wrap { position: relative; transform: rotate(1.5deg); margin-top: 7rem; }
.figur { position: absolute; z-index: 1; width: 9rem; height: auto; right: 1.5rem; top: -7.65rem; filter: drop-shadow(0 8px 10px #0008); }
.ai-note { max-width: 34rem; margin: .8rem auto 0; font-size: .8rem; opacity: .85; }
.socials { display: flex; justify-content: center; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: .8rem;
  border: 2px solid var(--line); color: var(--fg); font-weight: 700; text-decoration: none; transition: border-color .15s, transform .15s;
}
.socials a:hover { border-color: var(--pink); transform: translateY(-2px); }
.socials svg { width: 1.3rem; height: 1.3rem; color: var(--cyan); }
