:root {
  --bg: #0b0d12;
  --panel: #151922;
  --panel-2: #1c212c;
  --border: #262c38;
  --text: #eaf0f7;
  --muted: #8b95a5;
  --accent: #2f9bff;
  --accent-2: #5ee4ff;
  --ok: #3dd68c;
  --danger: #e5484d;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--panel-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; }
pre { margin: 0; padding: 14px 16px; background: #080a0e; border: 1px solid var(--border); border-radius: 10px; overflow-x: auto;
  font: 14px/1.5 "Cascadia Mono", Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

/* ---------------------------------------------------------------- Kopf & Fuss */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.site-header nav a:hover, .site-header nav a.on { color: var(--text); background: var(--panel-2); text-decoration: none; }
.lang-switch { display: inline-flex; margin-left: 8px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { color: var(--text); background: var(--panel-2); }
[hidden] { display: none !important; }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Knoepfe & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text); font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #252b38; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #45adff, #1f7fe5); border-color: #5cb8ff; color: #fff; box-shadow: 0 10px 28px rgba(47, 155, 255, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #5cb8ff, #2f8cf0); }
.btn.big { font-size: 18px; padding: 14px 30px; border-radius: 14px; }
.btn.danger { color: #ff9a9d; border-color: #5a2a2e; background: #2a1517; }
.btn.small { font-size: 14px; padding: 6px 12px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #b4bdca; }
input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; outline: none; }
input:focus { border-color: var(--accent); }
select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; outline: none; }
select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.error { color: #ff8a8d; }
.success { color: var(--ok); }

/* ---------------------------------------------------------------- Bausteine */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.section { padding: 56px 0 0; }
.section > .wrap > h2 { font-size: 28px; margin-bottom: 20px; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px;
  background: var(--panel-2); color: var(--accent-2); border: 1px solid var(--border); }

/* Startseite */
.hero { padding: 72px 0 24px; background: radial-gradient(900px 480px at 50% -10%, rgba(47, 155, 255, .2), transparent 65%); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); }
.hero h1 span { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c4ccd8; margin: 16px 0 28px; max-width: 560px; }
.hero .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero img { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 24px 60px rgba(47, 155, 255, .35)); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature .icon { font-size: 26px; margin-bottom: 10px; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), #1f6fe5); color: #fff; }
.steps { padding: 0; margin: 0; }
.release { display: grid; gap: 6px; }
.release header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.release pre { background: none; border: 0; padding: 0; font: inherit; white-space: pre-wrap; color: #c4ccd8; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 40px; }
.docs aside { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.docs aside a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.docs aside a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.docs article { display: grid; gap: 18px; min-width: 0; }
.docs article h1 { font-size: 36px; }
.docs article h2 { font-size: 24px; margin-top: 28px; padding-top: 8px; scroll-margin-top: 80px; }
.docs article h3 { font-size: 18px; margin-top: 6px; }
.docs ul, .docs ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note { border-left: 3px solid var(--accent); background: var(--panel); padding: 12px 16px; border-radius: 0 10px 10px 0; }

/* Konto */
.narrow { max-width: 440px; margin: 56px auto 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 8px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.profile { display: grid; gap: 16px; padding-top: 40px; }
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), #1f6fe5); }
.profile h2 { font-size: 19px; margin-bottom: 14px; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.session:last-child { border-bottom: 0; }
.danger-zone { border-color: #5a2a2e; }

@media (max-width: 760px) {
  .hero .wrap, .docs { grid-template-columns: 1fr; }
  .hero img { max-width: 200px; order: -1; }
  .docs aside { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
