/* Reasoning-Stufen: Rahmenkarten für Stufentabelle und Beispiel. Gilt nur in diesem Artikel. */
.level-card {
  --lc-line: rgba(31, 24, 20, .14);
  margin: 34px 0 12px;
  background: #fff;
  border: 1px solid var(--lc-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(31, 24, 20, .05), 0 18px 40px -24px rgba(31, 24, 20, .30);
  overflow: hidden;
  font-family: var(--bm-sans, "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif);
}
.level-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #1ccfee 0%, #6c8cff 40%, #a56bff 62%, #ffb04d 100%);
}
.level-card__head { padding: 20px 26px 16px; background: #fff; }
body.blog-modern-article .article-copy .level-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bm-ink, #1f1814);
}
body.blog-modern-article .article-copy .level-card__sub {
  margin: 5px 0 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--bm-slate, #6b6058);
}
.level-card .level-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.5;
  background: #fff;
}
.level-table thead th {
  padding: 10px 26px;
  text-align: left;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--bm-slate, #6b6058);
  background: #faf8f5;
  border-top: 1px solid var(--lc-line);
  border-bottom: 1px solid var(--lc-line);
}
body.blog-modern-article .article-copy .level-table tbody th,
body.blog-modern-article .article-copy .level-table tbody td {
  padding: 18px 26px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--bm-text, #332b26);
  border-top: 1px solid var(--lc-line);
}
body.blog-modern-article .article-copy .level-table tbody tr:first-child th,
body.blog-modern-article .article-copy .level-table tbody tr:first-child td { border-top: 0; }
.level-table tbody tr:hover { background: #fcfaf7; }
.level-table--levels tbody th { width: 21%; }
.level-table--example tbody th {
  width: 36%;
  font-weight: 600;
  color: var(--bm-ink, #1f1814);
}
.level-table--example tbody td:nth-child(2) { width: 17%; white-space: nowrap; }

/* Stufen-Chip und Balken */
.lvl {
  --lvl: #9a9189; --lvl-ink: #5d544c; --lvl-bg: #f3f0eb;
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--lvl) 45%, #fff);
  border-radius: 999px;
  background: var(--lvl-bg);
  color: var(--lvl-ink);
  font: 650 .84rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em;
}
.lvl--low    { --lvl: #1ccfee; --lvl-ink: #0b6f84; --lvl-bg: #e6f9fd; }
.lvl--medium { --lvl: #5b8dff; --lvl-ink: #2a4fb8; --lvl-bg: #edf2ff; }
.lvl--high   { --lvl: #a56bff; --lvl-ink: #6b34c2; --lvl-bg: #f3ecff; }
.lvl--xhigh  { --lvl: #f08a24; --lvl-ink: #9a5200; --lvl-bg: #fff1e1; }
.lvl--max    { --lvl: #e5532d; --lvl-ink: #a52f12; --lvl-bg: #ffece6; }
.lvl.lvl--none { border-style: dashed; }
.lvl-meter { display: flex; gap: 4px; margin-top: 10px; }
.lvl-meter i {
  display: block;
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: #ebe5dc;
}
.lvl-meter i.on { background: var(--lvl); }
.level-table tr.is-na td,
.level-table tr.is-na th { background: #fcfbf9; }
.level-table tr.is-na td { color: var(--bm-slate, #6b6058); }
.lvl-note { font-size: .86rem; color: var(--bm-slate, #6b6058); }

.level-card__foot {
  padding: 13px 26px 16px;
  border-top: 1px solid var(--lc-line);
  background: #fcfaf7;
  font-size: .83rem;
  line-height: 1.5;
  color: var(--bm-slate, #6b6058);
}
body.blog-modern-article .article-copy .level-card__foot p { margin: 0; font-size: .83rem; line-height: 1.5; color: var(--bm-slate, #6b6058); }

/* Hinweiskasten */
.level-note {
  margin: 28px 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--lc-line, rgba(31, 24, 20, .14));
  border-left: 4px solid var(--cat, #e6007e);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(31, 24, 20, .05), 0 14px 32px -24px rgba(31, 24, 20, .28);
}
body.blog-modern-article .article-copy .level-note p { margin: 0; font-size: 1rem; line-height: 1.6; }

.level-card .vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .level-card__head { padding: 18px 18px 14px; }
  .level-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .level-table, .level-table tbody, .level-table tr, .level-table th, .level-table td { display: block; width: auto !important; }
  .level-table tbody tr { padding: 16px 18px; border-top: 1px solid var(--lc-line); }
  .level-table tbody tr:first-child { border-top: 0; }
  body.blog-modern-article .article-copy .level-table tbody th, body.blog-modern-article .article-copy .level-table tbody td { padding: 0; border-top: 0; white-space: normal !important; }
  body.blog-modern-article .article-copy .level-table tbody td { margin-top: 10px; }
  body.blog-modern-article .article-copy .level-table tbody tr:first-child th, body.blog-modern-article .article-copy .level-table tbody tr:first-child td { border-top: 0; }
  .level-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: .7rem;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--bm-slate, #6b6058);
  }
  .level-card__foot { padding: 12px 18px 14px; }
}

/* Modellvergleich, Begriffskasten, Codebeispiel */
.level-table--models tbody th { width: 24%; font-weight: 600; color: var(--bm-ink, #1f1814); }
.level-table--models tbody th code { font-size: .78rem; font-weight: 400; color: var(--bm-slate, #6b6058); background: none; padding: 0; }
.level-table tr.is-focus th, .level-table tr.is-focus td { background: #fff8ee; }
.level-table tr.is-focus th { box-shadow: inset 4px 0 0 #ffb04d; }
body.blog-modern-article .article-copy .level-glossary dl { margin: 8px 0 0; }
body.blog-modern-article .article-copy .level-glossary dt { margin-top: 10px; font-weight: 650; color: var(--bm-ink, #1f1814); }
body.blog-modern-article .article-copy .level-glossary dd { margin: 2px 0 0; font-size: 1rem; line-height: 1.55; }
body.blog-modern-article .article-copy .level-code { margin: 16px 0 24px; padding: 16px 20px; overflow-x: auto; background: #faf8f5; border: 1px solid rgba(31, 24, 20, .14); border-radius: 12px; font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2b211b; }
body.blog-modern-article .article-copy .level-code code { background: none; padding: 0; font: inherit; }
@media (max-width: 720px) {
  .level-table--models tbody th { width: auto !important; }
  .level-table tr.is-focus th { box-shadow: none; }
  .level-table tr.is-focus { box-shadow: inset 4px 0 0 #ffb04d; }
}

body.blog-modern-article .article-copy { min-width: 0; }
body.blog-modern-article .article-copy .level-code { max-width: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; }
