/* SYSTEM EXIT – digitaler Kurs */
.nc-se {
  --se-ink: #1e1b4b;
  --se-muted: #475569;
  --se-line: #e2e8f0;
  --se-brand: #7c3aed;
  --se-brand2: #06b6d4;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: var(--se-ink);
}
.nc-se * { box-sizing: border-box; }

/* hidden-Attribut MUSS greifen, auch wenn Elemente display:grid/flex haben
   (sonst zeigen versteckte Formulare/Blöcke trotzdem alle Felder). */
.nc-se [hidden], .nc-se-teaser [hidden] { display: none !important; }

.nc-se-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.2rem; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.nc-se-btn:hover { transform: translateY(-1px); }
.nc-se-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.nc-se-btn-primary { background: linear-gradient(135deg, var(--se-brand), var(--se-brand2)); color: #fff; }
.nc-se-btn-ghost { background: transparent; color: var(--se-brand); border: 1px solid #c7d2fe; }

/* Auth */
.nc-se-auth { background: #fff; border: 1px solid #eef1f6; border-radius: 22px; padding: 2rem; box-shadow: 0 1px 3px rgba(15,23,42,.03), 0 24px 50px -20px rgba(30,27,75,.22); }
.nc-se-auth-head h2 { margin: 0 0 .4rem; }
.nc-se-auth-head p { margin: 0 0 1.2rem; color: var(--se-muted); line-height: 1.6; }
.nc-se-tabs { display: flex; gap: .3rem; margin-bottom: 1.5rem; background: #f1f5f9; border: 1px solid var(--se-line); border-radius: 14px; padding: .3rem; }
.nc-se-tab { flex: 1; padding: .72rem .5rem; border: none; background: transparent; border-radius: 11px; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--se-muted); transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.nc-se-tab:hover { color: var(--se-brand); }
.nc-se-tab.is-active { background: linear-gradient(135deg, var(--se-brand), var(--se-brand2)); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.3); }
.nc-se-form { display: grid; gap: .9rem; }
.nc-se-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.nc-se-form input[type="email"], .nc-se-form input[type="password"], .nc-se-form input[type="text"] {
  padding: .7rem .8rem; border: 1px solid var(--se-line); border-radius: 12px; font-size: 1rem;
}
.nc-se-form input:focus { outline: 2px solid var(--se-brand2); outline-offset: 1px; }
.nc-se-hint { font-weight: 400; color: #94a3b8; font-size: .85rem; }
.nc-se-check { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400; font-size: .9rem; color: var(--se-muted); line-height: 1.45; }
.nc-se-check input { margin-top: .2rem; }
.nc-se-msg { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: .6rem .8rem; border-radius: 10px; font-size: .92rem; }

/* Rollenwahl (Betroffen / Angehörig) */
.nc-se-rolepick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nc-se-rolepick-label { font-weight: 700; font-size: .95rem; margin-right: .2rem; }
.nc-se-roleopt { flex: 1 1 130px; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .5rem; border: 1px solid var(--se-line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; background: #f8fafc; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.nc-se-roleopt input { margin: 0; accent-color: var(--se-brand); }
.nc-se-roleopt:hover { border-color: #c7d2fe; }
.nc-se-roleopt:has(input:checked) { background: #eef2ff; border-color: var(--se-brand); color: var(--se-brand); }
.nc-se-rolehint { font-size: .82rem; color: #64748b; margin: -.3rem 0 .2rem; }
.nc-se-rolebadge { font-weight: 700; color: var(--se-brand); }

/* Dashboard */
.nc-se-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nc-se-dash-head h2 { margin: 0; }
.nc-se-sub { margin: .2rem 0 0; color: var(--se-muted); }
.nc-se-progress { position: relative; height: 14px; background: #eef2ff; border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.nc-se-progress-bar { height: 100%; background: linear-gradient(90deg, var(--se-brand), var(--se-brand2)); transition: width .5s ease; }
.nc-se-progress-label { position: absolute; right: 8px; top: -1px; font-size: .7rem; font-weight: 800; color: #334155; }

/* Live-Banner */
.nc-se-live { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%); color: #fff; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1.3rem; }
.nc-se-live-ico { font-size: 1.1rem; animation: nc-se-pulse 2.2s ease-in-out infinite; }
@keyframes nc-se-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .nc-se-live-ico { animation: none; } }
.nc-se-live-body { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 180px; }
.nc-se-live-body strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #c4b5fd; }
.nc-se-live-when { font-weight: 700; font-size: 1.02rem; }
.nc-se-live-note { font-size: .88rem; color: rgba(255,255,255,.82); }
.nc-se-live-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nc-se-live-actions .nc-se-link { color: #ddd6fe; }

/* Wochen-Video + Lektion */
.nc-se-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f172a; margin-bottom: 1rem; }
.nc-se-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nc-se-lesson { background: #f8fafc; border: 1px solid var(--se-line); border-left: 3px solid var(--se-brand); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; color: #334155; line-height: 1.6; font-size: .95rem; }

.nc-se-redeem { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.nc-se-redeem p { margin: 0 0 .6rem; color: #0f766e; font-weight: 600; }
.nc-se-redeem-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.nc-se-redeem-row input { flex: 1 1 180px; padding: .6rem .8rem; border: 1px solid var(--se-line); border-radius: 10px; }

/* Wochen-Akkordeon */
.nc-se-weeks { display: grid; gap: 1.1rem; }
.nc-se-week { background: #fff; border: 1px solid #eef1f6; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.03), 0 16px 36px -16px rgba(30,27,75,.18); }
.nc-se-week-head { width: 100%; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; background: none; border: none; cursor: pointer; text-align: left; font: inherit; }
.nc-se-week-n { font-weight: 800; color: var(--se-brand); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.nc-se-week-title { font-weight: 700; flex: 1; }
.nc-se-caret { color: #94a3b8; transition: transform .2s ease; }
.nc-se-week.is-expanded .nc-se-caret { transform: rotate(180deg); }
.nc-se-week--locked { opacity: .72; }

.nc-se-badge { font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.nc-se-badge.is-done { background: #dcfce7; color: #15803d; }
.nc-se-badge.is-lock { background: #f1f5f9; color: #64748b; }
.nc-se-badge.is-pay { background: #fef9c3; color: #a16207; }
.nc-se-badge.is-open { background: #eef2ff; color: var(--se-brand); }

.nc-se-week-body { padding: 0 1.1rem 1.2rem; }
.nc-se-week-intro { color: var(--se-muted); margin: 0 0 1rem; }
.nc-se-note { color: #64748b; font-size: .92rem; }
.nc-se-paywall { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .9rem 1rem; }
.nc-se-paywall p { margin: 0; color: #92400e; line-height: 1.5; }

.nc-se-dl { display: inline-block; margin-bottom: 1rem; font-weight: 700; color: var(--se-brand); text-decoration: none; }
.nc-se-dl:hover { text-decoration: underline; }

.nc-se-sheet { display: grid; gap: 1rem; }
.nc-se-field { display: grid; gap: .4rem; }
.nc-se-field span { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.nc-se-field textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--se-line); border-radius: 12px; font: inherit; resize: vertical; }
.nc-se-field textarea:focus { outline: 2px solid var(--se-brand2); outline-offset: 1px; }

.nc-se-actions { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.nc-se-save-state { font-size: .85rem; color: #64748b; }

/* Freischalten (Kauf + Code) */
.nc-se-unlock { background: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%); border: 1px solid #c7d2fe; border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.nc-se-unlock h3 { margin: 0 0 .3rem; }
.nc-se-unlock > p { margin: 0 0 1rem; color: #334155; }
.nc-se-buy { margin-bottom: .8rem; }
.nc-se-buy .nc-se-btn { font-size: 1.05rem; padding: .85rem 1.5rem; }
.nc-se-unlock .nc-se-redeem { background: rgba(255,255,255,.6); border-color: #c7d2fe; margin-bottom: 0; }
.nc-se-unlock .nc-se-redeem p { color: #475569; }

/* Solidarische Preisstufen */
.nc-se-unlock .nc-se-soli { font-size: .92rem; color: #334155; }
.nc-se-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: .7rem; }
.nc-se-tier { background: #fff; border: 1px solid var(--se-line); border-radius: 14px; padding: 1rem .9rem; text-align: center; display: flex; flex-direction: column; gap: .35rem; }
.nc-se-tier.is-featured { border-color: var(--se-brand); box-shadow: 0 8px 20px rgba(124,58,237,.15); }
.nc-se-tier-name { font-weight: 700; font-size: .88rem; color: var(--se-muted); text-transform: uppercase; letter-spacing: .03em; }
.nc-se-tier-price { font-weight: 800; font-size: 1.5rem; color: var(--se-ink); }
.nc-se-tier-desc { font-size: .8rem; color: #64748b; line-height: 1.4; flex: 1; }
.nc-se-tier .nc-se-btn { margin-top: .5rem; width: 100%; }
.nc-se-unlock .nc-se-compliance { font-size: .76rem; color: #94a3b8; line-height: 1.45; margin: .7rem 0 0; }
@media (max-width: 560px) { .nc-se-tiers { grid-template-columns: 1fr; } }

.nc-se-spinner { width: 34px; height: 34px; margin: 1rem auto 0; border: 3px solid #e2e8f0; border-top-color: var(--se-brand); border-radius: 50%; animation: nc-se-spin 0.9s linear infinite; }
@keyframes nc-se-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nc-se-spinner { animation-duration: 2.4s; } }

.nc-se-link { background: none; border: none; color: var(--se-brand); cursor: pointer; font: inherit; text-decoration: underline; padding: .3rem 0; justify-self: start; }
.nc-se-msg--ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

/* DSGVO: Hinweise, Bestätigung, Löschen */
.nc-se-privacy-note { font-size: .82rem; color: #64748b; line-height: 1.5; margin: .8rem 0 0; }
.nc-se-privacy-note a { color: var(--se-brand); }
.nc-se-flash { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.nc-se-confirmbar { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.2rem; font-size: .92rem; line-height: 1.5; }
.nc-se-confirmbar .nc-se-link { color: #92400e; padding: 0; }
.nc-se-confirm-state { font-weight: 700; }
.nc-se-danger { margin-top: 2rem; border: 1px solid #fecaca; border-radius: 14px; padding: .3rem 1rem; background: #fff5f5; }
.nc-se-danger summary { cursor: pointer; font-weight: 700; color: #b91c1c; padding: .6rem 0; }
.nc-se-danger p { color: #7f1d1d; font-size: .92rem; line-height: 1.5; }
.nc-se-del-form { display: grid; gap: .7rem; max-width: 360px; padding-bottom: .8rem; }
.nc-se-del-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.nc-se-del-form input { padding: .6rem .8rem; border: 1px solid var(--se-line); border-radius: 10px; }
.nc-se-del-btn { background: #dc2626; color: #fff; }
.nc-se-del-btn:hover { background: #b91c1c; }

/* Feedback (Woche + Abschluss) */
.nc-se-fb { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed #e2e8f0; }
.nc-se-fb h4 { margin: 0 0 .2rem; color: var(--se-ink); }
.nc-se-fb-hint { margin: 0 0 1rem; font-size: .85rem; color: #64748b; }
.nc-se-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.nc-se-rating-label { font-size: .92rem; font-weight: 600; }
.nc-se-stars { display: flex; gap: .35rem; }
.nc-se-star { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--se-line); background: #fff; color: #94a3b8; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.nc-se-star:hover { border-color: var(--se-brand); }
.nc-se-star.is-on { background: linear-gradient(135deg, var(--se-brand), var(--se-brand2)); color: #fff; border-color: transparent; }
.nc-se-fb-sheet { display: grid; gap: .7rem; }
.nc-se-finalcard { margin-top: 1.4rem; background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%); border: 1px solid #c7d2fe; border-radius: 16px; padding: 1.2rem 1.3rem; }
.nc-se-finalcard .nc-se-fb { border-top-color: rgba(124,58,237,.25); }

/* Ebene 3: Wochen-Auswertung */
.nc-se-eval { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed #e2e8f0; }
.nc-se-eval h4 { margin: 0 0 .2rem; color: var(--se-ink); }
.nc-se-eval-hint { margin: 0 0 .8rem; font-size: .85rem; color: #64748b; }
.nc-se-eval-out { margin-top: .8rem; white-space: pre-wrap; line-height: 1.6; font-size: .95rem; }
.nc-se-eval-out.is-filled { background: #f5f3ff; border: 1px solid #ddd6fe; border-left: 3px solid var(--se-brand); border-radius: 12px; padding: .9rem 1.1rem; color: #312e81; }
.nc-se-eval-out.is-err { color: #b91c1c; }

/* Ebene 3: Abschluss-Plan (Kompass) */
.nc-se-plan { margin-top: 1.6rem; background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%); color: #fff; border-radius: 18px; padding: 1.5rem 1.4rem; }
.nc-se-plan h3 { margin: 0 0 .3rem; color: #fff; font-size: 1.35rem; }
.nc-se-plan-hint { margin: 0 0 1.1rem; font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.55; }
.nc-se-plan-out { white-space: pre-wrap; line-height: 1.65; font-size: .96rem; }
.nc-se-plan-out.is-filled { background: rgba(255,255,255,.96); color: #1e293b; border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.nc-se-plan .nc-se-actions { margin-top: 0; }
.nc-se-plan .nc-se-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

/* Begleitmaterial */
.nc-se-materials { margin-top: 1.6rem; background: #fff; border: 1px solid var(--se-line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.nc-se-materials h3 { margin: 0 0 .8rem; }
.nc-se-mat-list { display: grid; gap: .5rem; }
.nc-se-mat-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; border-bottom: 1px solid #f1f5f9; }
.nc-se-mat-row:last-child { border-bottom: none; }
.nc-se-mat-row.is-locked { opacity: .7; }
.nc-se-mat-row .nc-se-dl { margin: 0; white-space: nowrap; }

/* KI-Kurs-Begleiter */
.nc-se-coach { margin-top: 1.4rem; background: #fff; border: 1px solid #c7d2fe; border-radius: 16px; padding: .4rem 1.1rem 1.1rem; box-shadow: 0 8px 22px rgba(124,58,237,.08); }
.nc-se-coach summary { cursor: pointer; font-weight: 800; color: var(--se-brand); padding: .8rem 0; }
.nc-se-coach-hint { font-size: .82rem; color: #64748b; margin: 0 0 .8rem; line-height: 1.5; }
.nc-se-coach-log { display: flex; flex-direction: column; gap: .6rem; max-height: 340px; overflow-y: auto; margin-bottom: .9rem; }
.nc-se-cmsg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.5; font-size: .95rem; white-space: pre-wrap; word-wrap: break-word; }
.nc-se-cmsg--u { align-self: flex-end; background: linear-gradient(135deg, var(--se-brand), var(--se-brand2)); color: #fff; border-bottom-right-radius: 4px; }
.nc-se-cmsg--a { align-self: flex-start; background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 4px; }
.nc-se-cmsg.is-crisis { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.nc-se-coach-form { display: flex; gap: .5rem; align-items: flex-end; }
.nc-se-coach-form textarea { flex: 1; padding: .6rem .8rem; border: 1px solid var(--se-line); border-radius: 12px; font: inherit; resize: vertical; }
.nc-se-coach-form textarea:focus { outline: 2px solid var(--se-brand2); outline-offset: 1px; }
.nc-se-coach-form .nc-se-btn { white-space: nowrap; }

/* Öffentlicher Teaser (Methode-Seite) */
.nc-se-teaser { max-width: 760px; margin: 0 auto; }
.nc-se-teaser-card { background: #fff; border: 1px solid #c7d2fe; border-radius: 20px; padding: 1.4rem 1.5rem; box-shadow: 0 16px 40px rgba(124,58,237,.1); }
.nc-se-teaser-head { text-align: center; margin-bottom: 1rem; }
.nc-se-teaser-badge { display: inline-block; background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(6,182,212,.12)); border: 1px solid rgba(124,58,237,.28); color: #6d28d9; font-weight: 700; font-size: .8rem; padding: .35rem .85rem; border-radius: 999px; margin-bottom: .7rem; }
.nc-se-teaser-head h3 { margin: 0 0 .35rem; color: var(--se-ink); font-size: 1.4rem; }
.nc-se-teaser-head p { margin: 0 auto; max-width: 560px; color: var(--se-muted); line-height: 1.55; font-size: .95rem; }
.nc-se-teaser .nc-se-coach-log:empty { display: none; }
.nc-se-teaser-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.nc-se-chip { background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; border-radius: 999px; padding: .5rem .9rem; font-size: .88rem; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.nc-se-chip:hover { transform: translateY(-1px); background: #ede9fe; }
.nc-se-teaser-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: .4rem; }

@media (max-width: 560px) {
  .nc-se-week-head { flex-wrap: wrap; }
  .nc-se-btn { width: 100%; }
  .nc-se-actions .nc-se-btn { width: auto; }
  .nc-se-coach-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .nc-se { padding: 1.2rem .8rem 2.5rem; }
  .nc-se-auth, .nc-se-teaser-card { padding: 1.1rem 1rem; }
  .nc-se-tab { font-size: .82rem; padding: .6rem .25rem; }
  .nc-se-dash-head { gap: .6rem; }
  .nc-se-dash-head h2 { font-size: 1.2rem; }
  .nc-se-week-head { padding: .85rem .9rem; gap: .5rem; }
  .nc-se-week-title { flex-basis: 100%; order: 3; }
  .nc-se-week-body { padding: 0 .9rem 1rem; }
  .nc-se-live { flex-direction: column; align-items: flex-start; }
  .nc-se-live-actions { width: 100%; }
  .nc-se-live-actions .nc-se-btn { flex: 1; text-align: center; }
  .nc-se-cmsg { max-width: 94%; }
  .nc-se-teaser-head h3 { font-size: 1.2rem; }
  .nc-se-redeem-row { flex-direction: column; }
  .nc-se-redeem-row .nc-se-btn { width: 100%; }
}
