/* Aufgabe 6 – Kräfte beim Kettenkarussell. Grundgestaltung, Karten, Buttons
   und Farben kommen aus den vorhandenen Kreisbewegungs-Stylesheets; hier nur
   lokale Ergänzungen für neue Abbildungen und Layouts. */

.carousel-page .physics-revision-hero { margin: 10px auto 14px; }
.carousel-page .physics-revision-hero h1 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.15; }
.carousel-page .physics-step-tabs { margin-bottom: 12px; }
.carousel-page .physics-card-heading { padding: 12px 16px; }
.carousel-page .physics-card-heading > p:last-child { margin-top: 4px; }
.carousel-page .physics-help-stack { gap: 6px; margin-top: 12px; }
.carousel-page .physics-help-stack details { padding: 6px 10px; }

/* ---- Statische Figuren ---- */

.carousel-top-figure { max-width: 360px; margin: 12px auto; }
.parallelogram-figure { max-width: 460px; margin: 0 auto; }
.describe-figure { max-width: 440px; margin: 0 auto; }
.carousel-top-figure svg,
.parallelogram-figure svg,
.describe-figure svg { display: block; width: 100%; height: auto; }
.omega-slider-label { display: block; margin-top: 14px; font-weight: 800; color: #1e3a8a; }
#omega-slider { display: block; width: 100%; min-height: 44px; accent-color: #2563eb; cursor: pointer; }
#omega-slider:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.omega-slider-ends { display: flex; justify-content: space-between; font-weight: 700; color: #334155; }
.rows-figure .rows-chain-inner { stroke: #2563eb; stroke-width: 3; }
.rows-figure .rows-chain-outer { stroke: #b45309; stroke-width: 3; }
.rows-seat-inner { fill: #dbeafe; stroke: #2563eb; stroke-width: 2; }
.rows-seat-outer { fill: #fef3c7; stroke: #b45309; stroke-width: 2; }
.rows-figure figcaption { margin-top: 8px; color: #334155; font-weight: 800; text-align: center; }
.carousel-top-figure figcaption,
.describe-figure figcaption { margin-top: 8px; color: #334155; font-weight: 800; text-align: center; }

.choice-vector { stroke: #334155; stroke-width: 4; stroke-linecap: round; }
.choice-badge circle { fill: #ffffff; stroke: #334155; stroke-width: 2; }
.choice-badge text { fill: #334155; font-size: 14px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }

.carousel-axis { stroke: #475569; stroke-width: 2; stroke-dasharray: 9 3 2 3; }
.carousel-chain { stroke-dasharray: 4 3; }
.angle-arc { fill: none; stroke: #334155; stroke-width: 2; }
.parallelogram-guide { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 4 4; }
.dimension-line { stroke: #64748b; stroke-width: 1.5; }

.force-g { stroke: #b45309; }
.force-s { stroke: #2563eb; }
.force-z { stroke: #dc2626; }
text.force-g { fill: #b45309; }
text.force-s { fill: #2563eb; }
text.force-z { fill: #dc2626; }

/* Statische Figuren (Reiter 3 und 4) nutzen dieselben Szenen-Klassen wie
   .force-arrow-grid in kraefte-bewegung.css, liegen aber außerhalb davon und
   brauchen deshalb eigene, wertgleiche Regeln. */
.parallelogram-figure .scene-line {
  fill: none;
  stroke: #475569;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.parallelogram-figure .scene-fill {
  fill: #dbeafe;
  stroke: #475569;
  stroke-width: 3;
  stroke-linejoin: round;
}
.parallelogram-figure .scene-accent {
  fill: #c4b5fd;
  stroke: #475569;
  stroke-width: 3;
}
.parallelogram-figure .force-origin-marker,
.describe-figure .force-origin-marker {
  fill: #111827;
  stroke: #ffffff;
  stroke-width: 2;
}

/* ---- Layout: Auswahlfelder und Erklärkarten nebeneinander ---- */

.direction-questions { display: grid; gap: 16px; margin: 16px 0; }
@media (min-width: 700px) {
  .direction-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.carousel-mc-pair { display: grid; gap: 16px; margin: 16px 0; }
@media (min-width: 800px) {
  .carousel-mc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.parallelogram-explain { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .parallelogram-explain { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}

.describe-layout { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .describe-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .describe-layout .describe-figure { grid-column: 2; grid-row: 1; }
}

/* ---- Kraftauswahl (arrowKinds) ---- */

.force-kind-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; border: 0; padding: 0; }
.force-kind-picker legend { padding: 0; margin-bottom: 6px; font-weight: 800; color: #1e3a8a; }
.force-kind-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--kind-color, #64748b);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}
.force-kind-option:has(input:checked) {
  font-weight: 800;
  background: #eef2ff;
  border-color: #1e3a8a;
}
.force-kind-option input:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.force-kind-option sub { font-size: 0.75em; }

.force-arrow-label { font-size: 16px; font-weight: 800; }
.force-active-origin { fill: none; stroke: #111827; stroke-dasharray: 3 3; }

.carousel-note { margin: 6px 0 0; color: #475569; font-size: 0.92rem; }

/* ---- Reiter 5: kompakte Sicherung und Ergebnisübersicht ---- */

#summary-pending { font-weight: 700; }

.compact-summary p { margin: 8px 0; }
.compact-summary p:nth-of-type(3),
.compact-summary p:nth-of-type(4) {
  color: #1e3a8a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.8;
  text-align: center;
}

.results-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #ffffff; }
.results-table th,
.results-table td { padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; vertical-align: top; }
.results-table th { color: #1e3a8a; background: #dbeafe; }

@media (max-width: 560px) {
  .results-table thead { display: none; }
  .results-table, .results-table tbody, .results-table tr, .results-table td { display: block; width: 100%; }
  .results-table tr { margin-bottom: 10px; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
  .results-table td { border: 0; border-bottom: 1px solid #e2e8f0; }
  .results-table td:last-child { border-bottom: 0; }
  .results-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 0.85rem;
  }
}

.download-button[hidden] { display: none; }

@media (max-width: 390px) {
  .force-kind-picker { gap: 6px; }
  .force-kind-option { padding: 6px 9px; font-size: 0.92rem; }
  .carousel-top-figure,
  .parallelogram-figure,
  .describe-figure { max-width: 100%; }
}
