/*
 * Eine Kopfleiste im Lernbereich (Station, Phase, Test): Stern mit dem Hauptmenü, Knopf für die Kurs-Leiste, Symbol und Titel der Station, Reiter.
 * Karl, Chat AK, 18.11.2026, 13:58 Uhr, und Pult SM4, 14:06 Uhr (W362). Modul: includes/muster.php, Abschnitt 1c; gezeichnet in kopfleiste.js.
 */

/* ---------- Knöpfe: Stern und Kurs-Leiste (statt der Pfeile von BuddyBoss rechts) ---------- */
body.akademie-kopfleiste .course-toggle-view { display: none !important; }
.akademie-leiste-knopf,
.akademie-menue-knopf { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; margin: auto 0; padding: 0;
	border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.akademie-leiste-knopf:hover,
.akademie-menue-knopf:hover { background: rgba(127, 127, 127, .12); }
.akademie-leiste-knopf[aria-expanded="true"] { color: var(--bb-primary-color); }
.akademie-leiste-knopf:focus-visible,
.akademie-menue-knopf:focus-visible { outline: 3px solid var(--bb-primary-color); outline-offset: 2px; }
/* der Stern aus dem großen Logo: links steht er im Quadrat, rechts der Schriftzug */
.akademie-menue-knopf img { display: block; width: 34px; height: 34px; object-fit: cover; object-position: left center; }
body.akademie-kopfleiste #masthead #site-logo,
body.akademie-kopfleiste #masthead #site-navigation { display: none; }
#masthead .site-header-container > .akademie-leiste-knopf { margin-right: .25rem; }

/* Hauptmenü am Rechner: klappt unter dem Stern auf */
.akademie-menue { position: absolute; top: 60px; left: 10px; z-index: 1000; min-width: 240px; padding: .5rem 0; background: var(--bb-header-background, #fff);
	border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.akademie-menue[hidden] { display: none; }
.akademie-menue ul { margin: 0; padding: 0; list-style: none; }
.akademie-menue a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.25rem; color: inherit; text-decoration: none; }
.akademie-menue a:hover,
.akademie-menue a:focus-visible { background: rgba(127, 127, 127, .12); }
.akademie-menue .akademie-menue-unter a { padding-left: 2.75rem; font-size: .9375rem; }

/* ---------- Reiter oben: in der Kopfleiste am Rechner und am Handy ---------- */
body.akademie-kopfleiste #masthead .akademie-kopf-oben { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; gap: 0 1.25rem; margin: 0 1rem 0 0; }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter-lektion { display: flex; align-items: center; gap: .5rem; flex: 0 1 auto; min-width: 8rem; margin: 0; font-size: 1rem; line-height: 1.25; }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter-lektion a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter { display: flex; flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; box-shadow: none; }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter > li { flex: 0 0 auto; margin: 0; box-shadow: none; }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter > li:has(> [aria-current]) { box-shadow: inset 0 -3px 0 var(--bb-primary-color); }
body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter-tab { min-height: 60px; }

/* Handy: Stern statt Menü-Strichen und Logo in der Mitte; Reiter ohne Titel */
body.akademie-kopfleiste #masthead .bb-mobile-header > :is(.bb-left-panel-icon-wrap, .mobile-logo-wrapper) { display: none; }
body.akademie-kopfleiste #masthead .bb-mobile-header .akademie-kopf-oben { margin: 0; gap: 0; }
body.akademie-kopfleiste #masthead .bb-mobile-header .akademie-reiter-tab { padding: 0 .4rem; font-size: .8125rem; }
body.akademie-kopfleiste #masthead .bb-mobile-header > :is(.akademie-leiste-knopf, .akademie-menue-knopf) { width: 40px; margin-left: 0; }
body.akademie-kopfleiste #masthead .bb-mobile-header .akademie-menue-knopf img { width: 30px; height: 30px; }

/* ---------- Inhalt: ab 1100 px steht alles oben; darunter bleibt die Zeile mit Symbol und Titel, die Reiter stehen oben ---------- */
@media (min-width: 1100px) {
	html body.akademie-seite.akademie-kopfleiste .learndash-wrapper > .akademie-reiter-kopf { display: none; }
}
@media (max-width: 1099px) {
	html body.akademie-seite.akademie-kopfleiste .learndash-wrapper > .akademie-reiter-kopf > .akademie-reiter,
	body.akademie-kopfleiste #masthead .akademie-kopf-oben .akademie-reiter-lektion { display: none; }
	html body.akademie-seite.akademie-kopfleiste .learndash-wrapper > .akademie-reiter-kopf:not(:has(.akademie-reiter-lektion)) { display: none; }
}
