/* Ergebnis-Hub (Tabs), Abschnitts-Leiste, Aufklapp-Bereiche, Bewertungs-Skala, Abschluss-Karte. Nutzt die Tokens aus style.css. Mobile-first (360–430 px zuerst), Touch-Ziele >= 48 px. */

/* ---------- Abschnitts-Leiste (echte Buttons) ---------- */
.navbar { display: flex; gap: .5rem; }
.navbtn { flex: none; display: inline-flex; align-items: center; min-height: var(--touch); padding: .25rem 1.1rem; border: 0; border-radius: 99px; background: var(--blush); color: #a50f14; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; scroll-snap-align: start; }
.navbtn:active { background: #fff; }
.navbar--top { display: none; }
.navbar--bottom { flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Ergebnis-Hub ---------- */
.hub { padding: 0; overflow: hidden; margin-top: 1rem; }
.hub__title { margin: 0; padding: .8rem 1rem .1rem; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--text); }
.hubtabs { position: relative; display: flex; gap: .45rem; padding: .5rem 1rem .6rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1rem; scrollbar-width: none; overscroll-behavior-x: contain; border-bottom: 3px solid var(--black); }
.hubtabs::-webkit-scrollbar { display: none; }
.hubtabs [role=tab] { flex: none; scroll-snap-align: start; min-height: var(--touch); padding: .3rem 1.05rem; border: 3px solid var(--black); border-radius: 99px; background: #fff; color: var(--text); font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.hubtabs [role=tab][aria-selected="true"] { background: var(--black); color: #fff; box-shadow: 0 4px 0 var(--magenta); }
.hubtabs [role=tab][aria-disabled="true"] { border-style: dashed; background: #f6f6f9; color: #4a4a55; cursor: not-allowed; }
.hub__panel { padding: .9rem 1rem 1.1rem; }
.hub__panel[hidden] { display: none; }
.hub__panel > h3 { margin: 0 0 .6rem; }
.hub__panel > h3:focus { outline: none; }
.hub__panel > h3:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.hub .zr-card { box-shadow: none; border: 2px solid var(--black); margin: 0 0 .9rem; }
.hub .zr { margin: 0; }

/* Rangliste */
.rank { display: flex; flex-direction: column; }
.rank__me { margin: 0 0 .6rem; padding: .5rem .8rem; background: #fff8e1; border: 3px solid var(--black); border-radius: .7rem; font-weight: 800; }
.rank__me:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.seg button { min-height: var(--touch); padding: .3rem .5rem; border: 3px solid var(--black); border-radius: 99px; background: #fff; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--black); color: #fff; }
.rank .nick-card { margin: .8rem 0; padding: 1rem; border: 3px solid var(--black); border-radius: var(--r); background: #fff8e1; }
.rank .nick-card:empty { display: none; }
.rank details { margin-top: .4rem; }
.nick-fertig-slot:empty, #nick-fertig-slot:empty { display: none; }

/* Wie schlimm? */
.zr-folds { display: grid; gap: .6rem; margin: 0 0 .9rem; }
.zr-fold { background: #fff; border: 2px solid var(--black); border-top: 8px solid var(--zr-accent, var(--red)); border-radius: var(--r); padding: 0 .8rem .7rem; margin: 0; }
.zr-fold > summary { color: var(--zr-ink, var(--text)); }
.strip-wrap { margin-top: 1rem; }
.strip-wrap > .btn { width: 100%; }
.strip-wrap [hidden] { display: none; }

/* Dein Urteil, Rückblick */
.muted { color: #4a4a55; }

/* ---------- Aufklapp-Bereiche (Vorschlag, Kriterien, Melden, Über, FAQ) ---------- */
.band--acc { padding: .85rem 0; }
.band--acc.is-open { padding: 1.5rem 0 2rem; }
.acc__h { margin: 0; }
h2.acc__h { font-size: 1.4rem; margin: 0; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .4rem .9rem; border: 3px solid var(--black); border-radius: var(--r); background: #fff; color: var(--black); font: inherit; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: inherit; line-height: 1.15; text-align: left; cursor: pointer; box-shadow: 3px 3px 0 var(--black); }
.acc__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }
.acc__icon { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--black); color: #fff; }
.acc__icon::before { content: '+'; font: 800 1.4rem/1 var(--font-body); }
.acc__btn[aria-expanded="true"] .acc__icon::before { content: '\2212'; }
.acc__panel { margin-top: 1rem; }
.acc__panel[hidden] { display: none; }
.acc--nested { margin-top: 1rem; }
h3.acc__h { font-size: 1.25rem; margin: 0; }

/* ---------- Ergebnisansicht: Bewertung direkt unter dem Sprecher ---------- */
.who { margin: 0 0 .6rem; }
.rate { margin: .6rem 0 .9rem; padding: .7rem .75rem .75rem; border: 3px solid var(--black); border-radius: var(--r); background: #fff8e1; box-shadow: 3px 3px 0 var(--black); }
.rate__q { margin: 0 0 .4rem; line-height: 1.3; }
.rate__opt { display: inline-block; font-size: 1rem; color: #4a4a55; }
.rate .scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin: .2rem 0 .3rem; }
.rate .scale button { font: inherit; font-weight: 800; font-size: 1.25rem; min-height: 3.25rem; padding: 0; border: 3px solid var(--black); border-radius: .8rem; color: var(--text); cursor: pointer; }
.rate .scale button[data-w="1"] { background: #d9f5e4; } .rate .scale button[data-w="2"] { background: #eef6c9; } .rate .scale button[data-w="3"] { background: #fff1c2; }
.rate .scale button[data-w="4"] { background: #ffd9cc; } .rate .scale button[data-w="5"] { background: #ffc4c6; }
.rate .scale button[aria-pressed="true"] { background: var(--black); color: #fff; }
.rate .scale button:disabled { cursor: default; }
.rate .scale button:disabled[aria-pressed="false"] { opacity: .5; }
.rate .scale-ends { margin: 0; }
.rate__thanks { margin: .5rem 0 0; font-weight: 800; color: var(--ok); }
.rate__thanks:empty { display: none; }
.rate.is-done { background: #e5f6ec; border-color: var(--ok); }
.btn--small { min-height: var(--touch); padding: .3rem 1rem; font-size: 1rem; box-shadow: 2px 2px 0 var(--black); }
.meta-id { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: .75rem 0 0; }
.meta-id .meta { margin: 0; }

/* ---------- Abschluss-Karte „Geschafft für heute“ ---------- */
#fertig-h { margin: 0 0 .3rem; }
#fertig-h:focus { outline: none; }
#fertig-h:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.fertig-kv { margin: .4rem 0 .6rem; }
.fertig-morgen { margin: 0; font-weight: 700; }
#share-box { margin-top: .75rem; }
#share-box[hidden] { display: none; }
#mini-stats[hidden] { display: none; }
.card--game .actions { margin-top: .75rem; }

@media (min-width: 40rem) {
  .hubtabs { flex-wrap: wrap; overflow-x: visible; }
  .seg { grid-template-columns: repeat(3, max-content); }
  .seg button { padding-inline: 1.6rem; }
  .strip-wrap > .btn { width: auto; }
  .rate .scale { max-width: 28rem; }
  .rate .scale-ends { max-width: 28rem; }
}
@media (min-width: 48rem) {
  html { scroll-padding-top: 4.75rem; }
  .navbar--top { display: block; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 3px solid var(--black); }
  .navbar__in { display: flex; gap: .5rem; padding-block: .4rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .navbar__in::-webkit-scrollbar { display: none; }
  .navbar--bottom { display: none; }
  .hub__title { font-size: 1.9rem; padding: 1rem 1.4rem .2rem; }
  .hubtabs { padding-inline: 1.4rem; }
  .hub__panel { padding: 1rem 1.4rem 1.4rem; }
  .rank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2rem; align-items: start; }
  .rank > * { grid-column: 1 / -1; }
  .zr-folds { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .acc__btn { min-height: 4rem; padding-inline: 1.2rem; }
  h2.acc__h { font-size: 1.9rem; }
  h3.acc__h { font-size: 1.4rem; }
  .band--acc { padding: 1rem 0; }
  .band--acc.is-open { padding: 2.5rem 0 3rem; }
}
@media (min-width: 64rem) {
  .navbtn:hover { background: #fff; box-shadow: inset 0 0 0 3px var(--black); }
  .hubtabs [role=tab]:hover:not([aria-selected="true"]):not([aria-disabled="true"]) { background: var(--yellow); }
  .seg button:hover:not([aria-pressed="true"]) { background: var(--yellow); }
  .acc__btn:hover { background: var(--yellow); }
}
@media (prefers-reduced-motion: no-preference) {
  .rate__thanks.pop { animation: popin .5s cubic-bezier(.2, 1.6, .4, 1) both; }
}
@media (min-width: 64rem) {
  .navbar--top .wrap { max-width: 82rem; }
}

/* ===== Auswertung: Verlauf mit Zitatkarten ===== */
.aw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.aw-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .7rem .35rem; text-align: center; background: #fff8e1; border: 3px solid var(--black); border-radius: var(--r); box-shadow: 3px 3px 0 var(--black); }
.aw-tile:nth-child(2) { background: #fce6e7; } .aw-tile:nth-child(3) { background: #e3f1fb; }
.aw-tile strong { font-family: var(--font-display); font-style: italic; font-size: 2.1rem; line-height: 1; }
.aw-lab { font-size: .85rem; font-weight: 800; line-height: 1.15; }
.aw-ring { --p: 0; position: relative; display: grid; place-items: center; width: 3.7rem; height: 3.7rem; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), #e6e6ee 0); }
.aw-ring::before { content: ""; position: absolute; inset: .45rem; border-radius: 50%; background: #fff8e1; }
.aw-ring b { position: relative; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; font-weight: 400; }
.aw-filter { margin: 0 0 .6rem; }
.aw-day { margin: 1.2rem 0 .55rem; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.aw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.vcard { padding: .85rem 1rem 1rem; background: #fff; border: 3px solid var(--black); border-left-width: .7rem; border-radius: var(--r); box-shadow: 3px 3px 0 var(--black); }
.vcard.is-ok { border-left-color: var(--green); } .vcard.is-bad { border-left-color: var(--red); }
.vcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .5rem; }
.vbadge { padding: .1rem .75rem; border-radius: 99px; font-size: .85rem; font-weight: 900; color: #fff; }
.is-ok .vbadge { background: var(--ok); } .is-bad .vbadge { background: var(--bad); }
.vcard__q { position: relative; margin: 0 0 .65rem; padding-left: 1.7rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; quotes: none; overflow-wrap: anywhere; }
.vcard__q::before { content: "\201C"; position: absolute; left: 0; top: -.2rem; font-size: 2.7rem; line-height: 1; color: var(--magenta); }
.vcard__who { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.vcard__rate { margin: .2rem 0 .5rem; font-size: .95rem; }
.aw-empty { padding: 1rem .5rem; text-align: center; }
.aw-empty img { width: 7.5rem; height: auto; }
.aw-none, .aw-note { margin: .8rem 0 0; }


/* ===== Zitatkarte als aufklappbarer Bereich; Chart-Zeile als Knopf ===== */
.vcard { padding: 0; overflow: hidden; }
.vcard > details > summary { display: block; padding: .85rem 1rem 1rem; list-style: none; cursor: pointer; }
.vcard > details > summary::-webkit-details-marker { display: none; }
.vcard > details > summary::before { content: none; width: 0; }
.vcard__sum > span { display: block; }
.vcard__sum .vcard__top { display: flex; }
.vcard__hint { margin-top: .5rem; font-size: .9rem; font-weight: 800; color: #4a4a55; }
.vcard__hint::after { content: " +"; font-weight: 900; }
.vcard > details[open] .vcard__hint { display: none; }
.vcard__more { padding: 0 1rem 1rem; border-top: 2px dotted #cfcfd8; }
.vcard__more h5 { margin: .9rem 0 .25rem; font-size: 1rem; }
.vcard__more p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.vcard__id { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: .8rem; }

/* ===== Verteilungs-Chart: Einschätzungen aller je Zitat, dein Wert als Marke ===== */
.dist { margin: 0 0 1.1rem; padding: .9rem .9rem 1rem; background: #fff; border: 3px solid var(--black); border-radius: var(--r); box-shadow: 3px 3px 0 var(--black); }
.dist h4 { margin: 0 0 .3rem; }
.dist__intro { margin: 0 0 .5rem; }
.dist__legend { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: 0 0 .5rem; font-weight: 700; }
.dist__key { display: inline-block; width: .85rem; height: .85rem; margin-right: .3rem; vertical-align: -.1rem; border: 2px solid var(--black); border-radius: 3px; }
.dist__list { list-style: none; margin: 0; padding: 0; }
.dist__row { padding: .6rem 0; border-top: 2px dotted #cfcfd8; }
.dist__btn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dist__btn:hover .dist__lab, .dist__btn:focus-visible .dist__lab { text-decoration: underline; }
.dist__lab { display: block; margin: 0 0 .15rem; font-size: .88rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dist__track { position: relative; display: block; margin: 1.5rem .2rem .25rem; }
.dist__bar { display: flex; height: 1.7rem; overflow: hidden; border: 3px solid var(--black); border-radius: 99px; background: #e6e6ee; }
.dist__seg { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 0; border-right: 2px solid var(--black); }
.dist__seg:last-child { border-right: 0; }
.dist__seg b { font-size: .75rem; font-weight: 900; color: #0b0b0f; text-shadow: 0 0 3px rgba(255, 255, 255, .85); }
.dist__seg--none { flex: 1 1 auto; border-right: 0; }
.dist__seg--none b { font-weight: 700; color: #4a4a55; text-shadow: none; }
.dist__me { position: absolute; top: -1.35rem; width: 0; height: calc(100% + 1.35rem); }
.dist__me::after { content: ""; position: absolute; left: -1px; top: 1.05rem; bottom: 0; width: 2px; background: var(--black); }
.dist__me i { position: absolute; left: 0; top: 0; transform: translateX(-50%); padding: .05rem .5rem; border-radius: 99px; background: var(--black); color: #fff; font-style: normal; font-weight: 900; font-size: .78rem; white-space: nowrap; }
.dist__txt { display: block; margin-top: .25rem; font-size: .85rem; font-weight: 700; color: #4a4a55; }
