/* FDL Ausbildung: „Meine Fehler“ (fehler.js). Baut auf fdl.css auf. */

/* Kachel auf Start und Lernen */
.fe-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; }
.fe-tile .note { margin-top: 4px; }
.fe-tile .actions { margin: 0; flex-wrap: nowrap; }
.fe-badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: rgba(108, 203, 95, .14); color: var(--ok); }
.fe-badge.due { background: rgba(var(--accent-rgb), .16); color: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); animation: fe-pulse 2.4s ease-out infinite; }
@keyframes fe-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } }
#p-lernen .fe-tile { margin-bottom: 14px; }

/* Übersicht */
.fe-hero h2 { margin: 0; }
.fe-hero .kpis { margin-top: 16px; }
.fe-hero .kpis .v.ok { color: var(--ok); }
.fe-hero .actions { margin-top: 16px; }
.fe-hero .hint { margin: 12px 0 0; }

.fe-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.fe-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; color: var(--text); }
.fe-step-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.fe-steps li.bad .fe-step-ic { background: rgba(255, 140, 150, .16); color: var(--bad); }
.fe-steps li.ok .fe-step-ic { background: rgba(108, 203, 95, .16); color: var(--ok); }

.rows .ic-box.fe-due { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.fe-list .rowtext { display: grid; gap: 3px; }
.fe-list .t.sol { color: var(--ok); font-size: 12.5px; }
.fe-list b { overflow-wrap: anywhere; }
.fe-dots { display: inline-flex; gap: 3px; vertical-align: -1px; }
.fe-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.fe-dots i.on { background: var(--ok); box-shadow: 0 0 6px rgba(108, 203, 95, .6); }

/* Beim Üben: Hinweis in der Rückmeldung */
.fe-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.fe-note .fe-dots i { width: 9px; height: 9px; }
.fe-note.done { color: var(--ok); }

@media (max-width: 640px) {
  .fe-tile { grid-template-columns: auto minmax(0, 1fr); }
  .fe-tile .actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .fe-tile .actions .btn { flex: 1 1 auto; }
  .fe-badge { width: 38px; height: 38px; font-size: 18px; }
  .fe-hero .actions .btn { flex: 1 1 100%; }
  .fe-list li { grid-template-columns: 30px minmax(0, 1fr); }
  .fe-list li > .btn { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .fe-badge.due { animation: none; }
}
