.workshop {
  --ws-plum: #43153d;
  --ws-blue: #5065bd;
  --ws-green: #58b680;
  --ws-green-ink: #256344;
  --ws-ink: #343a40;
  --ws-muted: #64646e;
  --ws-border: #e4e1e9;
  --ws-paper: #fff;
  color: var(--ws-ink);
  font-family: Figtree, Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.45;
  margin: 1rem 0 2rem;
  scroll-margin-top: calc(var(--ws-header-height, 0px) + 16px);
}
.workshop *, .workshop *::before, .workshop *::after { box-sizing: border-box; }
.workshop [hidden] { display: none !important; }
.workshop button, .workshop input { font: inherit; }
.workshop button { touch-action: manipulation; }
.workshop button:focus-visible, .workshop input:focus-visible {
  outline: 3px solid var(--ws-blue); outline-offset: 4px;
}
.workshop :is(h2, h3) { border: 0; padding: 0; color: var(--ws-plum); }
.workshop .ws-heading { font-size: clamp(1.3rem, 2.3vw, 1.55rem); line-height: 1.2; font-weight: 550; margin: 0 0 .8rem; }
.workshop .ws-heading:focus { outline: none; }
.workshop p { margin-top: 0; }
.ws-progress { padding: .65rem 0; background: var(--ws-paper); margin-bottom: .85rem; }
.ws-progress-caption, .ws-stages { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; }
.ws-progress-caption { color: var(--ws-plum); font-weight: 600; }
#ws-progress-label { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
#ws-progress-count { flex-shrink: 0; }
.ws-progress progress { display: block; width: 100%; height: 6px; margin: .45rem 0; border: 0; border-radius: 10px; overflow: hidden; background: #efedf2; color: var(--ws-green); }
.ws-progress progress::-webkit-progress-bar { background: #efedf2; }
.ws-progress progress::-webkit-progress-value { background: var(--ws-green); transition: width .25s; }
.ws-progress progress::-moz-progress-bar { background: var(--ws-green); }
.ws-stages { color: var(--ws-muted); }
.ws-stages span { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.ws-stages span:nth-child(2) { text-align: center; }
.ws-stages span:last-child { text-align: right; }
.ws-stages .is-current { color: var(--ws-plum); font-weight: 600; }
.ws-panel { padding: clamp(1rem, 2.5vw, 1.4rem); border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-paper); }
.ws-intro { background: linear-gradient(120deg, #f5f2f7, #f2f8f4); padding-top: 1.8rem; padding-bottom: 1.8rem; }
.ws-kicker { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 650; color: var(--ws-muted); margin-bottom: .6rem; }
.ws-lead { font-size: 1rem; max-width: 40rem; }
.ws-button { display: inline-flex; gap: 1.2rem; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .95rem; margin-top: .5rem; border: 1px solid var(--ws-plum); border-radius: 8px; background: var(--ws-plum); color: #fff; font-weight: 550; cursor: pointer; }
.ws-button:hover:not(:disabled) { background: #602157; }
.ws-button:disabled { border-color: #d5d1da; background: #ece9ef; color: #77717c; cursor: not-allowed; }
.ws-button-secondary { color: var(--ws-plum); background: var(--ws-paper); }
.ws-button-secondary:hover:not(:disabled) { background: #f4eff5; }
.ws-question { font-size: 1rem; margin-bottom: 1rem; }
.ws-age { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: #eef0fc; color: var(--ws-blue); font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.ws-estimate-box { background: #f7f7fb; border-radius: 9px; padding: .85rem; margin-bottom: .6rem; }
.ws-estimate-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ws-number-wrap { display: flex; align-items: baseline; gap: .3rem; font-size: 1.3rem; color: var(--ws-plum); }
.ws-number-wrap output { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 3ch; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-range { width: 100%; min-height: 44px; margin: .25rem 0 0; accent-color: var(--ws-blue); cursor: pointer; }
.ws-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ws-muted); }
.ws-feedback { min-width: 0; }
.ws-result-values { margin-bottom: .65rem; }
.ws-result-values div { background: #eef7f1; border-radius: 8px; padding: .6rem .85rem; color: var(--ws-green-ink); }
.ws-result-values span { display: block; font-size: .8rem; }
.ws-result-values strong { display: block; font-size: 1.55rem; font-weight: 650; }
.ws-question-workspace.is-revealed { display: grid; gap: .55rem; align-items: start; }
.ws-answer-arrow { width: 32px; height: 32px; justify-self: center; transform: rotate(90deg); color: var(--ws-plum); }
.ws-answer-arrow svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ws-question-panel p { margin-bottom: .65rem; }
.ws-question-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.workshop .ws-question-title .ws-heading, .ws-question-title .ws-age { margin: 0; }
.ws-question-panel .ws-feedback .ws-button { margin-top: .15rem; }
@media (min-width: 700px) {
  .ws-question-workspace.is-revealed { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: .7rem; }
  .ws-answer-arrow { transform: none; margin-top: 2.8rem; }
}
.ws-note, .ws-source { font-size: .76rem; color: var(--ws-muted); }
.ws-source { margin-top: 1rem !important; margin-bottom: 0; }
.workshop a { color: var(--ws-blue); text-decoration: underline; text-underline-offset: 3px; }
.ws-chart-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: start; margin-bottom: .25rem; }
.ws-legend { display: grid; gap: .22rem; max-width: 7.5rem; font-size: .58rem; line-height: 1.3; color: var(--ws-muted); }
.ws-legend span { display: flex; align-items: baseline; gap: .3rem; }
.ws-key { width: 7px; height: 7px; flex: 0 0 7px; display: inline-block; border-radius: 50%; background: #c0c8f2; border: 1px solid #8d99c8; }
.ws-key-you { background: var(--ws-plum); border-color: var(--ws-plum); }
.ws-key-study { border-radius: 0; background: var(--ws-green); border-color: var(--ws-green-ink); transform: rotate(45deg); }
.ws-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ws-chart-card { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; border: 1px solid var(--ws-border); border-radius: 10px; padding: 1rem; margin: 0; }
@container (max-width: 260px) {
  .ws-chart-heading { grid-template-columns: 1fr; gap: .35rem; }
  .ws-legend { justify-self: end; }
  .ws-plot .ws-plot-value { font-size: 17px; }
}
.workshop .ws-chart-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.ws-chart-context { font-size: .72rem; color: var(--ws-muted); margin-bottom: .25rem; }
.ws-chart-card svg { display: block; width: 100%; height: auto; margin-top: auto; overflow: visible; }
.ws-plot.is-waiting .ws-plot-mark { transform: translateX(var(--ws-from)); opacity: 0; }
.ws-plot.is-animating .ws-plot-mark { animation: ws-distribute var(--ws-duration) cubic-bezier(.42, 0, .22, 1) var(--ws-delay) both; }
@keyframes ws-distribute {
  from { transform: translateX(var(--ws-from)); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}
.ws-plot-value { font-size: 14px; font-weight: 650; paint-order: stroke fill; stroke: white; stroke-width: 3px; stroke-linejoin: round; }
.workshop .ws-reflection { border-left: 3px solid var(--ws-green); padding: .5rem 0 .5rem 1.15rem; margin: 1.5rem 0 1rem; }
.ws-ranking-list { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 0; margin: 1rem 0; list-style: none; }
.ws-ranking-list, .ws-ranking-list *, .ws-drag-preview, .ws-drag-preview * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ws-ranking-item { position: relative; display: flex; align-items: center; gap: .65rem; padding: .25rem .7rem; border: 1px solid var(--ws-border); border-radius: 9px; background: #fff; margin: 0; min-height: 54px; }
.ws-ranking-item.is-dragging { border: 1px dashed #a7afd6; background: #f5f5fb; }
.ws-ranking-item.is-dragging > * { visibility: hidden; }
.ws-ranking-item.is-dragging::after { content: "Hier ablegen"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ws-muted); font-size: .8rem; }
.workshop.is-sorting, .workshop.is-sorting * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.workshop .ws-drag-preview { position: fixed; z-index: 1100; margin: 0; pointer-events: none; border: 2px solid var(--ws-blue); box-shadow: 0 12px 30px #43153d30, 0 2px 6px #43153d18; will-change: transform; opacity: .97; }
.ws-drag-preview .ws-move-buttons { opacity: .3; }
.ws-drag-preview::after { content: attr(data-drop-label); position: absolute; right: .6rem; bottom: -.8rem; border-radius: 5px; padding: .15rem .5rem; background: var(--ws-blue); color: #fff; font-size: .68rem; font-weight: 600; }
.ws-drag-preview.is-outside { border-color: var(--ws-muted); }
.ws-drag-preview.is-outside::after { background: var(--ws-muted); }
.ws-position { flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f1edf4; color: var(--ws-plum); font-size: .85rem; font-weight: 650; }
.ws-risk-name { flex: 1; min-width: 0; font-size: .91rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.ws-risk-info { flex: 0 0 30px; width: 30px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ws-plum); cursor: pointer; }
.ws-risk-info span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: .75rem; font-weight: 600; }
.ws-risk-info:hover { background: #f1edf4; border-radius: 5px; }
.ws-risk-dialog { width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.4rem; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-paper); color: var(--ws-ink); font: inherit; }
.ws-risk-dialog::backdrop { background: #24152666; }
.workshop .ws-risk-dialog h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.ws-drag-handle { border: 0; padding: 0; background: transparent; color: #777; min-width: 30px; min-height: 44px; font-size: 1.5rem !important; cursor: grab; touch-action: none !important; }
.ws-move-buttons { display: flex; flex-shrink: 0; gap: .15rem; }
.workshop .ws-move { width: 32px; min-height: 32px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ws-muted); font-size: .8rem; cursor: pointer; }
.ws-move:disabled { opacity: .25; cursor: default; }
.ws-move:hover:not(:disabled) { background: #f1edf4; color: var(--ws-plum); }
.ws-comparison-panel { container: ws-comparison-panel / inline-size; }
.ws-comparison { --ws-row-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1.12fr); margin-top: 1.2rem; }
.workshop .ws-comparison-heading { font-size: .85rem; font-weight: 650; color: var(--ws-plum); margin: 0 0 .85rem; align-self: end; }
.ws-comparison-heading:last-of-type { grid-column: 3; }
.ws-comparison-list { list-style: none; padding: 0; margin: 0; }
.ws-comparison-card { height: var(--ws-row-height); display: flex; align-items: center; }
.ws-rank-card { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: calc(var(--ws-row-height) - 10px); padding: .6rem; text-align: left; color: var(--ws-ink); background: #faf9fc; border: 1px solid #eeecf2; border-radius: 10px; }
.ws-rank-copy { display: block; min-width: 0; flex: 1; }
.ws-comparison-card strong { display: block; font-size: .78rem; font-weight: 550; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.ws-comparison-card small { display: block; font-size: .65rem; color: var(--ws-muted); margin-top: .25rem; }
.ws-comparison-card small.ws-correct { color: var(--ws-green-ink); }
.ws-rank-number { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 2px solid var(--risk-color); border-radius: 50%; background: white; color: var(--ws-plum); font-size: .78rem; font-weight: 650; }
.ws-own-rank { border-right: 3px solid var(--risk-color); }
.ws-actual-rank { border-left: 3px solid var(--risk-color); background: #f6faf7; }
.ws-rank-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.ws-comparison-card .ws-percent { font-size: 1.12rem; line-height: 1.2; font-weight: 650; color: var(--ws-green-ink); }
.ws-risk-bar { display: block; height: 4px; background: #e5eae7; border-radius: 5px; overflow: hidden; margin-top: .3rem; }
.ws-risk-bar i { display: block; height: 100%; width: var(--risk-percent); background: var(--risk-color); border-radius: inherit; }
.ws-connections { width: 100%; height: calc(var(--ws-risk-count) * var(--ws-row-height)); }
.ws-connections path { stroke-linecap: round; }
.ws-ranking-summary { background: #eef7f1; border-radius: 10px; padding: 1rem; margin: 1.3rem 0; color: var(--ws-green-ink); }
.ws-end { border-top: 1px solid var(--ws-border); padding-top: 1.2rem; margin-top: 1.5rem; }
.ws-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.ws-closing-panel { container-type: inline-size; }
.workshop .ws-recap-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.4rem 0 2rem; }
.workshop .ws-recap-table caption { caption-side: top; text-align: left; color: var(--ws-plum); font-size: 1.1rem; font-weight: 550; padding: 0 0 .25rem; }
.workshop .ws-recap-table :is(th, td) { padding: 1rem 0; border-bottom: 1px solid var(--ws-border); vertical-align: middle; }
.workshop .ws-recap-table th { width: 54%; padding-right: 1.5rem; text-align: left; font-weight: 400; line-height: 1.55; }
.ws-recap-table tr:last-child :is(th, td) { border-bottom: 0; }
.ws-recap-figure { max-width: 280px; margin: 0 0 0 auto; text-align: center; }
.ws-recap-visual { display: flex; justify-content: center; align-items: center; min-width: 0; height: 144px; padding: .45rem; border: 1px solid var(--ws-border); border-radius: 10px; background: #fcfbfd; }
.ws-recap-visual svg { display: block; flex: 0 1 auto; width: 100%; min-width: 0; max-width: 270px; height: 126px; overflow: visible; }
.ws-recap-profile svg { width: 110px; height: auto; max-height: 85px; padding: .35rem; background: white; border: 1px solid var(--ws-border); border-radius: 7px; }
.workshop .ws-recap-figure figcaption { display: grid; place-items: center; min-height: 2.7em; font-size: .64rem; line-height: 1.35; color: var(--ws-muted); margin-top: .4rem; }
.workshop .ws-explore-heading { font-size: 1.2rem; margin: 0 0 .65rem; }
.ws-topics { list-style: disc; padding-left: 1.15rem; margin: .5rem 0 1.5rem; }
.ws-topics li { margin: 0; border-bottom: 1px solid var(--ws-border); }
.ws-topics li:last-child { border-bottom: 0; }
.ws-topics li::marker { color: var(--ws-green-ink); }
.workshop .ws-topic-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: .8rem .4rem; color: var(--ws-plum); text-decoration: none; border-radius: 4px; }
.workshop .ws-topic-link:hover { background: #f8f6fa; }
.ws-topic-link:focus-visible { outline: 3px solid var(--ws-blue); outline-offset: 3px; }
.ws-topic-question { grid-column: 1; font-size: .9rem; font-weight: 550; line-height: 1.4; }
.ws-topic-link:hover .ws-topic-question { text-decoration: underline; text-underline-offset: 3px; }
.ws-topic-chapter { grid-column: 1; font-size: .74rem; line-height: 1.4; color: var(--ws-muted); }
.ws-topic-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--ws-green-ink); }
@container (max-width: 479px) {
  .ws-recap-table tr { display: grid; border-bottom: 1px solid var(--ws-border); padding: 1rem 0; }
  .ws-recap-table tr:last-child { border-bottom: 0; }
  .workshop .ws-recap-table :is(th, td) { display: block; width: 100%; padding: 0; border: 0; }
  .workshop .ws-recap-table th { margin-bottom: .75rem; }
  .ws-recap-figure { margin-inline: auto; }
}
.ws-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .ws-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .75rem; }
  .ws-stages span:nth-child(2), .ws-stages span:last-child { text-align: left; }
  .ws-charts { grid-template-columns: 1fr; }
  .ws-panel { padding: 1.1rem; }
  .ws-intro { padding-top: 2rem; padding-bottom: 2rem; }
  .ws-ranking-item { gap: .4rem; padding: .25rem .4rem; }
  .ws-move-buttons { flex-direction: column; }
  .ws-estimate-top { gap: .4rem; }
  .ws-result-values div { padding: .7rem; }
}
/* The report column can be narrow on tablets even with a wide viewport. */
@container ws-comparison-panel (max-width: 600px) {
  .ws-comparison { --ws-row-height: 160px; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .ws-rank-card { position: relative; gap: .35rem; padding: .5rem .4rem; min-height: calc(var(--ws-row-height) - 12px); }
  .ws-own-rank, .ws-actual-rank { flex-direction: column; align-items: stretch; justify-content: center; }
  .ws-rank-number { flex-basis: auto; width: 25px; height: 25px; font-size: .7rem; }
  .ws-own-rank .ws-rank-number { order: -1; align-self: flex-end; }
  .ws-rank-copy { flex: initial; }
  .ws-comparison-card strong { font-size: .72rem; }
}
@container ws-comparison-panel (max-width: 300px) { .ws-comparison { --ws-row-height: 190px; } }
@media (prefers-reduced-motion: reduce) {
  .ws-progress progress::-webkit-progress-value { transition: none; }
  .ws-plot .ws-plot-mark { animation: none !important; transform: none !important; opacity: 1 !important; }
}
