/* ==========================================================================
   Jobriver v2 – Job-Alerts (Erklärseite mit Live-Vorschau)
   Basis (Tokens, Nav, Footer, Buttons, Chips, .logo-box-Muster) aus v2-core.css.
   Styleguide: docu/design/v2-styleguide.md
   ========================================================================== */

:root {
    --ja2-mesh-1: #b29dff;
    --ja2-mesh-2: #ffb3e1;
    --ja2-mesh-3: #9fd8ff;
    --ja2-hero-bg: linear-gradient(180deg, var(--bg) 0%, #f6f2ff 45%, #efe8ff 100%);
}
:root[data-theme="dark"] {
    --ja2-mesh-1: #4a32a8;
    --ja2-mesh-2: #6b2a5c;
    --ja2-mesh-3: #1f3d5c;
    --ja2-hero-bg: linear-gradient(180deg, var(--bg) 0%, #150f22 45%, #1b1230 100%);
}

.ja2 { padding-top: 72px; }

/* ---------- Kopf ---------- */
.ja2-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); background: var(--ja2-hero-bg); }
.ja2-hero__mesh { position: absolute; inset: 0; z-index: -1; filter: blur(70px); opacity: .7; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.ja2-hero__mesh i { position: absolute; border-radius: 50%; }
.ja2-hero__mesh i:nth-child(1) { width: 40%; aspect-ratio: 1; left: -6%; top: -18%; background: var(--ja2-mesh-1); animation: ja2Drift 18s ease-in-out infinite alternate; }
.ja2-hero__mesh i:nth-child(2) { width: 34%; aspect-ratio: 1; right: 4%; top: 10%; background: var(--ja2-mesh-2); opacity: .7; animation: ja2Drift 22s ease-in-out infinite alternate-reverse; }
.ja2-hero__mesh i:nth-child(3) { width: 36%; aspect-ratio: 1; left: 38%; bottom: -30%; background: var(--ja2-mesh-3); opacity: .5; animation: ja2Drift 26s ease-in-out infinite alternate; }
@keyframes ja2Drift { to { transform: translate(10%, 8%) scale(1.1); } }

.ja2-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ja2-title { margin-top: 14px; font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
.ja2-lead { margin-top: 22px; max-width: 560px; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.ja2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ja2-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ja2-checks { list-style: none; display: grid; gap: 10px; margin-top: 28px; color: var(--ink-2); font-size: .9375rem; }
.ja2-checks li { display: flex; align-items: center; gap: 10px; }
.ja2-checks svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-50); fill: none; stroke: var(--brand-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Glas-Karte mit Vorschau ---------- */
.ja2-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 10px var(--glass-weak), var(--shadow-lg); }
.ja2-card__head { display: flex; align-items: flex-start; gap: 14px; }
.ja2-card__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.ja2-card__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ja2-card__t { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; }
.ja2-card__s { margin-top: 2px; font-size: .875rem; color: var(--muted); }
.ja2-activate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.ja2-activate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ja2-card__note { margin-top: 12px; font-size: .75rem; line-height: 1.5; color: var(--muted); }

.ja2-pick { margin-top: 18px; }
.ja2-pick__l { margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ja2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ja2-chips .chip { min-height: 36px; font-size: .875rem; }
.ja2-switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .9375rem; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.ja2-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ja2-switch__track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.ja2-switch__track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.ja2-switch input:checked + .ja2-switch__track { background: var(--brand); }
.ja2-switch input:checked + .ja2-switch__track i { transform: translateX(16px); background: #fff; }
.ja2-switch input:focus-visible + .ja2-switch__track { outline: 2.5px solid var(--brand); outline-offset: 3px; }

.ja2-mail { margin-top: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ja2-mail__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--muted); }
.ja2-mail__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ja2-mail__bar span { margin-left: 8px; }
.ja2-mail__meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 10px; }
.ja2-mail__from { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.ja2-mail__from b { color: var(--ink-2); font-weight: 600; }
.ja2-mail__from small { padding: 1px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ja2-mail__subj { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.ja2-mail__list { list-style: none; display: grid; gap: 2px; padding: 0 8px; min-height: 216px; }
.ja2-job { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; transition: background-color .2s; animation: ja2In .4s var(--ease) both; }
.ja2-mail__list li:nth-child(2) .ja2-job { animation-delay: 60ms; }
.ja2-mail__list li:nth-child(3) .ja2-job { animation-delay: 120ms; }
@keyframes ja2In { from { opacity: 0; transform: translateY(6px); } }
.ja2-job:hover { background: var(--brand-50); }
.ja2 .logo-box { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--line); overflow: hidden; font-weight: 650; color: var(--brand-700); }
.ja2 .logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ja2-job__txt { display: flex; flex-direction: column; min-width: 0; }
.ja2-job__txt strong { font-size: .9375rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ja2-job:hover .ja2-job__txt strong { color: var(--brand-700); }
.ja2-job__txt small { margin-top: 2px; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja2-job__sal { padding: 4px 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ja2-mail__empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: .9375rem; }
.ja2-mail__empty[hidden] { display: none; }
.ja2-mail__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.ja2-mail__foot b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- So funktioniert's ---------- */
.ja2-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ja2-step { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ja2-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.ja2-step::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(178, 157, 255, .16), transparent 60%); }
.ja2-step:hover::before { opacity: 1; }
.ja2-step__n { position: absolute; top: 20px; right: 22px; font-size: .75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ja2-step__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); }
.ja2-step__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ja2-step h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.ja2-step p { margin-top: 8px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Kennzahlen ---------- */
.ja2-metrics { margin: 0 var(--edge) clamp(64px, 8vw, 104px); padding: clamp(32px, 4vw, 48px) 0; border-radius: var(--r-xl); background: var(--tint); border: 1px solid var(--line); }
.ja2-metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ja2-metrics__grid div { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid var(--brand-200); }
.ja2-metrics strong { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ja2-metrics span { font-size: .875rem; color: var(--muted); }

/* ---------- Abschluss-Band ---------- */
.ja2-band { margin: 0 var(--edge); border-radius: var(--r-xl); padding: clamp(56px, 7vw, 88px) 0; background: radial-gradient(80% 120% at 85% 0%, #3b2580, var(--plum) 70%); color: #d9d2ee; }
.ja2-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.ja2-band .h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.ja2-band p { margin-top: 10px; color: #cfc4f3; }
.ja2-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ja2-btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.ja2-btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .ja2-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .ja2-steps { grid-template-columns: minmax(0, 1fr); }
    .ja2-metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 560px) {
    .ja2-title br { display: none; }
    .ja2-card { box-shadow: 0 0 0 6px var(--glass-weak), var(--shadow); }
    .ja2-job { grid-template-columns: 40px minmax(0, 1fr); }
    .ja2 .logo-box { width: 40px; height: 40px; }
    .ja2-job__sal { grid-column: 2; justify-self: start; }
    .ja2-mail__list { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ja2-hero__mesh i, .ja2-job { animation: none; }
}
