/* Vokumi · App-Rahmen (Schritt 1): Kopfzeile, Fach-Chip, Sheets, Unterleiste mit vier Reitern.
   Alle Maße aus Variablen; große Schrift = alles × 1,25 (html.vBigText). Keine Karte in der Karte, keine Seitenstreifen. */
:root {
  /* Bereichsfarben kommen aus areas.css (Lernen blau · Prüfen orange · Spielen violett); Heute/Garten = Vokumi-Grün */
  --an-heute: var(--area-home, #1f7a4d);
  --an-lernen: var(--area-learn, #2f6fb5);
  --an-pruefen: var(--area-test, #c4501a);
  --an-garten: var(--area-garden, #3e9b4f);
  --an-spielen: var(--area-play, #4f35bb);
  --an-bg: #fbf8f1;
  --an-card: #ffffff;
  --an-ink: #1f2b24;
  --an-muted: #5d7066;
  --an-line: #e4ece7;
  --an-scale: 1;
  --an-header: calc(56px * var(--an-scale));
  --an-header-compact: calc(48px * var(--an-scale));
  --an-tabbar: calc(64px * var(--an-scale));
  --an-safe-b: env(safe-area-inset-bottom, 0px);
  --an-dur: 220ms;
  --an-ease: ease-out;
  --an-spring: cubic-bezier(0.2, 1.4, 0.4, 1);
  --an-sheet-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --an-fs-title: calc(20px * var(--an-scale));
  --an-fs-label: calc(12px * var(--an-scale));
  --an-fs-chip: calc(15px * var(--an-scale));
  --an-fs-body: calc(16px * var(--an-scale));
  --an-tab: var(--an-heute);
  --an-tab-12: rgba(31, 122, 77, 0.12);
  --an-tab-15: rgba(31, 122, 77, 0.15);
}
/* Große Schrift: Faktor 1,25 für alles in rem und für den Rahmen */
html.vBigText {
  --an-scale: 1.25;
  font-size: 125%;
}
@media (min-width: 900px) {
  html.vBigText {
    font-size: 125%;
  }
}
/* Reiterfarbe für Kopfzeile, Chip, Pille, Hauptkopf der Ansicht */
body[data-antab="heute"] { --an-tab: var(--an-heute); --an-tab-12: rgba(31, 122, 77, 0.12); --an-tab-15: rgba(31, 122, 77, 0.15); }
body[data-antab="lernen"] { --an-tab: var(--an-lernen); --an-tab-12: rgba(47, 111, 181, 0.12); --an-tab-15: rgba(47, 111, 181, 0.15); }
body[data-antab="pruefen"] { --an-tab: var(--an-pruefen); --an-tab-12: rgba(196, 80, 26, 0.12); --an-tab-15: rgba(196, 80, 26, 0.15); }
body[data-antab="garten"] { --an-tab: var(--an-garten); --an-tab-12: rgba(62, 155, 79, 0.12); --an-tab-15: rgba(62, 155, 79, 0.15); }

/* ---------- Seite ---------- */
body.anOn {
  padding-bottom: calc(var(--an-tabbar) + var(--an-safe-b) + 24px);
}
body.anOn .vZone {
  display: none;
}
.anToolsHidden {
  display: none !important;
}

/* ---------- Kopfzeile (AppHeader) ---------- */
body.anOn #journeyNav.vHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 0 16px;
  max-width: none;
  background: rgba(251, 248, 241, 0.92);
  background-clip: padding-box;
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  /* Die Kopfzeile schrumpft optisch um 8 px; ein durchsichtiger unterer Rahmen hält den Platz im Fluss gleich
     (Ränder würden mit dem Abstand der Seite zusammenfallen) – so springt der Inhalt beim Scrollen nicht. */
  border-bottom: 0 solid transparent;
  transition: border-bottom-width var(--an-dur) var(--an-ease);
}
body.anOn.anScrolled #journeyNav.vHeader {
  border-bottom-width: calc(var(--an-header) - var(--an-header-compact));
}
/* Trennlinie und Schatten unter der Kopfzeile erst beim Scrollen */
body.anOn #journeyNav.vHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--an-line);
  box-shadow: 0 6px 18px rgba(20, 39, 29, 0.08);
  opacity: 0;
  transition: opacity var(--an-dur) var(--an-ease);
  pointer-events: none;
}
body.anOn.anScrolled #journeyNav.vHeader::after {
  opacity: 1;
}
.anHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--an-header);
  max-width: 1100px;
  margin: 0 auto;
  transition: height var(--an-dur) var(--an-ease);
}
body.anScrolled .anHeader {
  height: var(--an-header-compact);
}
.anLead {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.anTitle {
  margin: 0;
  font-size: var(--an-fs-title);
  font-weight: 800;
  line-height: 1.2;
  color: var(--an-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anTrail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
/* Ebene 2: Zurück-Pfeil (Berührfläche 48 × 48) + Titel der aktuellen Ebene rechts daneben */
.anBackBar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.anBack,
.anClose {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 0 !important;
  margin-left: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--an-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 90ms ease-out, background-color 90ms ease-out;
}
.anBack:hover,
.anClose:hover {
  background: rgba(31, 43, 36, 0.06);
}
.anBack:focus-visible,
.anClose:focus-visible {
  outline: 3px solid var(--an-tab);
  outline-offset: -3px;
}
/* Druckzustand: sofort beim Berühren, damit der Tipp spürbar ist */
.anBack.anPressed,
.anBack:active,
.anClose.anPressed,
.anClose:active {
  transform: scale(0.97);
  background: rgba(31, 43, 36, 0.1);
}
.anBackIcon {
  width: calc(24px * var(--an-scale));
  height: calc(24px * var(--an-scale));
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anBackBar .anTitle {
  min-width: 0;
  font-size: calc(18px * var(--an-scale));
}

/* Fach-Chip: 36 px, Radius 18, 12 % der Reiterfarbe */
.anChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: calc(36px * var(--an-scale));
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: calc(18px * var(--an-scale));
  background: var(--an-tab-12);
  color: var(--an-ink);
  font: inherit;
  font-size: var(--an-fs-chip);
  font-weight: 800;
  cursor: pointer;
  transition: transform 90ms ease-out, background-color var(--an-dur) var(--an-ease);
}
.anChip,
.anSec {
  position: relative;
  min-height: 0 !important;
}
.anChip::after,
.anSec::after {
  content: "";
  position: absolute;
  inset: -6px -2px;
}
.anChip:active {
  transform: scale(0.97);
}
.anChipIcon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
}
.anChipIcon .flag,
.anFlag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
}
.anChipLabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anChipCaret,
.anIcon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Mini-Kumi und Avatar: 32 px sichtbar, 48 px Berührfläche */
.anKumi,
.anAvatar {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 90ms ease-out;
}
.anKumi::after,
.anAvatar::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.anKumi:active,
.anAvatar:active {
  transform: scale(0.94);
}
.anKumi {
  background: #f1efe6;
}
.anKumi img {
  display: block;
  width: 32px;
  height: 32px;
}
.anDrop {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  background: #3b82c4;
  border: 2px solid #fff;
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
}
.anAvatar {
  display: grid;
  place-items: center;
  background: var(--an-tab);
  color: #fff;
  font: inherit;
  font-size: calc(15px * var(--an-scale));
  font-weight: 800;
}
.anAvatar.big {
  width: 56px;
  height: 56px;
  margin: 0;
  font-size: 24px;
}

/* Zweite Zeile: Fach-Chip ab Ebene 2 und Abschnitte im Reiter Lernen */
.anSub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.anSub[hidden] {
  display: none;
}
.anSections {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.anSections::-webkit-scrollbar {
  display: none;
}
.anSec {
  flex: none;
  height: calc(36px * var(--an-scale));
  padding: 0 14px;
  border: 1px solid var(--an-line);
  border-radius: calc(18px * var(--an-scale));
  background: var(--an-card);
  color: var(--an-muted);
  font: inherit;
  font-size: calc(14px * var(--an-scale));
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--an-dur) var(--an-ease), color var(--an-dur) var(--an-ease), transform 90ms ease-out;
}
.anSec:active {
  transform: scale(0.97);
}
.anSec[aria-current] {
  background: var(--an-tab);
  border-color: transparent;
  color: #fff;
}

/* ---------- Unterleiste (TabBar) ---------- */
.anTabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(var(--an-tabbar) + var(--an-safe-b));
  padding: 0 0 var(--an-safe-b);
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--an-line);
  box-shadow: 0 -6px 20px rgba(20, 39, 29, 0.06);
}
.anTabs[hidden],
body:not(.anOn) .anTabs {
  display: none;
}
.anTab {
  --c: var(--an-heute);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: calc(4px * var(--an-scale));
  height: var(--an-tabbar);
  padding: calc(12px * var(--an-scale)) 0 0;
  border: 0;
  background: none;
  color: var(--an-muted);
  font: inherit;
  font-size: var(--an-fs-label);
  font-weight: 600;
  line-height: calc(16px * var(--an-scale));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--an-dur) var(--an-ease);
}
.anTab.t-lernen { --c: var(--an-lernen); }
.anTab.t-pruefen { --c: var(--an-pruefen); }
.anTab.t-garten { --c: var(--an-garten); }
.anTab .anIcon {
  width: calc(24px * var(--an-scale));
  height: calc(24px * var(--an-scale));
}
.anTab[aria-current] {
  color: var(--c);
  font-weight: 800;
}
.anTab:active .anIcon {
  transform: scale(0.92);
}
.anTab:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: -6px;
  border-radius: 14px;
}
/* Pille 56 × 32, 15 % der Reiterfarbe; wandert in 220 ms ease-out zum aktiven Reiter */
.anPill {
  position: absolute;
  z-index: 0;
  top: calc(8px * var(--an-scale));
  left: calc((100% / 4) * var(--an-i, 0) + (100% / 4 - 56px * var(--an-scale)) / 2);
  width: calc(56px * var(--an-scale));
  height: calc(32px * var(--an-scale));
  border-radius: calc(16px * var(--an-scale));
  background: var(--an-tab-15);
  transition: left var(--an-dur) var(--an-ease), top var(--an-dur) var(--an-ease), background-color var(--an-dur) var(--an-ease);
  pointer-events: none;
}
/* Hinweis-Punkte */
.anBadge {
  position: absolute;
  top: calc(6px * var(--an-scale));
  left: calc(50% + 6px * var(--an-scale));
  display: none;
}
.anBadge.count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--an-pruefen);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-sizing: content-box;
  animation: anPop 300ms var(--an-spring) both;
}
.anBadge.dot {
  display: block;
  top: calc(9px * var(--an-scale));
  left: calc(50% + 9px * var(--an-scale));
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c);
}
.anBadge.dot.calm {
  background: #2f8f5b;
}
.anBadge.drop {
  display: block;
  top: calc(9px * var(--an-scale));
  left: calc(50% + 9px * var(--an-scale));
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 0 50% 50% 50%;
  background: #3b82c4;
  transform: rotate(45deg);
}
@keyframes anPop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

/* Tablet und PC ab 900 px: Seitenleiste links (88 px) */
@media (min-width: 900px) {
  body.anOn {
    padding-left: 88px;
    padding-bottom: 24px;
  }
  .anTabs {
    top: 0;
    right: auto;
    width: 88px;
    height: auto;
    padding: 96px 0 var(--an-safe-b);
    grid-template-columns: none;
    grid-auto-rows: calc(72px * var(--an-scale));
    align-content: start;
    border-top: 0;
    border-right: 1px solid var(--an-line);
    box-shadow: 6px 0 20px rgba(20, 39, 29, 0.04);
  }
  .anTab {
    height: calc(72px * var(--an-scale));
  }
  .anPill {
    left: calc((88px - 56px * var(--an-scale)) / 2);
    top: calc(96px + 72px * var(--an-scale) * var(--an-i, 0) + 8px * var(--an-scale));
  }
}

/* ---------- Bottom-Sheets (Fachwahl, Ich) ---------- */
body.anSheetOpen {
  overflow: hidden;
}
.anScrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(20, 32, 26, 0.45);
  opacity: 0;
  transition: opacity var(--an-dur) var(--an-ease);
}
.anScrim.open {
  opacity: 1;
}
.anSheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 141;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  max-height: 85vh;
  margin: 0 auto;
  padding-bottom: var(--an-safe-b);
  background: var(--an-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 260ms var(--an-sheet-ease);
}
.anSheet.open {
  transform: none;
}
.anGrab {
  flex: none;
  width: 40px;
  height: 5px;
  margin: 8px auto 4px;
  border-radius: 3px;
  background: #d5ddd8;
  touch-action: none;
}
.anSheetHead {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 12px;
  touch-action: none;
}
.anSheetTitle {
  margin: 0;
  font-size: calc(20px * var(--an-scale));
  font-weight: 800;
  color: var(--an-ink);
}
.anSheetX {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--an-line);
  border-radius: 50%;
  background: var(--an-card);
  font-size: 16px;
  cursor: pointer;
}
.anSheetBody {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
}
/* Fach-Sheet: Kacheln in 2 Spalten, Symbol 32 px, Fortschrittsring 28 px */
.anSubjGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.anSubj {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: calc(104px * var(--an-scale));
  padding: 12px;
  border: 2px solid var(--an-line);
  border-radius: 16px;
  background: var(--an-card);
  color: var(--an-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--an-dur) var(--an-ease), transform 90ms ease-out;
}
.anSubj:active {
  transform: scale(0.97);
}
.anSubj[aria-current] {
  border-color: var(--an-tab);
  box-shadow: 0 0 0 4px var(--an-tab-12);
}
.anSubjTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.anSubjIcon {
  display: inline-grid;
  place-items: center;
  height: 32px;
  font-size: 28px;
  line-height: 1;
}
.anSubjIcon .flag {
  width: 32px;
  height: 22px;
  border-radius: 4px;
}
.anRing {
  width: 28px;
  height: 28px;
  flex: none;
}
.anRingTrack {
  fill: none;
  stroke: var(--an-line);
  stroke-width: 3;
}
.anRingFill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 600ms var(--an-ease);
}
.anSubjName {
  font-size: calc(15px * var(--an-scale));
  font-weight: 800;
}
.anSubjMeta {
  font-size: calc(12px * var(--an-scale));
  color: var(--an-muted);
}
.anSubjAdd {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border: 2px dashed #cdd9d2;
  border-radius: 16px;
  background: transparent;
  color: var(--an-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* z60l: Notausgang – kleiner Text-Link, nie grün, nie größer als Fließtext */
.anSubjExtra {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--an-muted);
  font: inherit;
  font-size: calc(14px * var(--an-scale));
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
/* Ich-Sheet */
.anMeWho {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 0 12px;
}
.anMeSub {
  color: var(--an-muted);
  font-size: 14px;
}
.anMeRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--an-line);
  background: none;
  color: var(--an-ink);
  font: inherit;
  font-size: var(--an-fs-body);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.anMeIcon {
  width: 28px;
  font-size: 20px;
  text-align: center;
}
.anMeLabel {
  flex: 1;
}
.anMeLabel {
  min-width: 0;
}
.anMeHint {
  display: block;
  margin-top: 2px;
  color: var(--an-muted);
  font-size: 13px;
  font-weight: 500;
}
.anMeLocale select {
  max-width: 50%;
  min-height: 40px;
}
.anSwitch {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: #cfd8d3;
  transition: background-color var(--an-dur) var(--an-ease);
}
.anSwitch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--an-dur) var(--an-ease);
}
.anMeRow[aria-checked="true"] .anSwitch {
  background: var(--an-heute);
}
.anMeRow[aria-checked="true"] .anSwitch::after {
  transform: translateX(18px);
}

/* ---------- Seiten „Prüfen“ und „Garten“ ---------- */
.anPageTitle {
  margin: 4px 0 16px;
  font-size: calc(1.6rem);
  font-weight: 800;
}
.anH2 {
  margin: 24px 0 12px;
  font-size: 1.15rem;
}
.anRows {
  display: grid;
  gap: 12px;
}
.anRow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--an-line);
  border-radius: 20px;
  background: var(--an-card);
  box-shadow: 0 6px 20px rgba(31, 43, 36, 0.06);
  color: var(--an-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 90ms ease-out;
}
.anRow:active {
  transform: scale(0.98);
}
.anRowIcon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--an-tab-12);
  font-size: 22px;
}
.anRowText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.anRowText strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.anRowText span {
  color: var(--an-muted);
  font-size: 0.9rem;
}
.anRowGo {
  flex: none;
  color: var(--an-muted);
  font-size: 1.6rem;
  line-height: 1;
}
.anCountdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.anCountdown {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
  background: var(--an-tab-12);
  color: var(--an-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.anCountdown.soon {
  background: var(--an-pruefen);
  color: #fff;
}
.anBeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.anBed {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 8px;
  padding: 12px;
  border: 1px solid var(--an-line);
  border-radius: 16px;
  background: var(--an-card);
  color: var(--an-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.anBedIcon {
  font-size: 26px;
  line-height: 1;
}
.anBedIcon .flag {
  width: 30px;
  height: 20px;
  border-radius: 4px;
}
.anBed strong {
  grid-column: 1 / -1;
  font-weight: 800;
}
.anBedMeta {
  grid-column: 1 / -1;
  color: var(--an-muted);
  font-size: 0.82rem;
}
.anGardenLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* Weniger Bewegung: keine Wege, nur Wechsel */
@media (prefers-reduced-motion: reduce) {
  .anPill,
  .anHeader,
  .anSheet,
  .anScrim,
  .anRingFill,
  .anSec,
  .anTab {
    transition: none !important;
  }
  .anBadge.count {
    animation: none;
  }
}

/* ---------- Vollbild für Übungen: ✕ statt Reiter ---------- */
body.anOn.anFull .anTabs {
  display: none;
}
body.anOn.anFull {
  padding-bottom: calc(24px + var(--an-safe-b));
}
@media (min-width: 900px) {
  body.anOn.anFull {
    padding-left: 0;
  }
}
.anCloseIcon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.anKumiFull {
  width: 40px;
  height: 40px;
}
.anConfirmText {
  margin: 0 0 16px;
  font-size: var(--an-fs-body);
}
.anConfirmActs {
  display: grid;
  gap: 10px;
}
.anConfirmActs button {
  min-height: 52px;
}
/* Abschnittszeile scrollt waagrecht: weicher Rand rechts zeigt, dass es weitergeht */
.anSections.more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
/* Eltern-Konsole (bisherige Leiste) mit großer Schrift: Beschriftungen unter den Symbolen in fester Größe */
/* (shell.css setzt hier 0.72rem !important mit #journeyNav – daher gleich stark überstimmen) */
body.consoleView.jComfort #journeyNav .vTools .vIconLabel,
body.consoleView.jComfort #journeyNav .vTools .vLogoutLabel {
  font-size: 11px !important;
  letter-spacing: -0.01em;
}

/* Kumi ausgeblendet (nur Erwachsene, Ich-Menü „Kumi zeigen“): ruhige Ansicht ohne Figur.
   Kopfzeile: Blatt-Symbol statt Kumi; in Inhalten verschwinden Kumi-Bilder, -Karte und Maskottchen. */
.anKumiLeaf { width: calc(22px * var(--an-scale)); height: calc(22px * var(--an-scale)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--an-ink); }
body.kumiOff .kumiCard,
body.kumiOff .glMascot,
body.kumiOff .glKumi,
body.kumiOff .vfKumi,
body.kumiOff #journeyHub img[src*="kumi-"],
body.kumiOff .vfOverlay img[src*="kumi-"],
body.kumiOff .glOverlay img[src*="kumi-"] {
  display: none !important;
}

/* Lange Titel neben Pfeil/✕: erst kleiner, dann zweizeilig – nie mit „…“ abgeschnitten */
.anHeader .anTitle.anTitleFit { font-size: calc(15px * var(--an-scale)); }
.anHeader .anTitle.anTitleWrap { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; }

/* Kein Scroll-Ankern an der Kopfzeile: ihre Höhenänderung soll die Seite nicht verschieben */
#journeyNav.vHeader { overflow-anchor: none; }
/* Vollbild-Übung: der Ausweg ist das ✕ oben links – der alte „Zurück“-Knopf der Lernrunde wäre ein zweiter */
body.anFull .learnBack { display: none !important; }

/* Reiternamen nie mitten im Wort trennen („He/ute“): eigene Schriftgröße (große Schrift: × 1,25), eine Zeile – passt in die 88 px breite Leiste */
.anTab .anTabLabel {
  font-size: var(--an-fs-label) !important;
  line-height: calc(16px * var(--an-scale)) !important;
  white-space: nowrap;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Eltern sehen die App wie ihr Kind („Als Karlo ansehen“): kein gelber Balken, sondern ein schmaler Rahmen in der
   Garten-Farbe um die ganze App und ein kleines schwebendes Schild oben in der Mitte (mit Rückweg und i-Knopf). */
body.anOn.supportMode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  border: 3px solid #3e9b4f;
  pointer-events: none;
}
body.anOn .vSupportBar.vSupportBadge {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 201;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 2px 4px 3px 12px;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: #3e9b4f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(31, 90, 50, 0.25);
}
body.anOn .vSupportBadge .vSupportLabel { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
/* z60l (Durchlauf j): am iPhone wird „Vorschau: so sieht Marie Vokumi“ nicht abgeschnitten – höchstens zwei Zeilen */
@media (max-width: 520px) {
  body.anOn .vSupportBadge:not([data-open]) .vSupportLabel { flex: 1 1 auto; white-space: normal; overflow: visible; text-overflow: clip; font-size: 12.5px; line-height: 1.15; }
}
body.anOn .vSupportBadge > button.vSupportBack,
body.anOn .vSupportBadge > button.vSupportInfo {
  min-height: 30px !important;
  min-width: 30px;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800;
}
body.anOn .vSupportBadge > button.vSupportInfo { padding: 0 !important; width: 30px; font: italic 800 14px/1 Georgia, serif !important; }
/* Rückweg mit Elternpasswort: das Schild klappt zu einer kleinen Karte auf */
body.anOn .vSupportBar.vSupportBadge[data-open] {
  flex-wrap: wrap;
  width: min(420px, calc(100vw - 24px));
  padding: 10px 12px 12px;
  border-radius: 0 0 18px 18px;
  background: #fff;
  color: #1f2b24;
  border: 3px solid #3e9b4f;
  border-top: 0;
}
body.anOn .vSupportBadge[data-open] .vSupportLabel { color: #1f6b33; }
body.anOn .vSupportBadge[data-open] .accReturn { flex: 1 1 100%; display: grid; gap: 8px; }
body.anOn .vSupportBadge[data-open] .accReturn input { min-height: 40px; padding: 4px 10px; border: 2px solid #cfe6d7; border-radius: 10px; font: inherit; background: #fff; }
body.anOn .vSupportBadge[data-open] .accReturn p:empty { display: none; }
body.anOn .vSupportBadge > button { white-space: nowrap; }
/* Handy: Kopfzeile ist schmal – das Schild schwebt unten über den Reitern (dort verdeckt es weder Titel noch Avatar) */
@media (max-width: 899px) {
  body.anOn .vSupportBar.vSupportBadge {
    top: auto;
    bottom: calc(var(--an-tabbar) + var(--an-safe-b) + 10px);
    border-radius: 999px;
    padding: 3px 4px 3px 14px;
  }
  body.anOn .vSupportBar.vSupportBadge[data-open] {
    border-radius: 18px;
    border-top: 3px solid #3e9b4f;
  }
}
@media (max-width: 899px) {
  body.anOn.supportMode { padding-bottom: calc(var(--an-tabbar) + var(--an-safe-b) + 72px); }
}

/* ---------- Navigations-Regel (24.10.2026): Haus-Knopf überall, Zurück = Pfeil oben links, ≥ 44 × 44 px ---------- */
.anHome {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--an-ink, #1f2b24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 90ms ease-out, background-color 90ms ease-out;
}
.anHome:hover { background: rgba(31, 43, 36, 0.06); }
.anHome:active { transform: scale(0.97); background: rgba(31, 43, 36, 0.1); }
.anHome:focus-visible { outline: 3px solid var(--an-tab, #2f6fb5); outline-offset: -3px; }
.anHome[aria-current="page"] { color: var(--an-tab, #2f6fb5); }
.anHomeIcon {
  width: calc(24px * var(--an-scale, 1));
  height: calc(24px * var(--an-scale, 1));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Dialoge: Pfeil links, Titel, Haus rechts */
.anSheetHead .anSheetX.anBack {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin-left: -8px;
  border: 0;
  background: transparent;
}
.anSheetHead .anSheetTitle { flex: 1; min-width: 0; }
.anSheetHead .anHome { margin-right: -8px; }
/* Eigene Ebenen (Lernkarten, Film, Nachschlage-Blätter): gleiche Leiste */
.anLayerBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
}
.anLayerLead { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.anLayerTrail { display: flex; align-items: center; gap: 6px; flex: none; }
.anLayerTitle { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anLayerBar .anBack { margin-left: -6px; }

.anBackIcon { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
/* Titel zu lang (z. B. „Klassenarbeiten“ neben Pfeil + Haus + Kumi + Avatar): Verkleinern muss gegen die allgemeine
   Regel #journeyNav h1 (1,45 rem) gewinnen – sonst wird der Titel abgeschnitten statt kleiner */
#journeyNav .anHeader .anTitle.anTitleFit { font-size: calc(17px * var(--an-scale, 1)); }
#journeyNav .anHeader .anTitle.anTitleWrap { font-size: calc(15px * var(--an-scale, 1)); white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; hyphens: auto; }
/* z28 · gezeichnete Fach-Symbole im Fach-Menü und im Fach-Chip */
.anSubjIcon .anSubjArt { width: 34px; height: 34px; object-fit: contain; display: block; }
.anChipIcon .anSubjArt { width: 22px; height: 22px; object-fit: contain; display: block; }
/* z30: Zurück-Pfeil vor dem Fach-Knopf auf der Fach-Startseite */
.anLead:has(.anRootBack) { display: flex; align-items: center; gap: 4px; min-width: 0; }
.anLead .anRootBack { flex: none; }
.anLead:has(.anRootBack) .anChip { min-width: 0; }
/* z33: Kumi hat Durst → deutliches Ausrufezeichen; Hinweis „Tipp auf Kumi“, bis er einmal angetippt wurde */
.anAlert { position: absolute; right: -6px; top: -1px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; background: #e0662f; color: #fff; font: 900 12px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 2px 6px #0003; }
.anKumiTip { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 12px; background: #1f7a4d; color: #fff; font: 700 13px/1.2 system-ui, sans-serif; box-shadow: 0 6px 16px #0003; pointer-events: none; z-index: 5; }
.anKumiTip::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #1f7a4d; }
@media (prefers-reduced-motion: no-preference) {
  /* z58: kein Wackeln mehr, wenn Kumi wachsen kann (keine Aufmerksamkeits-Mechanik) */
  .anKumi.hint .anKumiTip { animation: anTipBob 1.6s ease-in-out infinite; }
}
@keyframes anKumiWiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-9deg); } 92% { transform: rotate(8deg); } 95% { transform: rotate(-5deg); } }
@keyframes anTipBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 3px); } }
html.vCalm .anKumi img, html.vCalm .anKumiTip { animation: none !important; }

/* z34: In der Ansicht des Kindes (Eltern) liegt unten die grüne Leiste – Inhalt nicht dahinter verstecken */
body.anOn:has(.vSupportBar.vSupportBadge) #journeyHub { padding-bottom: calc(var(--an-tabbar, 64px) + 84px) !important; }
/* z58: ruhiger grüner Punkt statt rotem „!“ (höchstens einmal am Tag) */
.anDot { position: absolute; right: -3px; top: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2f8a55; border: 2px solid #fff; }
.anAlert { display: none !important; }
/* z58: Profil-Kreis immer in derselben Farbe, unabhängig vom Reiter */
.anAvatar { background: #1f6b45; }
/* z58: ruhige Ansicht ab Klasse 8 und für Erwachsene – keine Hinweise an Kumi */
body.age-t .anKumiTip, body.age-t .kBubble { display: none !important; }
/* z58: Abschnittszeile – deutlicher Verlauf am rechten Rand, damit sie als scrollbar erkennbar ist (nichts wirkt abgeschnitten) */
.anSections.more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), rgba(0, 0, 0, 0.15) calc(100% - 8px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 64px), rgba(0, 0, 0, 0.15) calc(100% - 8px), transparent);
}
.anSections { scroll-padding-inline: 16px; }
.anSections::after { content: ""; flex: 0 0 24px; }
.faTeenNote { display: block; margin: 6px 0 0; color: #4a4636; font-size: .92rem; line-height: 1.45; }

/* ===== z59e: Tür „Abmelden“ in der Kopfzeile (Haus · Kumi · Tür · Profil-Kreis), ≥ 44 px ===== */
.anDoor {
  flex: none; display: grid; place-items: center; width: 44px; height: 48px; min-width: 44px; min-height: 48px !important;
  margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none;
  color: var(--an-ink, #1f2b24); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.anDoor:hover { background: rgba(31, 43, 36, 0.06); }
.anDoor:active { transform: scale(0.97); }
.anDoor:focus-visible { outline: 3px solid var(--an-tab, #2f6fb5); outline-offset: -3px; }
.anDoorIcon, .anMeSvg { width: calc(22px * var(--an-scale, 1)); height: calc(22px * var(--an-scale, 1)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.anMeSvg { width: 24px; height: 24px; }
/* keine Kopfzeile bricht um: einzeilig mit Auslassungspunkten */
.anHeader .anTitle, .anHeader .anTitle.anTitleWrap, #journeyNav .anHeader .anTitle.anTitleWrap {
  white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset;
}
.anLead { min-width: 0; }
@media (max-width: 420px) {
  .anTrail { gap: 0; }
  .anTrail .anHome { width: 44px; min-width: 44px; }
}
.anMeName { display: grid; gap: 2px; min-width: 0; }
.anMeLogout { margin-top: 8px; border-top: 1px solid var(--an-line, #e4ece7) !important; }

/* 5 Sekunden „Abgemeldet · Rückgängig“ – der Bildschirm ist sofort zugedeckt (Geschwister sehen nichts mehr) */
.vLogoutCover {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px;
  background: var(--an-bg, #fbf8f1);
}
.vLogoutBox { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 360px; }
.vLogoutBox .anDoorIcon { width: 56px; height: 56px; color: var(--an-muted, #5d7066); }
.vLogoutTitle { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--an-ink, #1f2b24); }
.vLogoutNote { margin: 0; color: #3f5148; }
.vLogoutUndo { min-height: 48px; min-width: 180px; }

/* ===== z60: Abschnitte (Übersicht · Buch · Wörter · Grammatik · Spiele) immer ganz sichtbar, gleich breite Kacheln ===== */
.anSections.anGrid { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); grid-auto-rows: minmax(44px, auto); gap: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.anSections.anGrid::after { display: none; }
.anSections.anGrid .anSec::after { inset: -3px 0; }
.anSections.anGrid .anSec { min-width: 0; min-height: 44px; height: auto; padding: 4px 4px; font-size: calc(13.5px * var(--an-scale)); line-height: 1.15; white-space: nowrap; text-align: center; border-radius: 14px; }
@media (max-width: 480px) {
  .anSections.anGrid.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.anSections.anGrid.wrapFit { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== z60: Elternansicht – „Ansicht von Marie · Zurück“ als feste schmale Zeile unter der Kopfzeile ===== */
body.anOn #journeyNav .vSupportBar.vSupportBadge,
body.anOn #journeyNav .vSupportBar.vSupportBadge[data-open] {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  bottom: auto;
  width: auto;
  max-width: none;
  margin: 0 -16px;
  min-height: 40px;
  padding: 4px 16px;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.anOn #journeyNav .vSupportBar.vSupportBadge[data-open] { background: #fff; border-top: 3px solid #3e9b4f; border-bottom: 3px solid #3e9b4f; }
body.anOn #journeyNav .vSupportBadge > button.vSupportBack { min-height: 32px !important; padding: 0 14px !important; }
body.anOn:has(#journeyNav .vSupportBar.vSupportBadge) #journeyHub { padding-bottom: calc(var(--an-tabbar, 64px) + 24px) !important; }

/* ===== z60b: Herz „Mir geht's nicht gut“ fest in der Kopfzeile (nur Kinder) ===== */
.anCare {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  margin: 0 2px;
  padding: 0 10px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #b14a5c;
  font: inherit;
  cursor: pointer;
  transition: transform 90ms ease-out, background-color var(--an-dur) var(--an-ease);
}
.anCare .anHeart { width: 22px; height: 22px; stroke-width: 2; }
.anCare:active { transform: scale(0.94); }
.anCare:focus-visible { outline: 3px solid #b14a5c; outline-offset: 2px; }
/* nach einem Schutz- oder Notfall: sanfter Schimmer und „Hilfe bei Sorgen“ daneben – kein Kasten auf der Seite */
.anCare.alert { background: #fdecef; color: #8e2f57; animation: anCareGlow 3.2s ease-in-out infinite; }
.anCare.alert .anHeart { fill: #f5c9dc; }
.anCareLabel { font-size: 13px; font-weight: 800; white-space: nowrap; }
.anCare.anCareSlim .anCareLabel { display: none; }
@keyframes anCareGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177, 74, 92, 0); }
  50% { box-shadow: 0 0 0 6px rgba(177, 74, 92, 0.16); }
}
@media (prefers-reduced-motion: reduce) {
  .anCare.alert { animation: none; box-shadow: 0 0 0 3px rgba(177, 74, 92, 0.18); }
}
@media (max-width: 380px) {
  .anCare.alert { padding: 0 8px; }
  .anCareLabel { font-size: 12px; }
}
/* z60e: Ansichten ohne Reiter (Einstellungen, Fragen zur App, Privatsphäre, Karteikasten des Kindes): keine Pille */
.anTabs.anNone .anPill { opacity: 0; }

/* ===== z60g: Feste Ordnung – Fach-Reiter als abgesetzte Leiste direkt unter dem Fachnamen =====
   Eigener Hintergrund, Trennlinie unten, aktiver Reiter in Bereichsfarbe gefüllt. Gleiche Reiter in jedem Fach:
   Übersicht · Buch · [Fachinhalt] · Spiele. */
.anSub:has(.anFachTabs) { padding: 0; }
.anSections.anFachTabs {
  padding: 6px 6px 8px;
  gap: 6px;
  background: var(--an-tab-12);
  border-bottom: 2px solid var(--an-tab);
  border-radius: 12px 12px 0 0;
}
.anSub:has(.anFachTabs) { padding-bottom: 0; }
.anSections.anFachTabs .anSec {
  background: var(--area-tint, var(--an-card));
  border: 1px solid var(--area-line, transparent);
  color: var(--area-ink, var(--an-ink));
  font-weight: 700;
  min-height: 44px;
  border-radius: 12px;
}
.anSections.anFachTabs .anSec[aria-current] {
  background: var(--area-c, var(--an-tab));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
/* Kopfzeile „Englisch › Buch“ */
.anCrumb { max-width: 100%; min-width: 0; gap: 5px; }
.anCrumb .anCrumbSep { opacity: 0.55; font-weight: 700; flex: none; }
.anCrumb .anCrumbTab { font-weight: 800; color: var(--an-tab); white-space: nowrap; flex: 0 1 auto; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; }
.anCrumb .anChipLabel { white-space: nowrap; flex: 0 1 auto; min-width: 4ch; }
.anCrumb .anChipCaret { flex: none; }
@media (max-width: 420px) {
  /* 390 px: Fachname › Reiter muss neben Pfeil, Herz, Haus, Tür und Profil passen – ohne Symbol, etwas kleiner */
  .anCrumb { font-size: calc(13px * var(--an-scale, 1)); padding: 3px 9px; gap: 0 3px; height: auto; min-height: calc(36px * var(--an-scale)); flex-wrap: wrap; align-content: center; line-height: 1.15; }
  .anCrumb .anChipIcon, .anCrumb .anChipCaret { display: none; }
  .anCrumb .anChipLabel, .anCrumb .anCrumbTab { flex: none; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
/* Ablauf im Vollbild: Zurück · Titel · Herz · Haus – sonst nichts (keine Fach-Reiter, keine untere Leiste) */
body.anOn.anFlow .anTabs { display: none; }
.anHeader.anFlowHead .anTrail { gap: 4px; }
/* z60g (Selbstprüfung): Fach-Reiter in EINER Reihe – Spalten nach Textbreite statt gleich breit (bei 390 px sonst
   „Übersicht“ zu breit → zwei Reihen); nur der aktive Reiter farbig, die anderen ruhig weiß */
.anSections.anGrid.anFachTabs:not(.wrapFit) { grid-template-columns: repeat(var(--n, 5), auto); }
.anSections.anGrid.anFachTabs.many:not(.wrapFit) { grid-template-columns: repeat(var(--n, 5), auto); }
.anSections.anFachTabs .anSec { padding: 4px 6px; }
.anSections.anFachTabs .anSec:not([aria-current]) { background: #fff; border-color: var(--an-line, #dfe6e1); color: var(--an-ink, #1f2b24); }

/* z60l (Maries Test, Befund 5): Passwort-Fenster der Vorschau – klare Überschrift, großes „Abbrechen“ */
.accGate h3 { margin: 0; font-size: 1.05rem; color: #1f2b24; }
.accGate p { margin: 0; }
body.anOn .vSupportBadge[data-open] .accGate button,
.accGate button.accGateCancel { min-height: 48px !important; font-size: 1rem !important; }
.accGate button.accGateCancel { width: 100%; }
body.anOn .vSupportBadge[data-open] .accGate label { display: grid; gap: 4px; text-align: left; }
body.anOn .vSupportBadge[data-open] .accGate input { width: 100%; box-sizing: border-box; }

/* z60n Punkt 28 F8: deckende Kopfleiste – Fläche #FBF8F1 ohne Weichzeichner, die 1-px-Linie unten bleibt */
body.anOn #journeyNav.vHeader { background: #FBF8F1; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* z60n (Tablet-Stichprobe 360 px): zweite, kleinere Stufe für lange Titel in der Kopfzeile */
.anHeader .anTitle.anTitleFit.anTitleTight, #journeyNav .anHeader .anTitle.anTitleFit.anTitleTight { font-size: 13px; letter-spacing: -0.01em; }
/* z60o Punkt 1: Rückfrage vor dem Abmelden (Kl. 1–4) – „Abbrechen“ groß und gefüllt, „Abmelden“ als ruhiger Neben-Knopf */
.anAskLogout .anConfirmStay { min-height: 56px; font-size: 18px; }
.anAskLogoutGo { min-height: 48px; border: 2px solid var(--an-line, #e4ece7); border-radius: 14px; background: #fff; color: var(--an-ink); font: inherit; font-weight: 600; cursor: pointer; }

/* z60o P6: Kopf der Eltern-Konsole „Für Eltern · ? · Profil“ – Schrift, Zahnrad und Abmelden wandern ins Profil-Blatt */
body.vParentHead .vSize, body.vParentHead .headerIcon[data-view="settings"], body.vParentHead .vLogout, body.vParentHead .accountBar, body.vParentHead #localeLabel, body.vParentHead .localeBar select { display: none !important; }
body.vParentHead .headerIcon[data-view="help"] { display: inline-grid !important; }
.vParentTitle { font-family: var(--font-head, inherit); font-size: 19px; margin-left: 10px; color: #2b2a26; white-space: nowrap; }
.headerIcon.vProfile { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 2px 0 4px; width: auto !important; }
.vProfileLabel { display: inline !important; font-size: 14px; font-weight: 600; }
.vProfileSheet .anMeRow { min-height: 56px; }
body.vParentHead .vBar { min-width: 0; }
body.vParentHead .localeBar, body.vParentHead .headerTools { gap: 2px !important; margin-right: 0 !important; padding-right: 0 !important; }
body .vTools .headerIcon.vProfile { max-width: none !important; width: auto !important; flex: none; padding: 0 4px !important; }
#journeyNav .vTools .headerIcon.vProfile, body.jComfort #journeyNav .vTools .headerIcon.vProfile { width: auto !important; min-width: 44px !important; padding: 0 6px !important; }
.vTools .vProfile .vProfileLabel { position: static !important; transform: none !important; display: inline !important; }
body:not(.jComfort) #journeyNav .vTools .headerIcon.vProfile { width: auto !important; padding: 0 6px !important; }
/* z60w-4 Y4 (Zweitprüfung z60w-3): Große Schrift bei 390 – die Vorschau-Zeile behielt die Komfort-Knopfgröße (22,5 px,
   „i“ 64 px hoch) und wurde 409 px breit. Das Handy zoomte die Seite heraus: Vorschau-Zeile oben und Reiterleiste unten
   abgeschnitten. Die Zeile bleibt in jeder Schriftgröße schmal und bricht nie über die Bildschirmbreite. */
body.anOn #journeyNav .vSupportBar.vSupportBadge { max-width: 100vw; box-sizing: border-box; min-width: 0; overflow: hidden; }
body.anOn #journeyNav .vSupportBadge .vSupportLabel { flex: 1 1 auto; min-width: 0; white-space: normal; }
body.anOn #journeyNav .vSupportBadge > button.vSupportBack.vSupportBack { font-size: 14px !important; min-height: 36px !important; height: auto !important; padding: 0 12px !important; flex: none; }
body.anOn #journeyNav .vSupportBadge > button.vSupportBack .vIco, body.anOn #journeyNav .vSupportBadge > button.vSupportBack svg { width: 18px !important; height: 18px !important; }
body.anOn #journeyNav .vSupportBadge > button.vSupportInfo.vSupportInfo { width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; font-size: 16px !important; flex: none; }
