/* Lunas Lesetraining · Hauptleiste oben (25.10.2026) – gehört zu js/kopfnav.js */
.haupt-nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.hn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none; cursor: pointer;
  color: #f1dc9a; background: rgba(255, 255, 255, .06); border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .2s cubic-bezier(.34, 1.45, .5, 1);
}
.hn img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; background: #fff;
  /* Kurs-Symbole haben außen einen Schriftring: nur den inneren Kreis zeigen */
  clip-path: circle(39.5% at 50% 50%); transform: scale(1.27);
}
.hn img.frei { background: none; clip-path: none; transform: none; object-fit: contain; }
.hn:hover { background: rgba(255, 255, 255, .13); color: #fff; transform: translateY(-1px); }
.hn:focus-visible { outline: 3px solid #e8c95c; outline-offset: 2px; }
.hn.aktiv {
  color: #1b2235; background: linear-gradient(180deg, #f3d77e, #c9a447); border-color: #f6e3a6;
  box-shadow: 0 3px 0 #8a6d22, 0 6px 14px rgba(0, 0, 0, .25);
}
body.kind .kind-kopf { flex-wrap: wrap; }
.kind-kopf .kopf-nav { margin-left: 0; }

/* Die Wege stehen jetzt oben – die Kacheln unten auf der Startseite fallen weg */
.su-raster, .abenteuer-hinweis { display: none !important; }

/* Mittlere Breite: nur noch Bild + kurzer Text */
@media (max-width: 1080px) {
  .hn { padding: 0 12px 0 5px; font-size: .88rem; gap: 6px; }
  .hn img { width: 28px; height: 28px; flex-basis: 28px; }
}
/* Tablet und Handy: Leiste als eigene Zeile unter Logo und Name, Bild über dem Wort */
@media (max-width: 900px) {
  .haupt-nav {
    order: 3; width: 100%; margin: 4px 0 0; justify-content: space-between; gap: 4px;
    padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .kind-kopf .kopf-nav { margin-left: auto; }
  .hn {
    flex: 1 1 0; min-width: 0; height: auto; flex-direction: column; gap: 3px; padding: 6px 2px 5px;
    border-radius: 14px; font-size: .74rem; line-height: 1.1; white-space: normal; text-align: center;
  }
  .hn img { width: 34px; height: 34px; flex-basis: auto; }
  .hn.aktiv { box-shadow: 0 2px 0 #8a6d22; }
}
@media (max-width: 380px) { .hn { font-size: .68rem; } .hn img { width: 30px; height: 30px; } }

/* Leiste bleibt beim Scrollen oben stehen (wie bei Red) */
body.kind .kind-kopf, body.kind.hg-an .kind-kopf { position: sticky !important; top: 0; z-index: 60; }
a.hn:link, a.hn:visited { color: #f1dc9a; }
a.hn:hover { color: #fff; }

/* Handy quer (28.10.2026): Leiste und Hauptleiste lagen in zwei Zeilen und nahmen ein Viertel der Höhe weg –
   die Antworten der Übungen lagen dadurch unter dem Rand. Jetzt eine flache Zeile, Figur etwas kleiner. */
@media (max-height: 500px) and (orientation: landscape) {
  body.kind .kind-kopf { flex-wrap: nowrap; padding-top: 4px; padding-bottom: 4px; min-height: 0; }
  body.kind .kind-kopf .brand-txt { display: none; }
  .haupt-nav { order: 0; width: auto; flex: 1 1 auto; margin: 0 6px; padding-top: 0; border-top: 0; justify-content: center; gap: 4px; }
  .hn { flex: 0 1 auto; flex-direction: row; height: 40px; gap: 5px; padding: 0 10px 0 4px; font-size: .78rem; white-space: nowrap; border-radius: 999px; }
  .hn img { width: 28px; height: 28px; flex-basis: 28px; }
  .maskottchen.bz { width: 72px; height: 72px; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 800px) {
  .hn span { display: none; }
  .hn { padding: 0 6px; }
}
/* 812–900 px quer: Menü-Knopf ☰ ragte sonst 25 px über den rechten Rand */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 801px) and (max-width: 900px) {
  .haupt-nav { margin: 0 2px; gap: 3px; }
  .hn { padding: 0 8px 0 3px; gap: 4px; font-size: .74rem; }
  .hn img { width: 26px; height: 26px; flex-basis: 26px; }
}
