/* Rangliste der Reisen und der Methoden (includes/bewertung.php). Farben aus den Variablen von BuddyBoss, mit festen Ersatzwerten. */
.akademie-rangliste-leit { max-width: 44rem; }
.akademie-rang-liste { margin: 0 0 2rem; padding: 0; list-style: none; }
.akademie-rang { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; min-height: 56px; margin: 0 0 .5rem; padding: .5rem .9rem;
  border: 1px solid var(--bb-content-border-color, #D6D9DD); border-radius: 8px; background: var(--bb-content-background-color, #fff); }
.akademie-rang-platz { flex: 0 0 2rem; font-weight: 700; color: var(--bb-headings-color, #1E2132); text-align: right; }
.akademie-rang-titel { flex: 1 1 12rem; min-width: 0; font-weight: 600; color: var(--bb-headings-color, #1E2132); }
.akademie-rang-wert { flex: 0 0 auto; font-size: .9375rem; color: var(--bb-body-text-color, #5A5A5A); white-space: nowrap; }
.akademie-rang-sterne { display: inline-flex; flex: 0 0 auto; }
.akademie-rang-sterne button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #B4BDC7; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.akademie-rang-sterne button[aria-pressed="true"] { color: #E69138; }
.akademie-rang-sterne button:is(:hover, :focus-visible) { color: var(--bb-primary-color, #05749E); }
.akademie-rang-sterne button:focus-visible { outline: 3px solid var(--bb-headings-color, #1E2132); outline-offset: -3px; border-radius: 6px; }
.akademie-rang-sterne button:disabled { opacity: .5; cursor: default; }
.akademie-rang-meldung { flex: 1 1 100%; font-size: .875rem; color: #B3261E; }

/* Rätsel-Übersicht: das geöffnete Rätsel so breit wie ein Handy-Bildschirm */
.akademie-raetsel-offen { max-width: 30rem; margin: 0 0 2rem; scroll-margin-top: 16px; }   /* der Kopf scrollt seit W364 mit weg (Karl, 18.11.2026, 14:25 Uhr); nur etwas Luft über dem Titel */

/* Umschalter „Rangliste / Alle“ und die aufklappbaren Gruppen der Ansicht „Alle“ (Karl, 18.11.2026, W344) */
.akademie-rang-umschalter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.akademie-rang-umschalter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--bb-primary-color, #05749E); border-radius: 999px;
  color: var(--bb-primary-color, #05749E); font-weight: 600; text-decoration: none; }
.akademie-rang-umschalter a[aria-current="page"] { background: var(--bb-primary-color, #05749E); color: #fff; }
.akademie-rang-gruppe { margin: 0 0 .75rem; border: 1px solid var(--bb-content-border-color, #D6D9DD); border-radius: 8px; background: var(--bb-content-background-color, #fff); }
.akademie-rang-gruppe > summary { display: flex; align-items: center; gap: .4rem; min-height: 48px; padding: .5rem .9rem; font-weight: 600; color: var(--bb-headings-color, #1E2132); cursor: pointer; }
.akademie-rang-gruppe > summary span { font-weight: 400; color: var(--bb-body-text-color, #5A5A5A); }
.akademie-rang-gruppe > .akademie-rang-liste { margin: 0; padding: 0 .5rem .5rem; }
.akademie-rang-extra { flex: 0 0 auto; font-size: .9375rem; }

/* Übersicht „Alles auf einen Blick“ (includes/uebersicht.php, assets/uebersicht.js) und ihr Link neben den Umschaltern der Ranglisten */
.akademie-rang-umschalter a.akademie-rang-blick { padding: 0 .5rem; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.akademie-uebersicht [hidden] { display: none !important; }   /* .akademie-rang ist flex und schlüge sonst das hidden der Suche */
.akademie-uebersicht-suche { max-width: 30rem; margin: 0 0 1rem; }
.akademie-uebersicht-suche label { display: block; margin: 0 0 .3rem; font-weight: 600; color: var(--bb-headings-color, #1E2132); }
.akademie-uebersicht-suche input[type="search"] { box-sizing: border-box; width: 100%; min-height: 48px; padding: .5rem .9rem; font-size: 1rem;
  border: 1px solid var(--bb-content-border-color, #D6D9DD); border-radius: 8px; background: var(--bb-content-background-color, #fff); color: var(--bb-headings-color, #1E2132); }
.akademie-uebersicht-suche input[type="search"]:focus-visible { outline: 3px solid var(--bb-primary-color, #05749E); outline-offset: 1px; }
.akademie-uebersicht-treffer { margin: .4rem 0 0; font-size: .9375rem; }
.akademie-uebersicht-teil { scroll-margin-top: 16px; }   /* wie oben: Kopf nicht mehr fixiert (W364) */
.akademie-uebersicht-reiter a[aria-current] { background: var(--bb-primary-color, #05749E); color: #fff; }   /* der Reiter, dessen Teil gerade steht */
.akademie-uebersicht-zahl { margin-left: .3em; font-weight: 400; }
.akademie-uebersicht-zahl:empty { display: none; }
