/* ===== Tanzbarometer Dashboard Display ===== */

.tanzbarometer-display {
  font-family: Inter, sans-serif;
}

.tanzbarometer-display .tb-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tanzbarometer-display .tb-card {
  background: #faf7f2;
  border: 1px solid #ece8df;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(27, 31, 35, 0.06);
  padding: 30px;
}

.tanzbarometer-display .tb-card-title {
  margin: 0 0 14px;
  font-family: Barstow, sans-serif;
  font-size: 1.8rem;
  color: #292827;
  line-height: 1.15;
}

.tanzbarometer-display .tb-card--hero,
.tanzbarometer-display .tb-card--dimensions {
  grid-column: 1 / -1;
}

.tanzbarometer-display .tb-card--empty {
  grid-column: 1 / -1;
}

.tanzbarometer-display .tb-eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6c7d;
}

.tanzbarometer-display .tb-hero-title {
  margin: 0 0 14px;
  font-family: Barstow, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: #292827;
}

.tanzbarometer-display .tb-hero-meta {
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: #444457;
}

.tanzbarometer-display .tb-hero-score {
  margin: 0;
  font-size: 1.05rem;
  color: #444457;
}

.tanzbarometer-display .tb-hero-score span {
  margin-left: 8px;
  font-family: Barstow, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1;
  color: #c1851d;
}

.tanzbarometer-display .tb-dimension {
  margin-bottom: 30px;
}

.tanzbarometer-display .tb-dimension:last-child {
  margin-bottom: 0;
}

.tanzbarometer-display .tb-dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.tanzbarometer-display .tb-dimension-header h4 {
  margin: 0;
  font-family: Barstow, sans-serif;
  font-size: 1.28rem;
  line-height: 1.15;
  color: #292827;
}

.tanzbarometer-display .tb-percent {
  font-family: Barstow, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: #c1851d;
}

.tanzbarometer-display .tb-subtext {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: #595772;
}

.tanzbarometer-display .tb-track {
  width: 100%;
  height: 12px;
  background: #f2f2fa;
  border-radius: 999px;
  overflow: hidden;
}

.tanzbarometer-display .tb-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0076b5 0%, #c1851d 100%);
  box-shadow: 0 2px 8px rgba(0, 118, 181, 0.22);
  transition: width 0.6s ease;
}

.tanzbarometer-display .tb-placeholder {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #5f5d71;
}

.tanzbarometer-display .tb-insight-line {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #4a4860;
}

.tanzbarometer-display .tb-insight-line:last-child {
  margin-bottom: 0;
}

.tanzbarometer-display .tb-skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, #eceaf2 0%, #f6f5fa 50%, #eceaf2 100%);
}

.tanzbarometer-display .tb-skeleton--chart {
  height: 180px;
}

.tanzbarometer-display .tb-skeleton--map {
  height: 220px;
}

.tanzbarometer-display .tb-insight-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0e7d7;
  color: #7b5c24;
  font-size: 0.86rem;
  font-weight: 600;
}

.tanzbarometer-display .tb-quote {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f3f1f8;
  color: #3f3d51;
}

.tanzbarometer-display .tb-quote:last-child {
  margin-bottom: 0;
}

.tanzbarometer-display .tb-quote::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 26px;
  width: 18px;
  height: 18px;
  background: inherit;
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
}

.tanzbarometer-display .tb-quote p {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.tanzbarometer-display .tb-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: #69677f;
  text-transform: capitalize;
}

.tanzbarometer-display .tb-quote:not(.tb-quote--active) {
  opacity: 0.78;
}

.tanzbarometer-display .tb-trend-svg-wrap {
  height: 180px;
  border-radius: 14px;
  background: #f3f1f8;
  padding: 14px;
}

.tanzbarometer-display .tb-trend-svg {
  width: 100%;
  height: 100%;
}

.tanzbarometer-display .tb-trend-line {
  fill: none;
  stroke: #8f8ca2;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tanzbarometer-display .tb-city-row {
  margin-bottom: 14px;
}

.tanzbarometer-display .tb-city-row:last-child {
  margin-bottom: 0;
}

.tanzbarometer-display .tb-city-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.tanzbarometer-display .tb-city-name {
  font-family: Barstow, sans-serif;
  font-size: 1rem;
  color: #333240;
  text-transform: capitalize;
}

.tanzbarometer-display .tb-city-meta {
  font-size: 0.86rem;
  color: #66647a;
}

.tanzbarometer-display .tb-track--city {
  height: 10px;
}

.tanzbarometer-display .tb-empty-text {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #444457;
}

.tanzbarometer-display .tb-empty-hint {
  margin: 0;
  font-size: 0.95rem;
  color: #66647a;
}

@media (min-width: 900px) {
  .tanzbarometer-display .tb-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1280px) {
  .tanzbarometer-display .tb-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }

  .tanzbarometer-display .tb-card--hero {
    grid-column: 1 / span 2;
  }

  .tanzbarometer-display .tb-card--dimensions {
    grid-column: 1 / span 2;
  }
}

/* ===== Barometer Form - Clean Structured Layout ===== */

.barometer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #292933;
}

/* Each question block */
.tb-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Label row */
.tb-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #444457;
  line-height: 1.3;
}

.tb-label-left {
  text-align: left;
}

.tb-label-right {
  text-align: right;
}

.tb-labels > p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  width: 100%;
}

.tb-labels > p .tb-label-left {
  text-align: left;
}

.tb-labels > p .tb-label-right {
  text-align: right;
}

.tb-labels p {
  margin: 0;
}

/* Slider full width */
.tb-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  cursor: pointer;
}

/* Track */
.tb-range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 2px rgba(16, 16, 20, 0.14),
    inset 0 -1px 1px rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle 3px at 2% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 4px at 25% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 5px at 50% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 6px at 75% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 7px at 98% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    linear-gradient(to right, #f2f2fa 0%, #fafafe 100%);
}

.tb-range::-moz-range-track {
  height: 12px;
  border: 0;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 2px rgba(16, 16, 20, 0.14),
    inset 0 -1px 1px rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle 3px at 2% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 4px at 25% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 5px at 50% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 6px at 75% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    radial-gradient(circle 7px at 98% 50%, rgba(193, 133, 29, 0.35) 0%, rgba(193, 133, 29, 0.15) 40%, transparent 70%) no-repeat,
    linear-gradient(to right, #f2f2fa 0%, #fafafe 100%);
}

/* Thumb */
.tb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -3px;
  border-radius: 50%;
  background: #0076b5;
  box-shadow: 0 2px 5px rgba(16, 16, 20, 0.2);
  border: 0;
  transition: background-color 0.2s ease;
}

.tb-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0076b5;
  box-shadow: 0 2px 5px rgba(16, 16, 20, 0.2);
  border: 0;
  transition: background-color 0.2s ease;
}

.tb-range:hover::-webkit-slider-thumb,
.tb-range:active::-webkit-slider-thumb {
  background: #004f87;
}

.tb-range:hover::-moz-range-thumb,
.tb-range:active::-moz-range-thumb {
  background: #004f87;
}

.tb-range:focus-visible {
  outline: none;
}

.tb-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 5px rgba(0, 118, 181, 0.28);
}

.tb-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 5px rgba(0, 118, 181, 0.28);
}

/* Textarea */
.tb-comment textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

/* Submit */
.tb-submit {
  margin-top: 8px;
}
