/* Academy uses the existing Resqly palette, Nunito typography, hero, buttons and shell. */
.academy-run #nav { display: none; }
.academy-run .lesson-top { top: var(--top-h); }
[data-application="academy"] a.btn,
[data-application="academy"] a.btn-ghost,
[data-application="academy"] a.iconbtn,
[data-application="academy"] a.stat { text-decoration: none; }
[data-application="academy"] .brand-mark {
  background: linear-gradient(150deg, #14243f, #16324e);
  box-shadow: 0 3px 0 #0a1526;
}

.academy-hero { padding: 34px 28px 36px; }
.academy-hero h1 { font-size: clamp(27px, 5.6vw, 40px); }
.academy-hero p { font-size: 16px; max-width: 58ch; }
.academy-hero .academy-kicker {
  margin-bottom: 10px;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; color: #5cf0d7;
}

.academy-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.academy-course[data-course="anatomie"] { grid-column: 1 / -1; }
[data-course="anatomie"] .academy-art { background: radial-gradient(ellipse at center, #2b494d, #101f2e); }
.academy-course {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 16px 16px 20px; border-radius: var(--r-xl);
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.academy-course:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdcee; }
.academy-course:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.academy-course .unit-head { padding: 2px 2px 0; }
.academy-course .unit-head h3 { font-size: 19px; }
.academy-course .taglist { margin-top: 0; }
.academy-course .btn { margin-top: auto; }
.academy-course:active .btn { transform: translateY(4px); box-shadow: 0 0 0 var(--bd); }
.academy-desc { font-size: 14.5px; color: var(--muted); font-weight: 600; line-height: 1.55; padding: 0 2px; }

.academy-art {
  height: 124px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(120,180,210,.22);
}
.academy-art svg { display: block; width: 100%; height: 100%; }
[data-course="ekg"] .academy-art {
  background-color: #08131f;
  background-image:
    linear-gradient(rgba(90,175,220,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,175,220,.24) 1px, transparent 1px),
    linear-gradient(rgba(90,175,220,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,175,220,.11) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: center;
}
[data-course="roentgen"] .academy-art { background: radial-gradient(ellipse at center, #263654, #0c1527); }
.academy-trace {
  fill: none; stroke: #3ef58f; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(62,245,143,.55));
  stroke-dasharray: 1; animation: academyTrace 2.4s ease-out both;
}
@keyframes academyTrace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.academy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.academy-steps .card { padding: 18px; }
.academy-steps h3 { font-size: 16px; margin-bottom: 6px; }
.academy-steps p { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.55; }
.academy-step-icon { font-size: 24px; line-height: 1; margin-bottom: 12px; }

/* ---- Quiz des Tages und Wissens-Score ---- */
.academy-today { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.academy-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--violet-dk); }
.academy-daily, .academy-score { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.academy-daily { border-color: #ddd4ff; background: linear-gradient(160deg, var(--card) 45%, var(--violet-lt)); }
.academy-daily.done { border-color: #b6ebc4; background: linear-gradient(160deg, var(--card) 45%, var(--ok-lt)); }
.academy-daily-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.academy-date { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.academy-daily h2 { font-size: clamp(20px, 4.4vw, 26px); }
.academy-daily-sub { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.academy-daily-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }

.academy-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 380px; }
.academy-day { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--muted); }
.academy-day b {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); background: var(--card); color: #fff; font-size: 14px;
}
.academy-day.today { color: var(--ink); }
.academy-day.today b { border-color: var(--violet); border-style: dashed; }
.academy-day.done b { background: var(--ok); border-color: var(--ok-dk); border-style: solid; }

.academy-score { align-items: flex-start; }
.academy-score-value b { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.academy-score p { font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.55; }
.academy-score .btn-ghost { margin-top: auto; }
.academy-meter { width: 100%; height: 10px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.academy-meter i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), #6ee38a); transition: width .4s ease;
}

/* ---- Themen ---- */
.academy-page-head { flex-wrap: wrap; margin-top: 6px; }
.academy-page-head h1 { font-size: clamp(23px, 5vw, 30px); }
.academy-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.academy-theme {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px;
  border-radius: var(--r-lg); background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.academy-theme:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfdcee; }
.academy-theme:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.academy-theme-no {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 900; background: var(--violet-lt); color: var(--violet-dk);
}
.academy-theme-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.academy-theme-body h3 { font-size: 15px; }
.academy-theme-body p { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.academy-theme-go { font-size: 18px; font-weight: 900; color: var(--muted); }
.academy-more { margin-top: 12px; text-align: right; font-size: 13.5px; font-weight: 800; }
.academy-more a { text-decoration: none; }

/* ---- Quizrunde und Auswertung ---- */
.academy-count { min-width: 36px; text-align: right; font-size: 13px; font-weight: 900; color: var(--muted); }
.academy-why { display: none; margin-top: 16px; padding: 15px 17px; border-radius: var(--r-md); border: 2px solid; }
.academy-why.good { display: block; background: var(--ok-lt); border-color: #b6ebc4; }
.academy-why.bad { display: block; background: var(--bad-lt); border-color: #ffc3c3; }
.academy-why h4 { font-size: 16px; margin-bottom: 4px; }
.academy-why.good h4 { color: var(--ok-dk); }
.academy-why.bad h4 { color: var(--bad-dk); }
.academy-why p { font-size: 14.5px; font-weight: 600; line-height: 1.55; }

.academy-done { padding-bottom: 8px; }
.academy-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.academy-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.academy-review-item {
  display: flex; gap: 12px; padding: 15px 16px; border-radius: var(--r-md);
  background: var(--card); border: 2px solid var(--line);
}
.academy-review-mark {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 900; background: var(--ok);
}
.academy-review-item.bad .academy-review-mark { background: var(--bad); }
.academy-review-item h3 { font-size: 15px; margin-bottom: 6px; }
.academy-review-item p { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.academy-review-pick { color: var(--bad-dk); }
.academy-review-right { color: var(--ok-dk); }
.academy-review-why { margin-top: 5px; color: var(--muted); }

@media (max-width: 720px) {
  .academy-today, .academy-themes { grid-template-columns: 1fr; }
  .academy-courses, .academy-steps { grid-template-columns: 1fr; }
  .academy-hero { padding: 26px 22px 28px; }
}

/* Academy-wide rating on the start page. */
.academy-progress {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px;
  padding: 22px; margin-bottom: 22px;
}
.academy-progress-level { display: flex; gap: 18px; align-items: center; }
.academy-progress-level > div:last-child { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.academy-progress-level h2 { font-size: clamp(20px, 4.4vw, 26px); }
.academy-progress-level p,
.academy-progress-facts p { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.academy-level-badge {
  flex: 0 0 78px; height: 78px; border-radius: 24px; display: grid; place-content: center; text-align: center;
  background: linear-gradient(150deg, var(--violet), var(--violet-dk)); color: #fff;
  box-shadow: 0 4px 0 #3d2a99;
}
.academy-level-badge span { font-size: 10px; font-weight: 900; letter-spacing: .14em; opacity: .85; }
.academy-level-badge b { font-size: 32px; line-height: 1; }
.academy-progress-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: center; }
.academy-progress-facts > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.academy-progress-facts b { font-size: 18px; }
.academy-progress-parts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.academy-progress-parts li {
  display: flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 999px;
  background: var(--line-soft); font-size: 13px; font-weight: 700;
}
.academy-progress-parts b { font-size: 13px; }
.academy-course-progress { font-size: 13px; font-weight: 800; color: var(--u-dk); }
@media (max-width: 720px) {
  .academy-progress { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .academy-level-badge { flex-basis: 62px; height: 62px; border-radius: 19px; }
  .academy-level-badge b { font-size: 26px; }
}
