/* Erzeugt aus css/*.css mit build_css.py – nicht von Hand ändern. */
/* feat-tasks: Grundlagen, Abfragen, Rückmeldung, gemeinsame Simulationsbausteine.
   Teil von style.css (wird aus css/*.css zusammengesetzt, siehe build_css.py). */

.tasks-input, .tasks-fb { font-family: "Fredoka", system-ui, sans-serif; color: var(--lern-ink); }
.tasks-input *, .tasks-fb * { box-sizing: border-box; }
.tasks-input button, .tasks-fb button { font: inherit; color: inherit; margin: 0; }
.tasks-input p, .tasks-fb p { margin: 0; }
.tasks-col { display: flex; flex-direction: column; align-items: stretch; }
.tasks-wrap8 { display: flex; flex-wrap: wrap; gap: 8px; }
.tasks-ic { display: inline-flex; flex: none; }
.tasks-still, .tasks-still * { animation: none !important; transition: none !important; }

/* ---- Auswahl */
.tasks-choice-row { padding-bottom: 10px; }
.tasks-option {
  display: flex; align-items: center; width: 100%; text-align: left; cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 180ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 180ms cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-tap-highlight-color: transparent;
}
.tasks-option:disabled { cursor: default; }
.tasks-option:not(:disabled):hover { filter: brightness(0.985); }
.tasks-option:focus-visible, .tasks-tf:focus-visible, .tasks-order-handle:focus-visible, .tasks-fb-next:focus-visible,
.tasks-simstep:focus-visible, .tasks-input [role="button"]:focus-visible {
  outline: 3px solid var(--lern-primary); outline-offset: 2px;
}
.tasks-option-letter {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-weight: 900; font-size: 14px; transition: background-color 180ms linear, color 180ms linear;
}
.tasks-option-text { flex: 1 1 auto; margin-left: 14px; font-size: 16px; font-weight: 600; line-height: 1.25; }

/* ---- Wahr/Falsch */
.tasks-tf-row { display: flex; margin: 0 -6px; }
.tasks-tf-cell { flex: 1 1 0; padding: 0 6px; }
.tasks-tf {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 0; border-radius: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tasks-tf:disabled { cursor: default; }
.tasks-tf-label { font-size: 17px; font-weight: 700; }

/* ---- Eingabefelder (gefüllt, ohne Rand, Fokusrand in der Bandfarbe) */
.tasks-field {
  display: flex; align-items: center; background: #EEF0F8; border-radius: var(--lern-button-radius);
  padding: 0 16px; border: 2px solid transparent; cursor: text;
}
.tasks-field:focus-within { border-color: var(--lern-primary); }
.tasks-field-input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0;
  font-family: inherit; color: var(--lern-ink);
}
.tasks-field-input::placeholder { color: #6B6B80; opacity: 1; font-weight: 400; }
.tasks-field-number { font-size: 22px; font-weight: 700; }
.tasks-field-text { font-size: 18px; font-weight: 600; }
.tasks-field-suffix { flex: none; margin-left: 8px; font-size: 16px; color: #6B6B80; }
.tasks-field-disabled { opacity: 0.6; }

/* ---- Ordnen */
.tasks-order-hint { padding-bottom: 8px; color: #6B6B80; font-size: 13px; text-align: center; }
.tasks-order-list { display: flex; flex-direction: column; }
.tasks-order-row {
  position: relative; display: flex; align-items: center; margin-bottom: 10px; padding: 14px 16px;
  border-radius: 16px; transition: transform 200ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 200ms;
}
.tasks-order-num {
  width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: 14px;
}
.tasks-order-text { flex: 1 1 auto; margin-left: 12px; font-size: 16px; font-weight: 600; }
.tasks-order-handle {
  flex: none; display: inline-flex; border: 0; background: transparent; padding: 0; color: #6B6B80;
  cursor: grab; touch-action: none; border-radius: 6px;
}
.tasks-order-handle:active { cursor: grabbing; }

/* ---- Zuordnen */
.tasks-match-row { display: flex; align-items: center; padding-bottom: 12px; }
.tasks-match-left { flex: 4 1 0; min-width: 0; font-size: 16px; font-weight: 700; }
.tasks-match-select { flex: 5 1 0; min-width: 0; margin-left: 10px; position: relative; display: flex; }
.tasks-match-select select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 2px solid transparent; outline: 0;
  border-radius: var(--lern-button-radius); padding: 10px 36px 10px 12px; font-family: inherit;
  font-size: 16px; color: var(--lern-ink); cursor: pointer; text-overflow: ellipsis;
}
.tasks-match-select select:focus { border-color: var(--lern-primary); }
.tasks-match-select select.tasks-match-empty { color: #6B6B80; }
.tasks-match-select select option { color: var(--lern-ink); }
.tasks-match-arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6B6B80; }

/* ---- Rückmeldung */
.tasks-fb { position: relative; }
.tasks-fb-enter { animation: tasks-enter 420ms linear both; }
.tasks-fb-shake .tasks-fb-card { animation: tasks-shake 560ms linear both; }
.tasks-fb-card { padding: 20px; border-radius: 24px; display: flex; flex-direction: column; align-items: stretch; }
.tasks-fb-head { display: flex; align-items: center; margin-bottom: 12px; }
.tasks-fb-icon { flex: none; display: inline-flex; padding: 9px; border-radius: 50%; }
.tasks-fb-icon-good { animation: tasks-pop-good 700ms linear both; }
.tasks-fb-icon-bad { animation: tasks-pop-bad 700ms linear both; }
.tasks-fb-title { flex: 1 1 auto; margin-left: 12px; font-weight: 900; font-size: 18px; }
.tasks-fb-review { margin-bottom: 10px; }
.tasks-fb-review-title { margin-bottom: 8px !important; font-weight: 900; font-size: 14px; }
.tasks-fb-review-row { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 7px; font-size: 14px; line-height: 1.35; }
.tasks-fb-review-row > svg { margin-top: 1px; }
.tasks-fb-line { margin-bottom: 10px !important; font-size: 15px; }
.tasks-fb-line b { font-weight: 700; }
.tasks-fb-line span { font-weight: 600; }
.tasks-fb-expl { font-size: 15px; line-height: 1.4; color: var(--lern-ink); }
.tasks-fb-hints { margin-top: 12px; }
.tasks-fb-hint { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 6px; font-size: 14px; line-height: 1.35; }
.tasks-fb-next {
  margin-top: 18px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; border: 0; color: #fff !important; font-size: 16px; font-weight: 800; cursor: pointer;
}
.tasks-fb-next:hover { filter: brightness(1.05); }
.tasks-fb-next:active { filter: brightness(0.95); }
.tasks-fb-confetti { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 3; }
.tasks-stagger-x { animation: tasks-stagger-x 460ms linear both; }
.tasks-stagger-y { animation: tasks-stagger-y 460ms linear both; }

/* ---- Simulationen: gemeinsame Bausteine (sim/common.rs) */
.tasks-panel { display: flex; flex-direction: column; align-items: stretch; }
.tasks-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tasks-panel-title { flex: 1 1 auto; font-weight: 800; font-size: 14.5px; }
.tasks-simtag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.tasks-simstep {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tasks-simstep:disabled { cursor: default; }
.tasks-ghost { position: fixed; z-index: 1000; pointer-events: none; }

/* ---- Sortieren */
.tasks-sort-pool { min-height: 76px; padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.tasks-sort-done { text-align: center; font-weight: 600; font-size: 14px; }
.tasks-sort-buckets { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.tasks-sort-bucket { min-height: 110px; padding: 12px; transition: background-color 160ms, border-color 160ms; }
.tasks-sort-bucket-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tasks-sort-bucket-title { flex: 1 1 auto; font-weight: 900; font-size: 14.5px; }
.tasks-sort-count { font-weight: 800; font-size: 14px; }
.tasks-sort-chip-wrap {
  display: inline-flex; max-width: 100%; touch-action: none; cursor: grab; user-select: none;
  -webkit-user-select: none; outline: none; border-radius: 12px;
}
.tasks-sort-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 10px 14px;
  transition: background-color 140ms, border-color 140ms, box-shadow 140ms;
}
.tasks-sort-chip-text { font-weight: 700; font-size: 14px; }
.tasks-sort { container-type: inline-size; }
@container (min-width: 561px) { .tasks-sort-buckets { grid-template-columns: repeat(var(--cols), 1fr); } }

/* feat-tasks: Entscheidungsgeschichte, Chat, Tagesplan (sim/decide.rs, sim/chat.rs, sim/plan.rs). */

/* ---- Entscheiden */
.tasks-decide-situation { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 14px; }
.tasks-decide-situation-text { flex: 1 1 auto; font-size: 15px; line-height: 1.35; font-weight: 600; }
.tasks-decide-consequence { margin: 0 0 8px 18px; padding: 12px; }
.tasks-decide-you { font-weight: 800; font-size: 14px; }
.tasks-decide-note { margin-top: 4px !important; font-size: 13.5px; line-height: 1.3; }
.tasks-decide-option {
  width: 100%; display: flex; align-items: center; padding: 13px 14px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tasks-decide-option:disabled { cursor: default; }
.tasks-decide-option:not(:disabled):hover { filter: brightness(0.98); }
.tasks-decide-option:focus-visible, .tasks-decide-undo:focus-visible, .tasks-chat-action:focus-visible,
.tasks-chat-reply:focus-visible, .tasks-plan-block:focus-visible, .tasks-plan-remove:focus-visible {
  outline: 3px solid var(--lern-primary); outline-offset: 2px;
}
.tasks-decide-option-text { flex: 1 1 auto; font-weight: 700; font-size: 15px; }
.tasks-decide-ending { margin: 4px 0 8px; padding: 14px; }
.tasks-decide-ending-head { display: flex; align-items: center; gap: 8px; }
.tasks-decide-ending-title { flex: 1 1 auto; font-weight: 900; font-size: 16px; }
.tasks-decide-ending-text { margin-top: 6px !important; font-size: 14.5px; line-height: 1.35; }
.tasks-decide-undo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0;
  background: transparent; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.tasks-decide-undo:hover { background: rgba(0, 0, 0, 0.04); }

/* ---- Chat */
.tasks-chat-phone {
  display: flex; flex-direction: column; align-items: stretch; background: #F2F4F8;
  border: 6px solid #1B1F33; border-radius: 22px; overflow: hidden;
}
.tasks-chat-header { display: flex; align-items: center; padding: 10px 12px; background: #1B1F33; }
.tasks-chat-back { color: rgba(255, 255, 255, 0.54); }
.tasks-chat-avatar {
  flex: none; width: 36px; height: 36px; margin-left: 8px; border-radius: 50%; background: #6C63FF;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 14px;
}
.tasks-chat-contact { flex: 1 1 auto; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; }
.tasks-chat-contact-name { color: #fff; font-weight: 800; font-size: 15px; }
.tasks-chat-contact-note { display: flex; align-items: center; gap: 4px; color: #FFC857; font-size: 11.5px; }
.tasks-chat-app { color: rgba(255, 255, 255, 0.54); font-size: 11.5px; font-weight: 700; }
.tasks-chat-situation { padding: 10px 14px 0; font-size: 12.5px; font-style: italic; color: #5B6079; }
.tasks-chat-feed { display: flex; flex-direction: column; align-items: stretch; padding: 10px 12px 12px; }
.tasks-chat-row { display: flex; justify-content: flex-start; }
.tasks-chat-row-me { justify-content: flex-end; }
.tasks-chat-bubble {
  max-width: 420px; margin: 3px 0; padding: 9px 13px; background: #fff; display: flex; flex-direction: column;
  border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 5.6px rgba(0, 0, 0, 0.078);
}
.tasks-chat-bubble-me { background: #3D5AFE; border-radius: 16px 16px 4px 16px; }
.tasks-chat-name { padding-bottom: 2px; font-size: 11.5px; font-weight: 800; }
.tasks-chat-text { font-size: 14.5px; line-height: 1.3; color: #1B1F33; white-space: pre-wrap; }
.tasks-chat-bubble-me .tasks-chat-text { color: #fff; }
.tasks-chat-in { animation: tasks-chat-in 280ms linear both; }
@keyframes tasks-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tasks-chat-system { display: flex; justify-content: center; padding: 6px 0; }
.tasks-chat-system > span {
  padding: 5px 10px; background: #E1E5EE; border-radius: 10px; text-align: center;
  font-size: 12px; color: #4A5068; font-weight: 600;
}
.tasks-chat-done { display: flex; justify-content: center; padding: 6px 0; }
.tasks-chat-done > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #1B1F33; border-radius: 12px;
  font-size: 12.5px; color: #fff; font-weight: 700;
}
.tasks-chat-note {
  display: flex; align-items: flex-start; gap: 6px; margin: 4px 24px 6px; padding: 7px 10px; border-radius: 8px;
}
.tasks-chat-note-text { flex: 1 1 auto; font-size: 12.5px; line-height: 1.3; color: #2A2F45; }
.tasks-chat-actions {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: #fff; border-top: 1px solid #DDE1EA;
}
.tasks-chat-action {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px;
  background: #F2F4F8; border: 1px solid #CDD3E1; border-radius: 8px; cursor: pointer;
  color: #1E2340 !important; font-size: 14px; font-weight: 700;
}
.tasks-chat-action:disabled { cursor: default; opacity: 0.38; }
.tasks-chat-action:not(:disabled):hover { background: #E8EBF2; }
.tasks-chat-action-icon { color: #3A3F66; }
.tasks-chat-replies { display: flex; flex-direction: column; align-items: stretch; padding: 8px 10px 10px; background: #fff; }
.tasks-chat-replies-title { padding: 0 0 6px 4px; font-size: 11.5px; font-weight: 800; color: #7A8099; }
.tasks-chat-reply {
  display: flex; align-items: center; margin-bottom: 6px; padding: 11px 14px; background: #E9F0FF; border: 0;
  border-radius: 16px; text-align: left; cursor: pointer;
}
.tasks-chat-reply:disabled { cursor: default; }
.tasks-chat-reply:not(:disabled):hover { background: #DEE7FD; }
.tasks-chat-reply-text { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; color: #1B2A57; }
.tasks-chat-reply-send { color: #3D5AFE; }

/* ---- Tagesplan */
.tasks-plan-rule { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.tasks-plan-rule-text { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.tasks-plan-pop { animation: tasks-plan-pop 160ms linear both; }
@keyframes tasks-plan-pop { from { transform: scale(0); } to { transform: scale(1); } }
.tasks-plan-track {
  position: relative; transition: background-color 160ms, border-color 160ms, height 160ms;
  -webkit-tap-highlight-color: transparent;
}
.tasks-plan-daylight { position: absolute; inset: 0; pointer-events: none; }
.tasks-plan-line { position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none; }
.tasks-plan-clock { position: absolute; top: 6px; font-size: 11px; font-weight: 800; pointer-events: none; }
.tasks-plan-block {
  position: absolute; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px;
  color: #fff; cursor: pointer; container-type: inline-size;
  transition: left 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275), top 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
    width 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 160ms, box-shadow 160ms;
}
.tasks-plan-block[role="button"] { cursor: pointer; }
.tasks-plan-block:not([role="button"]) { cursor: default; }
.tasks-plan-block-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tasks-plan-block-label {
  color: #fff; font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tasks-plan-block-time { display: none; color: rgba(255, 255, 255, 0.7); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
@container (min-width: 107px) { .tasks-plan-block-time { display: block; } }
.tasks-plan-remove { flex: none; display: inline-flex; border: 0; padding: 0; background: transparent; color: #fff !important; cursor: pointer; }
.tasks-plan-warning { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 13.5px; font-weight: 700; }
.tasks-plan-hint { margin-top: 8px !important; font-size: 12.5px; }
.tasks-plan-done { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; font-weight: 800; }
.tasks-plan-pool { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tasks-plan-chip-wrap {
  display: inline-flex; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  outline: none; border-radius: 12px;
}
.tasks-plan-chip-wrap:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }
.tasks-plan-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  transition: background-color 160ms;
}
.tasks-plan-chip-body { display: flex; flex-direction: column; }
.tasks-plan-chip-label { font-weight: 800; font-size: 14px; }
.tasks-plan-chip-dur { font-size: 11.5px; }

/* feat-tasks: Münzen (sim/coins.rs), Wegkarte (sim/route.rs), Verteilen (sim/allocate.rs). */

/* ---- Münzen */
.tasks-coins-register {
  display: flex; align-items: center; gap: 14px; padding: 12px; background: #3A3F55;
  border-radius: 18px; box-shadow: 0 5px 0 #262A3A;
}
.tasks-coins-lcd {
  flex: 1 1 auto; min-width: 0; padding: 10px 14px; background: #12362A; border: 3px solid #0A1F18;
  border-radius: 10px; display: flex; flex-direction: column;
}
.tasks-coins-lcd-line {
  display: flex; align-items: baseline; padding: 1.5px 0; font-weight: 800; letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
}
.tasks-coins-lcd-label { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #4F9C78; }
.tasks-coins-lcd-value { flex: none; font-size: 16px; color: #8CF5B8; }
.tasks-coins-lcd-big .tasks-coins-lcd-label { font-size: 14px; color: #8CF5B8; }
.tasks-coins-lcd-big .tasks-coins-lcd-value { font-size: 24px; }
.tasks-coins-lcd-divider { height: 1px; margin: 4.5px 0; background: #4F9C78; }
.tasks-coins-customer { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tasks-coins-customer-label { color: #E4E6F0; font-weight: 800; font-size: 12.5px; }

.tasks-coins-strip { display: flex; flex-direction: column; margin-top: 10px; }
.tasks-coins-strip-caption { font-size: 12.5px; font-weight: 800; margin-bottom: 4px; }

.tasks-coins-tray {
  margin-top: 12px; min-height: 150px; padding: 14px; border-radius: 80px;
  display: flex; flex-direction: column; align-items: center;
  transition: background-color 160ms, border-color 160ms, border-width 160ms;
}
.tasks-coins-tray-title { font-weight: 800; font-size: 12.5px; margin-bottom: 8px; }
.tasks-coins-empty { padding: 22px 0; font-size: 14px; text-align: center; }
.tasks-coins-tray-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tasks-coins-piece-btn {
  border: 0; padding: 0; background: transparent; cursor: pointer; display: inline-flex; border-radius: 50%;
}
.tasks-coins-piece-btn:disabled { cursor: default; }
.tasks-coins-piece-btn:focus-visible, .tasks-coins-bank:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }

.tasks-coins-sum-row { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tasks-coins-sum { font-weight: 900; font-size: 17px; }
.tasks-coins-max { padding-top: 4px; font-size: 12.5px; text-align: center; }

.tasks-coins-drawer {
  margin-top: 14px; padding: 10px 10px 12px; background: #3A3F55; border-radius: 8px 8px 18px 18px;
  box-shadow: 0 5px 0 #262A3A; display: flex; flex-direction: column; align-items: stretch;
}
.tasks-coins-drawer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #E4E6F0; }
.tasks-coins-drawer-title { flex: 1 1 auto; font-weight: 800; font-size: 14.5px; }
.tasks-coins-drawer-hint { color: #9AA0B8; font-size: 12px; }
.tasks-coins-drawer-row { display: flex; flex-wrap: wrap; justify-content: center; }
.tasks-coins-drawer-coins { align-items: flex-end; }
.tasks-coins-slot {
  margin: 4px; padding: 10px 8px 6px; background: #242838; border-top: 3px solid #14161F;
  border-radius: 10px; display: flex; flex-direction: column; align-items: center;
}
.tasks-coins-slot-label { margin-top: 5px; color: #B9BED0; font-size: 11.5px; font-weight: 800; }
.tasks-coins-bank { display: inline-flex; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 8px; }
.tasks-coins-handle { margin: 6px auto 0; width: 70px; height: 8px; border-radius: 4px; background: #8C92AA; }

/* ---- Wegkarte */
.tasks-route-map { position: relative; width: 100%; aspect-ratio: 1.45; overflow: hidden; }
.tasks-route-edge {
  position: absolute; width: 110px; display: flex; justify-content: center; pointer-events: none;
}
.tasks-route-edge-pill {
  padding: 2px 6px; background: rgba(255, 255, 255, 0.92); border: 1px solid #CBD2E0; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: #2A2F45; text-align: center; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tasks-route-place {
  position: absolute; width: 120px; display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.tasks-route-node {
  pointer-events: auto; border-radius: 50%; padding: 0; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer;
  transition: width 160ms, height 160ms, background-color 160ms, border-color 160ms, box-shadow 160ms;
}
.tasks-route-node:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }
.tasks-route-label {
  margin-top: 3px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800;
  text-align: center; line-height: 1.25; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tasks-route-bar { margin-top: 10px; display: flex; align-items: center; gap: 6px; min-height: 40px; }
.tasks-route-cost { font-weight: 800; font-size: 14px; }
.tasks-route-spacer { flex: 1 1 auto; }
.tasks-route-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 0;
  background: transparent; border-radius: 12px; font-size: 15px !important; font-weight: 700; cursor: pointer;
}
.tasks-route-btn:hover { background: rgba(0, 0, 0, 0.04); }
.tasks-route-hint { font-size: 13px; }
.tasks-route-leg { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 10px; }
.tasks-route-leg-text { flex: 1 1 auto; font-size: 13.5px; line-height: 1.3; }
.tasks-route-fade { animation: tasks-route-fade 280ms linear both; }
@keyframes tasks-route-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Verteilen */
.tasks-alloc-head { padding: 14px; margin-bottom: 14px; }
.tasks-alloc-head-row { display: flex; align-items: center; gap: 8px; }
.tasks-alloc-sum { flex: 1 1 auto; font-weight: 900; font-size: 16px; }
.tasks-alloc-diff { flex: none; font-weight: 800; font-size: 14px; }
.tasks-alloc-bar { margin-top: 12px; height: 14px; border-radius: 6px; overflow: hidden; display: flex; }
.tasks-alloc-seg { display: block; min-width: 0; height: 100%; }
.tasks-alloc-row-wrap { padding-bottom: 12px; }
.tasks-alloc-row { padding: 12px 14px; }
.tasks-alloc-row-head { display: flex; align-items: center; }
.tasks-alloc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-right: 10px; }
.tasks-alloc-label { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 15px; }
.tasks-alloc-step {
  width: 34px; height: 34px; flex: none; padding: 0; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.tasks-alloc-step:disabled { cursor: default; }
.tasks-alloc-step:focus-visible, .tasks-alloc-track:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }
.tasks-alloc-value { width: 104px; flex: none; text-align: center; font-weight: 900; font-size: 15px; }
.tasks-alloc-track {
  position: relative; margin-top: 10px; height: 28px; touch-action: none; cursor: pointer; border-radius: 4px;
}
.tasks-alloc-rail, .tasks-alloc-fill {
  position: absolute; left: 0; top: 10px; height: 8px; border-radius: 4px;
}
.tasks-alloc-rail { right: 0; }
.tasks-alloc-fill { width: calc(var(--f) * 100%); }
.tasks-alloc-thumb {
  position: absolute; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid; box-shadow: 0 2px 4.6px rgba(0, 0, 0, 0.2);
  left: clamp(0px, calc(var(--f) * 100% - 11px), calc(100% - 22px));
}

/* feat-tasks: Untersuchen (inspect), Beweise prüfen (verify), Privatsphäre (privacy). */

.tasks-caps { font-size: 11.5px; letter-spacing: 1.4px; font-weight: 800; margin-bottom: 8px !important; }

/* ---- Untersuchen: Markierung */
.tasks-inspect-mark {
  position: relative; border: 1.5px solid transparent; cursor: pointer; outline: none;
  transition: border-color 160ms, background-color 160ms; -webkit-tap-highlight-color: transparent;
}
.tasks-inspect-mark:hover { border-color: #9AA3BC; background: rgba(58, 65, 86, 0.06); }
.tasks-inspect-mark.is-marked, .tasks-inspect-mark.is-marked:hover {
  border: 2.5px solid #FFB020; background: rgba(255, 176, 32, 0.16);
}
.tasks-inspect-mark:focus-visible { box-shadow: 0 0 0 3px var(--lern-primary); }
.tasks-inspect-mark-fill { display: block; }
.tasks-inspect-badge {
  position: absolute; right: -6px; top: -10px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px 2px 5px; background: #FFB020; border: 1.5px solid #fff; border-radius: 8px;
  color: #fff; font-size: 10.5px; font-weight: 900; line-height: 1.2; pointer-events: none; z-index: 1;
}

/* ---- Zähler */
.tasks-inspect-counter { display: flex; align-items: center; }
.tasks-inspect-counter-text { flex: 1 1 auto; margin-left: 6px; font-size: 13px; font-weight: 700; }
.tasks-inspect-count {
  flex: none; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 900; color: #B57400;
}

/* ---- Browser */
.tasks-inspect-browser {
  border-radius: 14px; border: 1px solid #CBD2E0; overflow: hidden;
  box-shadow: 0 6px 19.5px rgba(0, 0, 0, 0.1);
}
.tasks-inspect-tabbar { display: flex; align-items: center; background: #E4E8F1; padding: 8px 12px 0; }
.tasks-inspect-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none; }
.tasks-inspect-tab {
  margin-left: 8px; padding: 7px 14px; background: #fff; border-radius: 10px 10px 0 0;
  font-size: 12px; font-weight: 700; color: #3A4156;
}
.tasks-inspect-addr { display: flex; align-items: center; background: #fff; padding: 8px 12px; }
.tasks-inspect-addr-main { flex: 1 1 auto; min-width: 0; margin-left: 10px; }
.tasks-inspect-url { display: flex; align-items: center; padding: 8px 12px; background: #F1F3F9; border-radius: 20px; }
.tasks-inspect-insecure { margin-left: 4px; font-size: 12.5px; color: #C0392B; font-weight: 800; white-space: nowrap; }
.tasks-inspect-urlsep { width: 1px; height: 14px; margin: 0 8px; background: #C9CEDB; flex: none; }
.tasks-inspect-url-text {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; color: #2B3347; font-weight: 600;
}
.tasks-inspect-sep { height: 1px; background: #E4E8F1; }
.tasks-inspect-page { background: #fff; padding: 12px 14px 16px; display: flex; flex-direction: column; }
.tasks-inspect-page-row { padding-bottom: 10px; }
.tasks-inspect-banner {
  display: flex; flex-direction: column; padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(90deg, #E53935, #FF8F00);
}
.tasks-inspect-banner-title { color: #fff; font-size: 16px; font-weight: 900; }
.tasks-inspect-banner-sub { color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.tasks-inspect-heading { font-size: 22px; font-weight: 900; color: #1B1B2C; }
.tasks-inspect-nav { display: flex; }
.tasks-inspect-nav-item { margin-right: 16px; font-size: 13px; font-weight: 700; color: #3A4156; white-space: nowrap; }
.tasks-inspect-image {
  height: 84px; border-radius: 8px; background: linear-gradient(90deg, #DDE6F5, #C3D3EE);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.tasks-inspect-image-label { font-size: 12px; color: #5A6682; font-weight: 700; }
.tasks-inspect-button {
  text-align: center; padding: 12px 0; background: #1E88E5; border-radius: 8px;
  color: #fff; font-weight: 800; font-size: 15px;
}
.tasks-inspect-link { color: #1E5BD8; text-decoration: underline; font-size: 14.5px; }
.tasks-inspect-form { padding: 12px; background: #F7F8FC; border: 1px solid #D7DDEA; border-radius: 8px; }
.tasks-inspect-form-title { font-weight: 800; color: #1B1B2C; margin-bottom: 8px !important; font-size: 14px; }
.tasks-inspect-form-field {
  margin-bottom: 6px; padding: 9px 10px; background: #fff; border: 1px solid #CBD2E0;
  border-radius: 6px; color: #98A1B6; font-size: 13.5px;
}
.tasks-inspect-popup {
  display: flex; align-items: flex-start; padding: 12px; background: #fff; border-radius: 10px;
  border: 1px solid #CBD2E0; box-shadow: 0 4px 14.9px rgba(0, 0, 0, 0.133);
}
.tasks-inspect-popup-body { flex: 1 1 auto; }
.tasks-inspect-popup-title { font-weight: 800; color: #1B1B2C; font-size: 14px; }
.tasks-inspect-popup-sub { padding-top: 3px; font-size: 13px; color: #5A6682; }
.tasks-inspect-badge-row { display: flex; }
.tasks-inspect-trust {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #E8F6EE;
  border-radius: 20px; border: 1px solid #A8DCC0; font-size: 12.5px; font-weight: 800; color: #1F7A4C;
}
.tasks-inspect-price { display: flex; align-items: baseline; gap: 8px; }
.tasks-inspect-price-now { font-size: 22px; font-weight: 900; color: #D32F2F; }
.tasks-inspect-price-old { font-size: 14px; color: #98A1B6; text-decoration: line-through; }
.tasks-inspect-footer { font-size: 11.5px; color: #98A1B6; }
.tasks-inspect-para { font-size: 14.5px; line-height: 1.4; color: #3A4156; }

/* ---- Chat */
.tasks-inspect-chat { padding: 14px; background: #EFF2F8; border-radius: 16px; border: 1px solid #D7DDEA; }
.tasks-inspect-chat-head { display: flex; align-items: center; margin-bottom: 12px; }
.tasks-inspect-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #B9C3D8; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tasks-inspect-chat-title { margin-left: 10px; font-weight: 800; color: #2B3347; font-size: 14px; }
.tasks-inspect-chat-row { display: flex; justify-content: flex-start; padding-bottom: 8px; }
.tasks-inspect-chat-row.is-me { justify-content: flex-end; }
.tasks-inspect-chat-max { max-width: 420px; min-width: 0; }
.tasks-inspect-bubble { padding: 10px 14px; border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.tasks-inspect-from { font-size: 11px; font-weight: 800; color: #7B849A; }
.tasks-inspect-bubble-text { font-size: 15px; line-height: 1.35; }

/* ---- Szene */
.tasks-inspect-scene { position: relative; aspect-ratio: 1.7; border-radius: 18px; overflow: hidden; }
.tasks-inspect-scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tasks-inspect-spot {
  position: absolute; width: 124px; display: flex; flex-direction: column; align-items: center;
  border: 0; background: transparent; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tasks-inspect-spot:disabled { cursor: default; }
.tasks-inspect-spot:focus-visible { outline: none; }
.tasks-inspect-spot:focus-visible .tasks-inspect-spot-dot { box-shadow: 0 0 0 3px var(--lern-primary); }
.tasks-inspect-spot-dot {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); border: 2px solid #3A4156; color: #3A4156;
  box-shadow: 0 3px 10.2px rgba(0, 0, 0, 0.2); transition: background-color 160ms, border-color 160ms, color 160ms;
}
.tasks-inspect-spot-dot.is-marked { background: #FFB020; border-color: #fff; color: #fff; }
.tasks-inspect-spot-label {
  margin-top: 3px; padding: 2px 6px; background: rgba(255, 255, 255, 0.9); border-radius: 8px;
  font-size: 10.5px; font-weight: 800; color: #1B1B2C; line-height: 1.1; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%;
}

/* ---- Kassenbon (gezackter Rand oben und unten, Zacken 8 px) */
.tasks-inspect-receipt-wrap { display: flex; justify-content: center; }
.tasks-inspect-receipt {
  width: 100%; max-width: 420px; padding: 26px 20px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF, #F6F3EC);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top left / 16px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom right / 16px 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top left / 16px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom right / 16px 51% repeat-x;
}
.tasks-inspect-mono { font-family: ui-monospace, "Cascadia Mono", "Consolas", "Menlo", monospace; color: #2B2B33; font-size: 14px; line-height: 1.3; }
.tasks-inspect-r-title { text-align: center; font-weight: 900; font-size: 16px; letter-spacing: 2px; }
.tasks-inspect-r-dash { text-align: center; color: #A9A49A; margin: 4px 0 8px !important; }
.tasks-inspect-r-item { padding-bottom: 4px; }
.tasks-inspect-r-pad { padding: 4px 6px; }
.tasks-inspect-r-hf { text-align: center; font-size: 12px; color: #6B675E; }
.tasks-inspect-r-row { display: flex; align-items: flex-start; }
.tasks-inspect-r-grow { flex: 1 1 auto; min-width: 0; }
.tasks-inspect-r-sub { margin-left: 10px; font-weight: 700; white-space: nowrap; }
.tasks-inspect-r-total { font-weight: 900; font-size: 16px; }

/* ---- Dokument */
.tasks-inspect-doc {
  padding: 20px 22px 22px; background: #fff; border-radius: 6px; border: 1px solid #DCDFE8;
  box-shadow: 0 1px 3.3px rgba(0, 0, 0, 0.078), 0 10px 21.8px rgba(0, 0, 0, 0.063);
  display: flex; flex-direction: column;
}
.tasks-inspect-doc-head { display: flex; align-items: center; gap: 8px; }
.tasks-inspect-doc-title { flex: 1 1 auto; font-weight: 900; font-size: 17px; color: #22263A; }
.tasks-inspect-divider { height: 1.5px; background: #EEF0F8; margin: 10.25px 0; }
.tasks-inspect-d-item { padding-bottom: 8px; }
.tasks-inspect-d-pad { padding: 6px; }
.tasks-inspect-d-heading { font-weight: 900; font-size: 15px; color: #22263A; }
.tasks-inspect-d-small { font-size: 11px; line-height: 1.35; color: #7B849A; }
.tasks-inspect-d-check { display: flex; align-items: flex-start; gap: 8px; }
.tasks-inspect-d-check-text { flex: 1 1 auto; font-size: 13.5px; line-height: 1.35; color: #22263A; }
.tasks-inspect-d-sign { padding-top: 10px; }
.tasks-inspect-d-sign-line { height: 1px; background: #9AA0B4; margin-bottom: 4px; }
.tasks-inspect-d-sign-text { font-size: 12px; color: #5B6079; }
.tasks-inspect-d-para { font-size: 14px; line-height: 1.45; color: #22263A; }

/* ---- Text */
.tasks-inspect-text { padding: 16px; border-radius: 16px; display: flex; flex-wrap: wrap; column-gap: 2px; row-gap: 6px; }
.tasks-inspect-word { display: inline-block; padding: 2px 4px; font-size: 16px; line-height: 1.45; }

/* ---- Notiz (wechselt mit kurzem Überblenden) */
.tasks-inspect-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px; animation: tasks-inspect-fade 220ms linear both; }
.tasks-inspect-note-body { flex: 1 1 auto; }
.tasks-inspect-note-title { font-weight: 900; font-size: 14px; margin-bottom: 2px !important; }
.tasks-inspect-note-text { font-size: 14px; line-height: 1.4; }
@keyframes tasks-inspect-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Entscheidung */
.tasks-inspect-decision { padding: 16px; }
.tasks-inspect-question { font-size: 16px; font-weight: 800; margin-bottom: 12px !important; }
.tasks-inspect-options { display: flex; flex-wrap: wrap; gap: 10px; }
.tasks-inspect-option {
  padding: 12px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
  transition: background-color 180ms, border-color 180ms, color 180ms;
}
.tasks-inspect-option:disabled { cursor: default; }
.tasks-inspect-option:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }

/* ---- Beweise prüfen */
.tasks-verify { container-type: inline-size; }
.tasks-verify-sources { display: grid; grid-template-columns: 1fr; gap: 10px; }
@container (min-width: 561px) { .tasks-verify-sources { grid-template-columns: 1fr 1fr; } }
.tasks-verify-source {
  padding: 12px; background: #FFFDF4; border-radius: 8px; border: 1px solid #E6DDB8;
  box-shadow: 0 2px 5.6px rgba(0, 0, 0, 0.07);
}
.tasks-verify-source-head { display: flex; align-items: center; color: #7A6420; }
.tasks-verify-q { margin-left: 6px; font-weight: 900; color: #7A6420; font-size: 14px; }
.tasks-verify-source-title { flex: 1 1 auto; margin-left: 8px; font-weight: 800; color: #3A2E12; font-size: 14px; }
.tasks-verify-source-text { margin-top: 6px !important; font-size: 13.5px; line-height: 1.35; color: #3A2E12; }
.tasks-verify-claim-row { padding-bottom: 10px; }
.tasks-verify-claim { font-weight: 700; font-size: 15px; margin-bottom: 8px !important; }
.tasks-verify-verdicts { display: flex; gap: 6px; }
.tasks-verify-verdict, .tasks-privacy-level {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; padding: 0 4px; transition: background-color 160ms, border-color 160ms;
  -webkit-tap-highlight-color: transparent;
}
.tasks-verify-verdict { height: 40px; }
.tasks-verify-verdict:disabled, .tasks-privacy-level:disabled { cursor: default; }
.tasks-verify-verdict:focus-visible, .tasks-privacy-level:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }
.tasks-verify-verdict-label { font-weight: 800; font-size: 13px; }

/* ---- Privatsphäre */
.tasks-privacy { container-type: inline-size; }
.tasks-privacy-layout { display: flex; flex-direction: column; gap: 14px; }
@container (min-width: 641px) {
  .tasks-privacy-layout { flex-direction: row; align-items: flex-start; }
  .tasks-privacy-left { flex: 3 1 0; min-width: 0; }
  .tasks-privacy-right { flex: 2 1 0; min-width: 0; }
}
.tasks-privacy-settings { display: flex; flex-direction: column; overflow: hidden; }
.tasks-privacy-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #1B1F33; color: #fff; }
.tasks-privacy-bar-title { flex: 1 1 auto; color: #fff; font-weight: 800; font-size: 14px; }
.tasks-privacy-field { padding: 12px 14px; }
.tasks-privacy-field-head { display: flex; align-items: center; margin-bottom: 8px; }
.tasks-privacy-label { flex: 1 1 0; min-width: 0; font-weight: 800; font-size: 14.5px; }
.tasks-privacy-value {
  flex: 0 1 auto; max-width: 50%; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13px; margin-left: 8px;
}
.tasks-privacy-levels { display: flex; gap: 6px; }
.tasks-privacy-level { height: 38px; }
.tasks-privacy-level-label { font-size: 12.5px; font-weight: 800; }
.tasks-privacy-card { margin-bottom: 10px; padding: 12px; }
.tasks-privacy-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tasks-privacy-card-title { font-weight: 800; font-size: 14px; }
.tasks-privacy-none { font-size: 13px; }
.tasks-privacy-row { font-size: 13px; padding-bottom: 3px; }
.tasks-privacy-row b { font-weight: 700; }

/* feat-tasks: Budget, Warenkorb, Preisvergleich, Musterrätsel. */

/* ---- Regal (Budget, Warenkorb): 1/2/3 Spalten je nach Breite wie LayoutBuilder */
.tasks-shelf { container-type: inline-size; margin-top: 14px; }
.tasks-shelf-grid { display: grid; grid-template-columns: 1fr; column-gap: 12px; row-gap: 14px; align-items: start; }
@container (min-width: 381px) { .tasks-shelf-grid { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 621px) { .tasks-shelf-grid { grid-template-columns: repeat(3, 1fr); } }
.tasks-shelf-cell { display: flex; flex-direction: column; min-width: 0; }
.tasks-shelf-board { height: 7px; margin-top: 2px; background: #B59B76; border-radius: 4px; }

/* ---- Budget */
.tasks-budget-cart { padding: 14px; transition: border-color 180ms; }
.tasks-budget-head { display: flex; align-items: center; }
.tasks-budget-count { margin-left: 8px; font-weight: 800; font-size: 14px; }
.tasks-budget-sum { margin-left: auto; font-weight: 900; font-size: 16px; }
.tasks-budget-track { margin-top: 10px; height: 10px; border-radius: 5px; overflow: hidden; }
.tasks-budget-bar { height: 100%; transition: width 260ms linear, background-color 260ms linear; }
.tasks-budget-note { margin-top: 8px !important; font-size: 13px; font-weight: 700; }
.tasks-budget-product {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 12px; text-align: left;
  cursor: pointer; transition: background-color 180ms, border-color 180ms; -webkit-tap-highlight-color: transparent;
}
.tasks-budget-product:disabled { cursor: default; }
.tasks-budget-top { display: flex; align-items: center; width: 100%; }
.tasks-budget-badge { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.tasks-budget-mark { margin-left: auto; display: inline-flex; }
.tasks-budget-name { margin-top: 10px; font-weight: 800; font-size: 15px; }
.tasks-budget-sub { font-size: 12px; }
.tasks-budget-price { margin-top: 8px; font-weight: 900; font-size: 17px; }
.tasks-budget-product:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }

/* ---- Warenkorb */
.tasks-shop-rules { margin-bottom: 12px; }
.tasks-shop-rule { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.tasks-shop-rule-text { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.tasks-shop-done { text-decoration-line: line-through; }
.tasks-shop-rule-count { font-weight: 800; font-size: 14px; }
.tasks-shop-figs { display: flex; }
.tasks-shop-fig { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tasks-shop-fig-label { font-size: 12px; font-weight: 600; }
.tasks-shop-fig-value { font-size: 17px; font-weight: 900; }
.tasks-shop-track { position: relative; margin-top: 10px; height: 14px; border-radius: 7px; }
.tasks-shop-bar {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px;
  transition: width 280ms cubic-bezier(0.215, 0.61, 0.355, 1), background-color 280ms;
}
.tasks-shop-keep { position: absolute; top: -2px; bottom: -2px; width: 3px; }
.tasks-shop-note { margin-top: 8px !important; font-size: 13px; font-weight: 700; }
.tasks-shop-chips { margin-top: 10px; }
.tasks-shop-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px 6px 8px;
  border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.tasks-shop-chip:hover { filter: brightness(0.97); }
.tasks-shop-item { padding: 12px 8px 10px 12px; transition: background-color 160ms, border-color 160ms; }
.tasks-shop-item-top { display: flex; align-items: flex-start; }
.tasks-shop-item-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tasks-shop-item-text { flex: 1 1 auto; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; }
.tasks-shop-item-name { font-weight: 800; font-size: 14.5px; }
.tasks-shop-item-sub { font-size: 12px; }
.tasks-shop-item-row { display: flex; align-items: center; margin-top: 8px; }
.tasks-shop-item-price { flex: 1 1 auto; min-width: 0; font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasks-shop-item-count { width: 30px; flex: none; text-align: center; font-weight: 900; font-size: 17px; }

/* ---- Preisvergleich */
.tasks-compare { container-type: inline-size; }
.tasks-compare-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@container (min-width: 601px) { .tasks-compare-grid { grid-template-columns: repeat(var(--cols), 1fr); } }
.tasks-compare-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; transition: border-color 160ms, box-shadow 160ms; }
.tasks-compare-tag { padding: 12px 14px; background: #FFF6D6; border-bottom: 1px solid #E9D79A; }
.tasks-compare-row { display: flex; align-items: center; gap: 6px; }
.tasks-compare-name { flex: 1 1 auto; font-weight: 800; font-size: 15px; color: #3A2E12; }
.tasks-compare-sub { font-size: 12px; color: #6B5A2E; }
.tasks-compare-price-row { display: flex; align-items: flex-end; margin-top: 6px; }
.tasks-compare-price { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: flex-end; gap: 4px; white-space: nowrap; }
.tasks-compare-price-num { font-size: 26px; font-weight: 900; color: #3A2E12; line-height: 1.15; }
.tasks-compare-price-unit { padding-bottom: 4px; font-size: 12px; font-weight: 700; color: #6B5A2E; }
.tasks-compare-amount { margin-left: 8px; padding-bottom: 4px; font-size: 13px; font-weight: 800; color: #6B5A2E; white-space: nowrap; }
.tasks-compare-extra { padding-top: 4px; font-size: 12px; font-weight: 700; }
.tasks-compare-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.tasks-compare-calc-btn {
  width: 100%; min-height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; font-size: 13.5px; font-weight: 800; cursor: pointer; min-width: 0;
}
.tasks-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tasks-compare-calc { padding: 10px; border-radius: 8px; animation: tasks-grow 280ms cubic-bezier(0.215, 0.61, 0.355, 1) both; }
.tasks-compare-calc-line { font-size: 13px; line-height: 1.45; }
.tasks-compare-calc-result { margin-top: 2px !important; font-size: 14.5px; line-height: 1.45; font-weight: 900; }
.tasks-compare-pick {
  width: 100%; min-height: 42px; padding: 0 16px; border: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 14px; font-weight: 800; cursor: pointer;
}
.tasks-compare-pick:disabled { cursor: default; }
.tasks-compare-tip { margin-top: 10px !important; font-size: 12.5px; }
@keyframes tasks-grow { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 200px; } }

/* ---- Musterrätsel */
.tasks-pattern-board-wrap { display: flex; justify-content: center; }
.tasks-pattern-board { width: 100%; max-width: 330px; padding: 10px; }
.tasks-pattern-grid { display: grid; width: 100%; }
.tasks-pattern-slot { padding: 3px; min-width: 0; min-height: 0; }
.tasks-pattern-cell { width: 100%; height: 100%; border-radius: 10px; padding: 4px; display: flex; align-items: center; justify-content: center; }
.tasks-pattern-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tasks-pattern-q { font-size: 30px; font-weight: 900; line-height: 1; }
.tasks-pattern-ask { margin-top: 16px !important; text-align: center; font-weight: 800; font-size: 14px; }
.tasks-pattern-options { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tasks-pattern-option {
  width: 84px; height: 84px; padding: 6px; cursor: pointer; transition: background-color 160ms, border-color 160ms;
}
.tasks-pattern-option:disabled { cursor: default; }
.tasks-pattern-option:focus-visible { outline: 3px solid var(--lern-primary); outline-offset: 2px; }

/* Animationen: Flutter-Kurven abgetastet (elasticOut, easeOutBack, easeOutCubic), linear abgespielt. */
@keyframes tasks-pop-good {
  0% { transform: rotate(-0.6000rad) scale(0.3000); }
  5% { transform: rotate(-0.3000rad) scale(0.6500); }
  10% { transform: rotate(-0.0000rad) scale(1.0000); }
  15% { transform: rotate(0.1500rad) scale(1.1750); }
  20% { transform: rotate(0.1500rad) scale(1.1750); }
  25% { transform: rotate(0.0750rad) scale(1.0875); }
  30% { transform: rotate(-0.0000rad) scale(1.0000); }
  35% { transform: rotate(-0.0375rad) scale(0.9563); }
  40% { transform: rotate(-0.0375rad) scale(0.9563); }
  45% { transform: rotate(-0.0187rad) scale(0.9781); }
  50% { transform: rotate(-0.0000rad) scale(1.0000); }
  55% { transform: rotate(0.0094rad) scale(1.0109); }
  60% { transform: rotate(0.0094rad) scale(1.0109); }
  65% { transform: rotate(0.0047rad) scale(1.0055); }
  70% { transform: rotate(-0.0000rad) scale(1.0000); }
  75% { transform: rotate(-0.0023rad) scale(0.9973); }
  80% { transform: rotate(-0.0023rad) scale(0.9973); }
  85% { transform: rotate(-0.0012rad) scale(0.9986); }
  90% { transform: rotate(-0.0000rad) scale(1.0000); }
  95% { transform: rotate(0.0006rad) scale(1.0007); }
  100% { transform: rotate(0.0006rad) scale(1.0007); }
}
@keyframes tasks-pop-bad {
  0% { transform: rotate(0.3000rad) scale(0.3000); }
  5% { transform: rotate(0.2342rad) scale(0.4536); }
  10% { transform: rotate(0.1774rad) scale(0.5862); }
  15% { transform: rotate(0.1289rad) scale(0.6992); }
  20% { transform: rotate(0.0883rad) scale(0.7941); }
  25% { transform: rotate(0.0548rad) scale(0.8722); }
  30% { transform: rotate(0.0279rad) scale(0.9350); }
  35% { transform: rotate(0.0069rad) scale(0.9839); }
  40% { transform: rotate(-0.0087rad) scale(1.0203); }
  45% { transform: rotate(-0.0196rad) scale(1.0457); }
  50% { transform: rotate(-0.0263rad) scale(1.0614); }
  55% { transform: rotate(-0.0295rad) scale(1.0689); }
  60% { transform: rotate(-0.0298rad) scale(1.0695); }
  65% { transform: rotate(-0.0278rad) scale(1.0648); }
  70% { transform: rotate(-0.0241rad) scale(1.0561); }
  75% { transform: rotate(-0.0192rad) scale(1.0449); }
  80% { transform: rotate(-0.0139rad) scale(1.0325); }
  85% { transform: rotate(-0.0088rad) scale(1.0204); }
  90% { transform: rotate(-0.0043rad) scale(1.0100); }
  95% { transform: rotate(-0.0012rad) scale(1.0027); }
  100% { transform: rotate(0.0000rad) scale(1.0000); }
}
@keyframes tasks-shake {
  0% { transform: translateX(0.000px); }
  5% { transform: translateX(5.380px); }
  10% { transform: translateX(5.992px); }
  15% { transform: translateX(1.839px); }
  20% { transform: translateX(-3.292px); }
  25% { transform: translateX(-5.250px); }
  30% { transform: translateX(-2.880px); }
  35% { transform: translateX(1.406px); }
  40% { transform: translateX(3.994px); }
  45% { transform: translateX(3.115px); }
  50% { transform: translateX(0.000px); }
  55% { transform: translateX(-2.548px); }
  60% { transform: translateX(-2.663px); }
  65% { transform: translateX(-0.757px); }
  70% { transform: translateX(1.234px); }
  75% { transform: translateX(1.750px); }
  80% { transform: translateX(0.823px); }
  85% { transform: translateX(-0.324px); }
  90% { transform: translateX(-0.666px); }
  95% { transform: translateX(-0.283px); }
  100% { transform: translateX(-0.000px); }
}
@keyframes tasks-enter {
  0% { opacity: 0.0000; transform: translateY(24.000px) scale(0.97000); }
  5% { opacity: 0.1426; transform: translateY(20.577px) scale(0.97428); }
  10% { opacity: 0.2710; transform: translateY(17.496px) scale(0.97813); }
  15% { opacity: 0.3859; transform: translateY(14.739px) scale(0.98158); }
  20% { opacity: 0.4880; transform: translateY(12.288px) scale(0.98464); }
  25% { opacity: 0.5781; transform: translateY(10.125px) scale(0.98734); }
  30% { opacity: 0.6570; transform: translateY(8.232px) scale(0.98971); }
  35% { opacity: 0.7254; transform: translateY(6.591px) scale(0.99176); }
  40% { opacity: 0.7840; transform: translateY(5.184px) scale(0.99352); }
  45% { opacity: 0.8336; transform: translateY(3.993px) scale(0.99501); }
  50% { opacity: 0.8750; transform: translateY(3.000px) scale(0.99625); }
  55% { opacity: 0.9089; transform: translateY(2.187px) scale(0.99727); }
  60% { opacity: 0.9360; transform: translateY(1.536px) scale(0.99808); }
  65% { opacity: 0.9571; transform: translateY(1.029px) scale(0.99871); }
  70% { opacity: 0.9730; transform: translateY(0.648px) scale(0.99919); }
  75% { opacity: 0.9844; transform: translateY(0.375px) scale(0.99953); }
  80% { opacity: 0.9920; transform: translateY(0.192px) scale(0.99976); }
  85% { opacity: 0.9966; transform: translateY(0.081px) scale(0.99990); }
  90% { opacity: 0.9990; transform: translateY(0.024px) scale(0.99997); }
  95% { opacity: 0.9999; transform: translateY(0.003px) scale(1.00000); }
  100% { opacity: 1.0000; transform: translateY(0.000px) scale(1.00000); }
}
@keyframes tasks-stagger-x {
  0% { opacity: 0.0000; transform: translate(-14.000px,0.000px) scale(0.96000); }
  5% { opacity: 0.1426; transform: translate(-12.003px,0.000px) scale(0.96878); }
  10% { opacity: 0.2710; transform: translate(-10.206px,0.000px) scale(0.97635); }
  15% { opacity: 0.3859; transform: translate(-8.598px,0.000px) scale(0.98281); }
  20% { opacity: 0.4880; transform: translate(-7.168px,0.000px) scale(0.98823); }
  25% { opacity: 0.5781; transform: translate(-5.906px,0.000px) scale(0.99270); }
  30% { opacity: 0.6570; transform: translate(-4.802px,0.000px) scale(0.99629); }
  35% { opacity: 0.7254; transform: translate(-3.845px,0.000px) scale(0.99908); }
  40% { opacity: 0.7840; transform: translate(-3.024px,0.000px) scale(1.00116); }
  45% { opacity: 0.8336; transform: translate(-2.329px,0.000px) scale(1.00261); }
  50% { opacity: 0.8750; transform: translate(-1.750px,0.000px) scale(1.00351); }
  55% { opacity: 0.9089; transform: translate(-1.276px,0.000px) scale(1.00394); }
  60% { opacity: 0.9360; transform: translate(-0.896px,0.000px) scale(1.00397); }
  65% { opacity: 0.9571; transform: translate(-0.600px,0.000px) scale(1.00370); }
  70% { opacity: 0.9730; transform: translate(-0.378px,0.000px) scale(1.00321); }
  75% { opacity: 0.9844; transform: translate(-0.219px,0.000px) scale(1.00257); }
  80% { opacity: 0.9920; transform: translate(-0.112px,0.000px) scale(1.00186); }
  85% { opacity: 0.9966; transform: translate(-0.047px,0.000px) scale(1.00117); }
  90% { opacity: 0.9990; transform: translate(-0.014px,0.000px) scale(1.00057); }
  95% { opacity: 0.9999; transform: translate(-0.002px,0.000px) scale(1.00016); }
  100% { opacity: 1.0000; transform: translate(-0.000px,0.000px) scale(1.00000); }
}
@keyframes tasks-stagger-y {
  0% { opacity: 0.0000; transform: translate(0.000px,18.000px) scale(0.96000); }
  5% { opacity: 0.1426; transform: translate(0.000px,15.433px) scale(0.96878); }
  10% { opacity: 0.2710; transform: translate(0.000px,13.122px) scale(0.97635); }
  15% { opacity: 0.3859; transform: translate(0.000px,11.054px) scale(0.98281); }
  20% { opacity: 0.4880; transform: translate(0.000px,9.216px) scale(0.98823); }
  25% { opacity: 0.5781; transform: translate(0.000px,7.594px) scale(0.99270); }
  30% { opacity: 0.6570; transform: translate(0.000px,6.174px) scale(0.99629); }
  35% { opacity: 0.7254; transform: translate(0.000px,4.943px) scale(0.99908); }
  40% { opacity: 0.7840; transform: translate(0.000px,3.888px) scale(1.00116); }
  45% { opacity: 0.8336; transform: translate(0.000px,2.995px) scale(1.00261); }
  50% { opacity: 0.8750; transform: translate(0.000px,2.250px) scale(1.00351); }
  55% { opacity: 0.9089; transform: translate(0.000px,1.640px) scale(1.00394); }
  60% { opacity: 0.9360; transform: translate(0.000px,1.152px) scale(1.00397); }
  65% { opacity: 0.9571; transform: translate(0.000px,0.772px) scale(1.00370); }
  70% { opacity: 0.9730; transform: translate(0.000px,0.486px) scale(1.00321); }
  75% { opacity: 0.9844; transform: translate(0.000px,0.281px) scale(1.00257); }
  80% { opacity: 0.9920; transform: translate(0.000px,0.144px) scale(1.00186); }
  85% { opacity: 0.9966; transform: translate(0.000px,0.061px) scale(1.00117); }
  90% { opacity: 0.9990; transform: translate(0.000px,0.018px) scale(1.00057); }
  95% { opacity: 0.9999; transform: translate(0.000px,0.002px) scale(1.00016); }
  100% { opacity: 1.0000; transform: translate(0.000px,0.000px) scale(1.00000); }
}

