/* Karriere-Dashboard (Web und MAUI teilen diese Datei inhaltsgleich; ein Test prüft das). Nur CI-Farben aus ci-colors.css. */
.cd-page { padding: clamp(6.5rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem); background: var(--color-surface-soft); color: var(--color-text); }
.cd-container { display: grid; gap: 1.5rem; min-width: 0; }
.cd-page h1:focus { outline: none; }
.cd-kicker { display: block; color: var(--color-accent-strong); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cd-title { margin: .4rem 0 .6rem; font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.02; overflow-wrap: anywhere; }
.cd-lead { font-size: 1.15rem; font-weight: 800; }
.cd-muted { color: var(--color-text-muted); font-size: .92rem; }
.cd-hero p { margin: .25rem 0; }
.cd-goal { font-size: 1.05rem; }
.cd-goal-text { display: block; margin-top: .25rem; color: var(--color-text-muted); font-style: italic; overflow-wrap: anywhere; }
.cd-error { margin: 0; padding: .8rem 1rem; border: 1px solid var(--color-error); border-radius: 10px; background: var(--color-surface); color: var(--color-error); font-weight: 700; }
.cd-skeleton { height: 12rem; border-radius: 18px; background: linear-gradient(90deg, var(--color-border) 0%, var(--color-surface) 50%, var(--color-border) 100%); background-size: 200% 100%; animation: cd-shimmer 1.4s linear infinite; }
@keyframes cd-shimmer { to { background-position: -200% 0; } }

/* Layout: Hauptspalte und Seitenspalte; auf kleinen Bildschirmen eine Spalte mit Fortschritt zuerst. */
.cd-layout { display: grid; gap: 1.5rem; min-width: 0; }
.cd-main, .cd-side { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.cd-side { order: -1; }
@media (min-width: 62rem) {
    .cd-layout { grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 1fr); gap: 2rem; }
    .cd-side { order: 0; position: sticky; top: 6rem; align-self: start; }
}

/* Karten */
.cd-progress, .cd-settings, .cd-roadmap, .cd-panel, .cd-next { padding: clamp(1.1rem, 3.5vw, 1.8rem); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: var(--shadow-sm); min-width: 0; }
.cd-page h2 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.15; }
.cd-page h3 { margin: 0 0 .4rem; font-size: 1.1rem; letter-spacing: -.02em; }
.cd-panel-title { margin: 0 0 .4rem; font-size: 1.05rem; }
.cd-panel { box-shadow: none; background: var(--color-surface-soft); margin-top: .75rem; }
.cd-panel-warning { border-color: var(--color-accent-strong); background: var(--color-accent-soft); }
.cd-container > .cd-panel { background: var(--color-surface); box-shadow: var(--shadow-sm); margin-top: 0; }

/* Fortschritt */
.cd-percent { margin: 0; font-size: clamp(3rem, 8vw, 4.2rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.cd-percent span { color: var(--color-accent-strong); font-size: .5em; }
.cd-bar { height: .6rem; margin: .5rem 0; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-border); }
.cd-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); transition: width .3s ease; }
.cd-bar-large { height: .85rem; }
.cd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0 0; }
.cd-stats div { padding: .7rem .8rem; border-radius: 12px; background: var(--color-surface-soft); }
.cd-stats dt { color: var(--color-text-muted); font-size: .76rem; font-weight: 800; }
.cd-stats dd { margin: .1rem 0 0; font-size: 1.3rem; font-weight: 900; overflow-wrap: anywhere; }
.cd-stat-wide { grid-column: 1 / -1; }
.cd-stat-wide dd { font-size: 1.05rem; }

/* Nächster Schritt */
.cd-next { border: 2px solid var(--color-accent); background: var(--color-surface-dark); color: var(--color-text-on-dark); box-shadow: var(--shadow-md); }
.cd-next .cd-kicker { color: var(--color-accent); }
.cd-next h2 { color: var(--color-text-on-dark); }
.cd-next .cd-muted { color: var(--ci-gray-mid); }
.cd-next p { margin: .4rem 0; }
.cd-next .button { margin-top: .8rem; width: 100%; }
.cd-next-done { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.cd-next-done h2 { color: var(--color-text); }
.cd-next-done a { color: var(--color-accent-strong); font-weight: 800; }
@media (min-width: 40rem) { .cd-next .button { width: auto; } }

/* Roadmap */
.cd-phase { padding: 1.1rem 0; border-top: 1px solid var(--color-border); }
.cd-phase:first-of-type { border-top: 0; padding-top: .4rem; }
.cd-phase h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1.2rem; }
.cd-phase-no { display: inline-grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 50%; background: var(--color-surface-dark); color: var(--color-text-on-dark); font-size: .85rem; font-weight: 900; }
.cd-phase.is-current .cd-phase-no { background: var(--color-accent); color: var(--color-text-on-accent); }
.cd-badge { padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-strong); font-size: .72rem; font-weight: 900; }
.cd-tasks { display: grid; gap: .55rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.cd-task { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.cd-task.is-next { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-orange-22); }
.cd-task.is-done .cd-task-title { color: var(--color-text-subtle); text-decoration: line-through; }
.cd-task-row { display: flex; align-items: stretch; min-width: 0; }
.cd-task-hit { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 3.25rem; min-height: 3.25rem; cursor: pointer; }
.cd-task-check { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--color-accent-strong); cursor: pointer; }
.cd-task-toggle { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; min-height: 3.25rem; padding: .7rem 1rem .7rem 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cd-task-title { font-weight: 800; overflow-wrap: anywhere; }
.cd-task-state { flex: 0 0 auto; color: var(--color-text-subtle); font-size: .74rem; font-weight: 800; }
.cd-task.is-done .cd-task-state { color: var(--color-accent-strong); }
.cd-task-details { padding: 0 1rem 1rem 3.25rem; }
.cd-task-details p { margin: .35rem 0; }
.cd-outcome strong { color: var(--color-accent-strong); }
.cd-next .cd-outcome strong { color: var(--color-accent); }

/* Einstellungen und Formulare */
.cd-subsection { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--color-border); }
.cd-choices { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.cd-choices legend { margin-bottom: .5rem; padding: 0; font-weight: 800; }
.cd-choice, .cd-check { display: flex; align-items: flex-start; gap: .7rem; min-height: 2.75rem; padding: .7rem .8rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); cursor: pointer; }
.cd-choice:has(input:checked) { border-color: var(--color-accent-strong); background: var(--color-accent-soft); }
.cd-choice input, .cd-check input { flex: 0 0 auto; margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--color-accent-strong); }
.cd-check { margin: .75rem 0; }
.cd-field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.cd-field label { font-size: .85rem; font-weight: 800; }
.cd-field textarea, .cd-field select { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: .7rem .8rem; border: 1px solid var(--color-border-strong); border-radius: 8px; background: var(--color-surface); color: var(--color-text); font: inherit; }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .9rem; }
.cd-link-button { min-height: 2.75rem; padding: .5rem 0; border: 0; background: transparent; color: var(--color-text); font: inherit; text-decoration: underline; cursor: pointer; }
.cd-danger-button { min-height: 2.75rem; padding: .6rem 1rem; border: 2px solid var(--color-error); border-radius: 10px; background: var(--color-surface); color: var(--color-error); font: inherit; font-weight: 850; cursor: pointer; }
.cd-danger-button:hover:not(:disabled) { background: var(--color-error); color: var(--color-text-on-dark); }
.cd-path-list { display: grid; gap: .75rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.cd-path-list > li { display: grid; gap: .6rem; padding: .9rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); min-width: 0; }
.cd-path-list small { display: block; }
.cd-start-button { width: 100%; }
@media (min-width: 40rem) { .cd-start-button { width: auto; } }

/* Zugänglichkeit: sichtbarer Fokus, deaktivierte Elemente, reduzierte Bewegung */
:is(.cd-page, .cd-starter) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.cd-next :is(a, button):focus-visible { outline-color: var(--ci-white); }
:is(.cd-page, .cd-starter) :is(button, input, select, textarea):disabled { cursor: wait; opacity: .6; }
:is(.cd-page, .cd-starter) a { color: var(--color-accent-strong); font-weight: 800; }
:is(.cd-page, .cd-starter) a.button { color: var(--color-text-on-accent); }
.cd-page .button { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .cd-bar > span { transition: none; } .cd-skeleton { animation: none; } }
@media (hover: none) { :is(.cd-page, .cd-starter) .button:hover { transform: none; } }

/* Einstieg aus dem Report */
.cd-report-start { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--color-border); }
.cd-report-start h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
