body {
  background: #f5f5f5;
}

.zb-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
  text-align: center;
}

.zb-page .pg-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.zb-mode-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.zb-toggle-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid #ccd3e0;
  background: white;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
}

.zb-toggle-btn.selected {
  background: var(--pg-primary);
  border-color: var(--pg-primary);
  color: white;
  font-weight: 600;
}

.zb-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.zb-task-toggle {
  display: flex;
  gap: 8px;
}

.zb-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #2f3542;
  cursor: pointer;
}

.zb-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.zb-prompt {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2f3542;
  min-height: 30px;
  margin: 10px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Echter Bruch: Zähler über Nenner mit Trennstrich */
.zb-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  font-size: 0.9em;
  line-height: 1.15;
  margin: 0 2px;
}

.zb-frac__num,
.zb-frac__den {
  padding: 0 4px;
}

.zb-frac__num {
  border-bottom: 2px solid currentColor;
}

.zb-line-wrap {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 16px;
  margin-bottom: 20px;
}

.zb-line {
  width: 100%;
  height: auto;
  touch-action: none;
}

.zb-answer-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.zb-answer-row input {
  width: 140px;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #ccd3e0;
  text-align: center;
}

.zb-feedback {
  min-height: 26px;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 16px;
}

.zb-bottom-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.zb-round-info {
  font-size: 0.9rem;
  color: #888;
}

.zb-round-info.zb-round-info--complete {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg-gold);
}

.zb-small-btn {
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: none;
}

.zb-trophy-btn {
  font-size: 1.6rem;
  padding: 6px 18px;
  cursor: default;
  opacity: 1;
}

/* SVG-Elemente */
.zb-tick-major {
  stroke: #2f3542;
  stroke-width: 2.5;
}

.zb-tick-minor {
  stroke: #a8b3c5;
  stroke-width: 1.5;
}

.zb-axis {
  stroke: #2f3542;
  stroke-width: 2.5;
}

.zb-label-major {
  font-size: 15px;
  font-weight: 700;
  fill: #2f3542;
  text-anchor: middle;
}

.zb-label-boundary {
  font-size: 13px;
  font-weight: 700;
  fill: var(--pg-primary);
  text-anchor: middle;
}

.zb-frac-svg-bar {
  stroke: var(--pg-primary);
  stroke-width: 1.5;
}

.zb-field-shade {
  opacity: 0.5;
}

.zb-field-shade.hover {
  opacity: 0.9;
}

.zb-arrow-stem {
  stroke: #ff4a4a;
  stroke-width: 4;
  stroke-linecap: round;
}

.zb-arrow-head {
  fill: #ff4a4a;
}

.zb-arrow-group {
  transition: transform 0.08s ease-out;
}

.zb-arrow-group.draggable {
  cursor: grab;
}

.zb-arrow-group.dragging {
  cursor: grabbing;
}
