/* ==========================================================================
   Jobriver v2 – Für Partner (Feed-/Schnittstellen-Anbindung)
   Basis: v2-core.css · Styleguide: docu/design/v2-styleguide.md
   Lautes Element: die Feed-URL als dunkle Terminal-Karte im Hero.
   ========================================================================== */

.fp2-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); }
.fp2-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fp2 code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .875em; }
.fp2-way .ulink { color: var(--brand-700); font-weight: 550; }
.fp2-way p code, .fp2-tbl td code { padding: 2px 6px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); }

/* ---------- Hero ---------- */
.fp2-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(72px + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 104px); }
.fp2-hero__glow {
    position: absolute; inset: -10% -10% 0; z-index: -1; opacity: var(--hero-glow-o);
    background: radial-gradient(40% 55% at 80% 35%, rgba(178, 157, 255, .5), transparent 70%), radial-gradient(30% 45% at 10% 12%, rgba(255, 168, 220, .26), transparent 70%);
    filter: blur(24px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 95%);
}
.fp2-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fp2-hero__title { margin-top: 14px; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem); line-height: 1.03; font-weight: 600; letter-spacing: -.045em; max-width: 14ch; }
.fp2-hero__lead { margin-top: 22px; max-width: 54ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.fp2-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fp2-hero__actions .btn { max-width: 100%; overflow-wrap: anywhere; }

/* Terminal-Karte (immer dunkel) */
.fp2-term, .fp2-code--big { border-radius: 22px; background: #140d24; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); color: #e9e3fb; overflow: hidden; }
.fp2-term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.fp2-term__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.fp2-term__bar span { margin-left: 8px; font-size: .8125rem; font-weight: 550; color: #a59dbb; }
.fp2-term__bar .fp2-copy { margin-left: auto; }
.fp2-term__body { display: grid; gap: 18px; padding: clamp(18px, 2.5vw, 26px); }
.fp2-term__row { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.fp2-term__row code { flex: 1; min-width: 0; font-size: clamp(.85rem, .78rem + .3vw, 1rem); color: #fff; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.fp2-term__hint { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8125rem; line-height: 1.6; color: #cfc4f3; overflow-wrap: anywhere; }
.fp2-term__hint b { color: #c9b8ff; font-weight: 600; }
.fp2-term__c { color: #8b82a6; }

/* Kopieren-Knopf */
.fp2-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .8125rem; font-weight: 600; transition: background-color .2s, border-color .2s; }
.fp2-copy:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
.fp2-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fp2-copy.is-done { background: var(--mint); border-color: var(--mint); color: #062b1f; }
.fp2-copy--sm { min-height: 32px; padding: 0 10px; font-size: .75rem; }

/* ---------- Zwei Wege ---------- */
.fp2-ways__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.fp2-way { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fp2-way__n { position: absolute; right: 26px; top: 18px; font-size: 3.5rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--brand-50); }
:root[data-theme="dark"] .fp2-way__n { color: rgba(140, 110, 255, .16); }
.fp2-way h3 { margin-top: 8px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.fp2-way p { line-height: 1.6; color: var(--ink-2); }
.fp2-label { margin-top: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.fp2-code--inline { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; background: #140d24; color: #fff; }
.fp2-code--inline pre { flex: 1; min-width: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fp2-way__cta { margin-top: auto; align-self: flex-start; }

/* ---------- Felder + Beispiel ---------- */
.fp2-fields__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.fp2-fields__grid > * { min-width: 0; }
.fp2-tbl { margin-top: 28px; overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fp2-tbl table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fp2-tbl th, .fp2-tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fp2-tbl th { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
.fp2-tbl tbody tr:last-child td { border-bottom: 0; }
.fp2-tbl td:first-child { white-space: nowrap; }
.fp2-tbl td:last-child { color: var(--ink-2); }
.fp2-note { margin-top: 14px; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.fp2-fields__ex { position: sticky; top: 100px; }
.fp2-code--big { margin-top: 28px; }
.fp2-code--big pre { margin: 0; padding: 20px; overflow-x: auto; font-size: .8125rem; line-height: 1.65; color: #e9e3fb; tab-size: 2; }

/* ---------- Ansprechpartner ---------- */
.fp2-contact { padding: clamp(16px, 2vw, 24px) 0 clamp(8px, 1vw, 12px); }
.fp2-contact__card { margin-inline: var(--edge); padding: clamp(40px, 5vw, 72px) 0; border-radius: var(--r-xl); background: var(--seg-grad); border: 1px solid var(--line); }
.fp2-contact__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.fp2-contact__img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 6px var(--glass-weak); }
.fp2-contact__who { margin-top: 8px; font-size: 1.0625rem; color: var(--ink-2); }
.fp2-contact__who strong { color: var(--ink); font-weight: 600; }
.fp2-contact__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-weight: 550; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .fp2-hero__grid, .fp2-fields__grid { grid-template-columns: minmax(0, 1fr); }
    .fp2-fields__ex { position: static; }
}
@media (max-width: 860px) {
    .fp2-ways__grid { grid-template-columns: minmax(0, 1fr); }
    .fp2-contact__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 560px) {
    .fp2-term__row { flex-direction: column; align-items: stretch; }
    .fp2-tbl td:first-child { white-space: normal; }
    .fp2-hero__actions .btn { width: 100%; }
}
