/* DJB.TV Verwaltung · DJBTV-V1 — klassischer JEM-Stil: Graphit + Gold, Mindesthelligkeit #ccc, große Klickflächen */
:root { --g0: #0f0f10; --g1: #161618; --g2: #1e1f22; --g3: #26272b; --rand: #34363c; --text: #ececec; --leise: #cccccc; --gold: #e5c07b; --gold2: #c9a24a; --rot: #e0574d; --gruen: #5cc46b; --blau: #6fb3e8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--g0); color: var(--text); font: 15px/1.45 "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--gold); }
.a-rahmen { display: flex; min-height: 100vh; }
.a-seite { width: 240px; flex: 0 0 240px; background: var(--g1); border-right: 1px solid var(--rand); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-logo { display: flex; align-items: center; gap: 10px; padding: 14px; text-decoration: none; color: var(--gold); font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--rand); }
.a-logo img { height: 38px; background: #fff; border-radius: 6px; padding: 2px; }
.a-seite nav { flex: 1; padding: 6px 0; }
.a-seite nav a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text); text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.a-seite nav a:hover { background: var(--g2); }
.a-seite nav a.an { background: var(--g3); border-left-color: var(--gold); color: var(--gold); }
.a-seite .i { width: 22px; text-align: center; }
.a-gruppe { font-size: .78rem; color: var(--gold2); text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px 4px; }
.a-ich { padding: 12px 14px; border-top: 1px solid var(--rand); font-size: .9rem; }
.a-ich small { color: var(--leise); }
.a-haupt { flex: 1; padding: 18px 24px 60px; min-width: 0; }
.a-haupt h1 { color: var(--gold); font-size: 1.5rem; margin: 0 0 14px; }
.a-haupt h2 { color: var(--gold); font-size: 1.15rem; margin: 22px 0 10px; }
@media (max-width: 900px) { .a-rahmen { flex-direction: column; } .a-seite { width: 100%; height: auto; position: static; } }

.a-kacheln { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.a-kachel { display: flex; flex-direction: column; justify-content: center; height: 58px; padding: 6px 14px; background: var(--g2); border: 1px solid var(--rand); border-radius: 8px; min-width: 120px; }
.a-kachel span { font-size: .78rem; color: var(--leise); }
.a-kachel b { font-size: 1.1rem; color: var(--gold); }
.a-kachel.klick { cursor: pointer; } .a-kachel.klick:hover { border-color: var(--gold); }

.a-tab { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--g1); border: 1px solid var(--rand); }
.a-tab th { text-align: left; color: var(--leise); font-weight: 600; background: var(--g2); padding: 8px; border-bottom: 1px solid var(--rand); position: sticky; top: 0; }
.a-tab td { padding: 7px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.a-tab tr:hover td { background: #1b1c1f; }
.a-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; position: sticky; top: 0; background: var(--g0); padding: 6px 0; z-index: 5; }
.a-leiste .rechts { margin-left: auto; }

.a-knopf, button.a-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; background: var(--g3); color: var(--text); border: 1px solid var(--rand); border-radius: 6px; cursor: pointer; text-decoration: none; font: inherit; font-size: .9rem; }
.a-knopf:hover { border-color: var(--gold); color: var(--gold); }
.a-knopf.gold { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 700; }
.a-knopf.gold:hover { background: #f0cf8e; color: #1a1408; }
.a-knopf.rot { border-color: #7a3b3b; color: #f3a59e; }
.a-knopf.klein { min-height: 28px; padding: 2px 9px; font-size: .82rem; }
.a-knopf.breit { width: 100%; }

fieldset.a-fs { border: 1px solid var(--rand); border-radius: 6px; padding: 8px 10px 6px; margin: 0 0 10px; }
fieldset.a-fs legend { color: var(--gold); font-size: .78rem; padding: 0 4px; }
.a-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.a-felder .ganz { grid-column: 1 / -1; }
.a-felder label, label.a-f { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--leise); }
input, select, textarea { font: inherit; font-size: .9rem; background: #0d0d0f; color: var(--text); border: 1px solid var(--rand); border-radius: 5px; padding: 6px 8px; min-height: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input[type=checkbox] { min-height: 0; width: 18px; height: 18px; }
label.a-chk { flex-direction: row; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); }

.a-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.a-modal[hidden] { display: none; }
.a-mbox { background: var(--g1); border: 1px solid var(--gold2); border-radius: 10px; width: min(860px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.a-mbox.breit { width: min(1180px, 100%); }
.a-mkopf { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rand); position: sticky; top: 0; background: var(--g1); border-radius: 10px 10px 0 0; z-index: 2; }
.a-mkopf b { color: var(--gold); font-size: 1.05rem; flex: 1; }
.a-mzu { background: none; border: 1px solid var(--rand); color: var(--text); min-width: 36px; min-height: 34px; border-radius: 6px; cursor: pointer; }
.a-minhalt { padding: 12px 14px; }
.a-mfuss { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--rand); }
.a-mfuss:empty { display: none; }
.a-toast { position: fixed; right: 16px; bottom: 16px; background: var(--g3); border: 1px solid var(--gold); color: var(--text); padding: 10px 16px; border-radius: 8px; z-index: 200; max-width: 420px; }
.a-toast.fehler { border-color: var(--rot); }

.a-login { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.a-loginbox { background: var(--g1); border: 1px solid var(--gold2); border-radius: 12px; padding: 24px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; }
.a-loginbox h1 { color: var(--gold); text-align: center; margin: 0 0 6px; font-size: 1.4rem; }
.a-loginbox label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--leise); }
.a-oder { text-align: center; color: var(--leise); font-size: .85rem; margin: 6px 0; }
.a-fehler { background: #2a1f1f; border: 1px solid #5a3330; color: #f0b4ae; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
.a-hinweis { color: var(--leise); font-size: .85rem; }
.a-marke { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: .78rem; font-weight: 700; }
.a-marke.gut { background: #1d3a24; color: var(--gruen); } .a-marke.warn { background: #3a2e17; color: var(--gold); } .a-marke.aus { background: #3a1d1b; color: var(--rot); } .a-marke.neutral { background: var(--g3); color: var(--leise); }
.a-bildvorschau { max-height: 80px; max-width: 220px; background: #fff; border-radius: 4px; padding: 2px; }

/* MODALKOPF-V1: Kopf bleibt beim Scrollen langer Modals ganz oben sichtbar */
.a-mkopf { top: -4vh; }
