/* Devil's Advocate — Red-Team Agent
   Design: Executive Command Card (Muster future-winners), Crimson-Variante.
   Akzent: #e0705f / #b04a3c auf tiefdunklem Grund. Fonts: Orbitron + Rajdhani. */

:root {
  --acc: #e0705f;
  --acc-dim: #b04a3c;
  --acc-soft: rgba(224, 112, 95, 0.45);
  --ink: #ece2dc;
  --ink-dim: #a8938c;
  --panel: #0d0f16;
  --field: #100a0e;
}

* { box-sizing: border-box; }

/* Das hidden-Attribut MUSS jedes display (flex/grid) schlagen — sonst bleibt
   z. B. die Login-Karte (.da-stage = display:flex) trotz hidden sichtbar. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 20%, #1e1014 0%, #0e070a 55%, #060305 100%);
  font-family: 'Rajdhani', sans-serif;
  color: var(--ink);
}

/* ======================= LOGIN: AGENTENKARTE ======================= */

.da-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.da-card {
  position: relative;
  width: min(360px, 100%);
  border-radius: 18px;
  background: linear-gradient(170deg, #160e12 0%, #0e090c 60%, #170e10 100%);
  border: 1.5px solid var(--acc-dim);
  box-shadow: 0 0 0 4px #140d10, 0 0 0 5px var(--acc-soft), 0 0 34px rgba(224, 112, 95, 0.22);
  padding: 18px 18px 15px;
}

.da-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--acc);
  border-style: solid;
  border-width: 0;
}

.da-cardhead { display: flex; align-items: center; gap: 10px; }

.da-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--acc);
  letter-spacing: 0.01em;
}

.da-brandsub { font-size: 12px; letter-spacing: 0.18em; color: var(--ink-dim); font-weight: 600; }

.da-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.da-badge-adv {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(180deg, #a1201f, #6e1414);
  border-radius: 5px;
  padding: 3px 9px;
}

.da-badge-series {
  border: 1px solid rgba(224, 112, 95, 0.6);
  border-radius: 5px;
  padding: 2px 9px;
  text-align: center;
}
.da-badge-series span { font-size: 10px; letter-spacing: 0.16em; color: var(--ink-dim); display: block; font-weight: 600; }
.da-badge-series b { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.1; }

.da-head {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  color: #f0b2a5;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 8px;
}
.da-head::before, .da-head::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--acc-dim)); }
.da-head::after { background: linear-gradient(90deg, var(--acc-dim), transparent); }

.da-mission { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 0; font-weight: 500; }

.da-fieldlbl { font-size: 11px; letter-spacing: 0.24em; color: #f0b2a5; margin: 0 0 5px 2px; font-weight: 700; }

.da-fieldwrap { position: relative; margin-bottom: 11px; }
.da-fieldwrap svg { position: absolute; right: 14px; top: 14px; }

.da-field {
  width: 100%;
  height: 46px;
  border-radius: 9px;
  border: 1px solid rgba(224, 112, 95, 0.5);
  background: var(--field);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0 42px 0 14px;
  outline: none;
}
.da-field::placeholder { color: #5c4640; letter-spacing: 0.2em; }
.da-field:focus { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc-soft), 0 0 16px rgba(224, 112, 95, 0.3); }

.da-cta {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: #1c0806;
  background: linear-gradient(180deg, #f0937e, var(--acc-dim));
  box-shadow: 0 0 16px rgba(224, 112, 95, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.da-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 24px rgba(240, 147, 126, 0.6); }
.da-cta:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.da-loginrow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }

.da-mini { font-size: 12.5px; color: var(--ink-dim); font-weight: 500; }
.da-check { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.da-check input { accent-color: var(--acc-dim); width: 14px; height: 14px; }
.da-linkbtn { background: none; border: none; cursor: pointer; color: #f0b2a5; padding: 0; font-family: inherit; }

.da-hintbox { margin: 0 0 10px; border: 1px solid rgba(224, 112, 95, 0.35); border-radius: 7px; padding: 7px 10px; background: var(--field); }

.da-errorbox {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ff9d94;
  border: 1px solid rgba(244, 87, 77, 0.45);
  border-radius: 7px;
  padding: 7px 10px;
  background: rgba(244, 87, 77, 0.08);
}

.da-cap { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.da-caplbl { font-size: 12.5px; letter-spacing: 0.07em; font-weight: 600; color: var(--ink); width: 140px; text-transform: uppercase; }
.da-track { flex: 1; height: 7px; border-radius: 4px; background: #1c1014; border: 0.5px solid #34181c; overflow: hidden; }
.da-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a1201f, var(--acc)); box-shadow: 0 0 8px rgba(224, 112, 95, 0.7); }
.da-capval { font-size: 14px; font-weight: 700; color: #fff; width: 24px; text-align: right; }

.da-divider { display: flex; justify-content: center; margin-top: 13px; }
.da-cardfoot { text-align: center; margin: 8px 0 0; font-size: 10.5px; letter-spacing: 0.2em; color: #6d5550; }

/* ======================= APP: WAR ROOM ======================= */

.da-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(224, 112, 95, 0.25);
  background: rgba(14, 8, 10, 0.85);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.da-topbrand { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px; color: var(--acc); flex: 1; }
.da-topbrand span { font-family: 'Rajdhani', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-dim); margin-left: 8px; }

.da-limit { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-dim); border: 1px solid rgba(224, 112, 95, 0.35); border-radius: 5px; padding: 3px 9px; }

.da-ghostbtn {
  background: none;
  border: 1px solid rgba(224, 112, 95, 0.45);
  color: #f0b2a5;
  border-radius: 7px;
  padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.da-ghostbtn:hover { border-color: var(--acc); color: #fff; }

.da-main {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 18px 20px 30px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 860px) { .da-main { grid-template-columns: 1fr; } }

.da-panel {
  background: linear-gradient(170deg, #140d10 0%, #0d090b 100%);
  border: 1px solid rgba(224, 112, 95, 0.3);
  border-radius: 14px;
  padding: 18px;
}

.da-paneltitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f0b2a5;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.da-lbl { display: block; font-size: 11px; letter-spacing: 0.18em; color: #f0b2a5; font-weight: 700; margin: 12px 0 4px 2px; text-transform: uppercase; }

.da-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(224, 112, 95, 0.4);
  background: var(--field);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 12px;
  outline: none;
  resize: vertical;
}
.da-input:focus { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc-soft); }
select.da-input { height: 42px; }

.da-optrow { display: flex; gap: 18px; margin: 14px 2px; flex-wrap: wrap; }

.da-history { list-style: none; margin: 0; padding: 0; }
.da-history li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(224, 112, 95, 0.14);
  cursor: pointer;
  border-radius: 6px;
}
.da-history li:hover { background: rgba(224, 112, 95, 0.08); }
.da-history li.active { background: rgba(224, 112, 95, 0.14); }
.da-history .t { flex: 1; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-history .m { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.06em; }
.da-history .s { font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; }

.da-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: #35c26e; box-shadow: 0 0 7px rgba(53, 194, 110, 0.8); }
.dot-yellow { background: #e5b83c; box-shadow: 0 0 7px rgba(229, 184, 60, 0.8); }
.dot-red { background: #e5473c; box-shadow: 0 0 7px rgba(229, 71, 60, 0.8); }

.da-empty { text-align: center; padding: 70px 20px; color: var(--ink-dim); }
.da-empty p:first-child { font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 0.1em; color: #f0b2a5; }

/* ---- Ergebnis-Darstellung ---- */

.da-verdict {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(224, 112, 95, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.da-verdict.v-green { border-color: rgba(53, 194, 110, 0.5); background: rgba(53, 194, 110, 0.06); }
.da-verdict.v-yellow { border-color: rgba(229, 184, 60, 0.5); background: rgba(229, 184, 60, 0.06); }
.da-verdict.v-red { border-color: rgba(229, 71, 60, 0.5); background: rgba(229, 71, 60, 0.06); }

.da-verdict .decision { font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.v-green .decision { color: #35c26e; }
.v-yellow .decision { color: #e5b83c; }
.v-red .decision { color: #e5473c; }

.da-scorering { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 700; color: #fff; }
.da-scorering small { font-size: 12px; color: var(--ink-dim); font-family: 'Rajdhani', sans-serif; }
.da-verdict .reason { flex: 1 1 260px; font-size: 14px; line-height: 1.5; margin: 0; }
.da-verdict .conf { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.06em; }

.da-restitle { font-family: 'Orbitron', sans-serif; font-size: 15px; color: #fff; margin: 0 0 4px; }
.da-resmeta { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.08em; margin: 0 0 14px; }

.da-sec { margin-top: 20px; }
.da-sechead {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #f0b2a5;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  text-transform: uppercase;
}
.da-sechead::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, var(--acc-dim), transparent); }

.da-sec p, .da-sec li { font-size: 14.5px; line-height: 1.55; }
.da-sec ol, .da-sec ul { margin: 0; padding-left: 20px; }
.da-sec li { margin-bottom: 7px; }
.da-thesis { font-style: italic; font-size: 15.5px; border-left: 3px solid var(--acc-dim); padding-left: 12px; }

.da-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 7px; margin-right: 7px; letter-spacing: 0.05em; }
.tag-sev { background: rgba(229, 71, 60, 0.18); color: #ff9d94; border: 1px solid rgba(229, 71, 60, 0.4); }
.tag-ev { background: rgba(224, 112, 95, 0.12); color: #f0b2a5; border: 1px solid rgba(224, 112, 95, 0.35); }
.tag-unknown { background: rgba(229, 184, 60, 0.14); color: #e5b83c; border-color: rgba(229, 184, 60, 0.45); }

.da-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.da-table th { text-align: left; font-size: 11px; letter-spacing: 0.12em; color: #f0b2a5; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid rgba(224, 112, 95, 0.4); }
.da-table td { padding: 8px; border-bottom: 1px solid rgba(224, 112, 95, 0.14); vertical-align: top; line-height: 1.45; }
.da-table .num { text-align: center; font-weight: 700; white-space: nowrap; }
.da-tablewrap { overflow-x: auto; }

.da-scorebar { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.da-scorebar .lbl { width: 220px; font-size: 13px; font-weight: 600; }
.da-scorebar .val { width: 52px; text-align: right; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; }
@media (max-width: 600px) { .da-scorebar .lbl { width: 140px; font-size: 12px; } }

.da-foot { text-align: center; font-size: 11.5px; letter-spacing: 0.12em; color: #6d5550; padding: 10px 20px 26px; }

.da-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(224, 112, 95, 0.3);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: da-rot 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 7px;
}
@keyframes da-rot { to { transform: rotate(360deg); } }
