:root{
  --bg:#0b0f19;
  --panel:#111827;
  --panel2:#0f172a;
  --border:#23304a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#5865f2;
  --accent2:#3b82f6;
  --danger:#ef4444;
  --ok:#22c55e;
  --warn:#fbbf24;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html, body { height:100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(88,101,242,.25), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(59,130,246,.18), transparent 55%),
    var(--bg);
  color:var(--text);
  background-repeat: no-repeat;
}

.wrap{
  max-width:1150px;
  margin:0 auto;
  padding:18px;
  width:100%;
  flex:1 0 auto;
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ opacity:.95; text-decoration:underline; }

.content > p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-top: -15px;
}

.content {
    padding-top: 5px;
}

.content, .content > p {
    line-height: 1.3;
}
.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.split{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }

.top{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.brand{ display:flex; flex-direction:column; gap:8px; }

.pill{
  padding:8px 12px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(17,24,39,.95), rgba(15,23,42,.95));
  border-radius:999px;
  box-shadow: var(--shadow);
  color:var(--text);
}
.pill b{ font-weight:900; }

.muted{ color:var(--muted); }
.small{ font-size:12px; }
.ok{ color:var(--ok); font-weight:900; }
.warn{ color:var(--warn); font-weight:900; }
.danger{ color:var(--danger); font-weight:900; }

.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(15,23,42,.92));
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}

h2{ margin:18px 0 0 0; font-size:20px; letter-spacing:.2px; }

/* Inputs / Select / Textarea: Dark, nicht mehr weiß */
input, textarea, select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
textarea{ min-height:90px; resize: vertical; }
input::placeholder, textarea::placeholder{ color: rgba(229,231,235,.55); }
select{ cursor:pointer; }

/* Buttons */
.btn{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(88,101,242,.95), rgba(88,101,242,.78));
  color:white;
  font-weight:800;
  cursor:pointer;
  width:100%;
}
.btn:hover{ filter:brightness(1.05); }
.btn:disabled{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  cursor:not-allowed;
}

.btn2{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn2:hover{ background: rgba(255,255,255,.08); }

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.catbar{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.catpill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.catpill.active{
  background: rgba(88,101,242,.20);
  border-color: rgba(88,101,242,.45);
}
.cat-icon{
  width:18px;
  height:18px;
  border-radius:6px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

/* 3er Grid (max 3 nebeneinander, dann Umbruch) */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
}

/* Produktkarten: 400px fix, Footer/Button unten */
.pcard{
  height:400px;
  display:flex;
  flex-direction:column;
  padding:12px;
}
.pimgwrap{ display:block; text-decoration:none; }
.pimg{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.pbody{
  display:flex;
  flex-direction:column;
  flex:1;
  margin-top:10px;
  gap:8px;
}
.ptitle{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--text);
  text-decoration:none;
}
.ptitle:hover{ text-decoration:underline; }

.pdesc{
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
  overflow:hidden;
  display:-webkit-box;
  height: 59px;
}

.pfooter{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pprice{
  font-size:14px;
}
.pprice b{
  font-size:16px;
  font-weight:900;
}

/* COMMAND box */
.commandlabel{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}
.commandbox{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Tabellen (Admin) */
table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
}
th, td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  text-align:left;
  vertical-align:top;
}
thead th{
  background: rgba(255,255,255,.04);
  color: rgba(229,231,235,.85);
}

/* Footer am Ende der Seite */
.footer{
  margin-top:auto;
  padding-top:14px;
}

/* Toast unten links mit Fade */
.toast{
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 9999;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show{
  opacity:1;
  transform: translateY(0);
}
.toast.hide{
  opacity:0;
  transform: translateY(10px);
}
.tagicon{
  width:16px;
  height:16px;
  border-radius:4px;
  object-fit:cover;
  vertical-align:middle;
  margin-right:6px;
  border:1px solid rgba(255,255,255,.10);
}


.caticon{
  width:16px;
  height:16px;
  object-fit:cover;
  border-radius:4px;
  display:inline-block;
  vertical-align:middle;
}

.catTagIcon{
  padding:4px 8px;
}


.searchwrap{
  display:flex;
  justify-content:center;
  margin:12px 0 6px;
}

.searchform{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  width:min(820px, 100%);
}

.searchinput{
  flex:1;
  min-width:260px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}

.searchinput:focus{
  border-color: rgba(88,101,242,.65);
  box-shadow: 0 0 0 3px rgba(88,101,242,.18);
}

.searchbtn{
  width:auto;
  padding:10px 14px;
}

.caticon{
  width:16px;
  height:16px;
  object-fit:cover;
  border-radius:4px;
  display:inline-block;
  vertical-align:middle;
}

.presenceLine{ margin-top:6px; display:flex; gap:8px; align-items:center; }
.presenceText{ font-size:12px; }
.presenceDot{ width:8px; height:8px; border-radius:999px; display:inline-block; }
.presenceDotIdle{ background: rgba(156,163,175,.8); }
.presenceDotOk{ background: rgba(34,197,94,.95); }
.presenceDotBad{ background: rgba(239,68,68,.95); }


/* Inputs & Selects im gleichen Look */
select, textarea, input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="url"], input[type="password"] {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

select:focus, textarea:focus, input:focus {
  border-color: rgba(255,255,255,.22);
}

/* Option-Farben (Browser-spezifisch, hilft oft gegen „weiß“) */
select option {
  background: #111;
  color: #fff;
}
