/* NatureDex – Academy-Uebersicht, 28.11.2026 */

/* Alte Doppelungen: grosser Werbekopf, Reiterliste und Erklaerkasten. */
#academyView .ac-hero,
#academyView .n39-academy-nav,
#academyView #n39LearningSummary,
#academyView #acTopicsHeading,
#academyView #acTopics [data-ac-topic="artenkunde"],
#academyView .ac-footer { display: none !important; }

#academyView:not(.nda-start) .nda-block { display: none !important; }
#academyView .nda-zurueck { display: none; }
#academyView.nda-unterseite .nda-zurueck {
  display: inline-block; margin: 0 0 12px; padding: 9px 14px;
  border: 1px solid rgba(47, 111, 67, .28); border-radius: 999px;
  background: #fffaee; color: #1f5c38; font: 700 .9rem/1 inherit; cursor: pointer;
}

#academyView .nda-kopf h1 { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 1.55rem; }
#academyView .nda-titel,
#academyView .nda-gruppe h2 {
  margin: 18px 0 8px; font-size: .8rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: #5a705c;
}
#academyView .nda-titel { margin-top: 0; }
#academyView .nda-gruppe { display: grid; gap: 8px; }
#academyView .nda-gruppe h2 { margin-bottom: 0; }
#academyView #ndaKarten { margin-top: 8px; }

#academyView .nda-zeile {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid rgba(47, 111, 67, .18); border-radius: 16px;
  background: #fffaee; color: #223a29; font-family: inherit;
}
#academyView .nda-zeile-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: #e5eeda; color: #276a42; font-size: 1.25rem;
}
#academyView .nda-zeile-text { display: grid; gap: 2px; min-width: 0; }
#academyView .nda-zeile-text strong { font-size: 1rem; }
#academyView .nda-zeile-text small { font-size: .82rem; color: #5f6f61; }
#academyView .nda-zeile-pfeil { font-size: 1.5rem; color: #7b8c7c; }

/* Fachgebiete: vier gleich grosse, flache Kacheln. */
#academyView #acTopics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 !important; }
#academyView #acTopics .ac-topic { min-height: 0 !important; padding: 12px !important; }
#academyView #acTopics .ac-topic-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e5eeda; color: #276a42; font-size: 1.2rem; }
#academyView #acTopics .ac-topic b { display: none; }

#academyView #n39LearningProgressDetails { margin-top: 18px; }

@media (min-width: 760px) {
  #academyView #acTopics { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  #academyView .nda-gruppe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #academyView .nda-gruppe h2 { grid-column: 1 / -1; }
  #academyView #ndaKarten { grid-template-columns: minmax(0, 1fr); }
}

body.n30-dark #academyView .nda-zeile,
body.n30-dark #academyView.nda-unterseite .nda-zurueck { background: #1b2e22; color: #eef5e8; border-color: rgba(190, 220, 190, .18); }
body.n30-dark #academyView .nda-zeile-text small { color: #b4c6b2; }
body.n30-dark #academyView .nda-zeile-icon,
body.n30-dark #academyView #acTopics .ac-topic-icon { background: #28432f; color: #cfe8c6; }
body.n30-dark #academyView .nda-titel,
body.n30-dark #academyView .nda-gruppe h2 { color: #b9cdb6; }

/* In der Uebersicht ist kein Fachgebiet vorausgewaehlt. */
#academyView.nda-start #acTopics .ac-topic.selected { background: #fffaee !important; border-color: transparent !important; box-shadow: none !important; }
body.n30-dark #academyView.nda-start #acTopics .ac-topic.selected { background: #1b2e22 !important; }

/* Kapitelliste ohne eigenes Scrollfeld - die Seite selbst scrollt. */
@media (max-width: 760px) {
  #academyView #ac37LessonList { max-height: none !important; overflow: visible !important; }
}

#academyView .nda-themen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#academyView .nda-themen button { padding: 8px 12px; border: 1px solid rgba(47, 111, 67, .3); border-radius: 999px; background: transparent; color: inherit; font: 700 .82rem/1 inherit; cursor: pointer; }
#academyView .nda-themen button[aria-pressed="true"] { background: #347541; border-color: #347541; color: #fff; }

/* 28.11.2026: Während Übung und Auswertung zählt nur die Aufgabe – die Einleitung entfällt. */
#n41IhkPanel:has(#n41Launch[hidden]) > .n41-header { display: none !important; }
