:root{
  --bg:#0b1020;--card:#0f172a;--fg:#e2e8f0;--muted:#94a3b8;
  --ok:#10b981;--warn:#f59e0b;--err:#ef4444;--bd:#1f2937;--brand:#16a34a;
  --accent:#22c55e;
}

/* Base */
*{box-sizing:border-box}
body{
  margin:0;color:var(--fg);
  background:linear-gradient(180deg,#0b1020,#0b1327 32%,#0b1020),var(--bg);
  font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
a{color:#e2e8f0;text-decoration:none;text-underline-offset:.15em;transition:color .15s}
a:hover{text-decoration:underline}

.wrap{max-width:980px;margin:40px auto;padding:0 16px}
.container{max-width:1200px;margin:0 auto;padding:24px 16px}

/* Header / Topbar (optional, global) */
header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.app-topbar{position:sticky;top:0;z-index:1000;background:#0e1217;border-bottom:1px solid rgba(255,255,255,.06)}
.app-topbar__row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;max-width:1200px;margin:0 auto;padding:12px 16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.brand__link{color:#fff}
.brand__pill{background:#1f2836;color:#9fb6d0;border-radius:999px;font-size:.75rem;padding:.15rem .5rem;margin-left:.25rem}
.logo{width:28px;height:28px;border-radius:8px;background:conic-gradient(from 210deg at 50% 50%,#16a34a,#22c55e,#16a34a);box-shadow:0 0 0 1px rgba(255,255,255,.06) inset}

/* Cards & layout */
.card{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
  padding:16px;
}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:860px){
  .grid{grid-template-columns:1fr}
}

/* Hero (Intro) */
.hero{
  background:linear-gradient(180deg,rgba(22,163,74,.10),rgba(22,163,74,.02)),#0f172a;
  border:1px solid var(--bd);
  border-radius:14px;
  padding:20px;
  margin-bottom:16px;
}
.hero h2{margin:0 0 8px;font-size:22px}

/* Field head (Label links, Dropdown rechts) */
.field-head{
  display:flex;
  align-items:center;
  justify-content:flex-end; /* nur Dropdown -> rechts */
  gap:.75rem;
  margin-bottom:.35rem;
}
.field-head__title{font-weight:600;margin-right:auto} /* falls du wieder einen Titel links einfügst */

/* Mini dropdown (nav.php) */
.mini-dd{position:relative}
.mini-dd__btn{
  list-style:none;cursor:pointer;user-select:none;
  color:#e6edf3;background:#1b2230;border:1px solid rgba(255,255,255,.1);
  border-radius:.5rem;padding:.35rem .6rem;font-size:.875rem;
}
.mini-dd[open] .mini-dd__btn,.mini-dd__btn:hover{background:#243148}
.mini-dd__menu{
  position:absolute;right:0;top:calc(100% + 6px);z-index:20;
  min-width:220px;padding:.35rem;border-radius:.6rem;
  background:#161b22;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.mini-dd__item{
  display:block;padding:.55rem .65rem;border-radius:.4rem;
  color:#e6edf3;text-decoration:none;font-size:.9rem;
}
.mini-dd__item:hover{background:#243148}
.mini-dd__item.is-disabled{opacity:.55;pointer-events:none}

/* Buttons (einheitlich) */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border:1px solid #1f2937;border-radius:10px;
  background:#111827;color:#fff;font-weight:700;cursor:pointer;
  transition:transform .05s ease, background .15s ease, filter .15s ease, opacity .15s ease;
  text-decoration:none;
}
.btn:hover{transform:translateY(-1px);background:#1f2937}
.btn:active{transform:translateY(0)}
.btn[disabled]{opacity:.55;cursor:not-allowed;filter:saturate(.6)}
.btn--ghost{background:transparent;color:#e2e8f0}
.btn--ghost:hover{background:#0b1224}
.btn--accent{background:var(--accent);color:#0b141d;border-color:transparent}
.btn--accent:hover{filter:brightness(1.06)}

/* Tools Landing (vereinheitlicht) */
.tools-grid{
  display:grid;gap:1rem;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  margin:1rem 0 2rem;
}
.tool-card{
  padding:1rem;background:var(--card);border:1px solid var(--bd);border-radius:12px;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}
.tool-card__icon{font-size:28px;line-height:1;margin-bottom:.35rem}
.tool-card__title{margin:0 0 .25rem;font-size:1.05rem}
.tool-card__title a{color:#e8ecf1}
.tool-card__title a:hover{text-decoration:underline}
.tool-card__desc{margin:0 0 .6rem;color:#9aa6b2}
.tool-card__tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.8rem}
.chip{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.2rem .6rem;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#cfd6de;font-size:.85rem}
.chip--small{font-size:.75rem;padding:.15rem .5rem}
.chip--on{background:rgba(77,180,92,.15);border-color:rgba(77,180,92,.35)}
.tool-card__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem;font-size:.85rem;color:var(--muted)}
.tool-card__link-left,.tool-card__link-right{color:var(--muted);transition:color .15s}
.tool-card__link-left:hover,.tool-card__link-right:hover{color:var(--accent)}

/* Helpers */
.muted{color:var(--muted)}
.kvs{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:10px}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;font-size:13px;font-weight:700}
.ok{background:rgba(16,185,129,.12);color:#10b981;border:1px solid rgba(16,185,129,.28)}
.warn{background:rgba(245,158,11,.12);color:#f59e0b;border:1px solid rgba(245,158,11,.28)}
.err{background:rgba(239,68,68,.12);color:#ef4444;border:1px solid rgba(239,68,68,.28)}
.h3-tight{margin:0 0 8px}

/* Tables */
table{width:100%;border-collapse:collapse;margin-top:12px}
th,td{border:1px solid var(--bd);padding:10px 12px;text-align:left;vertical-align:top}
th{background:#0b1224}

/* Footer */
footer{margin:18px 0 8px;color:var(--muted);display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
