:root {
  --ink: #12313a;
  --ink-soft: #4c6269;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --line: #cdd8d8;
  --line-strong: #8aa2a7;
  --teal-900: #0d5362;
  --teal-800: #176878;
  --teal-700: #277e8f;
  --teal-600: #3c92a3;
  --teal-500: #58a7b5;
  --teal-300: #9dd1d9;
  --teal-200: #c6e5e9;
  --focus: #0b0b0b;
  --radius: 1rem;
  --shadow: 0 18px 50px rgba(17, 49, 58, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, select { font: inherit; }

button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: .5rem;
}

.skip-link:focus { transform: none; }

.page-header,
.thesis-nav,
.app-shell,
.evidence-shell,
.page-footer {
  width: min(1480px, calc(100% - 2rem));
  margin-inline: auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.4rem 0 1.4rem;
}

.eyebrow,
.step-label {
  margin: 0 0 .35rem;
  color: var(--teal-700);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: .65rem;
  font-size: clamp(1.85rem, 3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.intro {
  max-width: 890px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.prototype-badge {
  flex: 0 0 auto;
  border: 1px solid var(--teal-700);
  border-radius: 999px;
  padding: .75rem 1.25rem;
  color: var(--teal-800);
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
}

.prototype-badge span { font-weight: 500; }

.thesis-nav {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.thesis-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, 1fr);
  gap: .4rem;
  overflow-x: auto;
  padding: .15rem;
  scrollbar-width: thin;
}

.thesis-tab,
.overview-button,
.nav-arrow,
.back-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: .65rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.thesis-tab {
  min-width: 48px;
  padding: .72rem .45rem;
  font-weight: 750;
}

.thesis-tab:hover,
.overview-button:hover,
.nav-arrow:hover,
.back-button:hover { transform: translateY(-1px); }

.thesis-tab[aria-current="true"],
.overview-button[aria-current="page"] {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: white;
}

.overview-button {
  min-height: 44px;
  padding: .6rem .9rem;
  font-weight: 780;
  white-space: nowrap;
}

.thesis-tab[data-demo="true"]::after {
  content: "•";
  margin-left: .2rem;
  color: var(--teal-300);
}

.nav-arrow {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(600px, 1fr) minmax(240px, 300px);
  grid-template-rows: auto;
  gap: 1rem;
  align-items: start;
  width: min(1600px, calc(100% - 2rem));
}

.evidence-shell[hidden],
.app-shell[hidden] {
  display: none;
}

.evidence-panel {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.65rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.evidence-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.evidence-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.evidence-intro {
  max-width: 980px;
  margin: .85rem 0 1.1rem;
  color: var(--ink-soft);
}

.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem 1rem;
  color: var(--ink-soft);
  font-size: .83rem;
}

.evidence-legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.legend-disc {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.legend-thesis { background: var(--teal-900); }
.legend-note { background: #8fa9af; }

.evidence-tree-scroll {
  overflow: auto;
  max-height: min(76vh, 1020px);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(39, 126, 143, .08), rgba(13, 83, 98, .02)) border-box;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.evidence-tree-scroll:focus-visible {
  outline: 3px solid rgba(11, 11, 11, .32);
  outline-offset: 2px;
}

#evidence-tree {
  display: block;
  width: 100%;
  min-width: 1400px;
  height: auto;
  background: #ffffff;
}

#evidence-arrow path {
  fill: var(--ink);
}

.evidence-edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  marker-end: url(#evidence-arrow);
  shape-rendering: geometricPrecision;
}

.evidence-edge.is-context {
  stroke: var(--line-strong);
  stroke-dasharray: 6 5;
}

.evidence-edge-label {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: .25rem;
  background: rgba(255, 255, 255, .96);
  color: #111;
  text-align: center;
  font-size: 8.9px;
  font-weight: 500;
  line-height: 1.18;
  pointer-events: none;
}

.evidence-edge-label > span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.evidence-node,
.evidence-node:focus,
.evidence-node:focus-visible {
  outline: none !important;
}

.evidence-node {
  cursor: pointer;
}

.evidence-node-disc {
  fill: #2e8599;
  stroke: #111;
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
  transition: filter 150ms ease, stroke-width 150ms ease;
  shape-rendering: geometricPrecision;
}

/* Vier Farbfamilien der PDF-Systematik. Status Quo und Bedarf teilen den Hellton. */
.evidence-node.is-meta .evidence-node-disc { fill: #0f4d5c; }
.evidence-node.is-hurdle .evidence-node-disc { fill: #2e8599; }
.evidence-node.is-future .evidence-node-disc { fill: #3c92a3; }
.evidence-node.is-support .evidence-node-disc { fill: #74b9c9; }

.evidence-node:hover .evidence-node-disc,
.evidence-node:focus-visible .evidence-node-disc {
  stroke: #000;
  stroke-width: 3;
  filter: brightness(.96);
}

.evidence-node-label {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 2px;
  color: #fff;
  text-align: center;
  font-weight: 520;
  line-height: 1.16;
  overflow: hidden;
  pointer-events: none;
}

.evidence-node-copy {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
}

.evidence-node-type,
.evidence-node-title,
.evidence-node-number {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.evidence-node-type {
  font-size: .96em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.06;
}

.evidence-node-title {
  font-weight: 520;
  line-height: 1.16;
}

.evidence-node-number {
  margin-top: 0;
  font-size: .95em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.evidence-note-disc {
  fill: #8fa9af;
  stroke: var(--line-strong);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.evidence-note-label {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: white;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
}

.evidence-note-label strong {
  display: block;
  margin-bottom: .35rem;
  font-size: .78em;
  letter-spacing: .06em;
  text-transform: uppercase;
}


.visual-panel,
.info-panel,
.thesis-context-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 1.2rem clamp(1rem, 2vw, 1.65rem) clamp(1rem, 2vw, 1.65rem);
}

.thesis-context-panel {
  grid-column: 1;
  min-width: 0;
  grid-row: 1;
  min-height: 0;
  height: var(--visual-panel-height, 820px);
  max-height: var(--visual-panel-height, 820px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.thesis-context-panel[hidden] {
  display: none;
}

.thesis-context-header {
  height: 6rem;
  min-height: 6rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.thesis-context-body {
  padding: 1rem 1.35rem 1.2rem;
}

.thesis-context-panel h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.thesis-context-panel .eyebrow.is-spacer {
  visibility: hidden;
  user-select: none;
}

.thesis-context-body > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.thesis-context-body .thesis-context-source {
  margin-top: .7rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.info-panel {
  grid-column: 3;
  min-width: 0;
  grid-row: 1;
  display: flex;
  min-height: 0;
  height: var(--visual-panel-height, 820px);
  max-height: var(--visual-panel-height, 820px);
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  contain: layout;
}

.quote-panel-header {
  flex: 0 0 6rem;
  height: 6rem;
  min-height: 6rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.quote-panel-header h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.quotes-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.quotes-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}

.visual-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: 70px;
}

.visual-toolbar h2,
.info-panel h2,
.thesis-context-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

/* Einheitlicher vertikaler Rhythmus der drei Spaltenköpfe. */
.thesis-context-panel h2 {
  margin-bottom: 2rem;
}

.back-button {
  padding: .62rem .85rem;
  white-space: nowrap;
}

.radar-wrap {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
}

#radar {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#radar-content {
  transform-box: view-box;
  transform-origin: 450px 450px;
}

.guide-ring,
.ring-edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.ring-divider {
  stroke: var(--surface);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.radar-node,
.radar-node:focus,
.radar-node:focus-visible {
  outline: none !important;
}

.radar-segment {
  stroke: none;
  cursor: pointer;
  transition: opacity 140ms ease;
  shape-rendering: geometricPrecision;
}

.radar-node:hover .radar-segment,
.radar-node:focus-visible .radar-segment {
  opacity: 1;
}

.radar-segment.is-muted {
  opacity: 1;
}


.segment-focus-outline {
  fill: none;
  stroke: transparent;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.radar-node:hover .segment-focus-outline,
.radar-node:focus-visible .segment-focus-outline {
  stroke: var(--focus);
  stroke-width: 4;
}

.radar-node[aria-pressed="true"] .segment-focus-outline {
  stroke: var(--focus);
  stroke-width: 5;
}

.context-segment-outline {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.outer-hint {
  opacity: .78;
  pointer-events: none;
  stroke: none;
  shape-rendering: geometricPrecision;
}

.category-context,
.selected-category-anchor,
.subcategory-node {
  transform-box: view-box;
  transform-origin: 450px 450px;
}

.category-context.is-muted-category {
  opacity: .8;
  transform: scale(.82);
}

.category-context.is-muted-category.is-entering {
  animation: muted-category-enter 420ms cubic-bezier(.22, .61, .36, 1) both;
}

.selected-category-anchor.is-entering {
  animation: selected-category-enter 420ms cubic-bezier(.22, .61, .36, 1) both;
}

.subcategory-node.is-entering {
  animation: subcategory-enter 470ms cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes muted-category-enter {
  from { opacity: 1; transform: scale(1); }
  to { opacity: .8; transform: scale(.82); }
}

@keyframes selected-category-enter {
  from { opacity: .55; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes subcategory-enter {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

.center-disc {
  fill: var(--teal-900);
  stroke: var(--ink);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.center-disc.category-focus { fill: var(--teal-800); }
.center-disc.thesis-context {
  fill: #dce7e9;
  stroke: var(--line-strong);
}


.fo-label {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: white;
  text-align: center;
  font-weight: 450;
  line-height: 1.20;
  white-space: normal;
  overflow: hidden;
  pointer-events: none;
}

.fo-label > span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.fo-label.category-label > span {
  padding-inline: 6px;
}

.fo-label.category-label.is-muted {
  color: var(--ink-soft);
  font-weight: 440;
}

.fo-label.category-label.is-selected {
  font-weight: 500;
}


.fo-label.sub {
  color: var(--ink);
  font-weight: 450;
  line-height: 1.18;
}

.fo-label.sub > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  width: 100%;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.fo-label.core {
  padding: .45rem .75rem;
  font-weight: 400;
  line-height: 1.24;
}

.fo-label.core.is-context {
  color: var(--ink);
  font-weight: 480;
}


.fo-label .code {
  display: block;
  margin-bottom: .2rem;
  font-size: .78em;
  font-weight: 850;
  letter-spacing: .04em;
}

.fo-label .overline {
  display: block;
  margin-bottom: .35rem;
  font-size: .67em;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
}

/* Keine SVG-Skalierungs- oder Filteranimationen: foreignObject-Texte und
   Kreisränder bleiben dadurch in Chromium, Firefox und Safari stabil. */
.radar-enter {
  animation: none;
}

.interaction-hint {
  margin: .2rem 0 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: .92rem;
}

.info-panel > p:not(.eyebrow) { color: var(--ink-soft); }

.selection-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1.35rem 0;
}

.selection-stats div {
  padding: .85rem;
  background: var(--paper);
  border-radius: .75rem;
}

.selection-stats dt {
  color: var(--ink-soft);
  font-size: .78rem;
}

.selection-stats dd {
  margin: .1rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.level-key {
  display: grid;
  gap: .55rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.level-key div {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.key-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
}

.key-core { background: var(--teal-900); }
.key-category { background: var(--teal-600); }
.key-subcategory { background: var(--teal-200); }

.next-level {
  margin-top: 0;
  padding: 1rem;
  background: #edf5f5;
  border-left: 4px solid var(--teal-700);
  border-radius: .3rem .7rem .7rem .3rem;
}

.next-level p {
  margin: .25rem 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.next-level.is-ready {
  padding: 0;
  background: transparent;
  border-left: 0;
  border-radius: 0;
}

.statement-heading {
  display: block;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.page-footer {
  padding: 1.25rem 0 2rem;
  color: var(--ink-soft);
  font-size: .82rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1160px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: min(1480px, calc(100% - 2rem));
  }

  .visual-panel,
  .thesis-context-panel,
  .info-panel {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .visual-panel { order: 1; }

  .thesis-context-panel {
    order: 2;
    padding: 0;
    max-height: min(42dvh, 420px);
  }

  .info-panel {
    order: 3;
    height: min(68dvh, 680px);
    max-height: min(68dvh, 680px);
  }
}

@media (max-width: 700px) {
  .page-header { display: block; padding-top: 1.4rem; }
  .prototype-badge { display: inline-block; margin-top: 1rem; }
  .thesis-nav { grid-template-columns: 1fr auto minmax(0, 1fr) auto; }
  .overview-button { padding-inline: .65rem; }
  .evidence-toolbar { display: block; }
  .evidence-legend { justify-content: flex-start; margin-top: .75rem; }
  .thesis-tabs { grid-auto-columns: 48px; }
  .visual-toolbar { min-height: auto; }
  .back-button { font-size: .87rem; }
  .next-level { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.statement-list {
  display: grid;
  gap: .75rem;
  margin-top: .85rem;
}

.statement-card {
  margin: 0;
  padding: .9rem 1rem;
  background: #f5f9f9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-700);
  border-radius: .55rem;
  box-shadow: 0 3px 12px rgba(17, 49, 58, .045);
}

.statement-card p {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.48;
}



.statement-ring-svg-label {
  fill: var(--ink);
  font-weight: 760;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.statement-ring-relation {
  font-size: .78em;
  font-style: italic;
  font-weight: 500;
  opacity: .82;
}

.statement-ring-relation.is-divergent {
  opacity: .94;
}

.statement-relation {
  display: block;
  width: 100%;
  margin-top: 0;
  text-align: center;
  font-size: .76em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .01em;
  opacity: .82;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.statement-relation-card {
  display: block;
  margin-top: .32rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.statement-relation.is-divergent,
.statement-relation-card.is-divergent {
  opacity: .94;
}

/* Kurze, beim ersten Besuch automatisch geöffnete Bedienungseinführung. */
.help-tour-button {
  position: fixed;
  z-index: 1203;
  right: 0;
  top: 50%;
  width: 42px;
  height: 52px;
  padding: 0 4px 0 0;
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: .75rem 0 0 .75rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 49, 58, .16);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.help-tour-button:hover,
.help-tour-button:focus-visible {
  background: var(--paper);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.tutorial-layer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  pointer-events: auto;
}

.tutorial-layer[hidden] { display: none; }

.tutorial-highlight {
  position: fixed;
  z-index: 1201;
  border: 3px solid #000;
  border-radius: 1rem;
  box-shadow: 0 0 0 9999px rgba(8, 25, 30, .58);
  pointer-events: none;
  transition: none;
}

.tutorial-tooltip {
  position: fixed;
  z-index: 1202;
  width: min(360px, calc(100vw - 28px));
  padding: 1.15rem 1.2rem 1rem;
  border: 2px solid #000;
  border-radius: .9rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

.tutorial-tooltip h2 {
  margin-bottom: .45rem;
  padding-right: 2rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.tutorial-tooltip > p:not(.tutorial-step) {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}

.tutorial-step {
  margin: 0 0 .25rem;
  color: var(--teal-700);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tutorial-close {
  position: absolute;
  top: .55rem;
  right: .6rem;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.tutorial-close:hover,
.tutorial-close:focus-visible {
  background: var(--paper);
  outline: 2px solid #000;
}

.tutorial-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
}

.tutorial-actions button {
  min-height: 40px;
  padding: .55rem .85rem;
  border: 1px solid #000;
  border-radius: .55rem;
  font-weight: 750;
  cursor: pointer;
}

.tutorial-secondary { background: var(--surface); }
.tutorial-primary { background: var(--ink); color: white; }

.tutorial-actions button:hover,
.tutorial-actions button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .help-tour-button {
    top: auto;
    bottom: 1.1rem;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .tutorial-tooltip {
    left: 14px !important;
    right: 14px;
    bottom: 14px;
    top: auto !important;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-highlight { transition: none; }
}

/* Statement-Ring: Kennzeichnung und Hervorhebung des angeklickten Statements */
.statement-index {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .12rem .55rem;
  background: #e2eef0;
  border-radius: 999px;
  color: var(--teal-700);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.statement-card.is-active {
  background: #eaf5f6;
  border-color: var(--teal-700);
  border-left-width: 6px;
  box-shadow: 0 0 0 2px rgba(39, 126, 143, .35), 0 6px 18px rgba(17, 49, 58, .12);
}

.statement-card.is-active .statement-index {
  background: var(--teal-700);
  color: #fff;
}
