/* Multicheck: Ergebnis prüfen und Lernplan-Dashboard (lino/multicheck-c, 06.11.2026) */

/* «Stimmen die Werte?»: kleiner, ruhig, weiss statt beige */
.mcd-entry { max-width: 620px; margin: 0 auto; padding: 22px 22px 18px !important; border-radius: 20px; }
.mcd-entry h3 { font-size: 20px; }
.mcd-entry .mc-entry-areas { display: flex; flex-direction: column; gap: 6px; }
.mcd-entry .mc-entry-area { padding: 0; border: 0; background: none; }
.mcd-entry .mc-entry-area > .mc-plan-field { display: grid; grid-template-columns: 1fr 76px auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--line-soft, #e7e5e4); background: var(--card-bg, #fff); }
.mcd-entry .mc-entry-area > .mc-plan-field > span { font-weight: 600; font-size: 14.5px; }
.mcd-entry .mc-plan-field input { width: 100%; box-sizing: border-box; padding: 7px 8px; border-radius: 10px; border: 1px solid #e5e7eb !important; background: #fff !important; box-shadow: none !important; text-align: center; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); }
.mcd-entry .mc-plan-field input:focus { outline: none; border-color: var(--gold) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent) !important; }
.mcd-tick { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; border: 1.5px solid #e5e7eb; background: #fff; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mcd-tick svg { opacity: .35; }
.mcd-tick.is-on { background: #dcfce7; border-color: #86efac; color: #166534; }
.mcd-tick.is-on svg { opacity: 1; }
.mcd-entry .mc-entry-subs { margin: 4px 0 4px 14px; font-size: 13.5px; }
.mcd-entry .mc-entry-subs summary { color: var(--text-muted); cursor: pointer; }
.mcd-entry .mc-plan-grid .mc-plan-field input { background: #fff !important; }
.mcd-allok { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); }
.mcd-want { margin: 16px 0 6px; }
.mcd-want h4 { margin: 0 0 2px; font-size: 15px; }
.mcd-want p { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }
.mcd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mcd-chips button { padding: 7px 13px; border-radius: 999px; border: 1.5px solid #e5e7eb; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.mcd-chips button.is-on { background: color-mix(in srgb, var(--gold) 12%, #fff); border-color: var(--gold); color: var(--gold); }
.mcd-more { margin-top: 10px; border-top: 1px solid var(--line-soft, #eee); padding-top: 10px; }
.mcd-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mcd-more summary small { font-weight: 400; color: var(--text-muted); }
.mcd-more .mc-reflect { margin-top: 10px; }
.mcd-entry .mc-reflect textarea { background: #fff; }

/* Dashboard */
.mcd { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.mcd-hero { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); box-shadow: 0 14px 30px -22px var(--gold); }
.mcd-hero.is-done { background: linear-gradient(135deg, #effcf3, #fff 70%); border-color: #bbf7d0; }
.mcd-hero-art { flex: none; }
.mcd-hero-t small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.mcd-hero.is-done .mcd-hero-t small { color: #16a34a; }
.mcd-hero-t h3 { margin: 3px 0 4px; font-size: 21px; letter-spacing: -.01em; }
.mcd-hero-t p { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
.mcd-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mcd-hero-btns .btn { display: inline-flex; align-items: center; gap: 7px; }
.mcd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; }
.mcd-card { padding: 18px; border-radius: 20px; background: var(--card-bg, #fff); border: 1px solid var(--line-soft, #e7e5e4); }
.mcd-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mcd-card h4 { margin: 0; font-size: 16px; }
.mcd-card header p { margin: 1px 0 0; font-size: 13px; color: var(--text-muted); }
.mcd-sum { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.mcd-ring { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16a34a calc(var(--p) * 1%), #eef0f3 0); position: relative; }
.mcd-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card-bg, #fff); }
.mcd-ring b { position: relative; z-index: 1; font-size: 16px; }
.mcd-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.mcd-counts b { display: inline-block; min-width: 18px; }
.mcd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: #cbd5e1; }
.mcd-dot.is-gut { background: #16a34a; } .mcd-dot.is-mittel { background: #f59e0b; } .mcd-dot.is-noch { background: #ef4444; }
.mcd-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mcd-areas li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n v" "b b" "s s"; gap: 3px 8px; }
.mcd-area-n { grid-area: n; font-weight: 600; font-size: 14px; }
.mcd-area-v { grid-area: v; font-size: 13px; color: var(--text-muted); }
.mcd-bar { grid-area: b; height: 7px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.mcd-bar i { display: block; height: 100%; border-radius: 999px; background: #cbd5e1; }
.mcd-bar i.is-gut { background: #16a34a; } .mcd-bar i.is-mittel { background: #f59e0b; } .mcd-bar i.is-noch { background: #ef4444; }
.mcd-areas small { grid-area: s; font-size: 12px; color: var(--text-muted); }
.mcd-short:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-soft, #e7e5e4); }
.mcd-short h5 { margin: 6px 0 4px; font-size: 13.5px; }
.mcd-short ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-muted); }
.mcd-big { display: flex; align-items: baseline; gap: 8px; }
.mcd-big b { font-size: 22px; }
.mcd-big span { font-size: 12.5px; color: var(--text-muted); }
.mcd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mcd-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line-soft, #eee); background: var(--card-bg, #fff); }
.mcd-steps li.is-now { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 5%, #fff); }
.mcd-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-weight: 800; font-size: 13px; color: var(--text-muted); }
.mcd-steps li.is-now .mcd-step-n { background: var(--gold); color: #fff; }
.mcd-step-t { flex: 1; min-width: 0; }
.mcd-step-t b { display: block; font-size: 14.5px; }
.mcd-step-t small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.mcd-step-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mcd-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: none; }
.mcd-link:hover { border-color: var(--gold); color: var(--gold); }
.mcd-link.is-main { background: var(--gold); border-color: var(--gold); color: #fff; }
.mcd-link.is-main:hover { color: #fff; filter: brightness(1.05); }
.mcd-more-n, .mcd-none { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.mcd-all { border-radius: 18px; border: 1px solid var(--line-soft, #e7e5e4); background: var(--card-bg, #fff); padding: 12px 16px; }
.mcd-all > summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.mcd-all-in { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 860px) {
  .mcd-grid { grid-template-columns: 1fr; }
  .mcd-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .mcd-entry .mc-entry-area > .mc-plan-field { grid-template-columns: 1fr 64px; }
  .mcd-entry .mcd-tick { grid-column: 1 / -1; justify-self: start; }
}

/* ── Runde 8 (06.11.2026): Lernplan wie eine Lern-App ──────────────────────────────── */
.mcd-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tone-inset, #ECE6DC); }
.mcd-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.mcd-tabs button span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 12px; }
.mcd[data-view="over"] .mcd-tabs [data-v="over"], .mcd[data-view="plan"] .mcd-tabs [data-v="plan"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.mcd[data-view="plan"] .mcd-tabs [data-v="plan"] span { background: var(--gold); color: #fff; }
.mcd[data-view="over"] .mcd-planview, .mcd[data-view="plan"] .mcd-over { display: none; }
.mcd-over, .mcd-planview { display: flex; flex-direction: column; gap: 14px; }

.mcd-bento { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.mcd-bento .mcd-hero { grid-column: 1; grid-row: 1 / span 2; }
.mcd-streak { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mcd-streak > div { display: flex; align-items: baseline; gap: 6px; }
.mcd-streak > div b { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.mcd-streak > div span { font-weight: 700; color: var(--text-muted); }
.mcd-streak p { margin: 0; font-size: 13px; color: var(--text-muted); }
.mcd-flame { color: #CBD5E1; }
.mcd-flame.is-on { color: #F97316; animation: mcdFlicker 2.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes mcdFlicker { 50% { transform: scale(1.06) rotate(-2deg); } }
.mcd-week { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.mcd-week li { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mcd-week i { width: 22px; height: 22px; border-radius: 50%; background: #F1F5F9; box-shadow: inset 0 0 0 1.5px #E2E8F0; }
.mcd-week li.is-on i { background: #F97316; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.mcd-week li.is-today i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #FDBA74; }
.mcd-week small { font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.mcd-goal { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 12px; }
.mcd-goal b { display: block; font-size: 15px; }
.mcd-goal p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
.mcd-ring.is-goal { width: 60px; height: 60px; background: conic-gradient(#F97316 calc(var(--p) * 1%), #eef0f3 0); }
.mcd-ring.is-goal::after { inset: 7px; }
.mcd-ring.is-goal b { font-size: 14px; }
.mcd-count { grid-column: 3; grid-row: 2; display: flex; align-items: center; gap: 12px; }
.mcd-count b { display: block; font-size: 14px; line-height: 1.3; }
.mcd-date { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.mcd-date input { padding: 4px 6px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font: inherit; font-size: 12.5px; color: var(--text); }

/* Lernpfad: Themen als Punkte auf einem Weg */
.mcd-path { list-style: none; margin: 0 0 12px; padding: 4px 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.mcd-node { --x: 0px; padding-left: var(--x); }
.mcd-node:nth-child(4n + 2) { --x: 34px; } .mcd-node:nth-child(4n + 3) { --x: 68px; } .mcd-node:nth-child(4n + 4) { --x: 34px; }
.mcd-node button { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.mcd-node button:hover { background: var(--tone-inset, #f4f1ec); }
.mcd-node-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #94A3B8; box-shadow: inset 0 0 0 2.5px #E2E8F0, 0 4px 0 #E2E8F0; font-size: 15px; }
.mcd-node.is-done .mcd-node-dot { background: #22C55E; color: #fff; box-shadow: 0 4px 0 #15803D; }
.mcd-node.is-now .mcd-node-dot { background: var(--gold, #2563EB); color: #fff; box-shadow: 0 4px 0 #1E40AF, 0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent); animation: mcdPulse 2s ease-in-out infinite; }
@keyframes mcdPulse { 50% { box-shadow: 0 4px 0 #1E40AF, 0 0 0 10px color-mix(in srgb, var(--gold) 8%, transparent); } }
.mcd-node-t { display: flex; flex-direction: column; min-width: 0; }
.mcd-node-t b { font-size: 14px; }
.mcd-node-t small { font-size: 12px; color: var(--text-muted); }
.mcd-lvl { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.mcd-lvl i { width: 14px; height: 4px; border-radius: 2px; background: #E2E8F0; }
.mcd-lvl[data-n="1"] i:nth-child(-n + 1), .mcd-lvl[data-n="2"] i:nth-child(-n + 2), .mcd-lvl[data-n="3"] i { background: #22C55E; }
.mcd-lvl[data-n="1"] i:nth-child(-n + 1) { background: #F59E0B; } .mcd-lvl[data-n="2"] i:nth-child(-n + 2) { background: var(--gold); }
.mcd-lvl em { margin-left: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.mcd-node-flag { position: absolute; left: 52px; top: -8px; padding: 2px 8px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mcd-node.is-now .mcd-node-t { padding-top: 6px; }

.mcd-tips ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcd-tips li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: #F8FAFC; }
.mcd-tips li b { font-size: 14px; }
.mcd-tips li span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.mcd-review-l { display: flex; flex-wrap: wrap; gap: 6px; }
.mcd-exam { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mcd-exam h4 { margin: 0 0 2px; font-size: 16px; }
.mcd-exam p { margin: 0; font-size: 13px; color: var(--text-muted); }
.mcd-allopen { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft, #e7e5e4); }
.mcd-allopen > h3 { margin: 0 0 12px; font-size: 18px; }
.mcd-allopen .mcd-all-in { margin-top: 0; }

@media (max-width: 980px) {
  .mcd-bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mcd-bento .mcd-hero { grid-column: 1 / -1; grid-row: auto; }
  .mcd-streak { grid-column: 1; grid-row: auto; }
  .mcd-goal, .mcd-count { grid-column: 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .mcd-bento { grid-template-columns: 1fr; }
  .mcd-streak, .mcd-goal, .mcd-count { grid-column: 1; }
  .mcd-tips ul { grid-template-columns: 1fr; }
  .mcd-node:nth-child(4n + 3) { --x: 44px; }
}
@media (prefers-reduced-motion: reduce) { .mcd-flame.is-on, .mcd-node.is-now .mcd-node-dot { animation: none; } }
