.learning {
  --learn-ink: #193b3c;
  --learn-teal: #306c68;
  --learn-soft: #e8f0ed;
  --learn-border: #dce6e1;
  color: var(--learn-ink);
  max-width: 1440px;
  margin: 0 auto;
}
.learning h1,
.learning h2,
.learning h3 {
  color: var(--learn-ink);
  letter-spacing: -0.035em;
}
.learning h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin: 12px 0 16px;
  font-weight: 650;
}
.learning h2 {
  font-size: 25px;
  line-height: 1.25;
}
.learning p {
  color: #60736e;
  line-height: 1.7;
}
.learn-eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: #47736a;
}
.learn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0 25px;
}
.learn-top p {
  margin: 0;
}
.learn-button {
  border: 1px solid var(--learn-border);
  background: #fff;
  color: var(--learn-ink);
  border-radius: 9px;
  padding: 11px 17px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}
.learn-button:hover {
  background: #eef4f0;
  border-color: #9db7ac;
}
.learn-button.primary {
  color: #fff;
  background: #306c68;
  border-color: #306c68;
}
.learn-button.primary:hover {
  background: #245752;
}
.learn-button.secondary {
  background: transparent;
  white-space: nowrap;
}
.learn-button.quiet {
  background: transparent;
  border-color: transparent;
}
.learn-button:focus-visible,
.learning input:focus-visible,
.learning textarea:focus-visible,
.learning select:focus-visible {
  outline: 3px solid #77a99c;
  outline-offset: 3px;
}
.learn-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 25px;
}
.learn-search {
  font-size: 11px;
  font-weight: 650;
  color: #62766d;
  display: grid;
  gap: 8px;
  min-width: 280px;
}
.learning input:not([type='checkbox']),
.learning textarea,
.learning select {
  display: block;
  border: 1px solid #d5dfd9;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #254239;
  font: inherit;
  max-width: 100%;
  box-sizing: border-box;
}
.learn-search input {
  width: 360px;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}
.learn-card {
  border: 1px solid var(--learn-border);
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  max-width: 470px;
  box-shadow: 0 4px 20px #203e3410;
}
.learn-cover {
  height: 180px;
  background:
    radial-gradient(ellipse at 90% 5%, #d6ddbc 0, transparent 60%),
    linear-gradient(135deg, #164744, #538e7d);
  color: #f5f4dc;
  padding: 25px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.learn-cover:after {
  content: '';
  width: 240px;
  height: 240px;
  border: 1px solid #ffffff35;
  border-radius: 50%;
  position: absolute;
  right: -45px;
  top: 20px;
  box-shadow:
    0 0 0 25px #ffffff08,
    0 0 0 50px #ffffff08;
}
.learn-cover > span {
  font-size: 17px;
  letter-spacing: 0.1em;
}
.learn-cover small {
  font-size: 10px;
  letter-spacing: 0.2em;
  z-index: 1;
}
.learn-cover-symbol {
  position: absolute;
  right: 45px;
  top: 25px;
  font-size: 100px;
  font-weight: 200;
  color: #f5f4dc9c;
}
.learn-card-body {
  padding: 26px;
}
.learn-card-body h2 {
  margin: 13px 0;
}
.learn-card-body > p {
  font-size: 13px;
  min-height: 44px;
}
.learn-card-body > .learn-button {
  width: 100%;
  margin-top: 22px;
}
.learn-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #55796d;
  font-size: 12px;
  margin-top: 22px;
}
.learn-progress progress {
  height: 7px;
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #e6ede7;
}
.learn-progress progress::-webkit-progress-bar {
  background: #e6ede7;
}
.learn-progress progress::-webkit-progress-value {
  background: #5b8f7d;
  border-radius: 5px;
}
.learn-progress progress::-moz-progress-bar {
  background: #5b8f7d;
}
.learn-progress span {
  white-space: nowrap;
}
.learn-footnote {
  text-align: center;
  color: #7c8f83;
  font-size: 12px;
  padding: 50px 0;
}
.learn-course-hero {
  background: linear-gradient(120deg, #e5eee8, #f6f6eb);
  border: 1px solid #dce6db;
  border-radius: 18px;
  margin: 18px 0 30px;
  padding: 38px;
}
.learn-course-hero h1 {
  max-width: 850px;
}
.learn-course-hero > p {
  max-width: 750px;
}
.learn-course-hero .learn-progress {
  max-width: 430px;
}
.learn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.learn-curriculum details {
  background: #fff;
  border: 1px solid var(--learn-border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.learn-curriculum summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}
.learn-curriculum summary small {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  color: #789080;
}
.learn-module-number {
  font-size: 13px;
  background: #edf2ea;
  border: 1px solid #d9e5d9;
  border-radius: 8px;
  padding: 10px;
  color: #648269;
}
.learn-module-body {
  border-top: 1px solid #edf0e9;
  padding: 0 24px 22px;
}
.learn-lesson-title {
  font-size: 12px;
  font-weight: 700;
  color: #829084;
  margin: 24px 0 8px;
}
.learn-page-row {
  display: flex;
  border-bottom: 1px solid #edf1eb;
  align-items: center;
  gap: 10px;
}
.learn-page-row > .quiet {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 14px;
  align-items: center;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 400;
}
.learn-page-row b {
  margin-left: auto;
}
.learn-tag {
  font-size: 10px;
  background: #f5eacb;
  padding: 4px 7px;
  border-radius: 5px;
  margin-left: 6px;
}
.learn-demo-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
  background: #f3f0e5;
  border: 1px solid #e7e0ce;
  padding: 25px;
  border-radius: 12px;
}
.learn-demo-summary h3 {
  margin: 10px 0;
}
.learn-demo-summary p {
  margin: 5px 0;
  font-size: 13px;
}
.learn-demo-summary small {
  color: #8c826b;
}
.learn-reader-header {
  padding: 25px 0 15px;
}
.learn-reader-header h1 {
  font-size: 32px;
  max-width: 960px;
}
.learn-reader-header p {
  font-size: 12px;
}
.learn-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.learn-paper {
  background: #fff;
  border: 1px solid var(--learn-border);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 55px);
  min-width: 0;
}
.learn-copy {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.85;
  color: #354d44;
  margin: 0 0 25px;
}
.learn-copy:first-child {
  font-size: 18px;
  color: #2c5143;
}
.learn-paper figure {
  margin: 28px 0;
}
.learn-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.learn-paper figcaption {
  font-size: 12px;
  color: #7b8c80;
  margin-top: 8px;
}
.learn-video {
  margin: 25px 0;
}
.learn-video video {
  width: 100%;
  background: #1c3936;
  border-radius: 10px;
  aspect-ratio: 16/9;
}
.learn-video p {
  font-size: 12px;
}
.learn-reader-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e2e9e1;
  margin-top: 35px;
  padding-top: 25px;
}
.learn-outline {
  position: sticky;
  top: 25px;
  background: #edf2ed;
  border: 1px solid #dde6da;
  border-radius: 12px;
  padding: 20px;
}
.learn-outline h3 {
  font-size: 16px;
  margin: 0;
}
.learn-outline .learn-progress {
  margin: 15px 0;
}
.learn-outline > .learn-button {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 9px;
  padding: 10px 7px;
  font-size: 11px;
  font-weight: 450;
}
.learn-outline [aria-current] {
  background: #fff !important;
  color: #225f50;
  box-shadow: 0 1px 5px #132e2410;
}
.learn-outline > .learn-button > span {
  font-size: 10px;
  color: #6a8e78;
}
.learn-demo {
  background: #f7f4e8;
  border: 1px solid #e7dfc8;
  border-radius: 12px;
  padding: 26px;
  margin: 15px 0;
}
.learn-demo p {
  font-size: 13px;
}
.learn-notice {
  border: 1px solid #e4dfcc;
  background: #faf7ed;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.6;
}
.learn-loading {
  padding: 40px;
  color: #6a7e71;
}
.learn-attachment {
  display: block;
  background: #edf2ec;
  padding: 18px;
  border-radius: 8px;
  color: #2b6652;
}
.learn-editor {
  padding: 5px;
  max-width: 820px;
}
.learn-editor-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.learn-field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 18px;
}
.learn-field input,
.learn-field textarea {
  width: 100%;
}
.learn-field textarea {
  min-height: 120px;
  resize: vertical;
}
.learn-check {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
}
.learn-block {
  border: 1px solid #d5e1d6;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  background: #f6f8f3;
}
.learn-block legend {
  font-size: 12px;
  color: #557259;
  padding: 0 8px;
}
.learn-block label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12px;
}
.learn-block textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}
.learn-block select {
  width: 100%;
}
.learn-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 1000px) {
  .learn-reader {
    grid-template-columns: minmax(0, 1fr);
  }
  .learn-outline {
    position: static;
  }
  .learn-top {
    align-items: start;
  }
  .learn-outline > .learn-button {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .learn-top,
  .learn-toolbar,
  .learn-demo-summary {
    flex-direction: column;
    align-items: stretch;
  }
  .learn-search input {
    width: 100%;
  }
  .learn-grid {
    grid-template-columns: 1fr;
  }
  .learn-card {
    max-width: none;
  }
  .learn-course-hero {
    padding: 24px;
  }
  .learn-curriculum summary {
    padding: 16px;
    gap: 12px;
  }
  .learn-curriculum summary small {
    display: none;
  }
  .learn-editor-pair {
    grid-template-columns: 1fr;
  }
  .learn-reader-footer {
    flex-wrap: wrap;
  }
  .learn-reader-header h1 {
    font-size: 26px;
  }
  .learn-page-row {
    align-items: start;
    flex-wrap: wrap;
  }
}

/* Durchgängiger Arbeitsbereich: Inhalt links, derselbe Kursbaum auf jeder Ebene rechts. */
.learn-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.learn-main {
  min-width: 0;
}
.learn-tree {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 20px;
}
.learn-tree details {
  border: 0;
  margin: 6px 0;
}
.learn-tree summary {
  display: flex;
  align-items: start;
  cursor: pointer;
}
.learn-tree summary::before {
  content: '›';
  padding-top: 9px;
}
.learn-tree details[open] > summary::before {
  content: '⌄';
}
.learn-tree-children {
  margin-left: 13px;
  padding-left: 10px;
  border-left: 1px solid var(--learn-border);
}
.learn-tree .learn-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  font-size: 12px;
  padding: 8px;
  min-height: 34px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.learn-tree .learn-button[aria-current] {
  background: var(--learn-soft);
  color: #193b3c;
  box-shadow: inset 3px 0 #306c68;
  font-weight: 750;
}
.learn-tree small {
  display: block;
  color: #7a6b4b;
}
.learn-tree-root {
  font-weight: 750;
  margin-top: 12px;
}
.learn-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin: 10px 0 24px;
  font-size: 12px;
}
.learn-breadcrumb .learn-button {
  font-size: 12px;
  padding: 5px;
}
.learn-level-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.learn-level-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid var(--learn-border);
  border-radius: 16px;
  padding: 20px;
}
.learn-level-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.learn-level-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.learn-level-card h2 .learn-button {
  padding: 0;
  text-align: left;
  font-size: inherit;
}
.learn-level-card small {
  color: #64766e;
}
.learn-level-card .learn-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.learn-level-card[draggable] {
  cursor: pointer;
}
.drag-over {
  outline: 2px dashed #306c68;
  outline-offset: 3px;
  background: #e8f0ed;
}
.learn-node-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
}
.learn-course-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 24px;
  flex: 0 0 auto;
  max-width: 30%;
}
.learn-cover {
  position: relative;
  overflow: hidden;
}
.learn-cover > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.learn-cover > small {
  position: relative;
  background: #f8faf8e8;
  padding: 6px 10px;
  border-radius: 20px;
}
.learn-editor-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
}
.learn-editor {
  max-width: none;
}
.learn-editor fieldset,
#learn-test fieldset {
  border: 1px solid var(--learn-border);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.learn-format {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--learn-border);
  background: #f4f7f5;
  border-radius: 12px 12px 0 0;
}
.learn-format .learn-button {
  padding: 7px 10px;
  font-size: 13px;
}
.learn-editable {
  min-height: 360px;
  background: white;
  border: 1px solid var(--learn-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 26px;
  outline-color: #306c68;
}
.learn-richtext {
  overflow-wrap: anywhere;
  line-height: 1.75;
  color: #28443e;
}
.learn-richtext img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}
.learn-richtext h1 {
  font-size: 32px;
  font-weight: 750;
}
.learn-richtext h2 {
  font-size: 25px;
  font-weight: 750;
}
.learn-richtext p {
  color: inherit;
}
.learn-drop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 30px 16px;
  border: 2px dashed #b8ccc3;
  background: #f4f8f5;
  border-radius: 15px;
  margin: 16px 0;
  cursor: pointer;
}
.learn-drop span {
  font-size: 13px;
  color: #61766c;
}
.learn-drop input {
  max-width: 100%;
}
.learn-file-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--learn-border);
}
.learn-file-row span {
  overflow-wrap: anywhere;
}
.learn-file-row small {
  color: #72837c;
}
.learn-editor-footer {
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: 12px;
  padding: 14px;
  background: #f4f8f5f5;
  border: 1px solid var(--learn-border);
  border-radius: 12px;
  margin-top: 24px;
}
.learn-materials video {
  width: 100%;
  max-height: 600px;
  border-radius: 12px;
  background: #173833;
}
.learn-materials audio {
  width: 100%;
}
.learn-materials figure {
  margin: 20px 0;
}
.learn-preview-banner {
  background: #fff3d7;
  border: 1px solid #ead3a0;
  color: #796027;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 14px 0;
}
.learn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--learn-border);
  border-radius: 14px;
  background: white;
}
.learn-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.learn-table th {
  background: #eaf1ed;
  padding: 15px;
  color: #3d6155;
}
.learn-table td {
  padding: 13px 15px;
  border-top: 1px solid var(--learn-border);
}
.learn-table tr[data-row-id] {
  cursor: pointer;
}
.learn-table tr.unread {
  background: #e8f3ef;
  font-weight: 650;
}
.learn-table tr.selected {
  outline: 2px solid #487a68;
  outline-offset: -2px;
  background: #e2ede6;
}
.learn-table-hint {
  font-size: 12px;
}
.learn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 10px 0 36px;
}
.learn-stats article {
  padding: 24px;
  background: white;
  border: 1px solid var(--learn-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.learn-stats strong {
  font-size: 42px;
  color: #306c68;
}
.learn-stats span {
  font-size: 14px;
  color: #61796d;
}
.learn-dashboard-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.learn-dashboard-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 18px;
}
.learn-dashboard-courses article {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--learn-border);
  padding: 24px;
}
.learn-report-course {
  border-bottom: 1px solid var(--learn-border);
  padding: 12px 0;
}
.learn-goals,
.learn-message {
  white-space: pre-wrap;
}
.learn-people {
  font-size: 13px;
  color: #61796d;
  margin: 16px 0;
}
.learn-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.learn-button.danger {
  color: #a03232;
}
#learn-image-controls {
  padding: 16px;
  background: #e8f0ed;
  border-radius: 12px;
  margin-top: 10px;
}
#learn-image-controls input {
  max-width: 160px;
}
@media (max-width: 1100px) {
  .learn-workspace {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .learn-level-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .learn-workspace {
    display: flex;
    flex-direction: column-reverse;
  }
  .learn-tree {
    position: static;
    max-height: 280px;
    width: 100%;
    box-sizing: border-box;
  }
  .learn-main {
    width: 100%;
  }
  .learn-stats {
    grid-template-columns: 1fr;
  }
  .learn-level-card .learn-actions {
    width: 100%;
    justify-content: start;
  }
}

/* Die globalen Portal-details haben höhere Spezifität; der Kursbaum bleibt bewusst kompakt. */
#portal .learn-tree details {
  border: 0;
  margin: 3px 0;
}
#portal .learn-tree summary {
  padding: 0;
  color: var(--learn-ink);
}
#portal .learn-tree summary small {
  position: static;
  font-size: 10px;
  margin-left: 6px;
}
#portal .learn-tree summary::-webkit-details-marker {
  display: none;
}
#portal .learning input[type='radio'] {
  display: inline-block;
  padding: 0;
  width: auto;
}

/* Einheitliche Aktionsleisten und klar lesbare Zugangszuordnung. */
#portal .learning .learn-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#portal .learning .learn-button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  line-height: 22px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
#portal .learning .learn-actions > .learn-button,
#portal .learning .learn-actions > .learn-actions > .learn-button {
  height: 44px;
}
#portal .learn-tree .learn-button {
  min-height: 34px;
  padding: 6px 8px;
  height: auto;
  justify-content: flex-start;
  line-height: 1.4;
}
#portal .learn-format .learn-button {
  min-height: 36px;
  height: 36px;
  min-width: 36px;
  padding: 5px 10px;
}
#portal .learn-format svg {
  display: block;
  flex: none;
}
#portal .learn-choice-wrap {
  overflow-x: auto;
  border: 1px solid #d4e1da;
  border-radius: 12px;
  margin: 16px 0;
  background: #fff;
}
#portal .learn-choice-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
#portal .learn-choice-table th {
  background: #eaf1ed;
  font-size: 12px;
  color: #365b50;
  padding: 12px 16px;
}
#portal .learn-choice-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid #e2eae5;
  color: #254239;
}
#portal .learn-choice-table th:first-child,
#portal .learn-choice-table td:first-child {
  width: 72px;
  text-align: center;
}
#portal .learn-choice-table td:last-child {
  font-size: 13px;
  color: #56665d;
}
#portal .learn-choice-table input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #306c68;
  cursor: pointer;
}
#portal .learn-check {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  line-height: 1.5;
}
#portal .learn-dependency p {
  font-size: 13px;
  margin: 4px 0 0;
}
#portal .learn-richtext,
#portal .learn-copy {
  color: #000;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
}
#portal .learn-richtext p,
#portal .learn-richtext div,
#portal .learn-richtext span,
#portal .learn-richtext li {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
#portal .learn-richtext h1,
#portal .learn-richtext h2 {
  color: #000;
  font-family: inherit;
}
#portal .learn-richtext p {
  margin: 0 0 1em;
}
#portal .learn-richtext a,
#portal .learn-copy a {
  color: #175e9a;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

#portal .learn-editor fieldset {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#portal .learn-choice-wrap {
  min-width: 0;
  max-width: 100%;
}
#portal .learn-choice-table {
  table-layout: fixed;
}
#portal .learn-choice-table th,
#portal .learn-choice-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
#portal .learn-choice-table th:nth-child(2) {
  width: 30%;
}
#portal .learn-choice-table th:first-child,
#portal .learn-choice-table td:first-child {
  width: 94px;
}
#portal .learn-choice-table th:first-child {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Aufgaben und manuelle Prüfung verwenden dieselben ruhigen Portalflächen. */
.learning .learn-task {
  position: relative;
  padding: 24px;
  margin: 22px 0;
  border: 1px solid #d6e2e8;
  border-radius: 14px;
  background: #f8fbfc;
}
.learning .learn-task legend {
  font-weight: 650;
  padding: 0 8px;
}
.learning .learn-gap-context {
  line-height: 2.8;
  white-space: pre-wrap;
}
.learning .learn-gap-context input {
  width: min(260px, 100%);
  padding: 8px 12px;
  border: 1px solid #8cabb9;
  border-radius: 8px;
  background: white;
}
.learning .learn-task textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #8cabb9;
  border-radius: 8px;
  box-sizing: border-box;
  font: inherit;
}
.learning .learn-sort {
  padding-left: 28px;
}
.learning .learn-sort li {
  padding: 10px;
  margin: 8px 0;
  background: white;
  border: 1px solid #d6e2e8;
  border-radius: 8px;
}
.learning .learn-sort li span {
  display: inline-block;
  width: calc(100% - 105px);
  vertical-align: middle;
}
.learning .learn-attempts article {
  border-left: 3px solid #397e94;
  padding: 12px 18px;
  margin: 12px 0;
  background: #f0f6f8;
}
.learning .learn-attempts small {
  display: block;
  margin-top: 6px;
}
.learning .learn-review section {
  border-bottom: 1px solid #d6e2e8;
  padding: 16px 0;
}
.learning .learn-review video {
  width: 100%;
  max-height: 480px;
  background: #142933;
  border-radius: 12px;
}
.learning [hidden] {
  display: none !important;
}

/* Seitenaufgaben ohne doppelte Papierpolster; Bedienelemente bleiben nebeneinander. */
.learning .learn-paper #learn-test {
  padding: 0;
  border: 0;
  background: transparent;
}
.learning .learn-gap-context input {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.4;
}
.learning .learn-sort {
  padding-left: 0;
  counter-reset: learning-order;
}
.learning .learn-sort li {
  display: grid;
  grid-template-columns: 1.2em minmax(0, 1fr) 44px 44px;
  gap: 8px;
  align-items: center;
  counter-increment: learning-order;
}
.learning .learn-sort li::before {
  content: counter(learning-order) '.';
  color: var(--learn-teal);
}
.learning .learn-sort li span {
  width: auto;
  overflow-wrap: anywhere;
}
#portal .learning .learn-sort .learn-button {
  padding: 8px;
  width: 44px;
}

/* Einheitliche Antwortzeilen: Auswahl, breites Textfeld bzw. Text und optional Entfernen. */
#portal .learning .learn-answers-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
}
#portal .learning .learn-answers-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--learn-border);
  vertical-align: top;
  text-align: left;
}
#portal .learning .learn-answers-table .learn-answer-control {
  width: 28px;
  padding-top: 18px;
}
#portal .learning .learn-answers-table input[type='checkbox'],
#portal .learning .learn-answers-table input[type='radio'] {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  margin: 0;
  accent-color: #306c68;
  cursor: pointer;
  box-shadow: none;
}
#portal .learning .learn-answers-table .learn-answer-remove {
  width: 36px;
}
#portal .learning .learn-answers-table [data-answer-remove] {
  display: inline-flex;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
#portal .learning .learn-editor-answers textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  color: var(--learn-ink);
  background: #fff;
}
#portal .learning .learn-participant-answers label {
  color: var(--learn-ink);
  display: block;
  width: auto;
  margin: 0;
  padding: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.learn-content-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.learn-content-heading > div {
  min-width: 0;
}
.learn-content-heading h1 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.learn-section-group {
  margin-top: 28px;
}
.learn-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--learn-border);
  padding-bottom: 12px;
}
.learn-section-heading h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
}
.learn-section-lessons {
  margin-left: 24px;
}
.learn-tree-section-title {
  display: block;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
}
.learn-level-card {
  position: relative;
}
.learn-level-card .learn-node-link {
  position: static;
}
.learn-level-card[data-learn-card] {
  cursor: pointer;
}
.learn-level-card[data-learn-card]:hover {
  border-color: #9db7ac;
}
.learn-level-card .learn-actions {
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) {
  .learn-content-heading {
    gap: 14px;
  }
  .learn-course-icon {
    width: 88px;
    height: 88px;
  }
  .learn-section-lessons {
    margin-left: 14px;
  }
}

.learn-card-status {
  display: block;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.learn-card[data-course] {
  cursor: pointer;
}
.learn-card[data-course]:hover {
  border-color: #9db7ac;
}
.learn-card[data-course]:focus-visible {
  outline: 3px solid #77a99c;
  outline-offset: 3px;
}
.learn-card[data-course-drag] {
  cursor: pointer;
}
.learn-card[data-course-drag]:active {
  cursor: grabbing;
}

.learn-drag-preview-host {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
}
.learn-drag-preview {
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  box-shadow: none;
}

/* Linkhand beim Überfahren; Greifhand erst beim Festhalten oder Ziehen. */
#portal .learning :is(.learn-card[data-course], .learn-level-card, .learn-section-heading),
#portal .learning :is(.learn-card[data-course], .learn-level-card, .learn-section-heading) * {
  cursor: pointer;
}
#portal
  .learning
  :is(.learn-card, .learn-level-card, .learn-section-heading)[draggable='true']:active,
#portal
  .learning
  :is(.learn-card, .learn-level-card, .learn-section-heading)[draggable='true']:active
  * {
  cursor: grabbing;
}
html.learn-dragging,
html.learn-dragging * {
  cursor: grabbing !important;
}

.learn-dashboard-courses [data-dashboard-course],
.learn-dashboard-courses [data-dashboard-course] * {
  cursor: pointer;
}
.learn-dashboard-courses [data-dashboard-course]:hover {
  border-color: #9db7ac;
}
.learn-dashboard-courses [data-dashboard-course]:focus-visible {
  outline: 3px solid #77a99c;
  outline-offset: 3px;
}

/* Lernkarten bleiben beim Überfahren ruhig; keine Bewegung der enthaltenen Schaltflächen. */
#portal .learning .learn-button,
#portal .learning .learn-button:hover {
  transform: none;
  transition-property: background-color, border-color, color;
}
#portal .learning .learn-level-card .learn-node-link,
#portal .learning .learn-level-card .learn-node-link:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.learn-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.learn-path-card,
.learn-badges article {
  background: #fff;
  border: 1px solid var(--learn-border);
  border-radius: 16px;
  padding: 24px;
}
.learn-path-card[role='link'],
[data-path-course],
[data-path-drag] {
  cursor: pointer;
}
.learn-path-card:focus-visible,
[data-path-course]:focus-visible {
  outline: 3px solid #77a99c;
  outline-offset: 3px;
}
.learn-path-card:hover {
  border-color: #9db7ac;
}
.learn-path-badge {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}
.learn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.learn-badges strong,
.learn-badges small {
  display: block;
}
#learn-path-course-choice {
  max-width: 100%;
}
#learn-path-editor .learn-level-card {
  overflow: hidden;
}
