/* Zitate-Rangliste ("Was alle sagen"): alle Styles dieses Bereichs. Nutzt die Tokens aus style.css (--red, --green, --bad, --ok, --r, --shadow …). Mobile-first. */
.bg-purple { background: var(--purple); }
.bg-purple h2 { color: #fff; }
.bg-purple .zr-intro { color: #fff; }
.bg-purple .zr-intro a { color: #fff; }

.zr { margin: 1.25rem 0 0; }
.zr-intro { margin: 0 0 .75rem; }
.zr-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.zr-col { background: #fff; border-radius: var(--r); padding: .9rem .9rem 1rem; box-shadow: var(--shadow); border-top: 8px solid var(--zr-accent, var(--red)); min-width: 0; }
.zr-col--bad { --zr-accent: var(--red); --zr-soft: var(--blush); --zr-ink: var(--bad); }
.zr-col--ok { --zr-accent: var(--green); --zr-soft: #e5f6ec; --zr-ink: var(--ok); }
.zr-col h3, .zr-col h4, .zr-col h5 { margin: 0 0 .6rem; font-size: 1.2rem; line-height: 1.2; color: var(--zr-ink); }
.zr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.zr-item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .15rem .6rem; padding: .65rem .7rem; border-radius: .7rem; background: var(--zr-soft); border-left: 6px solid var(--zr-accent); }
.zr-platz { grid-row: 1 / span 3; align-self: start; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--zr-ink); color: #fff; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.zr-q { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.zr-who { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.zr-meter { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: .2rem; }
.zr-score { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--zr-ink); min-width: 2.4rem; }
.zr-scale { position: relative; display: block; flex: 1 1 7rem; max-width: 12rem; height: .85rem; background: #fff; border: 2px solid var(--black); border-radius: 99px; overflow: hidden; }
.zr-fill { display: block; height: 100%; width: 0; background: var(--zr-accent); }
.zr-scale::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 2px), var(--black) calc(20% - 2px), var(--black) 20%); pointer-events: none; }
.zr-votes { font-size: .9rem; white-space: nowrap; }
.zr-leer, .zr-note { margin: 0 0 .5rem; }
.zr-leer { padding: .7rem .9rem; border-radius: .7rem; background: var(--blush); border-left: 6px solid var(--red); font-weight: 700; }
.zr-note { font-size: .95rem; }
.zr-card { background: #fff; border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow); }
.zr-card .zr-leer, .zr-card .zr-note { color: var(--text); }

@media (min-width: 48rem) {
  .zr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  }
@media (prefers-reduced-motion: no-preference) {
  .zr-fill { transition: width .6s ease-out; }
}

/* ===== Was alle sagen: Abschnittskopf, Diagramme ===== */
.zr-main h3 { margin: 0 0 .4rem; }
.zr-main { margin: 0 0 1rem; }
.zr-main figure { margin: 1rem 0 0; padding: 0; }
.zr-main figcaption { margin: 0 0 .5rem; }
.zr-more { margin: .8rem 0 0; }

/* Histogramm */
.hist__plot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; align-items: end; }
.hist__col { display: flex; flex-direction: column; align-items: stretch; text-align: center; font-weight: 800; }
.hist__well { display: flex; align-items: flex-end; height: 7rem; border-bottom: 3px solid var(--black); }
.hist__bar { display: block; width: 100%; height: 0; min-height: 3px; border: 2px solid var(--black); border-bottom: 0; border-radius: .4rem .4rem 0 0; box-sizing: border-box; }
.hist__n { min-height: 1.4rem; line-height: 1.4rem; }
.hist__x { margin-top: .2rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.hist .scale-ends, .strip .scale-ends { margin-top: .3rem; }
.zr-table table { width: 100%; border-collapse: collapse; margin: .4rem 0 .8rem; font-size: 1rem; }
.zr-table th, .zr-table td { padding: .3rem .4rem; border-bottom: 1px solid #d4d4dc; text-align: left; overflow-wrap: anywhere; }
.zr-table td { text-align: right; white-space: nowrap; }
.zr-table th[scope=col]:not(:first-child) { text-align: right; }
.zr-table summary { min-height: var(--touch); display: flex; align-items: center; }

/* Streifendiagramm */
.strip__plot { position: relative; margin: .5rem 14px 0; min-height: 30px; background: linear-gradient(90deg, var(--black) 0 2px, transparent 2px) 0 0 / 25% 100% repeat-x; border-right: 2px solid var(--black); }
.strip__m { position: absolute; width: 24px; height: 24px; margin: 0 0 0 -12px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.strip__m span { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--black); box-sizing: border-box; }
.strip__m:focus-visible { outline: 3px solid var(--black); outline-offset: 1px; border-radius: 50%; box-shadow: 0 0 0 5px #fff; z-index: 2; }
.strip__m.is-sel span { outline: 3px solid var(--black); outline-offset: 2px; }
.strip__axis { display: flex; justify-content: space-between; margin: .2rem 14px 0; font-weight: 800; position: relative; }
.strip__axis span { width: 1.5rem; margin: 0 -.75rem; text-align: center; }
.strip__out { margin: .5rem 0 0; min-height: 2.6rem; font-weight: 800; padding: .4rem .6rem; background: #f6f6f9; border-radius: .6rem; }

/* Dein Urteil im Vergleich: Doppelskala */
@media (min-width: 48rem) { .hist__well { height: 9rem; } }
@media (prefers-reduced-motion: no-preference) { .hist__bar { transition: height .6s ease-out; } }
.zr-card, .zr-col { color: var(--text); }
.zr-card a { color: #0b4f8a; }
