/* ==========================================================================
   Jobriver v2 – Entwickler-Tools (Passwort-Generator, Bcrypt-Generator)
   Aufbau nach Personios Rechner-Seiten: Werkzeug oben, Key Facts + Inhalt,
   Fachtext, FAQ. Werkzeug als dunkle „Terminal“-Karte (immer dunkel, wie das
   Code-Fenster auf /ueber-uns-2). Basis: v2-core.css · Styleguide Kap. 13/14.
   ========================================================================== */

:root {
    --pt-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --pt-term: #120c1f;
    --pt-term-2: #1b1430;
    --pt-term-line: rgba(255, 255, 255, .1);
    --pt-term-ink: #f1edfb;
    --pt-term-muted: #a99fc6;
    --pt-ok: #12b886;
    --pt-bad: #e0628f;
    --pt-digit: #7dd3fc;
    --pt-special: #f9a8d4;
}

.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: ptPulse 2.2s infinite; }
@keyframes ptPulse { 0% { box-shadow: 0 0 0 0 rgba(18, 184, 134, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(18, 184, 134, 0); } }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: #f1ecff; }
.btn--ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Kopf + Werkzeug ---------- */
.pt-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(72px + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); }
.pt-hero__glow { position: absolute; inset: -20% -10% 0; z-index: -1; opacity: var(--hero-glow-o); background: radial-gradient(35% 50% at 12% 25%, rgba(178, 157, 255, .45), transparent 70%), radial-gradient(35% 55% at 85% 35%, rgba(114, 79, 255, .3), transparent 70%); filter: blur(24px); -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
.pt-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pt-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; }
.pt-lead { margin-top: 20px; max-width: 520px; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.pt-trust { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.pt-trust li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.pt-trust svg, .facts svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--brand-50); fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-switch { margin-top: 26px; color: var(--muted); }

/* Werkzeug-Karte (bewusst immer dunkel) */
.tool { position: relative; border-radius: var(--r-xl); background: radial-gradient(90% 60% at 0% 0%, #3a2373, transparent 60%), linear-gradient(160deg, var(--pt-term-2), var(--pt-term)); color: var(--pt-term-ink); border: 1px solid var(--pt-term-line); box-shadow: 0 40px 90px -30px rgba(40, 18, 110, .6), 0 0 0 1px rgba(114, 79, 255, .12); overflow: hidden; }
.tool::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.tool__bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--pt-term-line); }
.tool__bar i { width: 10px; height: 10px; border-radius: 50%; }
.tool__bar i:nth-child(1) { background: #ff6b8a; } .tool__bar i:nth-child(2) { background: #ffc46b; } .tool__bar i:nth-child(3) { background: #4ade9f; }
.tool__bar span { margin-left: 10px; font: 500 .75rem var(--pt-mono); color: var(--pt-term-muted); }
.tool__out, .tool__set, .tpanel { position: relative; padding: 22px clamp(18px, 2.4vw, 28px); }
.tool__set { border-top: 1px solid var(--pt-term-line); display: grid; gap: 18px; }

/* Das Passwort selbst */
.pw { display: flex; align-items: center; min-height: 96px; padding: 18px 20px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid var(--pt-term-line); cursor: copy; outline: none; transition: border-color .2s, box-shadow .3s; }
.pw:hover, .pw:focus-visible { border-color: rgba(178, 157, 255, .5); }
.pw:focus-visible { box-shadow: 0 0 0 3px rgba(114, 79, 255, .45); }
.pw.is-flash { animation: ptFlash .6s var(--ease); }
@keyframes ptFlash { 0% { box-shadow: 0 0 0 0 rgba(18, 184, 134, .6); border-color: var(--pt-ok); } 100% { box-shadow: 0 0 0 14px rgba(18, 184, 134, 0); } }
.pw__text { font: 600 clamp(1.15rem, .8rem + 1.4vw, 1.75rem)/1.35 var(--pt-mono); letter-spacing: .02em; word-break: break-all; color: #fff; }
.pw__text .c-d { color: var(--pt-digit); }
.pw__text .c-s { color: var(--pt-special); }
.pw__text .c-sp { white-space: pre; }
.tool__actions { display: flex; gap: 8px; margin-top: 12px; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--pt-term-line); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: .9375rem; font-weight: 550; transition: background-color .2s, border-color .2s, transform .15s; }
.tbtn:hover { background: rgba(255, 255, 255, .12); }
.tbtn:active { transform: translateY(1px); }
.tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbtn--brand { background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 24px -10px rgba(114, 79, 255, .9); }
.tbtn--brand:hover { background: var(--brand-600); }
.tbtn--wide { width: 100%; min-height: 50px; margin-top: 4px; }
.tbtn .i-ok { display: none; }
.tbtn.is-ok { border-color: var(--pt-ok); color: #b6f4dc; }
.tbtn.is-ok .i-ok { display: block; }
.tbtn.is-ok .i-copy { display: none; }
.tbtn[disabled] { opacity: .7; cursor: progress; }
.tbtn.is-busy svg { animation: ptSpin .9s linear infinite; }
@keyframes ptSpin { to { transform: rotate(360deg); } }

/* Entropie-Messer */
.meter2 { margin-top: 18px; }
.meter2__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter2__label { font-weight: 600; }
.meter2__bits { font: 500 .8125rem var(--pt-mono); color: var(--pt-term-muted); }
.meter2__bits b { color: #fff; font-size: 1rem; }
.meter2__track { position: relative; height: 10px; margin: 10px 0 24px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.meter2__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: inherit; background: var(--pt-bad); transition: width .5s var(--ease), background-color .4s; }
.meter2[data-level="mid"] .meter2__fill { background: #f59f00; }
.meter2[data-level="good"] .meter2__fill { background: #8466ff; }
.meter2[data-level="great"] .meter2__fill, .meter2[data-level="max"] .meter2__fill { background: linear-gradient(90deg, #8466ff, var(--pt-ok)); }
.meter2__track span { position: absolute; top: 16px; transform: translateX(-50%); font: 500 .6875rem var(--pt-mono); color: var(--pt-term-muted); }
.meter2__track span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 8px; background: rgba(255, 255, 255, .25); }
.meter2__track span:last-child { transform: translateX(-100%); }
.meter2__track span:last-child::before { left: auto; right: 0; }
.meter2[data-level="weak"] .meter2__label { color: var(--pt-bad); }
.meter2[data-level="mid"] .meter2__label { color: #ffc46b; }
.meter2[data-level="good"] .meter2__label, .meter2[data-level="great"] .meter2__label, .meter2[data-level="max"] .meter2__label { color: #8ff0c6; }
.meter2__crack { font-size: .9375rem; color: var(--pt-term-muted); }
.meter2__crack b { color: #fff; font-weight: 600; }

/* Segment-Schalter im dunklen Werkzeug */
.tseg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--pt-term-line); }
.tseg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px clamp(18px, 2.4vw, 28px) 0; }
.tseg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--brand); box-shadow: 0 8px 20px -8px rgba(114, 79, 255, .9); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .35s var(--ease); }
.tseg--2 .tseg__thumb { width: calc((100% - 8px) / 2); }
.tseg:has(input[value="phrase"]:checked) { --i: 1; }
.tseg:has(input[value="pron"]:checked) { --i: 2; }
.tseg:has([data-tab="ver"][aria-selected="true"]) { --i: 1; }
.tseg label, .tseg button { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: none; font-size: .875rem; font-weight: 550; color: var(--pt-term-muted); cursor: pointer; transition: color .2s; }
.tseg input { position: absolute; opacity: 0; pointer-events: none; }
.tseg label:has(input:checked), .tseg button[aria-selected="true"] { color: #fff; }
.tseg label:has(input:focus-visible), .tseg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Regler */
.trange__label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .875rem; color: var(--pt-term-muted); }
.trange__label b { font: 700 1.25rem var(--pt-mono); color: #fff; }
.trange__label small { font-size: .8125rem; }
.trange input[type="range"] { width: 100%; height: 28px; margin-top: 6px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.trange input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.trange input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.trange input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.trange input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.trange input[type="range"]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.tpresets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tpresets button { min-height: 34px; padding: 0 12px; border: 1px solid var(--pt-term-line); border-radius: 999px; background: none; color: var(--pt-term-muted); font: 500 .8125rem var(--pt-mono); transition: color .2s, border-color .2s, background-color .2s; }
.tpresets button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.tpresets button.is-on { color: #fff; background: rgba(114, 79, 255, .25); border-color: var(--brand); }

/* Optionen */
.topts { display: flex; flex-wrap: wrap; gap: 8px; }
.topts[hidden] { display: none; }
.tchk { position: relative; display: inline-flex; cursor: pointer; }
.tchk input { position: absolute; opacity: 0; pointer-events: none; }
.tchk span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--pt-term-line); border-radius: 999px; font: 500 .875rem var(--pt-mono); color: var(--pt-term-muted); transition: color .2s, border-color .2s, background-color .2s; }
.tchk span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .3); transition: background-color .2s, border-color .2s; }
.tchk input:checked + span { color: #fff; border-color: rgba(178, 157, 255, .55); background: rgba(114, 79, 255, .18); }
.tchk input:checked + span::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tchk input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.tchk--wide span { font-family: var(--font); }
.tchk code { font-family: var(--pt-mono); color: #fff; letter-spacing: .08em; }
.tool__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.texcl, .tsel { display: grid; gap: 6px; font-size: .8125rem; color: var(--pt-term-muted); }
.texcl[hidden] { display: none; }
.tsel { display: inline-flex; align-items: center; gap: 10px; }
.texcl input, .tsel select, .tfield input { min-height: 44px; padding: 0 14px; border: 1px solid var(--pt-term-line); border-radius: 12px; background: rgba(0, 0, 0, .3); color: #fff; font: 500 .9375rem var(--pt-mono); outline: none; transition: border-color .2s, box-shadow .2s; }
.tsel select { padding-right: 32px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a99fc6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; font-family: var(--font); }
.tsel select option { background: #1b1430; }
.texcl input:focus, .tsel select:focus, .tfield input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(114, 79, 255, .35); }
.texcl input::placeholder, .tfield input::placeholder { color: #776d93; }

.tlist { list-style: none; display: grid; gap: 6px; }
.tlist[hidden] { display: none; }
.tlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); animation: ptRise .35s var(--ease) both; }
.tlist li:nth-child(2) { animation-delay: 40ms; } .tlist li:nth-child(3) { animation-delay: 80ms; } .tlist li:nth-child(4) { animation-delay: 120ms; }
.tlist code { min-width: 0; overflow-wrap: anywhere; font: 500 .875rem var(--pt-mono); color: #fff; }
.tlist__copy { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--pt-term-line); border-radius: 999px; background: none; color: var(--pt-term-muted); font-size: .8125rem; }
.tlist__copy:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
@keyframes ptRise { from { opacity: 0; transform: translateY(6px); } }

.tool__privacy { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--pt-term-line); background: rgba(0, 0, 0, .2); font-size: .8125rem; color: var(--pt-term-muted); }
.tool__privacy svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8ff0c6; stroke-width: 2; stroke-linecap: round; }

/* Bcrypt-Felder */
.tpanel { display: grid; gap: 16px; }
.tpanel[hidden] { display: none; }
.tfield { display: grid; gap: 6px; }
.tfield__row { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--pt-term-muted); }
.tfield__row small { font: 500 .75rem var(--pt-mono); }
.tfield__row small b { color: #fff; }
.tfield__row .is-ok { color: #8ff0c6; }
.tfield__row .is-bad { color: var(--pt-bad); }
.twarn, .terr { padding: 10px 14px; border-radius: 12px; font-size: .8125rem; }
.twarn { background: rgba(255, 196, 107, .12); color: #ffd9a0; }
.terr { background: rgba(224, 98, 143, .14); color: #ffb3cd; }
.twarn[hidden], .terr[hidden] { display: none; }
.tprog { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tprog[hidden] { display: none; }
.tprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #c9b8ff); transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }

.hashout { display: grid; gap: 12px; }
.hashout[hidden] { display: none; }
.hashout.is-new { animation: ptRise .45s var(--ease) both; }
.hash { padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .32); border: 1px solid var(--pt-term-line); font: 600 .95rem/1.6 var(--pt-mono); word-break: break-all; cursor: copy; outline: none; }
.hash:focus-visible { box-shadow: 0 0 0 3px rgba(114, 79, 255, .45); }
.seg { border-radius: 4px; transition: background-color .2s, box-shadow .2s; }
.seg--v { color: #ffc46b; } .seg--c { color: #f9a8d4; } .seg--s { color: var(--pt-digit); } .seg--h { color: #b6f4dc; }
.hash.hl-v .seg--v, .hash.hl-c .seg--c, .hash.hl-s .seg--s, .hash.hl-h .seg--h { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.hashlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--pt-term-muted); }
.hashlegend span { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.hashlegend i { width: 10px; height: 10px; border-radius: 3px; }
.hashlegend [data-seg="v"] i { background: #ffc46b; } .hashlegend [data-seg="c"] i { background: #f9a8d4; } .hashlegend [data-seg="s"] i { background: var(--pt-digit); } .hashlegend [data-seg="h"] i { background: #b6f4dc; }
.hashmeta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .875rem; color: var(--pt-term-muted); }
.hashmeta b { color: #fff; font-family: var(--pt-mono); }
.vres { padding: 16px 18px; border-radius: 16px; font-weight: 600; }
.vres[hidden] { display: none; }
.vres.is-pop { animation: ptPop .45s var(--ease); }
@keyframes ptPop { 0% { transform: scale(.96); opacity: 0; } 60% { transform: scale(1.01); } }
.vres--ok { background: rgba(18, 184, 134, .16); color: #b6f4dc; border: 1px solid rgba(18, 184, 134, .45); }
.vres--no, .vres--bad { background: rgba(224, 98, 143, .14); color: #ffc2d6; border: 1px solid rgba(224, 98, 143, .4); }

/* ---------- Knackzeit-Leiter / Kosten-Kurve ---------- */
.ladder-sec { padding: clamp(64px, 8vw, 104px) 0; background: var(--tint); }
.ladder-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.ladder-note { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.ladder { margin-top: clamp(40px, 5vw, 64px); }
.ladder__rail { position: relative; height: 12px; margin: 64px 0 56px; border-radius: 999px; background: linear-gradient(90deg, var(--pt-bad), #f59f00 20%, #8466ff 45%, var(--pt-ok) 70%, #0d7a5a); }
.ladder__rail > span { position: absolute; top: 22px; transform: translateX(-50%); white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.ladder__rail > span::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 10px; background: var(--line-2); }
.ladder__rail > span:first-child { transform: none; }
.ladder__rail > span:first-child::before { left: 0; }
.ladder__you { position: absolute; top: -10px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); box-shadow: var(--shadow); transition: left .7s var(--ease); }
.ladder__you b { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .8125rem; font-weight: 600; white-space: nowrap; font-style: normal; }
.ladder__you.is-edge b { left: auto; right: 0; transform: none; }
.ladder__samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ladder__samples div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ladder__samples code { font: 600 .9375rem var(--pt-mono); }
.ladder__samples span { font-size: .8125rem; color: var(--muted); }

.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.costbars { display: grid; gap: 8px; margin-top: 28px; }
.costbars__empty { padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.costbar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 118px; align-items: center; gap: 12px; animation: ptRise .45s var(--ease) both; animation-delay: var(--d); }
.costbar__c { font: 600 .8125rem var(--pt-mono); color: var(--ink-2); }
.costbar__track { height: 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.costbar__track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-200), var(--brand)); }
.costbar.is-measured .costbar__c { color: var(--brand-700); }
.costbar.is-measured .costbar__track { border-color: var(--brand); }
.costbar__v { font: 600 .8125rem var(--pt-mono); text-align: right; font-variant-numeric: tabular-nums; }
.costbar__v small { display: block; font-weight: 400; color: var(--muted); font-family: var(--font); }
.costbars__note { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

.snip { position: relative; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--pt-term-2), var(--pt-term)); border: 1px solid var(--pt-term-line); overflow: hidden; box-shadow: var(--shadow-lg); }
.snip__tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--pt-term-line); }
.snip__tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--pt-term-muted); font-size: .875rem; font-weight: 550; }
.snip__tabs button[aria-selected="true"] { background: rgba(114, 79, 255, .3); color: #fff; }
.snip__code { margin: 0; padding: 22px; overflow-x: auto; font: 500 .84rem/1.75 var(--pt-mono); color: var(--pt-term-ink); white-space: pre; }
.snip__code[hidden] { display: none; }
.snip__code .c { color: #8e84aa; } .snip__code .k { color: #c9b8ff; } .snip__code .f { color: #7dd3fc; } .snip__code .s { color: #a7f3d0; } .snip__code .v { color: #f9a8d4; } .snip__code .n { color: #ffc46b; font-weight: 700; }
.snip__copy { position: absolute; right: 10px; top: 10px; min-height: 36px; padding: 0 14px; border: 1px solid var(--pt-term-line); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: .8125rem; }
.snip__copy:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Key Facts + Inhalt + Fachtext (Personio-Aufbau) ---------- */
.pt-doc__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pt-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.facts, .toc2 { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.facts { background: var(--brand-50); border-color: transparent; }
.facts__h { margin-bottom: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.facts ul { list-style: none; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.toc2 ol { list-style: none; display: grid; gap: 2px; }
.toc2 a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); transition: background-color .15s, color .15s; }
.toc2 a span { flex: none; font: 600 .8125rem var(--pt-mono); color: var(--brand-700); }
.toc2 a:hover { background: var(--brand-50); color: var(--ink); }
.jobcard { display: grid; gap: 2px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--plum-2), var(--plum)); color: #d9d2ee; transition: transform .25s var(--ease), box-shadow .25s; }
.jobcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.jobcard__k { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c9b8ff; }
.jobcard strong { margin-top: 6px; font-size: 2.25rem; font-weight: 600; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.jobcard__go { margin-top: 10px; font-weight: 600; color: #fff; }
.jobcard__go::after { content: " →"; }

.prose { max-width: 720px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { margin: 48px 0 14px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font: .9em var(--pt-mono); overflow-wrap: anywhere; word-break: break-all; }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); font-weight: 600; }

.cmp { max-width: 720px; margin-top: 48px; scroll-margin-top: 96px; }
.cmp h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; }
.cmp > p { margin: 10px 0 18px; color: var(--ink-2); }
.cmp__scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.cmp table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp thead th { background: var(--tint); font-weight: 600; }
.cmp tbody th { font-weight: 500; color: var(--muted); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp__note { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* ---------- Abschluss-Band (Kanten-Regel) ---------- */
.pt-end { margin: 0 var(--edge); padding: clamp(48px, 6vw, 80px) 0; border-radius: var(--r-xl); background: radial-gradient(80% 120% at 85% 0%, #3b2580, var(--plum) 70%); color: #d9d2ee; }
.pt-end__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.pt-end .h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.pt-end p { margin-top: 10px; color: #cfc4f3; }
.pt-end__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .pt-hero__grid, .cost-grid, .ladder-head { grid-template-columns: minmax(0, 1fr); }
    .pt-doc__grid { grid-template-columns: minmax(0, 1fr); }
    .pt-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-aside .toc2 { display: none; }
}
@media (max-width: 860px) {
    .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .pt-aside { grid-template-columns: minmax(0, 1fr); }
    .ladder__samples { grid-template-columns: minmax(0, 1fr); }
    .ladder__rail > span:nth-child(2), .ladder__rail > span:nth-child(4) { display: none; }
    .ladder__rail > span { font-size: .75rem; }
    .tool__row { grid-template-columns: minmax(0, 1fr); }
    .tchk--wide code { display: none; }
    .costbar { grid-template-columns: 58px minmax(0, 1fr) 96px; gap: 8px; }
    .tseg label, .tseg button { font-size: .8125rem; padding: 0 4px; }
    .pw { min-height: 80px; padding: 14px; }
    .qa__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ladder__you, .meter2__fill, .tseg__thumb { transition: none; }
    .costbar, .tlist li, .hashout.is-new, .vres.is-pop, .pw.is-flash { animation: none; }
}
