/* HOME NEU (home2.css) – ENTWURF (lino/mein-weg-neu). Nur aktiv mit Schalter (siehe home2.js). */
.h2 { --ink: #302923; --ink2: #756B63; --line: #E6DCCF; --card: #FBF8F2; --btn: #8A7765; --btn-d: #6C5C4D; --now: #2563EB; --now-d: #1A46B3; --ok: #4FA266;
  color: var(--ink); padding: 4px 0 40px; }

.h2-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 4px 18px; }
.h2-hero small { font-size: 13px; color: var(--ink2); font-weight: 600; }
.h2-hero h1 { margin: 2px 0 4px; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.h2-hero p { margin: 0; color: var(--ink2); font-size: 15px; }
.h2-hero-fig { flex: none; margin-bottom: -6px; }

.h2-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.h2-col { display: grid; gap: 16px; min-width: 0; }
.h2-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 6px 18px rgba(48, 41, 35, .05); }
.h2-eye { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.h2-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.h2-h h3 { margin: 0; font-size: 17px; }
.h2-tl { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--btn); cursor: pointer; padding: 6px 4px; }
.h2-tl:hover { color: var(--ink); }
.h2-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #EDE2D5; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.h2-x:hover { background: #E5D5C5; }
.h2 button:focus-visible, .h2 input:focus-visible { outline: 3px solid var(--now); outline-offset: 2px; }

/* Wichtigster Schritt */
.h2-main { padding: 22px; background: radial-gradient(90% 120% at 100% 0%, #E7EEFC 0%, rgba(251, 248, 242, 0) 60%), var(--card); }
.h2-main-row { display: flex; gap: 16px; align-items: center; margin: 12px 0 10px; }
.h2-main-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--now); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 0 var(--now-d); }
.h2-main h2 { margin: 0; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.2; }
.h2-meta { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.h2-why { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: #4F463F; }
.h2-main-act { display: flex; gap: 10px; flex-wrap: wrap; }
.h2-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; background: var(--btn); color: #fff; font: inherit; font-weight: 800; font-size: 15.5px; padding: 13px 22px; min-height: 50px; cursor: pointer; box-shadow: 0 4px 0 var(--btn-d); }
.h2-primary:hover { filter: brightness(1.05); }
.h2-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-d); }
.h2-primary.is-sm { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
.h2-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; font: inherit; font-weight: 700; font-size: 14.5px; padding: 12px 16px; min-height: 50px; cursor: pointer; }
.h2-ghost:hover { border-color: #CDBFAE; }
.h2-strip { display: flex; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid #EDE4D8; }
.h2-strip i { width: 14px; height: 14px; border-radius: 50%; background: #EAE2D7; flex: none; }
.h2-strip i.is-done { background: var(--ok); }
.h2-strip i.is-skipped { background: #fff; border: 2px dashed #CDBFAE; }
.h2-strip i.is-current { background: var(--now); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.h2-strip i.is-open { background: #D9C6AE; }
.h2-strip b { flex: 1; height: 4px; max-width: 46px; background: #EAE2D7; margin: 0 4px; border-radius: 4px; }
.h2-strip span { margin-left: 12px; font-size: 13px; color: var(--ink2); font-weight: 700; white-space: nowrap; }

/* Nächste Schritte */
.h2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h2-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; border-radius: 16px; padding: 10px; font: inherit; color: var(--ink); cursor: pointer; min-height: 60px; }
.h2-row:hover { background: #F2EBE1; }
.h2-row > svg { color: #B4A695; flex: none; }
.h2-row.is-later { opacity: .72; }
.h2-row-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #EDE2D5; color: var(--btn); }
.h2-row-ico.src-date { background: #E7EEFC; color: var(--now); }
.h2-row-ico.src-teacher { background: #EDE7F3; color: #735F89; }
.h2-row-ico.src-app { background: #F6E6DD; color: #A46245; }
.h2-row-ico.src-way { background: #E4EFE6; color: #527D60; }
.h2-row-t { flex: 1; min-width: 0; }
.h2-row-t b { display: block; font-size: 15px; line-height: 1.3; }
.h2-row-t small { font-size: 12.5px; color: var(--ink2); }
.h2-tag { font-size: 11.5px; font-weight: 700; color: var(--ink2); background: #EFE7DC; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

/* Was ist neu */
.h2-neu { border-color: #D9E3FA; background: #F5F8FE; }
.h2-neu h3 { margin: 0 0 12px; font-size: 17px; }
.h2-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-opts.is-row { align-items: center; }
.h2-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 44px; box-shadow: 0 2px 0 #EDE4D8; text-align: left; }
.h2-opt:hover { border-color: #BCCDF4; }
.h2-opt.is-quiet { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink2); }
.h2-opt.is-primary { background: var(--btn); color: #fff; border-color: var(--btn); box-shadow: 0 3px 0 var(--btn-d); }
.h2-ok { display: flex; gap: 12px; align-items: flex-start; }
.h2-ok > svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 6px; width: 34px; height: 34px; flex: none; }
.h2-ok h3 { margin: 4px 0 2px; }
.h2-ok p { margin: 0; color: var(--ink2); font-size: 14px; }
.h2-form { display: grid; gap: 10px; }
.h2-radio { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.h2-radio:has(input:checked) { border-color: var(--now); background: #EEF3FD; }
.h2-fl { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.h2-fl input { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; min-height: 44px; }
.h2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Bewerbungen */
.h2-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.h2-app { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 14px; padding: 8px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.h2-app:hover { background: #F2EBE1; }
.h2-app-logo { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--btn); flex: none; }
.h2-app-t { flex: 1; min-width: 0; }
.h2-app-t b { display: block; font-size: 15px; }
.h2-app-t small { font-size: 12.5px; color: var(--ink2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2-app-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.h2-app-r small { font-size: 12px; color: var(--ink2); max-width: 150px; }
.h2-pill { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.h2-pill.is-plan { background: #EFE7DC; color: #6E5E4F; }
.h2-pill.is-app { background: #E7EEFC; color: #1E4FC2; }
.h2-pill.is-int { background: #EDE7F3; color: #6B5684; }
.h2-pill.is-ok { background: #E2F0E6; color: #3D7650; }
.h2-pill.is-no { background: #F6E6DD; color: #9A5539; }
.h2-empty { margin: 0; color: var(--ink2); font-size: 14px; }

/* Tipp */
.h2-tip { display: flex; gap: 12px; align-items: flex-start; background: #FBF4E4; border-color: #EEDFBF; }
.h2-tip-ico { width: 38px; height: 38px; border-radius: 12px; background: #F3E2B8; color: #8A6A1C; display: grid; place-items: center; flex: none; }
.h2-tip p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

/* Begleiter-Chat (Karte) */
.h2-chatc-h { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.h2-chatc-h > div { flex: 1; }
.h2-chatc-h h3 { margin: 0; font-size: 17px; }
.h2-chatc-h small { font-size: 12.5px; color: var(--ink2); }
.h2-chatc-ava { width: 44px; height: 44px; border-radius: 50%; background: #E7EEFC; color: #2563EB; display: grid; place-items: center; overflow: hidden; flex: none; }
.h2-chatc-last { display: block; width: 100%; text-align: left; border: 0; background: #F2EBE1; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.h2-chatc-last small { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 700; }
.h2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h2-chip { border: 1px solid #D9E3FA; background: #F5F8FE; color: #1E4FC2; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.h2-chip:hover { background: #E7EEFC; }
.h2-ask { display: flex; gap: 8px; margin-top: 12px; }
.h2-ask input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 15px; background: #fff; min-height: 46px; }
.h2-ask button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--btn); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 3px 0 var(--btn-d); }

/* Begleiter-Chat (gross) */
.h2-chat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 14px 40px rgba(48, 41, 35, .08); height: calc(100vh - 140px); min-height: 480px; max-width: 860px; margin: 0 auto; overflow: hidden; }
.h2-chat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #EDE4D8; }
.h2-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #EDE2D5; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.h2-chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.h2-chat-hello { text-align: center; margin: auto 0; color: var(--ink2); }
.h2-chat-hello h3 { color: var(--ink); margin: 8px 0 4px; font-size: 20px; }
.h2-chat-hello p { max-width: 420px; margin: 0 auto; }
.h2-m { display: flex; gap: 8px; max-width: 86%; }
.h2-m p { margin: 0; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.h2-m.is-me { align-self: flex-end; }
.h2-m.is-me p { background: var(--btn); color: #fff; border-bottom-right-radius: 6px; }
.h2-m.is-st p { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.h2-m-ava { width: 32px; height: 32px; border-radius: 50%; background: #E7EEFC; display: grid; place-items: center; overflow: hidden; flex: none; align-self: flex-end; }
.h2-m-ch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.h2-chat-f { border-top: 1px solid #EDE4D8; padding: 12px 14px 14px; }
.h2-chat-f .h2-chips { max-height: 92px; overflow-y: auto; }

@media (max-width: 1000px) { .h2-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .h2-hero-fig { display: none; }
  .h2-card { padding: 14px; border-radius: 20px; }
  .h2-main { padding: 16px; }
  .h2-main-ico { width: 52px; height: 52px; }
  .h2-main-act > * { flex: 1 1 100%; }
  .h2-tag { display: none; }
  .h2-chat { border-radius: 0; max-width: none; }
  .h2-m { max-width: 94%; }
  .h2-app-r small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .h2 * { transition: none !important; animation: none !important; } }
.h2-tl, .h2-back { white-space: nowrap; }
@media (max-width: 640px) {
  .h2-chat-h b { display: none; }
  .h2-h h3 { font-size: 16px; }
}

/* Neu: Bereich unter «Direkt zu Stellio» im bisherigen Home */
#h2-root.h2 { padding: 0; margin: 28px 0 8px; display: grid; gap: 16px; }
#h2-root .h2-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
#h2-root .h2-card { box-shadow: none; }
#h2-root .h2-neu { margin: 0; }

/* Grosser Chat als Fenster über Home */
#h2-chat-wrap { position: fixed; inset: 0; z-index: 360; display: grid; place-items: center; padding: 24px; }
.h2-chat-bg { position: absolute; inset: 0; background: rgba(48, 41, 35, .35); }
#h2-chat-wrap .h2-chat { position: relative; width: min(860px, 100%); height: min(760px, calc(100vh - 48px)); }
.h2-noscroll { overflow: hidden; }
@media (max-width: 640px) {
  #h2-chat-wrap { padding: 0; }
  #h2-chat-wrap .h2-chat { width: 100%; height: 100%; }
}
@media (max-width: 1000px) { #h2-root .h2-grid { grid-template-columns: 1fr; } }
