/* ENO Discovery — Oberflaeche.
   Dunkel wie die uebrigen ENO-Anwendungen, aber bewusst nuechtern: das hier
   ist ein Verwaltungswerkzeug fuer wenige Menschen, kein Produkt. */

:root {
  --grund:      #14121c;
  --flaeche:    #1c1926;
  --erhoben:    #241f31;
  --rand:       #322b42;
  --text:       #e8e5f0;
  --text-leise: #9a93ad;
  --akzent:     #a855f7;
  --akzent-hell:#c084fc;
  --gruen:      #34d399;
  --rot:        #f87171;
  --gelb:       #fbbf24;
  --radius:     10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--akzent-hell); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Kopf ─────────────────────────────────────────────────────────────── */

.kopf {
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px; height: 58px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--rand);
  position: sticky; top: 0; z-index: 10;
  flex-wrap: wrap;
}
.marke { font-weight: 800; letter-spacing: .04em; color: var(--text); }
.marke span { color: var(--akzent); margin-left: 4px; font-weight: 600; }
.kopf nav { display: flex; gap: 4px; flex: 1; }
.kopf nav a {
  padding: 7px 14px; border-radius: var(--radius);
  color: var(--text-leise); font-size: 14px; font-weight: 500;
}
.kopf nav a:hover { background: var(--erhoben); color: var(--text); text-decoration: none; }
.kopf nav a.aktiv { background: rgba(168,85,247,.14); color: var(--akzent-hell); }
.rechts { display: flex; align-items: center; gap: 14px; }
.wer { color: var(--text-leise); font-size: 13px; }
.abmelden { color: var(--text-leise); font-size: 13px; }

main { max-width: 1200px; margin: 0 auto; padding: 26px 24px 60px; }

/* ── Bausteine ────────────────────────────────────────────────────────── */

h1 { font-size: 21px; margin: 0 0 4px; font-weight: 700; }
h2 { font-size: 15px; margin: 26px 0 10px; font-weight: 700; }
.unterzeile { color: var(--text-leise); font-size: 13px; margin: 0 0 20px; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 16px 18px; }
.karte .zahl { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.karte .titel { color: var(--text-leise); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

.block { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }

/* Breite Tabellen scrollen in ihrem eigenen Behaelter — die Seite selbst
   darf nie waagerecht scrollen. */
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th {
  text-align: left; padding: 11px 14px; white-space: nowrap;
  color: var(--text-leise); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--rand); background: var(--erhoben);
}
td { padding: 11px 14px; border-bottom: 1px solid var(--rand); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
.leer { padding: 34px; text-align: center; color: var(--text-leise); }

code, .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.code-gross { font-family: ui-monospace, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: .1em; color: var(--akzent-hell); }

.marke-status { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.st-aktiv   { background: rgba(52,211,153,.14); color: var(--gruen); }
.st-inaktiv { background: rgba(154,147,173,.14); color: var(--text-leise); }
.st-warn    { background: rgba(251,191,36,.14); color: var(--gelb); }

.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.p-an  { background: var(--gruen); }
.p-aus { background: #4b4560; }
.p-warn{ background: var(--gelb); }

/* ── Formulare ────────────────────────────────────────────────────────── */

label { display: block; font-size: 12px; color: var(--text-leise); margin-bottom: 5px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; padding: 9px 12px;
  background: var(--grund); color: var(--text);
  border: 1px solid var(--rand); border-radius: 8px;
  font: inherit; font-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); }
input[disabled] { color: var(--text-leise); }
.feld { margin-bottom: 14px; }
.gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.knopf {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  border: 1px solid var(--rand); background: var(--erhoben); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.knopf:hover { border-color: var(--akzent); text-decoration: none; }
.knopf-haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf-haupt:hover { background: var(--akzent-hell); }
.knopf-warn { color: var(--rot); }
.knopf-klein { padding: 5px 11px; font-size: 12.5px; }
.knopf-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }

.meldung { padding: 11px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.meldung.ok     { background: rgba(52,211,153,.12); color: var(--gruen); border: 1px solid rgba(52,211,153,.3); }
.meldung.fehler { background: rgba(248,113,113,.12); color: var(--rot);  border: 1px solid rgba(248,113,113,.3); }
.hinweis { color: var(--text-leise); font-size: 12.5px; margin-top: 5px; }

/* ── Anmeldung ────────────────────────────────────────────────────────── */

.anmelde-seite { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; }
.anmelde-karte { width: 100%; max-width: 380px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 30px; }
.anmelde-karte h1 { text-align: center; margin-bottom: 24px; }

.fuss { text-align: center; color: var(--text-leise); font-size: 12px; padding: 22px; }

/* ── Produktzeilen auf der Kundenseite ───────────────────────────────── */

.produkt { border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--erhoben); }
.produkt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.produkt-name { font-weight: 700; font-size: 14px; }
.schalter { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-leise); }
.schalter input { width: auto; }

@media (max-width: 700px) {
  .kopf { height: auto; padding: 10px 16px; }
  main { padding: 18px 16px 50px; }
}
