/* ════════════════════════════════════════════
   style-modules.css – MyStudy Modulübersicht
   Setzt style-main.css voraus
   ════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
#modules-hero {
  padding: clamp(110px, 14vw, 150px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.mh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}
.mh-blob-1 {
  width: clamp(300px, 50vw, 700px);
  height: clamp(300px, 50vw, 700px);
  background: radial-gradient(var(--g1), transparent);
  top: -20%;
  right: -8%;
}
.mh-blob-2 {
  width: clamp(200px, 30vw, 420px);
  height: clamp(200px, 30vw, 420px);
  background: radial-gradient(var(--g2), transparent);
  bottom: -10%;
  left: -4%;
  opacity: 0.12;
}
.mh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(76,169,17,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.mh-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.mh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(117,208,43,0.1);
  border: 1px solid rgba(117,208,43,0.28);
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--g4);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mh-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--g2);
  border-radius: 50%;
}

.mh-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 62px);
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 18px;
}
.mh-title .hl { color: var(--g3); }

.mh-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.mh-stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.mh-stat-n {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
}
.mh-stat-l {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   HAUPT-BEREICH
   ════════════════════════════════════════════ */
#modules-main {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  background: var(--white);
}

/* ─── Kategorie-Block ─── */
.mod-category {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.mod-category:last-child { margin-bottom: 0; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.cat-count {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 2px;
}

/* Status-Farben */
.cat--done    .cat-dot  { background: var(--g3); }
.cat--progress .cat-dot { background: #2563eb; }
.cat--todo    .cat-dot  { background: #d97706; }
.cat--planning .cat-dot { background: #7c3aed; }

.cat--done    .cat-count { background: rgba(76,169,17,0.07); color: #4a6741; }
.cat--progress .cat-count{ background: rgba(37,99,235,0.1);  color: #1d4ed8; }
.cat--todo    .cat-count { background: rgba(217,119,6,0.1);  color: #b45309; }
.cat--planning .cat-count{ background: rgba(124,58,237,0.1); color: #6d28d9; }

/* ─── Karten-Grid ─── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Leer-Zustand */
.mod-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--bg);
  border-radius: var(--radius-card);
  border: 1.5px dashed rgba(0,0,0,0.1);
  color: var(--muted);
  font-size: 14px;
}
.mod-empty svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   MODUL-KARTE
   ════════════════════════════════════════════ */
.mc-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.mc-card::after {
  content: "Für mehr Informationen klicken!";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(12, 18, 9, 0.82);
  color: #fff;
  font-size: 11px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.mc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.mc-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Bild-Bereich */
.mc-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.mc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(117,208,43,0.08), rgba(76,169,17,0.05));
}
.mc-img-ph svg {
  width: 32px;
  height: 32px;
  stroke: rgba(76,169,17,0.3);
}
.mc-img-ph span {
  font-size: 11px;
  color: rgba(76,169,17,0.5);
  font-family: "Syne", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Body */
.mc-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mc-num {
  display: none;
}

/* Status-Badge */
.mc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: "Syne", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mc-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.mc-badge--done     { background: rgba(76,169,17,0.07); color: #4a6741; }
.mc-badge--progress { background: rgba(37,99,235,0.1);  color: #1d4ed8; }
.mc-badge--todo     { background: rgba(217,119,6,0.1);  color: #b45309; }
.mc-badge--planning { background: rgba(124,58,237,0.1); color: #6d28d9; }

/* Name + Required */
.mc-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mc-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.mc-required {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a6741;
  background: rgba(76,169,17,0.07);
  border: 1px solid rgba(76,169,17,0.15);
  padding: 2px 7px;
  border-radius: 100px;
  margin-top: 3px;
  flex-shrink: 0;
}

.mc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  flex: 1;
}

/* Feature-Liste (nur Base) */
.mc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.mc-features li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.mc-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  flex-shrink: 0;
  margin-top: 5px;
}

/* Hinweis (z.B. nicht auswählbar) */
.mc-note {
  font-size: 11px;
  color: #7c3aed;
  background: rgba(124,58,237,0.07);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-note svg {
  width: 12px;
  height: 12px;
  stroke: #7c3aed;
  flex-shrink: 0;
}

/* Footer */
.mc-foot {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-price-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.mc-price-period {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.mc-price-na {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1090px) {
  #modules-hero { min-height: unset; align-items: flex-start; }
  .mh-inner { padding-top: 0; }
  .mh-stats { gap: 24px; }
}
@media (max-width: 600px) {
  .mod-grid { grid-template-columns: 1fr; }
}
