/* Tab „Profil“ (intern view-stats): Kopfkarte, Reiter, Leere Zustände, Leiste im Tab „Üben“ */

/* ——— Gemeinsame Bausteine ——— */
.empty-card { text-align: center; padding: 22px 18px; margin: 4px 0 12px; }
.empty-card p, .empty-inline p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.empty-ic { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.empty-inline { text-align: center; padding: 10px 6px 2px; }
.empty-inline p { margin-bottom: 8px; }
.empty-inline .empty-ic { font-size: 28px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 8px 4px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.section-title.first { margin-top: 6px; }

/* ——— Kopfkarte ——— */
.prof-head { padding: 16px; margin: 4px 0 12px; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.avatar-btn.big { min-width: 44px; min-height: 44px; border-radius: 50%; }
.avatar-btn.big .cam { right: -2px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; font-size: 13px; }
.ph-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ph-name {
  display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; margin: -6px 0 -6px -6px; padding: 0 6px;
  border: 0; background: none; border-radius: 10px; color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-align: left;
}
.ph-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-name svg { flex: none; color: var(--muted); }
.ph-name-input {
  width: 100%; min-height: 44px; font: inherit; font-size: 20px; font-weight: 700; color: var(--text); background: var(--bg);
  border: 2px solid var(--accent); border-radius: 10px; padding: 0 10px; outline: none; margin: -6px 0;
}
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ph-chip.static { cursor: default; }
button.ph-chip { position: relative; }
button.ph-chip::after { content: ''; position: absolute; inset: -6px -2px; } /* größere Trefferfläche */
.ring-wrap { position: relative; width: 56px; height: 56px; flex: none; }
.ring { width: 56px; height: 56px; display: block; }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); transition: stroke-dasharray .4s; }
.ring-fg.full { stroke: var(--ok); }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring-txt b { font-size: 16px; }
.ring-txt small { font-size: 11px; color: var(--muted); }
.ph-cta { margin: 14px 0 0; }
.ph-badges {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 48px; margin-top: 14px; padding: 6px 4px 0 0;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); text-align: left; border-radius: 0;
}
.ph-b { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 50%; background: var(--surface-2); }
.ph-nob { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.ph-all { margin-left: auto; flex: none; font-size: 14px; font-weight: 600; color: var(--accent); padding-left: 6px; }
.profile-row { display: flex; gap: 12px; align-items: center; }
.profile-row .hint { margin: 0; flex: 1; }
.profile-card .sync-actions { margin-top: 12px; }

/* ——— Reiter im Profil ——— */
.prof-seg { margin: 0 0 12px; position: sticky; top: calc(env(safe-area-inset-top) + 56px); z-index: 5; box-shadow: 0 0 0 6px var(--bg); }
.prof-seg button { min-height: 44px; font-size: 15px; }
.prof-pane.hidden { display: none; }
.badges-card { padding: 14px; margin-top: 18px; }
.badges-card .badges { margin: 0; border: 0; padding: 0; }
.goals-card .segmented { margin-bottom: 6px; }
.goals-card .tense-group { margin-top: 4px; }
.row-btn { display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 16px; margin: 14px 0 0; padding: 12px 14px; min-height: 48px; font-weight: 500; }
.row-btn span:last-child { color: var(--muted); font-size: 22px; line-height: 1; }
.danger-title { margin-top: 30px; }
.danger-btn { width: 100%; background: var(--bad-bg); color: var(--bad); min-height: 48px; font-size: 16px; }

/* ——— Schmale Leiste im Tab Üben ——— */
#motiv { margin: 0 0 8px; }
.strip { display: flex; gap: 6px; }
.strip-b {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; flex: none;
  border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; box-shadow: var(--shadow);
}
.strip-b.grow { flex: 1; min-width: 0; justify-content: flex-start; padding: 0 12px; }
.strip-b.on { background: var(--surface-2); box-shadow: none; }
.strip-b .s-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; white-space: nowrap; text-align: left; }
.strip-b .s-t b { font-size: 15px; font-weight: 600; }
.strip-b .s-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.strip-b.all .s-t b { color: var(--ok); }
.strip-b .s-chev { color: var(--muted); font-size: 16px; transition: transform .15s; }
.strip-b.on .s-chev { transform: rotate(180deg); }
.strip-b .s-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.strip-b.alert { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.strip-b.alert .s-lbl { color: var(--accent-ink); }
.strip-panel > div { display: none; }
.strip-panel { margin-top: 6px; }
#motiv[data-open="today"] #motivToday, #motiv[data-open="duel"] #motivDuel, #motiv[data-open="week"] #motivWeekly, #motiv[data-open="friends"] #friendsLine { display: flex; }
.strip-panel #friendsLine { display: none; flex-wrap: wrap; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; margin: 0; font-size: 14px; }
#motiv[data-open="friends"] #friendsLine.hidden { display: none !important; }
.strip-panel .today-card, .strip-panel .weekly-card, .strip-panel .duel-banner { margin-bottom: 0; }
.strip-panel .duel-banner + .duel-banner { margin-top: 6px; }
.strip-panel .today-card, .strip-panel .weekly-card, .strip-panel .duel-banner { width: 100%; max-width: none; }
