/* ═══════════════════════════════════════════════
   PFLEGE AKADEMIE — PAGE COMPONENTS (fp-pages.css)
   Loaded after fp-learn.css. Same tokens, light+dark.
   Restyles legacy component classes with the new
   professional design language. No emoji, no glass.
   ═══════════════════════════════════════════════ */

/* ---------- HERO (index) ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.stat { }
.stat .stat-number { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat .stat-label { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.hero-visual { position: relative; min-height: 340px; }
.floating-card {
    position: absolute; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-md); font-size: 0.84rem; font-weight: 600;
}
.floating-card .card-icon {
    width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.floating-card .card-icon.blue { background: var(--blue-soft); color: var(--blue); }
.floating-card .card-icon.amber { background: var(--amber-soft); color: var(--amber); }
.card-1 { top: 8%; left: 0; }
.card-2 { top: 46%; right: 0; }
.card-3 { bottom: 8%; left: 12%; }

@media (max-width: 900px) {
    .hero { padding: 56px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-visual { min-height: 220px; }
}

/* ---------- SECTION HEADER (legacy) ---------- */
.section-header { margin-bottom: 36px; }
.section-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 100px; padding: 5px 14px; margin-bottom: 14px; }
.section-header h2 { margin-bottom: 10px; }
.body-base { color: var(--ink-soft); }
.body-large { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }

/* ---------- COURSE CARDS (index, legacy) ---------- */
.course-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.course-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 18px; }
.course-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.course-desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.course-features { list-style: none; margin-bottom: 18px; }
.course-features li { display: flex; gap: 9px; padding: 6px 0; font-size: 0.84rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.course-features li:first-child { border-top: none; }
.course-features li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.course-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; background: var(--blue-soft); color: var(--blue); }

/* ---------- QUICK CARDS (index) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.quick-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.quick-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.q-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 14px; }
.quick-card .q-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.quick-card h4 { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; margin: 6px 0 6px; }
.quick-card p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- LEVEL CARDS (deutsch hub) ---------- */
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.level-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.level-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lv-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 16px; }
.level-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; margin-bottom: 6px; }
.level-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.lv-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-soft); border-radius: 100px; padding: 4px 11px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.info-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; margin-bottom: 10px; }
.info-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }
.info-card a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- TOOLS (tools hub) ---------- */
.level-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.level-btn { padding: 8px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.level-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.level-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.level-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 8px; }
.tool-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tool-mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.tool-mini-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-mini-card h4 { font-size: 0.92rem; font-weight: 600; }
.tool-mini-card p { font-size: 0.76rem; color: var(--muted); }
.tool-mini-card a { color: var(--accent); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.tool-mini-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.diagram-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.diagram-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.diagram-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.diagram-card h4 { font-size: 0.9rem; font-weight: 600; margin-top: 10px; }
.diagram-preview { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.nav-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.course-header { padding: 84px 0 32px; }
.course-subtitle { color: var(--ink-soft); max-width: 640px; margin-top: 12px; font-size: 1.02rem; line-height: 1.7; }

/* ---------- GERMAN LESSONS ---------- */
.lesson-section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; margin-bottom: 20px; }
.lesson-section h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.lesson-section h3 { font-size: 0.98rem; font-weight: 600; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.lesson-section h4 { font-size: 0.92rem; font-weight: 600; margin: 14px 0 8px; }
.grammar-box { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 14px 0; font-size: 0.88rem; line-height: 1.7; color: var(--ink-soft); }
.grammar-box strong { color: var(--ink); }
.vocab-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 12px 0; }
.vocab-table th { text-align: left; padding: 9px 12px; color: var(--accent); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--accent-line); }
.vocab-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.vocab-table tr:last-child td { border-bottom: none; }
.dialogue { background: var(--surface-2); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.dialogue-line { display: flex; gap: 12px; padding: 5px 0; font-size: 0.88rem; line-height: 1.6; }
.dialogue-line .speaker { font-weight: 700; color: var(--accent); min-width: 52px; flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.exercise { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 12px; padding: 18px 20px; margin: 14px 0; }
.exercise h4 { color: var(--amber); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.exercise input[type="text"], .exercise input[type="number"] { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; color: var(--ink); font-size: 0.88rem; font-family: 'Inter', sans-serif; margin: 4px 6px 4px 0; }
.exercise input:focus { outline: none; border-color: var(--accent); }
.exercise button { background: var(--amber); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 0.84rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.exercise button:hover { opacity: 0.9; }

/* ---------- FLASHCARDS ---------- */
.fc-option-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.fc-option-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fc-option-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.fc-option-card p { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; line-height: 1.55; }
.fc-option-card .count { font-size: 0.76rem; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.fc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.fc-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.f-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 12px; }
.fc-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.fc-card p { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.f-count { font-size: 0.76rem; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.fc-category-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 6px; }
.fc-study { text-align: center; max-width: 640px; margin: 0 auto; }
.fc-card-flip { perspective: 1200px; margin: 28px auto; }
.fc-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; }
.fc-stat { text-align: center; }
.fc-stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.fc-stat .lbl { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.fc-progress-bar { height: 6px; background: var(--surface-3); border-radius: 6px; overflow: hidden; margin: 18px 0; }
.fc-progress-fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.3s; }
.fc-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.fc-score-ring { width: 120px; height: 120px; margin: 0 auto 18px; }
.fc-score-ring .score-num { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; font-weight: 600; fill: var(--accent); }
.fc-score-ring .score-text { font-size: 0.7rem; fill: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- SKIP LINK ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; text-decoration: none; }

/* ---------- DATA ROWS / LIST ROWS (lesson lists, data panels) ---------- */
/* Hairline separators, index column, no card box — per design-system-reference §4 */
.list-row,
.data-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem; color: var(--ink-soft);
    transition: background-color 0.15s;
}
.list-row:last-child,
.data-row:last-child { border-bottom: none; }
.list-row:hover,
.data-row:hover { background: var(--surface-2); }
.list-row .row-index,
.data-row .row-index {
    width: 28px; height: 28px; border-radius: 7px;
    background: var(--surface-2); color: var(--muted);
    display: grid; place-items: center; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600;
}
.list-row .row-label,
.data-row .row-label { flex: 1; font-weight: 500; }
.list-row .row-meta,
.data-row .row-meta { font-size: 0.78rem; color: var(--muted); }
.list-row .row-arrow,
.data-row .row-arrow { color: var(--faint); font-size: 0.9rem; }

/* ---------- PROGRESS BARS (refined per §4) ---------- */
/* Rounded, subtle track, Sage fill, 400ms ease-out width transition */
.progress-bar,
.fc-progress-bar {
    height: 7px; background: var(--surface-3); border-radius: 10px; overflow: hidden;
}
.progress-fill,
.fc-progress-fill {
    height: 100%; background: var(--accent); border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.78rem; color: var(--muted); margin-bottom: 6px;
}
.progress-label .prog-abs { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--ink-soft); }
.progress-label .prog-pct { font-weight: 700; color: var(--accent); }

/* ---------- STAT PANEL (mono numbers + small-caps labels, per §4) ---------- */
.stat-panel {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
}
.stat-panel .stat-item {
    background: var(--surface); padding: 20px 22px;
}
.stat-panel .stat-num {
    font-family: 'JetBrains Mono', monospace; font-size: 1.5rem;
    font-weight: 700; color: var(--accent); line-height: 1.15;
    letter-spacing: -0.03em;
}
.stat-panel .stat-lbl {
    font-size: 0.7rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
    font-variant-caps: all-small-caps;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .lesson-section { padding: 22px 18px; }
    .course-header { padding: 56px 0 24px; }
}
