@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

/* ============================================================
   Dune: Awakening – Rüstungs-Tier-Liste (banrado.de)
   Palette: banrado Dark-SaaS-Theme (bg0 + rot/grün/lila)
   Display: Rajdhani (kantig, sci-fi) · Body: Barlow
   ============================================================ */

.dtl {
  --bg:        #080a0f;
  --panel:     #10131a;
  --panel-2:   #161a23;
  --line:      #232838;
  --ink:       #eef1f6;
  --muted:     #8891a3;
  --muted-dim: #5c6478;

  --red:       #c0392b;
  --green:     #22c55e;
  --purple:    #a78bfa;
  --purple-lo: #7c65c9;

  --t-s: #a78bfa; /* S – banrado-Lila (Signature)   */
  --t-a: #22c55e; /* A – banrado-Grün (stark)       */
  --t-b: #7d8bd6; /* B – Lila/Blau gedämpft (solide) */
  --t-c: #c0392b; /* C – banrado-Rot (situativ)      */

  --radius: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,.5);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.dtl a { color: var(--purple); text-decoration: none; }
.dtl a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Kopf ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(8,10,15,.7);
  backdrop-filter: blur(6px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: 1.05rem; color: var(--ink);
}
.brand span { color: var(--purple); }
.back { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 30px; }
.eyebrow {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase; letter-spacing: .28em;
  font-size: .8rem; color: var(--purple); font-weight: 600;
  margin: 0 0 10px;
}
.hero h1 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; letter-spacing: .01em;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.02; margin: 0 0 14px;
  text-wrap: balance;
}
.hero h1 b { color: var(--purple); font-weight: 700; }
.hero .lead { max-width: 60ch; color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Rajdhani", sans-serif; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; font-size: .78rem;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.badge.accent { border-color: var(--purple-lo); color: var(--purple); }

/* ---------- Steuerleiste ---------- */
.controls {
  position: sticky; top: 0; z-index: 30;
  background: rgba(8,10,15,.88); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.controls .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search {
  flex: 1 1 200px; min-width: 160px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 9px 12px; font: inherit;
}
.search::placeholder { color: var(--muted-dim); }
.search:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple-lo); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 600 .82rem/1 "Barlow", sans-serif;
  padding: 8px 13px; border-radius: 100px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--ink); border-color: var(--purple-lo); }
.chip[aria-pressed="true"] { background: var(--purple); color: #0d0a17; border-color: var(--purple); }
.chip:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- Tier-Bänder ---------- */
.board { padding: 26px 0 10px; display: flex; flex-direction: column; gap: 16px; }

.tier {
  display: grid; grid-template-columns: 96px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.tier__label {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    var(--tc, #333);
  color: #0b0d13;
}
.tier__letter {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: 2.6rem; line-height: .9; letter-spacing: .02em;
}
.tier__desc {
  font-size: .66rem; line-height: 1.25; text-align: center;
  opacity: .85; font-weight: 600;
}
.tier--S { --tc: var(--t-s); }
.tier--A { --tc: var(--t-a); }
.tier--B { --tc: var(--t-b); }
.tier--C { --tc: var(--t-c); }
.tier--S .tier__label { box-shadow: inset -3px 0 18px rgba(167,139,250,.4); color: #0d0a17; }
.tier--C .tier__label { color: #180a08; }

.tier__items {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 14px; align-content: flex-start;
}
.tier__empty {
  color: var(--muted-dim); font-size: .88rem; padding: 8px 4px; font-style: italic;
}

/* ---------- Karten ---------- */
.card {
  width: 176px; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 12px; color: inherit;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.card:hover { transform: translateY(-3px); border-color: var(--purple-lo); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.card__thumb {
  width: 100%; aspect-ratio: 1/1; border-radius: 7px;
  background: linear-gradient(150deg, #1b1f2c, #12141c);
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb svg.slot-icon { width: 50%; height: 50%; overflow: visible; }
.slot-icon .spark { fill: var(--muted); opacity: .55; }
.slot-icon.tier-S { color: var(--t-s); box-shadow: none; }
.slot-icon.tier-A { color: var(--t-a); }
.slot-icon.tier-B { color: var(--t-b); }
.slot-icon.tier-C { color: var(--t-c); }
.slot-icon.tier-S .spark { fill: var(--t-s); opacity: .95; }
.slot-icon.tier-A .spark { fill: var(--t-a); opacity: .9; }
.slot-icon.tier-B .spark { fill: var(--t-b); opacity: .85; }
.slot-icon.tier-C .spark { fill: var(--t-c); opacity: .85; }
.card__thumb:has(.slot-icon.tier-S) { box-shadow: inset 0 0 0 1px rgba(167,139,250,.35); }
.card__thumb:has(.slot-icon.tier-A) { box-shadow: inset 0 0 0 1px rgba(34,197,94,.3); }
.card__thumb:has(.slot-icon.tier-B) { box-shadow: inset 0 0 0 1px rgba(125,139,214,.3); }
.card__thumb:has(.slot-icon.tier-C) { box-shadow: inset 0 0 0 1px rgba(192,57,43,.3); }

.card__name {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: 1.02rem; line-height: 1.1; letter-spacing: .01em;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line);
}
.tag--w { color: var(--purple); }
.tag--common { color: var(--red); border-color: var(--red); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4,5,8,.72); backdrop-filter: blur(3px);
}
.modal[open], .modal.is-open { display: flex; }
.modal__box {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal__head {
  position: relative; padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center;
}
.modal__thumb {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: 9px;
  background: linear-gradient(150deg, #1b1f2c, #12141c); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb svg.slot-icon { width: 50%; height: 50%; overflow: visible; }
.modal__titles h2 {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: 1.5rem; margin: 0 0 6px; line-height: 1.05;
}
.modal__titles .sub { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; color: #0d0a17; background: var(--muted);
}
.pill--S { background: var(--t-s); } .pill--A { background: var(--t-a); color: #0a1710; }
.pill--B { background: var(--t-b); } .pill--C { background: var(--t-c); color: #f5e6e3; }
.pill--ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.pill--common { background: transparent; color: var(--red); border: 1px solid var(--red); }

.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
}
.modal__close:hover { color: var(--ink); border-color: var(--purple-lo); }

.modal__body { padding: 18px 22px 22px; }
.modal__body h3 {
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--purple);
  margin: 18px 0 7px; font-weight: 600;
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { margin: 0 0 4px; color: var(--ink); }
.modal__body .why { color: var(--muted); }

.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 4px; }
.statgrid .row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.statgrid .k { color: var(--muted); font-size: .9rem; }
.statgrid .v { font-family: "Rajdhani", sans-serif; font-weight: 700; }
.statgrid .v.pos { color: var(--green); } .statgrid .v.neg { color: var(--red); }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 22px 0 40px; color: var(--muted); font-size: .86rem; }
.foot p { margin: 0 0 8px; }
.no-results { color: var(--muted); padding: 30px 4px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .tier { grid-template-columns: 62px 1fr; }
  .tier__letter { font-size: 2rem; }
  .tier__desc { display: none; }
  .card { width: calc(50% - 6px); }
  .statgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- Einbettung in echte Site-Nav ---------- */
.dtl {
  padding-top: 110px; /* Abstand zur schwebenden Site-Nav (main.css .site-header ist sticky/floating) */
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(167,139,250,.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.dtl-hinweis { color: var(--muted); font-size: .86rem; margin: 0 0 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.dtl-hinweis:first-of-type { border-top: none; padding-top: 0; margin-top: 30px; }
