:root{
  --bg:#0f1115;
  --panel:#141820;
  --muted:#a7b0c0;
  --text:#e6e8ef;
  --accent:#80df20;
  --accent-soft: #80df2040;
  --danger:#ff4874;
  --warn:#ffcc00;
  --ok:#24d39a;
  --card:#171b23;
  --border:#232938;
  --input:#10141c;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:radial-gradient(circle at top, #12151d 0%, #0f1115 40%, #0f1115 100%);
  color:var(--text);
  font-family:system-ui,Segoe UI,Roboto,Inter,Arial,sans-serif;
  line-height:1.4;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

.header{
  display:flex;
  align-items:center;
  gap:14px;
  margin:12px 0 22px;
}
.header h1{
  font-size:20px;
  margin:0;
  font-weight:700;
  letter-spacing:.3px;
}
.header .spacer{flex:1}

.btn{
  background:linear-gradient(180deg, var(--accent), #63b71a);
  color:#0b1404;
  border:none;
  border-radius:8px;
  padding:10px 14px;
  font-weight:700;
  box-shadow:0 2px 12px rgba(128,223,32,.28);
  transition:transform .08s ease, box-shadow .2s ease, filter .2s ease;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.03);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.secondary{
  background:#1b2028;
  color:var(--text);
  box-shadow:none;
  border:1px solid rgba(35,41,56,.65);
}
.btn.danger{
  background:linear-gradient(180deg, #ff698f, #ff4874);
  box-shadow:0 2px 0 #b72143;
}
.btn[disabled], .btn:disabled{
  opacity:.55;
  pointer-events:none;
}

.badge{
  background:var(--accent-soft);
  color:var(--accent);
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  margin-left:8px;
}
.badge-neutral{
  background:#2b2f38;
  color:#cbd5f5;
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
}
.badge-success{
  background:#80df20;
  color:#0b1012;
  font-weight:600;
}
.badge-danger{
  background:#ff4f6b;
  color:#fff;
  font-weight:600;
}

/* eckige, neon-top Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:9px;
  box-shadow:var(--shadow);
  padding:18px;
  margin:14px 0;
  position:relative;
  overflow:hidden;
  transition:transform .12s ease-out, border .12s ease-out;
}
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--accent), rgba(128,223,32,0));
  pointer-events:none;
}
.card:hover{
  border:1px solid rgba(128,223,32,.55);
  transform:translateY(-2px);
}
.card h2{
  margin:0 0 12px;
  font-size:18px;
}

/* grids */
.grid{display:grid;gap:16px}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){
  .grid.cols-2,.grid.cols-3{grid-template-columns:1fr}
}

/* inputs */
label{
  display:block;
  margin:12px 0 6px;
  color:var(--muted);
  font-weight:600;
  font-size:.78rem;
}
input[type=text],
input[type=password],
input[type=number],
textarea,
select{
  width:100%;
  background:var(--input);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:7px;
  padding:10px 12px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus,
textarea:focus,
select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  background:#0c0f14;
}
textarea{resize:vertical;min-height:110px}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
}
.help{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

/* table */
.table{
  width:100%;
  border-collapse:collapse;
}
.table th,.table td{
  padding:10px;
  border-bottom:1px solid rgba(35,41,56,.55);
  text-align:left;
}
.table th{
  color:#b9c2d3;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.4px;
  background:rgba(16,19,26,.2);
}
.table tr:hover td{background:#141924}

/* code-ish */
.kbd{
  background:#1b2130;
  padding:2px 6px;
  border-radius:6px;
  border:1px solid var(--border);
  font-family:ui-monospace,Menlo,Consolas,mono;
  font-size:12px;
}

/* notice */
.notice{
  padding:10px 12px;
  border-radius:8px;
  background:#192026;
  border:1px dashed var(--border);
  color:var(--muted);
}

/* topbar (public/admin) */
header.topbar{
  background:rgba(20,24,32,.6);
  backdrop-filter:blur(6px);
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid rgba(128,223,32,.35);
}
.topbar-inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 18px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo svg{
  width:26px;
  height:26px;
  filter:drop-shadow(0 2px 6px rgba(128,223,32,.35));
}
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{
  padding:6px 10px;
  border-radius:6px;
  border:1px solid var(--border);
  background:#121621;
  font-size:.78rem;
  color:var(--muted);
  transition:background .12s ease-out, border .12s ease-out;
}
.nav a:hover{
  background:rgba(128,223,32,.15);
  border-color:rgba(128,223,32,.4);
  color:var(--text);
}
.nav a.active{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent-soft);
}

/* token box */
.token-box{
  display:flex;
  align-items:center;
  gap:10px;
  background:#10141b;
  border:1px solid var(--border);
  padding:8px 10px;
  border-radius:8px;
}
.copy{
  cursor:pointer;
  user-select:none;
  font-weight:700;
}

/* progress bar */
.progress{
  height:10px;
  background:#1b2130;
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--border);
}
.progress > div{
  height:100%;
  background:linear-gradient(90deg,var(--accent),#b2ff5a);
  transition:width .2s linear;
}

/* option rows in question editor */
.option-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
}
.option-row input[type=text]{flex:1}
.option-row .icon-btn{
  background:#202636;
  border:1px solid var(--border);
  border-radius:6px;
  padding:8px;
  cursor:pointer;
}
.icon-btn:hover{border-color:var(--accent)}

/* actions container */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* footer */
footer{
  opacity:.7;
  text-align:center;
  padding:30px 0;
  font-size:12px;
  color:var(--muted);
}

/* Frage-Anhänge */
.q-media{ margin-top:10px }
.q-media img{
  display:block;
  max-width:100%;
  height:auto;
  border:1px solid #232938;
  border-radius:8px;
  background:#0d1016;
}
.q-media object.pdf-frame{
  width:100%;
  height:420px;
  border:1px solid #232938;
  border-radius:8px;
  background:#0d1016;
}

/* Review-Status Pills (von letzter Änderung) */
.score-pass{
  background:rgba(128,223,32,.08);
  border:1px solid rgba(128,223,32,.4);
  border-radius:6px;
  padding:2px 8px;
  display:inline-block;
  font-size:.7rem;
}
.score-fail{
  background:rgba(255,72,116,.08);
  border:1px solid rgba(255,72,116,.4);
  border-radius:6px;
  padding:2px 8px;
  display:inline-block;
  font-size:.7rem;
}

/* floating GTA-radio (leicht eckiger jetzt) */
.gta-radio{
  position:fixed;
  right:20px;
  bottom:20px;
  width:210px;
  background:rgba(15,17,21,.95);
  border:1px solid #232938;
  border-radius:9px;
  box-shadow:0 10px 28px rgba(0,0,0,.4);
  z-index:999;
  backdrop-filter:blur(3px);
}
.gta-radio::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--accent), rgba(128,223,32,0));
}
.gta-radio-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 10px;
  background:#10141b;
  border-bottom:1px solid rgba(255,255,255,.02);
  font-size:12px;
  font-weight:600;
}
#gta-radio-close{
  background:transparent;
  border:none;
  color:#a7b0c0;
  font-size:14px;
  cursor:pointer;
}
.gta-radio-body{
  padding:10px;
}
.gta-radio.minimized{
  height:30px;
  overflow:hidden;
}
@media(max-width:720px){
  .gta-radio{
    right:10px;
    bottom:10px;
    width:180px;
  }
}

/* responsive tweaks */
@media(max-width:720px){
  .container{padding:16px}
  .header{flex-wrap:wrap}
}

/* Review-Answer-UI (für "gewählt", "richtig" usw.) */
.answer-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.answer-row{
  display:flex;
  gap:10px;
  align-items:center;
  background:rgba(16,19,26,.25);
  border:1px solid rgba(128,223,32,.02);
  border-radius:6px;
  padding:6px 8px;
}
.answer-row > div:last-child{
  margin-left:auto;
  display:flex;
  gap:6px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:#1b2130;
  border:1px solid rgba(255,255,255,.03);
  border-radius:999px;
  padding:2px 8px;
  font-size:11px;
  line-height:1.1;
}
.chip-good{
  background:rgba(128,223,32,.14);
  border:1px solid rgba(128,223,32,.45);
  color:#f4ffe1;
  font-weight:500;
}
.chip-bad{
  background:rgba(255,72,116,.12);
  border:1px solid rgba(255,72,116,.45);
  color:#ffe5eb;
}

/* kleine Tabelle für Raster-Ansicht */
.tbl-small{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}
.tbl-small th,
.tbl-small td{
  border:1px solid rgba(35,41,56,.35);
  padding:6px 8px;
  font-size:.72rem;
}
.tbl-small th{
  background:rgba(16,19,26,.35);
  text-transform:uppercase;
  letter-spacing:.05em;
}
