/* Filterchips, materialegrid, temaoversigt, ugens opgave
   Udtrukket fra index.html (linje 182-246 i den oprindelige <style>-blok).
   Raekkefoelgen af <link>-tags i index.html skal bevares - kaskaden afhaenger af den. */

/* ---------- filter chips ---------- */
.chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.4rem}
.chip{border:1.5px solid var(--line);background:var(--white);border-radius:999px;
  padding:.4rem .9rem;font-weight:600;font-size:.85rem;color:var(--slate)}
.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ---------- material grid ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.1rem}
.card{background:var(--white);border:1px solid rgba(186,191,191,.55);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;transition:transform .12s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card .thumb{height:120px;background:var(--grad);position:relative;display:grid;place-items:center}
.card .thumb.t-inspiration{background:linear-gradient(135deg,#737D7D,#94a0a0)}
.card .thumb.t-ovelse{background:linear-gradient(135deg,var(--orange),var(--gold))}
.card .thumb.t-evaluering{background:linear-gradient(135deg,var(--gold),#a8966a)}
.card .thumb.t-video{background:linear-gradient(135deg,var(--pink),#c9645e)}
.card .thumb.t-modul{background:linear-gradient(135deg,var(--gold),var(--slate))}
.card .thumb .ticon{width:40px;height:40px;color:rgba(255,255,255,.92)}
.card .thumb .play{width:54px;height:54px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center}
.card .thumb .play svg{width:22px;height:22px;color:var(--ink);margin-left:3px}
.card-body{padding:1rem 1.05rem 1.15rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.badges{display:flex;gap:.4rem;flex-wrap:wrap}
.badge{font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:.2rem .5rem;border-radius:6px;background:var(--paper);color:var(--gold)}
.badge.status-review{background:#fff1e8;color:#b3611f}
.badge.status-godkendt{background:#e8efe9;color:#3f6b4e}
.badge.status-udkast{background:#eef0f0;color:var(--slate)}
.card h3{font-size:1.05rem;letter-spacing:-.01em}
.card .desc{font-size:.88rem;color:var(--slate);font-weight:500;flex:1}
.card .meta{display:flex;align-items:center;gap:.6rem;font-size:.8rem;color:var(--slate);font-weight:600}
.stars{display:inline-flex;gap:1px;color:var(--orange)}
.stars svg{width:14px;height:14px}
.card-actions{display:flex;gap:.5rem;margin-top:.35rem}

.badge.badge-theme{background:var(--ink);color:#f4f1ec}

/* ---------- tema-oversigt ---------- */
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.7rem;margin-bottom:1.4rem}
.theme-card{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;text-align:left;
  background:var(--white);border:1px solid rgba(186,191,191,.55);border-radius:14px;padding:1rem 1.05rem;
  transition:transform .12s ease, box-shadow .15s ease}
.theme-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.tc-img{width:100%;height:118px;border-radius:10px;background:var(--paper-soft);display:grid;place-items:center;overflow:hidden;margin-bottom:.15rem}
.tc-img img{max-width:92%;max-height:92%;object-fit:contain}
.tc-img-empty .tnum{width:40px;height:40px;font-size:1.15rem}
.tc-row{display:flex;align-items:center;gap:.5rem}
.tnum{font-family:var(--serif);font-weight:900;font-size:1rem;color:#3a2a26;background:var(--grad);
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:0 0 34px}
.tnum.sm{width:28px;height:28px;font-size:.85rem}
.theme-card .ttitle{font-family:var(--serif);font-weight:900;font-size:1rem;line-height:1.2}
.theme-card .tcount{font-size:.78rem;font-weight:600;color:var(--slate)}
.theme-bar{display:flex;align-items:center;gap:1rem;margin-bottom:1.2rem;flex-wrap:wrap}
.theme-bar-title{display:flex;align-items:center;gap:.5rem;font-family:var(--serif);font-weight:900;font-size:1.15rem}

/* ---------- ugens opgave ---------- */
.weekly{position:relative;background:var(--white);border:1px solid rgba(186,191,191,.55);border-radius:16px;
  padding:1.15rem 1.35rem 1.2rem 1.6rem;margin-bottom:1.6rem;overflow:hidden}
.weekly::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--grad)}
.weekly h2{font-size:1.3rem;margin:.25rem 0 .4rem}
.weekly p{color:#4a4a4a;font-weight:500;font-size:.92rem;margin:0 0 .9rem;max-width:72ch}
.weekly-mat{display:inline-flex;align-items:center;gap:.45rem;background:var(--paper);border:1px solid var(--line);
  border-radius:10px;padding:.4rem .7rem;margin-bottom:.9rem;cursor:pointer;font-size:.9rem}
.weekly-mat:hover{border-color:var(--slate)}
.weekly-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.cc-pill{margin-left:auto;display:inline-flex;align-items:center;gap:.25rem;color:var(--slate);font-weight:700}
.cc-pill svg{width:14px;height:14px}

/* Afstandsvarianter til .card-body (grundvaerdien er gap:.5rem). */
.card-body.cb-case{gap:.55rem}
.card-body.cb-review{gap:.6rem}
