:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --text: #e7edf6;
  --muted: #9fb0c7;
  --line: rgba(255,255,255,.09);

  /* Mathes Group Gelb */
  --accent: #ffcc00;
  --accent2: rgba(255,204,0,.16);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 20% 8%, rgba(255,204,0,.10), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(120,160,255,.10), transparent 55%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
.hidden{ display:none !important; }

.topbar{
  position: sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 18px;
  background: rgba(11,15,20,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.brand{ display:flex; gap:12px; align-items:center; }
.brand-mark{
  width: 14px; height: 38px; border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), rgba(255,204,0,.45));
  box-shadow: 0 0 0 4px rgba(255,204,0,.10);
}
.brand-title{ font-weight:800; letter-spacing:.2px; }
.brand-sub{ color: var(--muted); font-size: 12px; margin-top:2px; }

.nav{ display:flex; gap:10px; align-items:center; }
.navlink{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.navlink:hover{ color: var(--text); background: rgba(255,255,255,.04); }

.container{ max-width: 1180px; margin: 18px auto; padding: 0 16px 40px; }
.footer{ color: var(--muted); text-align:center; padding: 22px 0 30px; font-size: 12px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

h1{ margin: 0 0 6px; font-size: 24px; }
h2{ margin: 0 0 12px; font-size: 16px; color: var(--text); }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
code{ background: rgba(255,255,255,.04); padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line); }

.page-head{ display:flex; justify-content:space-between; align-items:flex-end; margin: 12px 0 16px; gap:12px; }
.actions{ display:flex; gap:10px; }

.form{ display:grid; gap:10px; }
.grid-3{ grid-template-columns: 1fr 1fr auto; align-items:end; }
.grid-4{ grid-template-columns: 1fr 1fr 1fr auto; align-items:end; }
.grid-6{ grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto; align-items:end; }
label{ color: var(--muted); font-size: 12px; }
input, select{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  outline: none;
}
input:focus, select:focus{ border-color: rgba(255,204,0,.55); box-shadow: 0 0 0 4px var(--accent2); }

.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,204,0,.60);
  background: linear-gradient(180deg, rgba(255,204,0,.25), rgba(255,204,0,.12));
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}
.btn:hover{ border-color: rgba(255,204,0,.95); }
.btn-ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.btn-ghost:hover{ color: var(--text); border-color: rgba(255,255,255,.18); }

.alert{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,204,0,.35);
  background: rgba(255,204,0,.10);
  color: var(--text);
  margin: 10px 0;
}

.row{ display:grid; grid-template-columns: 2fr 1fr 1fr; gap:10px; }

.section{ margin: 18px 0 8px; }
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.tool-card{
  display:block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,204,0,.10), transparent 55%),
    rgba(255,255,255,.02);
  transition: transform .15s ease, border-color .15s ease;
}
.tool-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,204,0,.40);
}
.tool-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.tool-title{ font-weight: 900; }
.tool-desc{ color: var(--muted); margin-top: 8px; min-height: 34px; }
.tool-meta{ color: rgba(159,176,199,.7); margin-top: 10px; font-size: 12px; }

.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.badge{
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-accent{
  border-color: rgba(255,204,0,.55);
  background: rgba(255,204,0,.10);
}

.tabs{ display:flex; gap:10px; margin-bottom: 12px; flex-wrap: wrap; }
.tab{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
}
.tab.active{
  color: var(--text);
  border-color: rgba(255,204,0,.45);
  background: rgba(255,204,0,.10);
}

.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: top;
}
.table th{ color: var(--muted); font-size: 12px; text-align:left; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  cursor:pointer;
  font-size: 12px;
}
.chip-on{
  border-color: rgba(255,204,0,.55);
  background: rgba(255,204,0,.12);
  color: var(--text);
}
.auth-card{ max-width: 480px; margin: 60px auto 0; }
.logo-row{ display:flex; justify-content:center; margin-bottom: 12px; }
.logo{ height: 26px; opacity: .95; }
