.bv-atlas {
  --bv-paper: #fffdf8;
  --bv-ink: #202124;
  --bv-muted: #66615b;
  --bv-line: #d7c6ad;
  --bv-gold: #9a6b36;
  --bv-deep: #26272b;
  --bv-hf: #5b4f72;
  --bv-gf: #9a6b36;
  --bv-ensemble: #77716a;
  max-width: 1180px;
  margin: 2rem auto;
  color: var(--bv-ink);
}

.bv-atlas * {
  box-sizing: border-box;
}

.bv-atlas-header {
  margin-bottom: 1.25rem;
}

.bv-atlas-header h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.bv-atlas-lead {
  max-width: 850px;
  margin: 0;
  color: var(--bv-muted);
  font-size: 1.05rem;
}

.bv-scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}

.bv-scene-button,
.bv-play-button {
  appearance: none;
  border: 1px solid #3c3c3f;
  border-radius: 999px;
  background: #2d2e31;
  color: #fff;
  padding: .58rem .82rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bv-scene-button[aria-pressed="true"] {
  background: #fffdf8;
  color: #252629;
  border-color: #a77842;
  box-shadow: inset 0 0 0 2px rgba(167,120,66,.18);
}

.bv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .85fr);
  gap: 1.25rem;
  align-items: start;
}

.bv-stage-card,
.bv-info-card {
  background: var(--bv-paper);
  border: 1px solid var(--bv-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(38,32,25,.08);
}

.bv-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem .4rem;
}

.bv-stage-title {
  margin: 0;
  font-size: 1.15rem;
}

.bv-stage-meta {
  color: var(--bv-muted);
  font-size: .9rem;
}

.bv-stage-shell {
  padding: .35rem .8rem 1rem;
}

.bv-stage {
  width: 100%;
  min-height: 470px;
  display: block;
  background:
    radial-gradient(circle at 50% 38%, rgba(184,136,79,.08), transparent 42%),
    linear-gradient(180deg, #f8f3ea, #eee6da);
  border-radius: 14px;
  border: 1px solid rgba(154,107,54,.28);
}

.bv-stage .grid-line {
  stroke: rgba(90,80,68,.15);
  stroke-width: 1;
}

.bv-stage .grid-label {
  fill: #81786e;
  font-size: 17px;
  font-family: system-ui, sans-serif;
}

.bv-stage .stage-label {
  fill: #5e574f;
  font-size: 18px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
}

.bv-stage .relation {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .78;
}

.bv-stage .relation.gaze {
  stroke: #6c7690;
  stroke-dasharray: 12 9;
}

.bv-stage .relation.proximity {
  stroke: #927a64;
  stroke-dasharray: 5 8;
}

.bv-stage .relation.conflict {
  stroke: #8d4d45;
  stroke-width: 8;
  stroke-dasharray: 16 8 3 8;
}

.bv-stage .relation.offer {
  stroke: #9a6b36;
  stroke-dasharray: 4 11;
}

.bv-stage .relation.support {
  stroke: #62725d;
  stroke-width: 8;
}

.bv-stage .relation.network {
  stroke: #7d7469;
  stroke-width: 3;
  stroke-dasharray: 9 7;
  opacity: .55;
}

.bv-dancer-shape .body {
  stroke: #fffdf8;
  stroke-width: 3;
}

.bv-dancer-shape .axis {
  stroke: rgba(255,255,255,.78);
  stroke-width: 2;
}

.bv-dancer-shape .head {
  fill: #f4e5d3;
  stroke: rgba(37,38,41,.55);
  stroke-width: 2;
}

.bv-dancer[data-role="HF"] .body {
  fill: var(--bv-hf);
}

.bv-dancer[data-role="GF"] .body {
  fill: var(--bv-gf);
}

.bv-dancer[data-role="ensemble"] .body {
  fill: var(--bv-ensemble);
}

.bv-dancer-label {
  fill: #242427;
  font-family: system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #f8f3ea;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.bv-info-card {
  padding: 1.1rem;
}

.bv-kicker {
  margin: 0 0 .2rem;
  color: var(--bv-gold);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bv-info-card h2 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
}

.bv-duration {
  color: var(--bv-muted);
  margin-bottom: 1rem;
}

.bv-info-block {
  padding: .9rem 0;
  border-top: 1px solid #e8ded0;
}

.bv-info-block:first-of-type {
  border-top: 0;
}

.bv-info-block strong {
  display: block;
  margin-bottom: .25rem;
}

.bv-info-block p {
  margin: 0;
}

.bv-movement-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .5rem;
}

.bv-movement-list a,
.bv-movement-list span {
  display: inline-block;
  border-radius: 999px;
  padding: .34rem .62rem;
  border: 1px solid #d8c7ae;
  background: #f7f1e8;
  color: #332d27;
  font-size: .86rem;
  text-decoration: none;
}

.bv-movement-list a:hover {
  text-decoration: underline;
}

.bv-movement-list .planned {
  border-style: dashed;
  color: #6d6257;
  background: #fffdf8;
}

.bv-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
}

.bv-progress {
  flex: 1 1 250px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ddd1c1;
}

.bv-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: #86613a;
  transition: width .25s linear;
}

.bv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  margin: 1rem 0 0;
  color: var(--bv-muted);
  font-size: .88rem;
}

.bv-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

.bv-legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.bv-note {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: #f1ebe2;
  border-left: 4px solid #9a6b36;
  border-radius: 0 10px 10px 0;
  color: #554d44;
}

@media (max-width: 820px) {
  .bv-layout {
    grid-template-columns: 1fr;
  }

  .bv-stage {
    min-height: 390px;
  }
}

/* BV-PHASES-V2 */

.bv-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.35rem 0 1.15rem;
  padding: .8rem;
  border: 1px solid #ddcfbd;
  border-radius: 14px;
  background: rgba(255,253,248,.72);
}

.bv-phase-tabs[hidden] {
  display: none;
}

.bv-phase-button {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
  border: 1px solid #cdb99d;
  border-radius: 11px;
  background: #f8f3eb;
  color: #332f2a;
  padding: .48rem .68rem;
  font: inherit;
  cursor: pointer;
}

.bv-phase-button span {
  font-size: .82rem;
  font-weight: 750;
}

.bv-phase-button small {
  font-size: .72rem;
  color: #746b62;
}

.bv-phase-button[aria-pressed="true"] {
  background: #2d2e31;
  color: #fff;
  border-color: #2d2e31;
}

.bv-phase-button[aria-pressed="true"] small {
  color: #eee6da;
}

.bv-phase-info small {
  display: block;
  margin-top: .55rem;
  color: #776e64;
  font-size: .78rem;
}

.bv-play-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .bv-phase-tabs {
    flex-direction: column;
  }

  .bv-phase-button {
    width: 100%;
  }
}

/* BV-FIGURE-ANALYSIS-V1 */

.bv-dancer {
  cursor: pointer;
}

.bv-dancer.is-selected {
  filter: drop-shadow(0 0 6px rgba(70, 48, 30, .35));
}

.bv-dancer.is-selected .body {
  stroke-width: 4;
}

.bv-figure-analysis {
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  border: 1px solid #ddcfbd;
  border-radius: 16px;
  background: rgba(255,253,248,.82);
}

.bv-figure-analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bv-figure-eyebrow {
  display: block;
  margin-bottom: .2rem;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #766b60;
}

.bv-figure-analysis h3 {
  margin: 0;
  font-size: 1.15rem;
}

.bv-figure-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.bv-figure-button {
  appearance: none;
  border: 1px solid #cdb99d;
  border-radius: 999px;
  padding: .33rem .56rem;
  background: #f8f3eb;
  color: #332f2a;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}

.bv-figure-button[aria-pressed="true"] {
  border-color: #2d2e31;
  background: #2d2e31;
  color: #fff;
}

.bv-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.bv-analysis-card {
  padding: .85rem;
  border: 1px solid rgba(175,154,126,.42);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

.bv-analysis-card strong {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bv-analysis-card p {
  margin: 0;
  line-height: 1.5;
}

.bv-analysis-card-wide {
  grid-column: 1 / -1;
}

.bv-reading-card,
.bv-guide-card {
  grid-column: span 1;
}

.bv-reading-status {
  margin-bottom: .65rem !important;
  font-size: .78rem;
  color: #756c62;
}

.bv-reading-list {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.bv-reading-list div {
  display: grid;
  gap: .1rem;
}

.bv-reading-list dt {
  font-size: .76rem;
  font-weight: 750;
}

.bv-reading-list dd {
  margin: 0;
  line-height: 1.45;
}

.bv-movement-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .65rem;
}

.bv-movement-link {
  display: inline-flex;
  padding: .25rem .5rem;
  border: 1px solid #cdb99d;
  border-radius: 999px;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
}

.bv-figure-source {
  margin: .85rem 0 0;
  font-size: .74rem;
  color: #766d64;
}

@media (max-width: 760px) {
  .bv-figure-analysis-head {
    flex-direction: column;
  }

  .bv-figure-tabs {
    justify-content: flex-start;
  }

  .bv-analysis-grid {
    grid-template-columns: 1fr;
  }

  .bv-analysis-card-wide,
  .bv-reading-card,
  .bv-guide-card {
    grid-column: 1;
  }
}

/* ==================================================================
   BV-UX-LAYOUT-V1
   ================================================================== */

/*
 * Die Figurenanalyse steht nicht mehr in der schmalen Seitenleiste.
 * Sie nutzt die Breite unterhalb der eigentlichen Szenenansicht.
 */

.bv-figure-analysis[hidden] {
  display: none !important;
}

.bv-figure-analysis {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 1.35rem 0 0;
}

/*
 * Auf großen Bildschirmen werden die Informationen kompakter
 * horizontal verteilt. Dadurch entsteht weniger unnötige Seitenhöhe.
 */

.bv-analysis-grid {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.bv-analysis-card-wide {
  grid-column: 1 / -1;
}

.bv-reading-card {
  grid-column: span 2;
}

.bv-guide-card {
  grid-column: span 1;
}

/*
 * Klarer Bedienablauf:
 * Szene -> Phase -> Figur.
 */

.bv-workflow-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .85rem;

  margin: 0 0 .85rem;
  padding: .68rem .82rem;

  border: 1px solid rgba(185, 153, 113, .42);
  border-radius: 12px;

  background: rgba(255, 253, 248, .78);

  color: #4d463f;

  font-size: .79rem;
}

.bv-workflow-guide strong {
  margin-right: .25rem;
}

.bv-workflow-guide span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}

.bv-workflow-guide b {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 1.35rem;
  height: 1.35rem;

  border-radius: 50%;

  background: #2d2e31;
  color: #fff;

  font-size: .7rem;
}

/*
 * Transparenz über das Bühnenraster:
 * Rasterfeld = Zone, nicht punktgenaue Standposition.
 */

.bv-zone-note {
  max-width: 68rem;
  margin: .7rem 0 0;

  color: #756c63;

  font-size: .74rem;
  line-height: 1.45;
}

/*
 * Auswahl einer Figur stärker, aber nicht aggressiv markieren.
 */

.bv-dancer {
  transition:
    filter .18s ease,
    opacity .18s ease;
}

.bv-dancer.is-selected .body {
  stroke-width: 4;
}

.bv-dancer.is-selected .head {
  stroke-width: 2.5;
}

/*
 * Analysebuttons bleiben übersichtlich.
 */

.bv-figure-tabs {
  max-width: 38rem;
}

/*
 * Desktop: Informationsbereich nicht künstlich hoch ziehen.
 */

[data-become-visible-atlas] {
  align-items: start;
}

/*
 * Tablet
 */

@media (max-width: 980px) {
  .bv-analysis-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .bv-reading-card {
    grid-column: 1 / -1;
  }

  .bv-guide-card {
    grid-column: 1 / -1;
  }
}

/*
 * Smartphone
 */

@media (max-width: 680px) {
  .bv-analysis-grid {
    grid-template-columns: 1fr;
  }

  .bv-analysis-card,
  .bv-analysis-card-wide,
  .bv-reading-card,
  .bv-guide-card {
    grid-column: 1;
  }

  .bv-workflow-guide {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==================================================================
   BV-PLAYBACK-SPEED-V1
   ================================================================== */

.bv-speed-control {
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  margin: .35rem .45rem .35rem 0;
  padding: .42rem .58rem;

  border: 1px solid rgba(181, 151, 114, .48);
  border-radius: 10px;

  background: rgba(255, 253, 248, .82);
}

.bv-speed-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  font-size: .78rem;
  font-weight: 700;
  color: #4d463f;
}

.bv-speed-select {
  appearance: auto;

  min-width: 5.1rem;

  padding: .34rem .45rem;

  border: 1px solid #cdb99d;
  border-radius: 8px;

  background: #fff;
  color: #302d29;

  font: inherit;
  cursor: pointer;
}

.bv-speed-select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.bv-speed-value {
  min-width: 2.6rem;

  padding: .25rem .42rem;

  border-radius: 999px;

  background: #2d2e31;
  color: #fff;

  text-align: center;
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .bv-speed-control {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }
}

/* ==================================================================
   BV-THREE-PLAYBACK-MODES-V1
   ================================================================== */

.bv-play-overview {
  border-style: dashed;
}

.bv-play-overview:hover,
.bv-play-overview:focus-visible {
  border-style: solid;
}

@media (max-width: 760px) {
  .bv-play-button {
    width: 100%;
  }
}

/* ==================================================================
   BV-FIGURE-DETAIL-LINK-V1
   ================================================================== */

.bv-figure-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  margin: 15px 0 0;
  padding: 9px 14px;

  border: 1px solid #303136;
  border-radius: 999px;

  background: #303136;
  color: #fff;

  text-decoration: none;
  font-size: .82rem;
  font-weight: 750;
}

.bv-figure-detail-link:hover,
.bv-figure-detail-link:focus-visible {
  background: #fff;
  color: #303136;
}
