/* The three areas (D86). The parent area's menu: a bottom bar on a phone (icon and label,
   targets of 56 px, room for the home bar), a top bar beside the fox from 900 px. The same
   items in the same order, the current one marked by colour and by a line. The child
   area's small bar, the preview line of a trainer, and the rows of "Verwaltung".
   Colours and sizes come from the tokens in app.css. */

.area-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.area-nav[hidden] { display: none; }
.area-nav-row { display: flex; max-width: 720px; margin: 0 auto; }
.area-nav .mark { display: none; }
.area-nav-item { flex: 1 0 auto; min-width: 44px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 1px; border-top: 3px solid transparent; color: var(--muted); font-size: 1rem; font-weight: 800; line-height: 1.2;
  text-decoration: none; text-align: center; }
/* Never sideways: on the smallest phones a long label breaks with a hyphen instead. */
.area-nav-item.long { flex-shrink: 1; }
.area-nav-item span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.area-nav-item svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area-nav-item[aria-current="page"] { color: var(--accent); border-top-color: var(--accent); }
.area-nav-item:focus-visible { outline-offset: -3px; }
/* The page ends above the bar; the review's bar that stays on screen stands on it. */
body.has-nav { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
body.has-nav .review-bar { bottom: calc(57px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  .area-nav { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .area-nav-row { align-items: center; gap: 6px; }
  .area-nav .mark { display: block; margin-right: 10px; }
  .area-nav-item { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 4px 14px; border-top: 0; border-bottom: 3px solid transparent; }
  .area-nav-item[aria-current="page"] { border-bottom-color: var(--accent); }
  body.has-nav { padding-bottom: 0; }
  body.has-nav .review-bar { bottom: 0; }
  body.has-nav .group-move { top: 57px; }
}

/* The child area's bar: "Anderes Kind" left, the lock "Eltern" and the language right. */
.parents-lock { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; }
.parents-lock svg, .theme-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.child-bar .btn { min-height: 44px; }
/* Light / dark (D88): the child's button, and the three choices under "Konto". */
.theme-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 6px 10px; }
.theme-btn svg .half { fill: currentColor; }
.account-theme { display: flex; flex-direction: column; gap: 8px; }
.theme-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--line); border-radius: var(--r-btn); font-weight: 700; cursor: pointer; }
.theme-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.theme-choice input:checked + span { font-weight: 900; }

/* A parent looks at a trainer: a clear, calm line under the title. */
.preview-note { margin: 0; padding: 10px 14px; border-radius: var(--r-btn); background: var(--accent-soft); color: var(--ink); font-weight: 800; }
.preview-note[hidden] { display: none; }

/* Übersicht, Trainer, Konto. */
.overview-section { display: flex; flex-direction: column; gap: 8px; }
.overview-section .ev { text-decoration: none; }
.trainer-row { flex-wrap: wrap; }
.trainer-row .name { flex: 1 1 100%; }
.account-language, .account-logout { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.account-language p, .account-logout p { margin: 0; }
.dates-saved { display: flex; flex-direction: column; gap: 8px; }
.dates-children { border: 0; padding: 0; margin: 0; }
.dates-children legend { font-weight: 800; color: var(--muted); padding: 0; }
.account-language .lang-switch { margin-left: 0; }
.draft-row .review-count { color: var(--muted); }

/* Verwaltung: one card per class group, one line per trainer. The note of a running check
   is quiet, never red. */
.class-share { display: flex; flex-direction: column; gap: 12px; }
.share-group { display: flex; flex-direction: column; gap: 6px; }
.share-group h3 { margin: 0; font-size: var(--fs-h2); font-weight: 900; }
.share-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.share-line strong { flex: 1 1 100%; overflow-wrap: anywhere; }
.share-line p { margin: 0; flex: 1 1 12rem; }
.share-note { color: var(--muted); font-weight: 700; }
.share-confirm { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-confirm p { flex: 1 1 100%; }
