/* gq9 Admin – keine externen Schriften, alles lokal */
:root {
  --bg: #f5f6f8; --card: #fff; --fg: #1d2330; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2563eb; --ok: #15803d; --warn: #b45309; --crit: #b91c1c;
  --ok-bg: #dcfce7; --warn-bg: #fef3c7; --crit-bg: #fee2e2;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --card: #1a1f26; --fg: #e5e7eb; --muted: #9ca3af; --line: #2b323c;
    --accent: #60a5fa; --ok: #4ade80; --warn: #fbbf24; --crit: #f87171;
    --ok-bg: #14321f; --warn-bg: #3a2c0c; --crit-bg: #3b1515;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--fg); font-size: 1.1rem; }
.brand span { color: var(--muted); font-weight: 400; }
.langs { display: flex; gap: .5rem; font-size: .85rem; }
.langs [aria-current] { font-weight: 700; }
.user { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
main { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.card h1, .card h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.card h2 small { color: var(--muted); font-weight: 400; margin-left: .4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.grid > .card { margin-bottom: 0; }
.grid + .card { margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td small { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; align-items: center; gap: .6rem; }
.kv dd .num { text-align: left; }
.meter { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; flex: none; }
.meter-bar { display: block; height: 100%; background: var(--ok); }
.meter-warn .meter-bar { background: var(--warn); }
.meter-crit .meter-bar { background: var(--crit); }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; background: var(--line); }
.state-active, .level-ok { background: var(--ok-bg); color: var(--ok); }
.state-failed, .level-crit { background: var(--crit-bg); color: var(--crit); }
.state-activating, .state-deactivating, .state-reloading, .level-warn { background: var(--warn-bg); color: var(--warn); }
.updated, .muted, .hint { color: var(--muted); font-size: .8rem; }
.error { background: var(--crit-bg); color: var(--crit); padding: .5rem .75rem; border-radius: 6px; }
.login { max-width: 380px; margin: 3rem auto; }
.login form { display: grid; gap: .8rem; }
.login label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
input { font: inherit; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; padding: .6rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 600; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; }
form.inline { display: inline; }
.meter-w0 { width: 0%; }
.meter-w5 { width: 5%; }
.meter-w10 { width: 10%; }
.meter-w15 { width: 15%; }
.meter-w20 { width: 20%; }
.meter-w25 { width: 25%; }
.meter-w30 { width: 30%; }
.meter-w35 { width: 35%; }
.meter-w40 { width: 40%; }
.meter-w45 { width: 45%; }
.meter-w50 { width: 50%; }
.meter-w55 { width: 55%; }
.meter-w60 { width: 60%; }
.meter-w65 { width: 65%; }
.meter-w70 { width: 70%; }
.meter-w75 { width: 75%; }
.meter-w80 { width: 80%; }
.meter-w85 { width: 85%; }
.meter-w90 { width: 90%; }
.meter-w95 { width: 95%; }
.meter-w100 { width: 100%; }

/* ---------- v0.2: Navigation, Kacheln, Projektseiten, Analytics ---------- */
.mainnav { display: flex; gap: 1rem; font-size: .9rem; }
.mainnav a { color: var(--muted); padding: .2rem 0; border-bottom: 2px solid transparent; }
.mainnav a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }
.pagetitle { font-size: 1.3rem; margin: .25rem 0 1rem; }
.pagetitle small, h3 small, .tile h3 small { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: .3rem; }
.crumbs { margin: 0 0 .5rem; font-size: .85rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.tiles .tile { margin-bottom: 0; }
.tile h3 { margin: 0 0 .6rem; font-size: 1rem; }
.tile .links { margin: .6rem 0 0; display: flex; gap: 1rem; font-size: .85rem; }
.tabs { display: flex; gap: .25rem; margin-bottom: -1px; }
.tabs a { padding: .5rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); }
.tabs a[aria-current] { background: var(--card); border-color: var(--line); color: var(--fg); font-weight: 600; }
.tabs + .card { border-top-left-radius: 0; }
.ranges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.ranges a { padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--line); }
.ranges a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.chart { width: 100%; height: auto; display: block; margin: .5rem 0 1rem; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--fg); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .lbl { fill: var(--muted); font-size: 11px; font-family: inherit; }
.bignum { font-size: 1.8rem; font-weight: 700; margin: 0; }
.bignum small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid3 h3 { font-size: .9rem; margin: .2rem 0 .4rem; }
table.errors td { vertical-align: top; }
table.errors pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nowrap { white-space: nowrap; }
.wrap { word-break: break-all; }
.crit { color: var(--crit); }
.level-ok, .level-warn, .level-crit { font-variant-numeric: tabular-nums; }

/* ---------- v0.3: Verwaltung ---------- */
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.titlebar .pagetitle { margin-bottom: 1rem; }
a.button { display: inline-block; padding: .55rem .9rem; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem; }
a.button:hover { text-decoration: none; opacity: .9; }
button.secondary { background: var(--bg); color: var(--fg); border: 1px solid var(--line); font-weight: 400; }
.buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.buttons form.inline button { padding: .45rem .8rem; }
form.stack { display: grid; gap: .75rem; max-width: 640px; margin-bottom: 1rem; }
form.stack.wide { max-width: 720px; }
form.stack label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
form.stack label small { font-size: .75rem; }
form.stack label.check { display: flex; gap: .5rem; align-items: center; color: var(--fg); }
form.stack .row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
textarea { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
pre.key { white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--line); padding: .6rem .75rem; border-radius: 6px; font-size: .8rem; user-select: all; }
.card h2 { margin-top: 1.4rem; }
.card h2:first-child { margin-top: 0; }
table.jobs td { vertical-align: top; }
table.jobs details pre { white-space: pre-wrap; word-break: break-word; font-size: .75rem; margin: .4rem 0 0; }
table.jobs summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.envkeys code { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); padding: 0 .3rem; border-radius: 4px; }
.notice { background: var(--ok-bg); color: var(--ok); padding: .5rem .75rem; border-radius: 6px; }
.import-status { margin: 0; font-size: .85rem; }
details.advanced { margin-top: .5rem; font-size: .85rem; }
details.advanced summary { cursor: pointer; color: var(--muted); }
.notice.warn { background: var(--warn-bg); color: var(--fg); margin-bottom: 1rem; }
.notice.warn p { margin: .2rem 0 .5rem; }
.notice.warn code { font-size: .8rem; }

/* ---------- v0.4: Deploy, Releases, Plattform ---------- */
form.deploy { display: inline-flex; gap: .5rem; align-items: center; margin: .2rem 0 .6rem; }
input.code { width: 7.5rem; letter-spacing: .15em; text-align: center; }
form.inline input.code { margin-right: .4rem; padding: .4rem .5rem; }
details.releases { margin: .3rem 0 1rem; font-size: .85rem; }
details.releases summary { cursor: pointer; color: var(--muted); }
details.releases td { vertical-align: middle; }
#platform .kv { margin-bottom: .4rem; }
fieldset.perms { border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; display: grid; gap: .4rem; margin: 0; }
fieldset.perms legend { font-size: .85rem; color: var(--muted); padding: 0 .3rem; }
fieldset.perms small { font-size: .75rem; color: var(--muted); }
form.stack.perms { grid-template-columns: repeat(5, max-content); align-items: center; gap: .5rem 1.2rem; }
form.stack.perms button { justify-self: start; }

/* ---------- v0.5: Backup & Wiederherstellung ---------- */
ul.autochecks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
ul.autochecks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
ul.autochecks .badge { min-width: 1.6rem; text-align: center; }
ul.autochecks small { color: var(--muted); }
ul.autochecks small.fix { color: var(--fg); }
ul.autochecks code, dl.kv dd code { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); padding: 0 .3rem; border-radius: 4px; }
pre.log { white-space: pre-wrap; word-break: break-word; font-size: .75rem; background: var(--bg); border: 1px solid var(--line); padding: .6rem .75rem; border-radius: 6px; max-height: 22rem; overflow: auto; }
small.sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
article.check { border-top: 1px solid var(--line); padding: .9rem 0 .6rem; }
article.check:first-of-type { border-top: 0; }
article.check header { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: baseline; }
article.check h3 { margin: 0; font-size: 1rem; }
article.check header small { color: var(--muted); font-size: .8rem; }
article.check p.how { font-size: .88rem; margin: .4rem 0 .6rem; max-width: 70rem; }
form.checkform { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.checkform input[name=note] { flex: 1 1 16rem; max-width: 30rem; }
form.checkform label { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
article.check details { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
article.check ul.hist { margin: .3rem 0 0; padding-left: 1.2rem; }
ol.steps { padding-left: 1.4rem; display: grid; gap: .7rem; }
ol.steps p { margin: 0 0 .35rem; font-size: .9rem; max-width: 70rem; }
.cmdbox { position: relative; }
pre.cmd { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; background: var(--bg); border: 1px solid var(--line); padding: .6rem 5.5rem .6rem .75rem; border-radius: 6px; margin: 0; }
.cmdbox button.copy { position: absolute; top: .35rem; right: .35rem; padding: .2rem .55rem; font-size: .75rem; }
ul.cases { list-style: none; padding: 0; display: grid; gap: .5rem; }
ul.cases small { color: var(--muted); }
section.case { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: .2rem; }
section.case h2 { margin-top: 1rem; }
select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
button:disabled { opacity: .5; cursor: not-allowed; }
form.deploy small.upd { color: var(--muted); font-size: .8rem; }
form.deploy small.upd code, form.deploy .badge code { font-size: .75rem; }
form.deploy { flex-wrap: wrap; }
/* Kacheln: Platz für Verkäufe und Stand */
.tiles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile .kv dd { flex-wrap: wrap; gap: .3rem .5rem; min-width: 0; }
.tile .badge { white-space: nowrap; }

/* ---------- v0.6: Hologramm-Bento (dunkles Sci-Fi-Theme) ----------
   Nur CSS + Klassen (strenge CSP). Animationen respektieren „Bewegung reduzieren“.
   Schillernde Ränder über @property --holo-a; ältere Browser zeigen sie statisch. */
@property --holo-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  color-scheme: dark;
  --bg: #07070d; --card: #0e0e18; --fg: #f1f1f8; --muted: #a3a3bd; --line: rgba(255,255,255,.08);
  --accent: #7df9ff; --ok: #6ee7a0; --warn: #ffe29a; --crit: #ff8a9b;
  --ok-bg: rgba(110,231,160,.12); --warn-bg: rgba(255,226,154,.12); --crit-bg: rgba(255,138,155,.13);
  --c1: #7df9ff; --c2: #b388ff; --c3: #ff8ad8; --c4: #ffe29a;
  --holo: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
body { background: var(--bg); min-height: 100vh; overflow-x: hidden; }
/* Polarlicht im Hintergrund */
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(140px); pointer-events: none; }
body::before { top: -180px; left: 4%; width: 560px; height: 560px; background: #3b2a8c; opacity: .5; animation: holo-float1 24s ease-in-out infinite; }
body::after { top: 42%; right: -140px; width: 520px; height: 520px; background: #0e5e73; opacity: .45; animation: holo-float2 28s ease-in-out infinite; }
.holo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: rgba(179,136,255,.4); }

/* Kopfzeile: Glas + Pillen-Navigation */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7,7,13,.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); padding: .7rem clamp(.8rem, 3vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.brand::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: conic-gradient(from var(--holo-a), var(--c1), var(--c2), var(--c3), var(--c4), var(--c1)); animation: holo-spin 8s linear infinite; }
.brand:hover { text-decoration: none; }
.mainnav { gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex-wrap: wrap; }
.mainnav a { padding: .45rem 1rem; border-radius: 999px; border: 0; color: #d4d4e6; transition: background .2s, color .2s; }
.mainnav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.mainnav a[aria-current] { background: var(--fg); color: var(--bg); font-weight: 600; }
.langs { font-family: var(--mono); }
.langs [aria-current] { padding: .1rem .45rem; border-radius: 999px; background: rgba(125,249,255,.1); color: var(--accent); }
.user { color: var(--muted); }
main { max-width: 1280px; padding: clamp(1rem, 3vw, 2.2rem) clamp(.8rem, 3vw, 2rem) 4rem; }

/* Karten mit schillerndem Rand */
.card {
  border: 1px solid transparent; border-radius: var(--radius); padding: 1.3rem 1.4rem;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--holo-a), rgba(255,255,255,.07) 0 55%, var(--c1) 65%, var(--c2) 75%, var(--c3) 85%, var(--c4) 92%, rgba(255,255,255,.07)) border-box;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* Rand dreht sich nur bei Mausberührung; Einblenden nur beim ersten Laden (nicht beim 30-s-Nachladen des Status) */
.card { animation: holo-spin 6s linear infinite paused; }
.card:hover { animation-play-state: running; }
main > .card, main > .grid > .card, main > section > .card { animation: holo-spin 6s linear infinite paused, holo-pop .7s var(--ease) both; }
main > .card:hover, main > .grid > .card:hover, main > section > .card:hover { animation-play-state: running, running; }
.card h1, .card h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.card h2 small, .pagetitle small, h3 small, .tile h3 small { font-family: var(--mono); font-size: .75rem; }
.grid { gap: 1rem; }

/* Bento: Projektkacheln + Station */
.tiles { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); grid-auto-flow: dense; gap: 1rem; margin-bottom: 1rem; }
.tiles > .tile, .tiles > .hero { animation: holo-spin 7s linear infinite, holo-pop .7s var(--ease) both; }
.tiles > .tile:nth-child(2) { animation-delay: -1.4s, .06s; }
.tiles > .tile:nth-child(3) { animation-delay: -2.8s, .12s; }
.tiles > .tile:nth-child(4) { animation-delay: -4.2s, .18s; }
.tiles > .tile:nth-child(5) { animation-delay: -5.6s, .24s; }
.tiles > .tile:nth-child(n+6) { animation-delay: -3s, .3s; }
.tiles > .tile:hover, .tiles > .hero:hover { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-4px); box-shadow: 0 24px 60px -22px rgba(179,136,255,.5); }
.tile h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.tile h3 a { color: var(--fg); }
.tile .kv { gap: .45rem 1rem; font-size: .9rem; }
.tiles .hero { grid-column: span 2; display: flex; flex-direction: column; }
.tiles .hero .solar { width: 170px; height: 170px; margin: .6rem auto; }
/* doppelt hoch erst ab 4 Projekten, sonst bliebe unter den Kacheln eine Lücke */
.tiles:has(> :nth-child(5)) .hero { grid-row: span 2; min-height: 26rem; }
.tiles:has(> :nth-child(5)) .hero .solar { width: 240px; height: 240px; margin: 1rem auto; }
.hero-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hero-head h2 { margin: 0; color: var(--muted); font-weight: 500; }
.hero-big { margin: auto 0 .3rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.hero .hint { margin: 0; font-size: .9rem; }
@media (max-width: 680px) {
  .tiles .hero, .tiles:has(> :nth-child(5)) .hero { grid-column: auto; grid-row: auto; min-height: 0; }
  .card { overflow-x: auto; }
  .kv dd { flex-wrap: wrap; }
  .meter { width: 90px; }
}

/* Sonnensystem (Station + Login): ein Planet je Dienst */
.solar { position: relative; width: 240px; height: 240px; margin: 1rem auto; flex: none; }
.solar.small { width: 130px; height: 130px; margin: .2rem auto 1rem; }
.solar .orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); animation: holo-orbit 20s linear infinite; }
.solar .orbit.has-bad { border-color: rgba(255,77,106,.35); }
.solar .o2 { inset: 30%; animation-duration: 9s; }
.solar .o3 { inset: 25%; animation-duration: 13s; }
.solar .o4 { inset: 20%; animation-duration: 17s; }
.solar .o5 { inset: 15%; animation-duration: 22s; }
.solar .o6 { inset: 10%; animation-duration: 28s; }
.solar .o7 { inset: 5%; animation-duration: 35s; }
.solar .o8 { inset: 0; animation-duration: 44s; }
.solar .a1 { animation-delay: -4s; } .solar .a2 { animation-delay: -11s; } .solar .a3 { animation-delay: -7s; }
.solar .a4 { animation-delay: -19s; } .solar .a5 { animation-delay: -2s; } .solar .a6 { animation-delay: -26s; } .solar .a7 { animation-delay: -15s; }
.solar .planet { position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; }
.solar .o6 .planet, .solar .o7 .planet, .solar .o8 .planet { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.solar.small .planet { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.solar .planet.ok { background: radial-gradient(circle at 35% 30%, #fff, #e3e9ff); box-shadow: 0 0 8px 2px rgba(235,240,255,.55); }
.solar .planet.bad { background: #ff4d6a; box-shadow: 0 0 12px 3px rgba(255,77,106,.75); animation: holo-blink 1.1s ease-in-out infinite; }
/* Testinstanzen: Sterne im Hintergrund (hinter den Bahnen). live = funkelt, dead = schwach rot, still */
.solar .star { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; z-index: 0; pointer-events: auto; }
.solar .star.live { background: #e8f0ff; box-shadow: 0 0 6px 1px rgba(190,215,255,.75); animation: holo-twinkle 2.8s ease-in-out infinite; }
.solar .star.dead { background: #ff5a74; box-shadow: 0 0 6px 1px rgba(255,77,106,.35); opacity: .5; }
.solar.small .star { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
.solar .st0  { left: -30%; top: 10%; }                             .solar .st1  { left: 126%; top: 18%; animation-delay: -1.1s; }
.solar .st2  { left: -18%; top: 80%; animation-delay: -2.3s; }      .solar .st3  { left: 118%; top: 86%; animation-delay: -.6s; }
.solar .st4  { left: -42%; top: 46%; animation-delay: -1.7s; }      .solar .st5  { left: 140%; top: 52%; animation-delay: -2.9s; }
.solar .st6  { left: 8%;   top: -4%; animation-delay: -.3s; }       .solar .st7  { left: 94%;  top: 104%; animation-delay: -2s; }
.solar .st8  { left: -6%;  top: 100%; animation-delay: -1.4s; }     .solar .st9  { left: 104%; top: -2%; animation-delay: -2.6s; }
.solar .st10 { left: -48%; top: 94%; animation-delay: -.9s; }      .solar .st11 { left: 148%; top: 90%; animation-delay: -1.9s; }
.solar .orbit, .solar .sun { z-index: 1; }
.tiles .hero { overflow: hidden; } /* Sterne reichen über das Schaubild hinaus – nie Querscrollen */
.solar .orbit { pointer-events: none; } .solar .planet { pointer-events: auto; }
.solar .sun { position: absolute; left: 41%; top: 41%; width: 18%; height: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe29a 42%, #ff9d5c); animation: holo-sun 5s ease-in-out infinite; }
.hint.down { color: var(--crit); margin: 0 0 .2rem; }

/* Begrüßung */
.titlebar.hello { align-items: flex-end; margin-bottom: 1.4rem; }
.hello-side { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.vitals { padding: .7rem 1rem; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vit { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; }
.vit .v { display: flex; flex-direction: column; gap: .2rem; min-width: 4.5rem; }
.vit dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vit dd { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.vit strong { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vit .meter { width: 4.5rem; height: 4px; }
@media (max-width: 680px) { .hello-side { align-items: stretch; width: 100%; } .vit { justify-content: space-between; } }
.pagetitle { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; }
.pagetitle.eyebrow { font-family: var(--mono); font-size: .82rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin: 0 0 .35rem; }
.greeting { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.iri { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-shimmer 6s linear infinite; }

/* Bedienelemente */
a.button { padding: .8rem 1.25rem; border-radius: 14px; background: var(--fg); color: var(--bg); transition: box-shadow .25s, transform .25s; }
a.button:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 34px rgba(179,136,255,.5); }
button { border-radius: 12px; padding: .65rem 1rem; background: var(--accent); color: #05060c; transition: box-shadow .25s, background .2s; }
button:hover:not(:disabled) { box-shadow: 0 0 26px rgba(125,249,255,.45); }
button.secondary { background: rgba(255,255,255,.06); color: var(--fg); border: 1px solid rgba(255,255,255,.14); }
button.link, button.link:hover { background: none; color: var(--accent); box-shadow: none; }
input, select, textarea { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: var(--fg); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125,249,255,.18), 0 0 22px rgba(125,249,255,.18); }
input.code { font-family: var(--mono); }
.badge { padding: .12rem .6rem; font-size: .78rem; background: rgba(255,255,255,.07); }

/* Tabellen, Kennzahlen, Diagramme */
th { font-family: var(--mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
th, td { border-bottom-color: var(--line); }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); }
.meter-bar { background: var(--holo); background-size: 200% 100%; border-radius: 99px; }
.meter-warn .meter-bar { background: var(--warn); }
.meter-crit .meter-bar { background: var(--crit); }
.bignum { font-size: 2.4rem; letter-spacing: -.03em; }
.chart .bar { fill: url(#holo-grad); transform-box: fill-box; transform-origin: 50% 100%; animation: holo-rise .9s var(--ease) both; }
.chart .bar:hover { fill: var(--fg); }
.chart .axis { stroke: rgba(255,255,255,.1); }
.chart .lbl { font-family: var(--mono); }
code, pre, pre.key, pre.log, pre.cmd, .envkeys code, ul.autochecks code, dl.kv dd code, small.sha { font-family: var(--mono); }
pre.key, pre.log, pre.cmd, textarea, .envkeys code, ul.autochecks code, dl.kv dd code { background: rgba(0,0,0,.35); border-color: var(--line); }
pre.key, pre.log, pre.cmd { border-radius: 12px; }

/* Projektseite: Tabs, Zeiträume */
.tabs { flex-wrap: wrap; gap: 4px; margin-bottom: .9rem; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs a { border: 0; border-radius: 999px; padding: .45rem 1rem; transition: background .2s, color .2s; }
.tabs a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.tabs a[aria-current] { background: var(--fg); color: var(--bg); }
.tabs + .card { border-top-left-radius: var(--radius); }
.ranges a { border-color: rgba(255,255,255,.14); color: #d4d4e6; transition: background .2s; }
.ranges a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.ranges a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Meldungen */
.error, .notice { border-radius: 12px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.notice.warn { border-color: rgba(255,226,154,.3); }

/* Login */
.login { max-width: 400px; margin: 8vh auto; padding: 2rem 2rem 1.6rem; animation: holo-spin 7s linear infinite, holo-pop .8s var(--ease) both; }
.login h1 { text-align: center; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.login button { min-height: 48px; margin-top: .3rem; }
.login input { min-height: 46px; }

/* Werte in Kacheln/Karten bleiben innerhalb des Rahmens */
.kv { grid-template-columns: max-content minmax(0, 1fr); }
.kv dd { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.tile .kv { gap: .4rem .8rem; }
.tile .badge { white-space: normal; max-width: 100%; }
.tiles > .tile { padding: 1.2rem 1.25rem; min-width: 0; }

/* Bewegungen */
@keyframes holo-spin { to { --holo-a: 360deg; } }
@keyframes holo-pop { from { opacity: 0; translate: 0 14px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes holo-float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(120px, 70px); } }
@keyframes holo-float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-150px, -50px); } }
@keyframes holo-shimmer { to { background-position: 200% 0; } }
@keyframes holo-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes holo-orbit { to { transform: rotate(360deg); } }
@keyframes holo-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 45% { opacity: .35; transform: scale(.6); } 60% { opacity: .9; transform: scale(1.15); } }
@keyframes holo-blink { 50% { opacity: .25; box-shadow: 0 0 2px 0 rgba(255,77,106,.3); } }
@keyframes holo-sun { 0%, 100% { box-shadow: 0 0 34px 8px rgba(255,190,110,.4); } 50% { box-shadow: 0 0 56px 14px rgba(255,170,90,.55); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tiles > .tile:hover, .tiles > .hero:hover { transform: none; }
}
td .badge { white-space: nowrap; }
@media (max-width: 680px) {
  .vit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem .8rem; }
  .vit .v { min-width: 0; }
  .vit .meter { width: 100%; }
  .vit strong { font-size: .95rem; }
}
