/* SMW Market – Verwaltung (storeadmin.smwforge.global) */
@font-face { font-family: "Unbounded"; src: url("/static/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #050912; --bg2: #0a1020; --panel: #0e1626; --panel2: #121c30; --line: rgba(140, 200, 255, .12);
  --line2: rgba(140, 200, 255, .24); --text: #e8eef6; --muted: #8794a8; --cyan: #00e5ff; --violet: #8a7dff;
  --magenta: #ff2bd6; --green: #2bffa3; --warn: #ffb020; --bad: #ff4d6d;
  --grad: linear-gradient(110deg, #00e5ff 0%, #8a7dff 55%, #ff2bd6 100%);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Manrope", system-ui, sans-serif; }
body { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -10%, rgba(138, 125, 255, .14), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(0, 229, 255, .10), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font: 13px ui-monospace, "JetBrains Mono", monospace; background: rgba(255, 255, 255, .05); padding: 2px 6px; border-radius: 6px; }

/* Rahmen */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: rgba(10, 16, 32, .85); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0, 229, 255, .25); }
.brand-logo svg { width: 22px; height: 22px; }
.brand b { font-family: "Unbounded"; font-weight: 700; font-size: 17px; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; display: block; }
.brand span { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, rgba(0, 229, 255, .16), rgba(138, 125, 255, .08)); color: var(--text);
  box-shadow: inset 2px 0 0 var(--cyan); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.side-foot form { display: inline; }
main { padding: 30px 36px 60px; max-width: 1400px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.top p { margin: 0; }

/* Karten, Raster */
.card { background: linear-gradient(180deg, rgba(18, 28, 48, .85), rgba(14, 22, 38, .85)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.card.narrow { max-width: 440px; margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3, .g21 { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } main { padding: 20px 16px; }
  .g2 { grid-template-columns: 1fr; } }

.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.kpi .value { font-family: "Unbounded"; font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--glow, rgba(0, 229, 255, .14)); filter: blur(10px); }
.up { color: var(--green); } .down { color: var(--bad); }

/* Diagramme */
.chart { width: 100%; height: 220px; display: block; }
.chart .grid { stroke: rgba(140, 200, 255, .08); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: "Manrope"; }
.chart .dot { opacity: 0; transition: opacity .15s; } .chart .dot:hover { opacity: 1; }
.bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 56px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: rgba(255, 255, 255, .05); border-radius: 10px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 10px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-n { fill: var(--text); font-family: "Unbounded"; font-size: 22px; font-weight: 700; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.app-cell { display: flex; align-items: center; gap: 12px; }
.icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--panel2); flex: none; }
.icon.big { width: 96px; height: 96px; border-radius: 24px; }
.icon.ph { display: grid; place-items: center; font-family: "Unbounded"; font-weight: 700; color: var(--bg); background: var(--grad); }

/* Abzeichen */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.badge.cyan { color: var(--cyan); border-color: rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .08); }
.badge.violet { color: var(--violet); border-color: rgba(138, 125, 255, .4); background: rgba(138, 125, 255, .08); }
.badge.green { color: var(--green); border-color: rgba(43, 255, 163, .4); background: rgba(43, 255, 163, .08); }
.badge.warn { color: var(--warn); border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .08); }
.badge.bad { color: var(--bad); border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .08); }

/* Formulare */
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; background: rgba(5, 9, 18, .7); border: 1px solid var(--line2); color: var(--text); border-radius: 12px;
  padding: 11px 13px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .15); }
textarea { min-height: 120px; resize: vertical; }
input[type=color] { width: 54px; height: 42px; border: 1px solid var(--line2); border-radius: 10px; background: none; padding: 3px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.row > .auto { flex: 0 0 auto; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  color: var(--text); padding: 10px 18px; border-radius: 12px; font: 700 14px "Manrope"; cursor: pointer; white-space: nowrap;
  transition: transform .1s, background .15s, border-color .15s; }
.btn:hover { background: rgba(255, 255, 255, .07); text-decoration: none; border-color: var(--cyan); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #050912; border: 0; box-shadow: 0 8px 26px rgba(0, 229, 255, .22); }
.btn.danger { color: var(--bad); border-color: rgba(255, 77, 109, .45); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.icon-only { padding: 6px 9px; }
.inline { display: inline; }
.notice { border: 1px solid rgba(43, 255, 163, .35); background: rgba(43, 255, 163, .08); color: var(--green); padding: 12px 16px;
  border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.error { border: 1px solid rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .08); color: #ffb3c1; padding: 12px 16px;
  border-radius: 14px; margin-bottom: 16px; }
.drop { border: 2px dashed var(--line2); border-radius: 18px; padding: 34px; text-align: center; transition: .15s; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(0, 229, 255, .05); }
.drop input { display: none; }
.drop b { font-family: "Unbounded"; font-size: 16px; display: block; margin-bottom: 6px; color: var(--text); }

/* App-Detail */
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero h1 { margin: 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.shot { flex: none; position: relative; }
.shot img { height: 220px; border-radius: 14px; border: 1px solid var(--line); display: block; }
.shot .tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: center;
  opacity: 0; transition: .15s; }
.shot:hover .tools { opacity: 1; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.perm { font: 12px ui-monospace, monospace; color: var(--muted); display: inline-block; margin: 2px 6px 2px 0; }
.banner-prev { border-radius: 16px; padding: 18px 20px; min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center; position: relative; overflow: hidden; }
.banner-prev::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 9, 18, .85), rgba(5, 9, 18, .1)); }
.banner-prev > * { position: relative; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.qr svg { width: 200px; height: 200px; background: #0a1222; border-radius: 14px; }

/* Anmeldung */
body.center { display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 420px; }
.login .brand { justify-content: center; padding-bottom: 26px; }
.login .brand b { font-size: 24px; }
.spark { vertical-align: middle; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
