/* CrazyDevelopment Hub — Design im Stil der Hauptseite */
:root {
  --bg:        #07070d;
  --bg-soft:   #0d0d17;
  --surface:   #12121f;
  --surface-2: #181829;
  --border:    #23233a;
  --text:      #ececf5;
  --muted:     #9a9ab4;
  --accent:    #7c5cff;
  --accent-2:  #22d3ee;
  --ok:        #34d399;
  --warn:      #fbbf24;
  --err:       #f87171;
  --radius:    14px;
  --maxw:      1180px;
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(50rem 35rem at 95% 5%, rgba(34, 211, 238, .10), transparent 60%);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .86em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Scrollleiste ---------- */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-soft); }
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-soft); border-left: 1px solid var(--border); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px; border: 3px solid var(--bg-soft); background-clip: padding-box;
}

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 13, .8);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo small { font-weight: 600; color: var(--muted); font-size: .72em; }
.logo .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-mark {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: grid; place-items: center; overflow: hidden;
  /* background: linear-gradient(135deg, var(--accent), var(--accent-2)); */
  font-family: var(--mono); font-size: .85rem; color: #07070d; font-weight: 800;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.whoami { font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 10px; color: var(--text); cursor: pointer; font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  font-family: inherit; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07070d; box-shadow: 0 6px 22px rgba(124, 92, 255, .3);
}
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(124, 92, 255, .1); }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248,113,113,.45); color: #fca5a5; }
.btn-danger:hover { background: rgba(248, 113, 113, .2); border-color: var(--err); }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ---------- Grundbausteine ---------- */
main { flex: 1; padding: 44px 0 80px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--border); background: rgba(34, 211, 238, .07);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 44px 0 16px; font-weight: 800; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; font-weight: 700; }
.lead { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.hinweis { color: var(--muted); font-size: .86rem; margin-top: 14px; }
.schmal { max-width: 620px; margin-inline: auto; }
.mittig { text-align: center; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18,18,31,.6) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }

/* ---------- Meldungen ---------- */
.flash {
  padding: 13px 18px; border-radius: 10px; margin-bottom: 20px;
  font-size: .9rem; border: 1px solid;
}
.flash-ok   { background: rgba(52, 211, 153, .1);  border-color: rgba(52,211,153,.35);  color: var(--ok); }
.flash-warn { background: rgba(251, 191, 36, .1);  border-color: rgba(251,191,36,.35);  color: var(--warn); }
.flash-err  { background: rgba(248, 113, 113, .1); border-color: rgba(248,113,113,.35); color: #fca5a5; }
.flash-info { background: rgba(124, 92, 255, .1);  border-color: rgba(124,92,255,.35);  color: var(--muted); }

.leer {
  text-align: center; padding: 60px 24px;
  border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted);
}
.leer h3 { color: var(--text); margin-bottom: 8px; }
.leer .btn { margin-top: 18px; }
.laedt { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- Abzeichen ---------- */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.badge-pending  { background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.4);  color: var(--warn); }
.badge-approved { background: rgba(52,211,153,.12);  border-color: rgba(52,211,153,.4);  color: var(--ok); }
.badge-rejected { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.4); color: #fca5a5; }
.badge-user  { background: rgba(154,154,180,.12); border-color: rgba(154,154,180,.35); color: var(--muted); }
.badge-team  { background: rgba(34,211,238,.12);  border-color: rgba(34,211,238,.4);  color: var(--accent-2); }
.badge-admin { background: rgba(124,92,255,.15);  border-color: rgba(124,92,255,.45); color: #b9a5ff; }

/* ---------- Formulare ---------- */
.formular { display: block; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field small { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-family: inherit; font-size: .93rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input[type="file"] { padding: 10px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  background: rgba(124,92,255,.15); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer; font-family: inherit;
}
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.has-error { border-color: rgba(248,113,113,.65) !important; }
.field-error { color: #fca5a5; font-size: .8rem; margin-top: 6px; }

.suchleiste { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.suchleiste input { flex: 1; min-width: 220px; }
.suchleiste input, .suchleiste select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-family: inherit; font-size: .92rem;
}

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 36px; }
.kachel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.kachel .zahl {
  display: block; font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kachel .label { color: var(--muted); font-size: .82rem; }

/* ---------- Marktplatz ---------- */
.markt-kopf {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.markt { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }

.filter-spalte {
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.filter-gruppe { margin-bottom: 22px; }
.filter-gruppe h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.filter-gruppe input[type="search"] {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; color: var(--text);
  font-family: inherit; font-size: .88rem;
}
.filter-gruppe input[type="search"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
.filter-liste { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.filter-knopf {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; border-radius: 8px; padding: 7px 10px;
  color: var(--muted); font-family: inherit; font-size: .88rem; text-align: left;
  cursor: pointer; transition: background .15s, color .15s;
}
.filter-knopf:hover { background: rgba(255,255,255,.04); color: var(--text); }
.filter-knopf.aktiv { background: rgba(124, 92, 255, .14); color: var(--text); font-weight: 600; }
.filter-knopf .anzahl {
  font-size: .76rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 8px; flex: none;
}
.filter-knopf.aktiv .anzahl { border-color: rgba(124,92,255,.4); }

.markt-leiste {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.sortierung { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sortierung select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 12px; color: var(--text); font-family: inherit; font-size: .88rem;
}

.aktive-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.marke {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.35);
  color: var(--text); border-radius: 999px; padding: 5px 12px;
  font-family: inherit; font-size: .8rem; cursor: pointer;
}
.marke:hover { border-color: var(--accent); }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.markt-karte {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18,18,31,.6) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, transform .2s;
}
.markt-karte:hover { border-color: rgba(124,92,255,.5); transform: translateY(-3px); }
.karte-flaeche { display: flex; flex-direction: column; gap: 13px; color: inherit; flex: 1; }
.karte-flaeche:hover { text-decoration: none; }
.karte-flaeche h3 { color: var(--text); }
.karte-oben { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marke-kategorie {
  font-size: .72rem; letter-spacing: .04em; color: var(--accent-2);
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3);
  border-radius: 999px; padding: 3px 10px;
}
.marke-preis {
  font-size: .74rem; font-weight: 700; color: var(--ok);
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.marke-preis.kostenpflichtig {
  color: #c4b5fd; background: rgba(124,92,255,.15); border-color: rgba(124,92,255,.4);
}
.karte-fuss {
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}

.preis { color: #c4b5fd; font-weight: 600; }
.preis.gross { font-size: 1.3rem; }
.kostenlos { color: var(--ok); font-weight: 600; }
.kauf-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Hinweisleiste für unbestätigte Adressen.
   [hidden] muss ausdrücklich gewinnen, sonst hebt display:flex es auf. */
.banner[hidden], .flash[hidden] { display: none !important; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35);
  color: #e8d9a8; border-radius: 10px; padding: 13px 18px; margin-bottom: 20px; font-size: .88rem;
}

.plus { color: var(--ok); font-weight: 600; }
.minus { color: #fca5a5; font-weight: 600; }

/* ---------- Projektbilder, Chips, Kanäle ---------- */
.projekt-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 12px; object-fit: cover;
  border: 1px solid var(--border); background: var(--bg-soft);
  display: grid; place-items: center;
}
.projekt-icon.gross { width: 76px; height: 76px; border-radius: 16px; }
.icon-platzhalter {
  font-weight: 800; font-size: 1.4rem; color: #07070d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.projekt-icon.gross.icon-platzhalter { font-size: 2rem; }
.karten-kopf { display: flex; gap: 14px; align-items: flex-start; }
.karten-titel { min-width: 0; }
.projekt-kopf { display: flex; gap: 18px; align-items: flex-start; }

.chip-gruppe { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: 999px; padding: 7px 14px; font-size: .84rem;
  color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.chip-check:hover { border-color: var(--accent); color: var(--text); }
.chip-check:has(input:checked) {
  border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.12); color: var(--text);
}
.chip-check input { accent-color: var(--accent); margin: 0; }

.badge-kanal { font-family: var(--mono); font-size: .68rem; }
.badge-release { background: rgba(52,211,153,.12);  border-color: rgba(52,211,153,.4);  color: var(--ok); }
.badge-beta    { background: rgba(34,211,238,.12);  border-color: rgba(34,211,238,.4);  color: var(--accent-2); }
.badge-alpha   { background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.4);  color: var(--warn); }

.treffer { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.plugin-foot.ohne-linie { border-top: none; padding-top: 0; margin-top: -6px; }

/* ---------- Plugin-Karten ---------- */
.plugin-card { display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.plugin-card:hover { border-color: rgba(124,92,255,.5); transform: translateY(-3px); }
.plugin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plugin-head h3 a { color: var(--text); }
.version { font-family: var(--mono); font-size: .78rem; color: var(--accent-2); }
.beschreibung { color: var(--muted); font-size: .9rem; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li {
  font-size: .76rem; color: var(--muted); border: 1px solid var(--border);
  background: var(--bg-soft); padding: 3px 10px; border-radius: 999px;
}
.plugin-foot {
  display: flex; justify-content: space-between; font-size: .8rem;
  color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle .rechts { text-align: right; white-space: nowrap; }
.tabelle-klein { font-size: .82rem; }
.tabelle-klein td { padding: 8px 12px; }
.hauptzeile td { background: var(--surface-2); }
.unterzeile td:first-child { padding-left: 28px; font-family: var(--mono); font-size: .84rem; }
.slug { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.notiz { color: var(--muted); font-style: italic; }
.mono { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.gesperrt { opacity: .5; }
.tabellen-rahmen {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow-x: auto; background: var(--surface);
}

/* ---------- Detailseite ---------- */
.fliesstext { color: var(--muted); }
.fliesstext.klein { font-size: .86rem; }
.daten { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; margin-top: 14px; }
.daten dt { color: var(--muted); }
.daten dd { color: var(--text); word-break: break-word; }
.daten-breit { grid-template-columns: 150px 1fr; }
.pruefsumme { margin-top: 18px; font-size: .78rem; color: var(--muted); }
.pruefsumme code { word-break: break-all; color: var(--accent-2); }
.changelog td { color: var(--muted); font-size: .84rem; padding-top: 0 !important; }

/* ---------- Prüfung ---------- */
.pruef-karte { margin-bottom: 22px; }
.pruef-kopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.pruef-aktionen { margin: 18px 0; }
.pruef-form { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 4px; }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; }

/* Schnellwahl der Aufladebeträge */
.schnellwahl { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.schnellwahl .marke { font-family: var(--mono); }

/* Auszahlungen in der Verwaltung */
.empfaenger { max-width: 260px; }
.empfaenger .mono { font-size: .76rem; word-break: break-all; }
.auszahl-aktion { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.auszahl-aktion input {
  width: 210px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 11px; color: var(--text);
  font-family: inherit; font-size: .84rem;
}
.auszahl-aktion input:focus { outline: none; border-color: var(--accent); }
tr.hervor td { background: rgba(251, 191, 36, .05); }

/* ---------- Gefahrenbereich ---------- */
.gefahr {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid rgba(248,113,113,.35); background: rgba(248,113,113,.05);
  border-radius: var(--radius); padding: 20px; margin-top: 28px; flex-wrap: wrap;
}
.gefahr p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.inline { display: inline-flex; gap: 8px; align-items: center; }
.inline select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; color: var(--text); font-family: inherit; font-size: .84rem;
}

/* ---------- Fuß ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 26px 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem;
}
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { color: var(--muted); }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 980px) {
  .markt { grid-template-columns: 1fr; }
  .filter-spalte { position: static; }
  .filter-liste { flex-direction: row; flex-wrap: wrap; }
  .filter-knopf { width: auto; border: 1px solid var(--border); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 14px; }
  .nav-user { justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .projekt-kopf { flex-direction: column; }
  .feld-paar { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .daten-breit { grid-template-columns: 1fr; }
  .daten-breit dt { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Lizenzen ---------- */
.lizenz-karte { margin-bottom: 18px; }
.lizenz-kopf {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.lizenz-kopf h3 { margin: 0; }

/* Der Schlüssel selbst — groß genug zum Abtippen, mit Knopf zum Kopieren */
.schluessel {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.schluessel code {
  font-family: var(--mono); font-size: 1.02rem; font-weight: 600;
  letter-spacing: .06em; color: var(--accent-2); word-break: break-all; flex: 1;
}
.schluessel.verdeckt code { filter: blur(6px); user-select: none; }

.geheimnis code { font-size: .84rem; letter-spacing: 0; color: var(--warn); }

.server-liste { list-style: none; margin: 14px 0 0; font-size: .86rem; }
.server-liste li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--border);
}
.server-liste .kennung { font-family: var(--mono); color: var(--text); }
.server-liste .wann { color: var(--muted); font-size: .8rem; }

.plaetze { color: var(--muted); font-size: .82rem; }
.plaetze.voll { color: var(--warn); }

/* Quelltext in der Dokumentation */
.code-block {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; overflow-x: auto;
}
.code-block pre { margin: 0; }
.code-block code {
  font-family: var(--mono); font-size: .82rem; line-height: 1.7;
  color: var(--text); white-space: pre;
}

.liste { margin: 12px 0 0 18px; color: var(--muted); font-size: .88rem; }
.liste li { margin-bottom: 8px; }

/* Guthaben gutschreiben in der Verwaltung */
.guthaben-aktion { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.guthaben-aktion input[name="betrag"] { width: 96px; text-align: right; }
.guthaben-aktion input[name="grund"] { width: 190px; }
.guthaben-aktion input {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 11px; color: var(--text);
  font-family: inherit; font-size: .84rem;
}
.stand { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
