/* Journey design: the shared visual language of the customer pages.
   Used by the funnel shell (Views/Profile/_OverviewFunnelFocus.cshtml), the invitation pages
   (Views/Invite) and the identity pages (Areas/Identity). Linked from MainLayout, _Layout and
   _LayoutEmpty. Page-specific rules stay in the page that needs them.
   Tokens: navy #00263a, orange #ec6a1f, blue #008cbe, green #019539, text #15212c,
   gray #5b6b78, line #e2e9ee, surface #f4f7f9. Fonts (Manrope, Source Sans 3) are linked
   from the layouts. */

/* ---------- Funnel vocabulary (ff-*) ---------- */
.ff-wrap {
    --ff-stapel: 12px;
    width: min(640px, 96vw);
    margin-inline: auto;
    padding-top: var(--ff-stapel);
    padding-bottom: 32px;
    font-family: 'Source Sans 3', sans-serif;
    color: #15212c;
}
/* Stapel (Jonathan 29.09.): jeder Block der Huelle bekommt seinen Abstand vom Stapel, nicht von sich selbst.
   Neue Box = neuer Abstand, ohne Inline-Style. Nachbar-Raender kollabieren, ein groesserer eigener Rand
   (z. B. .ff-verlauf unten) gewinnt. Gilt fuer die Huelle, das aktuelle Modul und jeden Wrapper mit .ff-stapel.
   Gate: Academy.Tests/Views/StapelAbstandTests (kein margin-top/-bottom mehr an ff-card, ff-greeting, ff-verlauf, ff-outlook). */
.ff-wrap > * + *, #ff-modul > * + *, .ff-stapel > * + * { margin-top: var(--ff-stapel); }
/* Abschnitts-Zeile zwischen zwei Bloecken: naeher an ihrem Block als am Block davor. */
.ff-abschnitt { margin: 20px 0 -4px; }
/* Karte im Schritt-Koerper der Zeitleiste nach einem anderen Element: derselbe Abstand fuer alle, statt je Karte inline. */
.ff-step-body > * + .ff-card { margin-top: 10px; }
.ff-wrap h2, .ff-wrap h3,
.ff-eyebrow, .ff-step-label, .ff-unlock-chip,
.ff-progress-meta, .ff-outlook-label,
.ff-rung-active, .ff-rung-locked,
.ff-btn-primary, .ff-btn-ghost, .ff-btn-exam,
.ff-profile-name { font-family: 'Manrope', sans-serif; }

/* Greeting */
.ff-greeting {
    background: #fff;
    border-radius: 1rem;
    padding: 24px 20px 20px;
    box-shadow: 0 1px 4px 0 rgba(0,38,58,.06);
    border: 1px solid #e2e9ee;
}
.ff-eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #ec6a1f;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ff-eyebrow::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: #ec6a1f;
    border-radius: 2px;
}
.ff-greeting h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #00263a;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}
.ff-greeting h2 .ff-name { color: #ec6a1f; }
.ff-greeting h2 { margin-bottom: 0; }

/* Completed node text */
.ff-done-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.0rem;
    font-weight: 800;
    color: #00263a;
    letter-spacing: -.01em;
    margin-top: 2px;
}
.ff-done-sub {
    font-size: .88rem;
    font-weight: 600;
    color: #5b6b78;
    margin-top: 1px;
}
.ff-done-text {
    margin-top: 8px;
    padding: 10px 13px;
    background: #f4f7f9;
    border: 1px solid #e2e9ee;
    border-left: 3px solid #019539;
    border-radius: 8px;
    font-size: .86rem;
    color: #5b6b78;
    line-height: 1.5;
}

/* Journey spine */
.ff-journey { padding: 20px 0 8px; }

.ff-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 18px;
    position: relative;
}
.ff-step-node-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ff-step-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: #e2e9ee;
    border-radius: 2px;
}
.ff-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
.ff-node-done  { background: #019539; box-shadow: 0 0 0 4px rgba(1,149,57,.12); }
.ff-node-active { background: #008cbe; box-shadow: 0 0 0 4px rgba(0,140,190,.15); }
.ff-node-locked {
    background: #fff;
    border: 2px solid #e2e9ee;
    color: #5b6b78;
}
.ff-step-body { padding-bottom: 24px; padding-top: 8px; }
.ff-step-label {
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ff-step-label-done   { color: #019539; }
.ff-step-label-active { color: #008cbe; }
.ff-step-label-locked { color: #5b6b78; }

/* Unlock bridge badge */
.ff-unlock-bridge {
    padding: 8px 0 8px 62px;
    display: flex;
    align-items: center;
}
.ff-unlock-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #ec6a1f;
    background: #fff1e9;
    border: 1px solid rgba(236,106,31,.22);
    border-radius: 20px;
    padding: 4px 10px;
}

/* Cards */
.ff-card {
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ff-card:hover { box-shadow: 0 6px 20px -8px rgba(0,38,58,.14); }
.ff-card-nav   { border-top: 3px solid #008cbe; }
.ff-card-locked { border-top: 3px solid #e2e9ee; opacity: .78; }

.ff-card-img {
    height: 160px;
    background: #00263a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ff-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .92;
}

.ff-progress-wrap { padding: 14px 18px 6px; }
.ff-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    font-weight: 700;
    color: #5b6b78;
    margin-bottom: 5px;
}
.ff-progress-track {
    height: 6px;
    background: #e2e9ee;
    border-radius: 6px;
    overflow: hidden;
}
.ff-progress-fill {
    height: 100%;
    background: #008cbe;
    border-radius: 6px;
    transition: width .4s ease;
}

.ff-card-body { padding: 14px 18px 6px; }
.ff-card-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00263a;
    letter-spacing: -.01em;
    margin-bottom: 4px;
}
.ff-card-body p {
    font-size: .88rem;
    color: #5b6b78;
    line-height: 1.5;
}
.ff-card-foot {
    padding: 10px 18px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.ff-lock-hint {
    margin: 0 18px 16px;
    padding: 11px 13px;
    background: #f4f7f9;
    border-radius: 8px;
    font-size: .84rem;
    color: #5b6b78;
    line-height: 1.45;
}

/* Buttons */
.ff-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    background: #ec6a1f;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(236,106,31,.5);
    transition: background .15s, transform .12s;
    white-space: nowrap;
}
.ff-btn-primary:hover { background: #c9541a; transform: translateY(-1px); color: #fff; }

.ff-btn-ghost {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: .86rem;
    color: #5b6b78;
    background: #fff;
    border: 1px solid #e2e9ee;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.ff-btn-ghost:hover { border-color: #008cbe; color: #008cbe; }

/* Chips and wrapping buttons: text may break instead of being cut off at 400px. */
.ff-chip {
    white-space: normal;
    height: auto;
    line-height: 1.3;
    text-align: left;
}
.ff-btn-wrap {
    white-space: normal;
    height: auto;
    line-height: 1.3;
    text-align: left;
}

.ff-btn-exam {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    background: #019539;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .12s;
    white-space: nowrap;
}
.ff-btn-exam:hover { background: #017a2f; transform: translateY(-1px); color: #fff; }

.ff-btn-primary:disabled, .ff-btn-ghost:disabled, .ff-btn-exam:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 520px) {
    .ff-card-foot { flex-direction: column; }
    .ff-card-foot .ff-btn-primary,
    .ff-card-foot .ff-btn-ghost,
    .ff-card-foot .ff-btn-exam { width: 100%; justify-content: center; }
    .ff-unlock-bridge { padding-left: 50px; }
}

/* Fields, hints, notes */
.ff-field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.ff-field label { font-weight: 800; font-size: .85rem; color: #00263a; font-family: 'Manrope', sans-serif; }
.ff-src { font-size: .72rem; font-weight: 700; color: #008cbe; font-family: 'Manrope', sans-serif; }
.ff-textarea {
    width: 100%;
    border: 1px solid #e2e9ee;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .85rem;
    color: #15212c;
    line-height: 1.5;
    min-height: 58px;
    font-family: inherit;
    background: #fff;
}
.ff-textarea:focus { outline: none; border-color: #008cbe; box-shadow: 0 0 0 3px rgba(0,140,190,.12); }
.ff-textarea-short { min-height: 52px; }
.ff-input { width: 160px; max-width: 100%; border: 1px solid #e2e9ee; border-radius: 10px; padding: 10px 12px; font-size: .85rem; color: #15212c; line-height: 1.5; font-family: inherit; background: #fff; }
.ff-input:focus { outline: none; border-color: #008cbe; box-shadow: 0 0 0 3px rgba(0,140,190,.12); }
.ff-hint-warn {
    margin: 0 0 12px;
    padding: 10px 13px;
    background: #fff1e9;
    border: 1px solid rgba(236,106,31,.3);
    border-radius: 8px;
    font-size: .84rem;
    color: #c9541a;
    line-height: 1.45;
}
.ff-why-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ff-why { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: #15212c; line-height: 1.5; }
.ff-why svg { flex: 0 0 auto; margin-top: 3px; }
.ff-note { margin-top: 8px; font-size: .8rem; color: #5b6b78; }
.ff-note a { color: #008cbe; font-weight: 700; }

/* Keyboard focus: one visible ring for every interactive element of the journey pages. */
.ff-btn-primary:focus-visible, .ff-btn-ghost:focus-visible, .ff-btn-exam:focus-visible,
.jp-link:focus-visible, .jp-toggle:focus-visible, .jp-brand:focus-visible, .jp-foot a:focus-visible,
.jp-row:focus-visible, .jp-check input:focus-visible, .jp-choice input:focus-visible,
.jp-details summary:focus-visible, .jp-copy-btn:focus-visible {
    outline: 3px solid rgba(0,140,190,.5);
    outline-offset: 2px;
}

/* ---------- Page shell for public pages (jp-*), Views/Shared/_JourneyPageShell.cshtml ---------- */
.jp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f7f9;
    font-family: 'Source Sans 3', sans-serif;
    color: #15212c;
}
.jp-top { background: #fff; border-bottom: 1px solid #e2e9ee; }
.jp-top-inner, .jp-foot-inner {
    width: min(640px, 100% - 32px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.jp-top-inner { min-height: 60px; }
.jp-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: #00263a;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.01em;
}
.jp-brand:hover { color: #00263a; text-decoration: none; }
.jp-brand-accent { color: #ec6a1f; }
.jp-lang { flex: 0 0 auto; }
.jp-main { flex: 1; padding: 8px 0 24px; }
.jp-main .ff-wrap { width: min(640px, 100% - 32px); }
.jp-foot { border-top: 1px solid #e2e9ee; background: #fff; }
.jp-foot-inner {
    min-height: 52px;
    flex-wrap: wrap;
    padding: 8px 0;
    font-size: .8rem;
    color: #5b6b78;
    gap: 6px 16px;
}
.jp-foot a { color: #5b6b78; text-decoration: none; font-weight: 600; }
.jp-foot a:hover { color: #00263a; text-decoration: none; }
.jp-foot-links { display: flex; gap: 16px; }

/* One card per page: head, lead, form */
.jp-card { padding: 22px 20px 20px; margin-top: 1rem; }
.jp-card + .jp-card, .jp-card + .ff-card, .ff-card + .jp-card { margin-top: 12px; }
.jp-card-head h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 800;
    color: #00263a;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}
.jp-card-head p, .jp-lead {
    font-size: .92rem;
    color: #5b6b78;
    line-height: 1.5;
    margin: 0;
}
.jp-lead + .jp-lead { margin-top: 6px; }
.jp-lead strong { color: #00263a; overflow-wrap: anywhere; }
.jp-lead a, .jp-card-head a { color: #008cbe; font-weight: 700; text-decoration: none; }
.jp-lead a:hover, .jp-card-head a:hover { text-decoration: underline; }
.jp-eyebrow-muted { color: #5b6b78; }
.jp-eyebrow-muted::before { background: #5b6b78; }

.jp-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.jp-field { display: flex; flex-direction: column; gap: 6px; }
.jp-field label {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    color: #00263a;
}
.jp-input-wrap { position: relative; display: flex; align-items: center; }
.jp-input {
    width: 100%;
    border: 1px solid #cfd8de;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.3;
    color: #15212c;
    background: #fff;
    min-width: 0;
}
.jp-input:focus { outline: none; border-color: #008cbe; box-shadow: 0 0 0 3px rgba(0,140,190,.15); }
.jp-input[readonly] { background: #f4f7f9; color: #5b6b78; }
.jp-input.input-validation-error { border-color: #c62828; }
.jp-input-wrap .jp-input { padding-right: 96px; }
.jp-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    color: #008cbe;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.jp-toggle:hover { background: rgba(0,140,190,.08); }
.jp-error { color: #c62828; font-size: .84rem; font-weight: 600; }
.jp-error:empty { display: none; }
.jp-summary {
    margin: 14px 0 0;
    padding: 10px 13px;
    background: #fdecec;
    border: 1px solid rgba(198,40,40,.3);
    border-radius: 8px;
    color: #c62828;
    font-size: .86rem;
    line-height: 1.45;
}
.jp-summary ul { margin: 0; padding-left: 18px; }
.jp-summary.validation-summary-valid, .jp-summary:empty { display: none; }
.jp-success {
    margin: 14px 0 0;
    padding: 10px 13px;
    background: #f4f7f9;
    border: 1px solid #e2e9ee;
    border-left: 3px solid #019539;
    border-radius: 8px;
    font-size: .88rem;
    color: #15212c;
    line-height: 1.5;
}
.jp-success-text { color: #019539; font-weight: 700; }
.jp-check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .9rem;
    color: #15212c;
    cursor: pointer;
}
.jp-check input { width: 18px; height: 18px; accent-color: #008cbe; margin: 0; flex: 0 0 auto; }
.jp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-top: 4px;
}
.jp-actions .ff-btn-primary, .jp-actions .ff-btn-ghost { justify-content: center; }
.jp-link { color: #008cbe; font-weight: 700; text-decoration: none; font-size: .88rem; }
.jp-link:hover { text-decoration: underline; color: #008cbe; }
.jp-aside {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e9ee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
    font-size: .88rem;
    color: #5b6b78;
}

/* Badges, status, meta lists (invitations and course list) */
.jp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.jp-badge-blue { background: rgba(0,140,190,.1); color: #008cbe; border: 1px solid rgba(0,140,190,.22); }
.jp-badge-orange { background: #fff1e9; color: #ec6a1f; border: 1px solid rgba(236,106,31,.22); }
.jp-badge-green { background: #e6f4ea; color: #019539; border: 1px solid #b9e4c6; }
.jp-badge-gray { background: #f4f7f9; color: #5b6b78; border: 1px solid #e2e9ee; }
.jp-badge-red { background: #fdecec; color: #c62828; border: 1px solid rgba(198,40,40,.25); }
.jp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

.jp-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: .88rem;
    color: #5b6b78;
    margin: 0;
    line-height: 1.45;
}
.jp-meta dt { font-weight: 700; color: #00263a; }
.jp-meta dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
    .jp-meta { grid-template-columns: 1fr; gap: 2px 0; }
    .jp-meta dd { margin-bottom: 6px; }
}

.jp-section { padding: 14px 18px; border-top: 1px solid #e2e9ee; }
.jp-section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #00263a;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}
.jp-text { font-size: .9rem; color: #15212c; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.jp-list { list-style: disc; padding-left: 20px; margin: 4px 0 0; font-size: .9rem; color: #15212c; line-height: 1.5; }
.jp-list li { overflow-wrap: anywhere; }

.jp-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jp-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #e2e9ee;
    font-size: .9rem;
}
.jp-day:first-child { border-top: 0; }
.jp-day-date { font-weight: 700; color: #00263a; }
.jp-day-time { color: #5b6b78; font-size: .84rem; display: block; }

.jp-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #f4f7f9;
    border: 1px solid #e2e9ee;
    border-radius: 10px;
    font-size: .9rem;
    color: #5b6b78;
}
.jp-status strong { color: #00263a; }

.jp-copy { display: flex; gap: 8px; align-items: center; }
.jp-copy .jp-input { flex: 1 1 auto; font-size: .9rem; padding: 10px 12px; }
.jp-copy-btn {
    flex: 0 0 auto;
    border: 1px solid #e2e9ee;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
}
.jp-copy-btn:hover { border-color: #008cbe; }
.jp-copy-status { font-size: .84rem; color: #5b6b78; margin: 6px 0 0; min-height: 1.2em; }

/* Answer buttons of an invitation: three equal buttons, stacked at phone width. */
.jp-answer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.jp-answer .ff-btn-primary, .jp-answer .ff-btn-ghost { width: 100%; justify-content: center; }
/* "Absagen" keeps the ghost shape with a red border and text, so it stays apart from "Noch unsicher" when the three stack. */
.jp-btn-decline { border-color: rgba(198,40,40,.35); color: #c62828; }
.jp-btn-decline:hover { border-color: #c62828; color: #c62828; }
.jp-answer-bar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 14px;
    box-shadow: 0 10px 30px -12px rgba(0,38,58,.35);
    padding: 12px 14px 14px;
}
.jp-answer-bar .jp-answer { margin-top: 10px; }
.jp-answer-bar-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .92rem;
    color: #00263a;
    margin: 0;
}
.jp-answer-bar-note { font-size: .84rem; color: #5b6b78; margin: 0; }
.jp-answer-inline { display: block; }
.jp-answer-bar { display: none; }
@media (max-width: 640px) {
    .jp-answer { grid-template-columns: 1fr; }
    .jp-answer-inline { display: none; }
    .jp-answer-bar { display: block; }
}

/* Choice chips (radio) of the bundle invitation */
.jp-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.jp-choice label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e9ee;
    border-radius: 10px;
    background: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: .86rem;
    color: #5b6b78;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.jp-choice label:hover { border-color: #008cbe; color: #008cbe; }
.jp-choice input { width: 16px; height: 16px; accent-color: #008cbe; margin: 0; flex: 0 0 auto; }
.jp-choice label:has(input:checked) { border-color: #008cbe; color: #008cbe; background: rgba(0,140,190,.08); }
.jp-choice label[data-choice="agree"]:has(input:checked) { border-color: #ec6a1f; color: #ec6a1f; background: #fff1e9; }
.jp-choice label[data-choice="agree"] input:checked { accent-color: #ec6a1f; }
@media (max-width: 520px) { .jp-choice { grid-template-columns: 1fr; } }

/* Collapsible details in a card */
.jp-details summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: .84rem;
    color: #008cbe;
    padding: 4px 0;
    border-radius: 6px;
}
.jp-details summary::-webkit-details-marker { display: none; }
.jp-details-open, .jp-details[open] .jp-details-closed { display: none; }
.jp-details[open] .jp-details-open { display: inline; }
.jp-details-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e9ee; }

/* Course list (UpcommingCourses): one row per course, the whole row opens the course popup. */
.jp-rows { display: flex; flex-direction: column; }
.jp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border: 0;
    border-top: 1px solid #e2e9ee;
    background: #fff;
    font: inherit;
    color: #15212c;
    cursor: pointer;
    transition: background .15s;
}
.jp-row:first-child { border-top: 0; }
.jp-row:hover { background: #f4f7f9; }
.jp-row-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: .98rem;
    color: #00263a;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.jp-row-meta {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: .86rem;
    color: #5b6b78;
}
.jp-row-state { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; }
.jp-row-state img { width: 24px; height: 24px; }
.jp-empty { padding: 18px; font-size: .9rem; color: #5b6b78; }

/* Medal of a course level (bundle invitation) */
.jp-medal { width: 64px; height: 64px; flex: 0 0 auto; }
.jp-course-head { display: flex; gap: 14px; align-items: flex-start; }
.jp-course-head > div { min-width: 0; flex: 1 1 auto; }

/* Spacing helpers of the journey pages (instead of inline styles) */
.jp-lead-top { margin-top: 8px; }
.jp-meta-top { margin-top: 14px; }
.jp-status + .jp-lead { margin-top: 14px; }
.jp-meta + .jp-days { margin-top: 12px; }
.jp-text + .jp-copy, .jp-lead + .jp-copy { margin-top: 12px; }
.jp-section:first-child { border-top: 0; }
.jp-section-title-inline { margin-top: 10px; }
.jp-details { margin-top: 12px; }
.jp-choice + .jp-status, .jp-details + .jp-status, .jp-meta + .jp-status { margin-top: 14px; }
.jp-card-flush { margin-top: 12px; }
.jp-answer-bar-always { display: block; }
.ff-btn-primary[hidden], .ff-btn-ghost[hidden], .ff-btn-exam[hidden] { display: none; }
/* Visually hidden, still in the DOM: the disabled default submit of the invitation forms. */
.jp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Overlay after an answer (ShowCourseDetails) */
.jp-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,38,58,.45);
    padding: 16px;
}
.jp-overlay[hidden] { display: none; }
.jp-overlay-card {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 24px 48px -12px rgba(0,38,58,.3);
}
.jp-overlay-card img { width: 56px; height: 56px; }
.jp-overlay-card h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #00263a;
    margin: 0;
}

/* Kurszeile als Link: ohne JavaScript fuehrt sie direkt zur Kursseite, mit JavaScript oeffnet sie das Popup. */
a.jp-row { text-decoration: none; color: inherit; display: block; }

/* Durchsprache 27.09.: Einblenden neuer Abschnitte nach einem Schritt (Sprosse 3 -> 4), dieselbe Bewegung wie der Navigator-Start. */
.ff-slide-in { animation: ffSlideIn .55s ease-out both; }
@keyframes ffSlideIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---- Feinschliff 28.09.2026: gemeinsame Bausteine statt verstreuter Einzelstile ---- */

/* Stoerungsbanner: unter dem Kopf hervorgezogen, so breit wie die Journey-Spalte, solide, nur unten gerundet. */
/* Der Kopf der Seite ist fixiert; die Hauptspalte beginnt direkt darunter. Kein negativer Rand, sonst rutscht das Band unter den Kopf. */
.ff-stoerung { display: flex; justify-content: center; margin: 0 0 16px; }
.ff-stoerung-inner { width: 100%; max-width: 640px; background: #c81e3c; color: #fff; border-radius: 0 0 14px 14px; padding: 9px 16px; font-size: .86rem; line-height: 1.45; box-shadow: 0 10px 24px rgba(200,30,60,.18); }
.ff-stoerung-inner a { color: #fff; font-weight: 700; text-decoration: underline; }
.ff-stoerung-inner strong { font-weight: 800; }

/* Hinweise: eine Familie (warn orange, fehler rot, info blau, ok gruen), Abstaende bleiben am Element. */
.ff-lock-hint.ff-hinweis-warn { border-left: 3px solid #ec6a1f; background: #fff5ef; color: #00263a; }
.ff-lock-hint.ff-hinweis-fehler { border-left: 3px solid #d64545; background: #fdeceb; color: #8a1f1f; font-weight: 600; }
.ff-lock-hint.ff-hinweis-info { border-left: 3px solid #008cbe; background: #f0f8fc; color: #00263a; }
.ff-lock-hint.ff-hinweis-ok { border-left: 3px solid #019539; background: #f0faf3; color: #00263a; }

/* Schrittleiste (Team-Buchung, Praxis-Buchung): Punkte, aktueller Schritt orange, erledigte gruen. */
.ff-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0 0 12px; font-size: .78rem; font-weight: 700; color: #5b6b78; letter-spacing: .02em; text-transform: uppercase; }
.ff-steps li { display: flex; align-items: center; gap: 6px; }
.ff-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #cfd8de; }
.ff-steps li[aria-current="step"] { color: #ec6a1f; }
.ff-steps li[aria-current="step"]::before { background: #ec6a1f; }
.ff-steps li.ff-erledigt, .ff-steps li.tk-erledigt, .ff-steps li.pw-erledigt { color: #019539; }
.ff-steps li.ff-erledigt::before, .ff-steps li.tk-erledigt::before, .ff-steps li.pw-erledigt::before { background: #019539; }

/* Termin-Zeile: Auswahlzeile der Praxis-Buchung und die Vorschau auf Sprosse 3 (ohne Auswahlknopf). */
.ff-termin-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e2e9ee; border-radius: 12px; background: #fff; margin: 0 0 8px; transition: border-color .15s, box-shadow .15s; }
.ff-termin-zeile.ff-waehlbar { cursor: pointer; }
.ff-termin-zeile.ff-waehlbar:hover { border-color: #b9c8d2; }
.ff-termin-zeile:has(input:checked) { border-color: #ec6a1f; background: #fff5ef; box-shadow: 0 0 0 3px rgba(236,106,31,.12); }
.ff-termin-zeile:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.ff-termin-zeile input[type="radio"] { margin: 4px 0 0; accent-color: #ec6a1f; flex: 0 0 auto; }
.ff-termin-body { min-width: 0; flex: 1 1 auto; }
.ff-termin-datum { display: block; font-weight: 800; color: #00263a; font-size: .95rem; letter-spacing: -.01em; }
.ff-termin-meta { display: block; font-size: .82rem; color: #5b6b78; line-height: 1.5; margin-top: 4px; }
.ff-termin-hinweis { display: block; font-size: .78rem; font-weight: 700; color: #ec6a1f; margin-top: 4px; }
.ff-termin-gruppe { font-size: .78rem; font-weight: 800; color: #00263a; letter-spacing: .02em; text-transform: uppercase; margin: 10px 0 6px; }

/* Termin-Kachel: der reservierte Platz (Sprosse 5), je Terminblock eine Kachel. */
.ff-termin-kachel { flex: 1 1 220px; min-width: 0; border: 1px solid #e2e9ee; border-left: 3px solid #ec6a1f; border-radius: 12px; padding: 12px 14px; background: #fff; }
.ff-termin-kachel.ff-bestaetigt { border-left-color: #019539; }
.ff-termin-kachel .ff-termin-datum { font-size: 1.05rem; }

/* Bestellblatt (Jonathan 27./29.09.): das eine Bestaetigungsblatt fuer jede Buchung mit Zahlungspflicht (3E anhaengen,
   2E reservieren, als Naechstes das 1E-Zertifikat). Markup: Teile/_Bestellblatt, Modell: BestellblattModel. */
.ff-bestellblatt { max-width: 560px; width: calc(100% - 32px); border: 1px solid #e2e9ee; border-radius: 14px; padding: 0; color: #00263a; position: fixed; inset: 0; margin: auto; box-shadow: 0 18px 48px rgba(0,38,58,.22); }
.ff-bestellblatt::backdrop { background: rgba(0,38,58,.45); }
.ff-bestellblatt-inner { padding: 22px 22px 18px; }
.ff-bestellblatt-titel { font-size: 1.1rem; font-weight: 800; color: #00263a; letter-spacing: -.01em; margin: 0 0 12px; }
.ff-bestellblatt-zeilen { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .88rem; color: #5b6b78; margin: 0; }
.ff-bestellblatt-zeilen dt { font-weight: 700; color: #00263a; }
.ff-bestellblatt-zeilen dd { margin: 0; }
.ff-bestellblatt-zeilen dd.ff-fett { font-weight: 800; color: #00263a; }
.ff-bestellblatt-regeln { font-size: .82rem; color: #5b6b78; line-height: 1.5; margin: 12px 0 0; }
.ff-bestellblatt-haken { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: #00263a; line-height: 1.45; margin-top: 14px; }
.ff-bestellblatt-haken input { margin: 3px 0 0; accent-color: #ec6a1f; flex: 0 0 auto; }
.ff-bestellblatt-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
