/* ==========================================================================
   Jobriver v2 – IT-Ratgeber (Übersicht + Artikel) – Basis aus karriere-2.css, plus Ratgeber-Bausteine
   Basis (Tokens, Nav, Footer, Buttons, Chips) aus v2-core.css.
   Styleguide: docu/design/v2-styleguide.md
   ========================================================================== */

:root {
    --r2-hero-glow: radial-gradient(38% 60% at 14% 26%, rgba(178, 157, 255, .5), transparent 70%),
                    radial-gradient(32% 55% at 86% 18%, rgba(255, 168, 220, .35), transparent 70%);
    --r2-toc-bg: #f3efff;
}
:root[data-theme="dark"] {
    --r2-hero-glow: radial-gradient(38% 60% at 14% 26%, rgba(114, 79, 255, .35), transparent 70%),
                    radial-gradient(32% 55% at 86% 18%, rgba(176, 70, 140, .25), transparent 70%);
    --r2-toc-bg: #1c1530;
}

.r2 { padding-top: 72px; }
.r2-lead { max-width: 640px; margin: 18px auto 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); text-align: center; }

/* ---------- Übersicht: Kopf ---------- */
.r2-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); isolation: isolate; overflow-x: clip; }
.r2-hero__glow { position: absolute; inset: -30% -10% 0; z-index: -1; background: var(--r2-hero-glow); filter: blur(24px); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%); mask-image: linear-gradient(180deg, #000 40%, transparent 95%); }
.r2-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.r2-hero__title { font-size: var(--fs-h1); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; }
.r2-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 620px; margin-top: 32px; padding: 6px 8px 6px 52px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: box-shadow .25s, border-color .25s; }
.r2-search:focus-within { border-color: var(--brand-200); box-shadow: 0 0 0 6px rgba(114, 79, 255, .1), var(--shadow); }
.r2-search svg { position: absolute; left: 20px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.r2-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.r2-search input::placeholder { color: #8d86a0; }
.r2-search input::-webkit-search-cancel-button { cursor: pointer; }
.r2-search kbd { display: grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--tint); font: 600 .75rem var(--font); color: var(--muted); }

/* ---------- Karten ---------- */
.r2-card { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.r2-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.r2-card::before { content: ""; position: absolute; inset: 0; z-index: 1; 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%); }
.r2-card:hover::before { opacity: 1; }
.r2-card[hidden] { display: none; }
.r2-card__link { display: flex; flex-direction: column; height: 100%; }
.r2-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--brand-100), #f6e6fa); }
:root[data-theme="dark"] .r2-card__img { background: linear-gradient(135deg, #22193a, #2b1a33); }
.r2-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.r2-card:hover .r2-card__img img { transform: scale(1.04); }
.r2-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.r2-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.r2-card__title { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; transition: color .2s; }
.r2-card:hover .r2-card__title { color: var(--brand-700); }
.r2-card__ex { color: var(--muted); font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r2-card__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.r2-card__meta i { font-style: normal; opacity: .6; }
.r2-card__meta svg, .r2-meta-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.r2-card--big .r2-card__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; }
.r2-card--big .r2-card__img { aspect-ratio: 16 / 9; }
.r2-card--big .r2-card__body { padding: 26px 30px 30px; }
.r2-card--big .r2-card__ex { -webkit-line-clamp: 3; font-size: 1rem; }

/* ---------- Bühne ---------- */
.r2-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.r2-stage__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.r2-stage__side .r2-card__link { flex-direction: row; }
.r2-stage__side .r2-card__img { flex: 0 0 42%; aspect-ratio: auto; }
.r2-stage__side .r2-card__ex { display: none; }

/* ---------- Story des Monats ---------- */
.r2-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; margin-bottom: clamp(48px, 6vw, 72px); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(90% 90% at 80% 0%, var(--plum-2), var(--plum) 70%); color: #e9e3fb; transition: transform .3s var(--ease), box-shadow .3s; }
.r2-story:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.r2-story__img { min-height: 260px; background: #2b1b4a; }
.r2-story__img img { width: 100%; height: 100%; object-fit: cover; }
.r2-story__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(28px, 4vw, 52px); }
.r2-story__k { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c9b8ff; }
.r2-story strong { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.r2-story__ex { color: #cfc4f3; }
.r2-story__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: #fff; }
.r2-story__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.r2-story:hover .r2-story__go svg { transform: translateX(4px); }

/* ---------- Filter + Raster ---------- */
.r2-browse { padding-bottom: clamp(64px, 8vw, 104px); }
.r2-filterbar { position: sticky; top: 80px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 -12px 24px; padding: 10px 12px; border-radius: 22px; transition: background-color .25s, box-shadow .25s; }
.r2-filterbar.is-stuck { background: var(--glass-strong); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.r2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.r2-chips .chip { min-height: 38px; }
.r2-count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.r2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.r2-grid .r2-card { animation: r2in .5s var(--ease) both; }
@keyframes r2in { from { opacity: 0; transform: translateY(12px); } }
.r2-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.r2-empty[hidden] { display: none; }
.r2-empty p { color: var(--muted); }
.r2-more { display: flex; justify-content: center; margin-top: 32px; }
.r2-more .btn[hidden] { display: none; }

/* ---------- Band (CTA) ---------- */
.r2-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; }
.r2-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.r2-band .h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.r2-band p { margin-top: 10px; color: #cfc4f3; }
.r2-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r2-btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.r2-btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Beitrag ---------- */
.r2-progress { position: fixed; top: 0; left: 0; right: 0; z-index: calc(var(--z-nav) + 1); height: 3px; pointer-events: none; }
.r2-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brand), #c79bff); }
.r2-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); justify-content: center; gap: clamp(32px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.r2-side__sticky { position: sticky; scroll-behavior: smooth; top: 96px; display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; }
.r2-side__sticky::-webkit-scrollbar { display: none; }
.r2-side__h { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r2-toc[hidden] { display: none; }
.r2-toc__list { list-style: none; position: relative; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.r2-toc__list a { position: relative; display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.r2-toc__list a:hover { color: var(--ink); }
.r2-toc__list a.is-active { color: var(--brand-700); border-left-color: var(--brand); font-weight: 550; }
.r2-cta-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 20px; background: var(--feature-grad); }
.r2-cta-mini__k { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.r2-cta-mini strong { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.r2-cta-mini .btn { margin-top: 6px; }
.r2-latest { display: flex; flex-direction: column; }
.r2-latest a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 500; line-height: 1.4; color: var(--ink-2); transition: color .2s; }
.r2-latest a:hover { color: var(--brand-700); }
.r2-latest svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.r2-latest a:hover svg { transform: translateX(3px); }

.r2-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r2-crumbs a:hover { color: var(--brand-700); }
.r2-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.r2-meta-top i { font-style: normal; opacity: .6; }
.r2-title { margin-top: 12px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; overflow-wrap: break-word; text-wrap: balance; }
.r2-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.r2-byline > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.r2-byline strong { font-weight: 600; }
.r2-byline small { font-size: .8125rem; color: var(--muted); }
.r2-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #8a6bff, #c48bff); color: #fff; font-size: .8125rem; font-weight: 700; }
.r2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.r2-avatar--lg { width: 64px; height: 64px; font-size: 1.125rem; }
.r2-share { display: flex; gap: 6px; margin-left: auto; }
.r2-share__btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s; }
.r2-share__btn:hover { border-color: var(--brand); color: var(--brand-700); }
.r2-share__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r2-share__btn svg path[fill="currentColor"] { stroke: none; }
.r2-share__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 550; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.r2-share__tip:not(:empty) { opacity: 1; }
.r2-hero-img { margin: 28px 0 0; border-radius: var(--r-xl); overflow: hidden; background: var(--tint); }
.r2-hero-img img { width: 100%; height: auto; display: block; }
.r2-lead--article { margin: 28px 0 0; max-width: none; text-align: left; font-size: 1.25rem; color: var(--ink-2); }

/* Fließtext */
.r2-prose { margin-top: 28px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.r2-prose > * + * { margin-top: 1.1em; }
.r2-prose h2 { margin-top: 2em; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; color: var(--ink); scroll-margin-top: 100px; }
.r2-prose h3 { margin-top: 1.6em; font-size: 1.3rem; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--ink); scroll-margin-top: 100px; }
.r2-prose p { margin-bottom: 0; }
.r2-prose strong, .r2-prose b { color: var(--ink); font-weight: 600; }
.r2-prose a { color: var(--brand-700); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent); transition: text-decoration-color .2s; }
.r2-prose a:hover { text-decoration-color: currentColor; }
.r2-prose ul, .r2-prose ol { padding-left: 1.3em; }
.r2-prose li + li { margin-top: .45em; }
.r2-prose ul li::marker { color: var(--brand); }
.r2-prose ol li::marker { color: var(--brand-700); font-weight: 600; }
.r2-prose blockquote { margin-left: 0; padding: 18px 22px; border-left: 3px solid var(--brand); border-radius: 0 16px 16px 0; background: var(--r2-toc-bg); color: var(--ink); font-size: 1.125rem; }
.r2-prose code { padding: .15em .4em; border-radius: 6px; background: var(--tint); border: 1px solid var(--line); font-size: .9em; }
.r2-prose pre { padding: 18px; border-radius: 14px; background: var(--plum); color: #ece7fb; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.r2-prose pre code { padding: 0; border: 0; background: none; color: inherit; }
.r2-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.r2-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.r2-prose th, .r2-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.r2-prose th { background: var(--tint); color: var(--ink); font-weight: 600; }
.r2-prose th, .r2-prose td { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.r2-prose table { border: 1px solid var(--line); border-radius: 14px; }
/* Tabellentitel direkt nach einer Abschnitts-H2: eine Stufe kleiner (Generator gab ihn als h2 aus) */
.r2-prose h2 + h2:has(+ table) { margin-top: 1.4em; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.r2-prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.r2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.r2-tags span { padding: 5px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.r2-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--line); }
.r2-author__k { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r2-author__name { display: inline-block; margin-top: 2px; font-size: 1.125rem; font-weight: 600; }
.r2-author__bio { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.r2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 404 ---------- */
.r2-404__inner { display: flex; flex-direction: column; align-items: center; padding: clamp(80px, 12vw, 160px) 24px; text-align: center; }
.r2-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .r2-layout { grid-template-columns: minmax(0, 1fr); }
    .r2-side { order: 2; }
    .r2-side__sticky { position: static; max-height: none; }
    .r2-toc { display: none; }
    .r2-grid, .r2-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .r2-stage, .r2-story { grid-template-columns: minmax(0, 1fr); }
    .r2-stage__side { grid-template-rows: none; }
    .r2-stage__side .r2-card__link { flex-direction: column; }
    .r2-stage__side .r2-card__img { flex: none; aspect-ratio: 16 / 10; }
    .r2-filterbar { position: static; }
    .r2-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding: 2px 24px; }
    .r2-chips::-webkit-scrollbar { display: none; }
    .r2-chips .chip { flex: none; }
}
@media (max-width: 560px) {
    /* Tabellen: Spalten nicht zusammenquetschen, lieber seitlich wischen */
    .r2-prose th, .r2-prose td { min-width: 7.5rem; padding: 9px 12px; }
    .r2-grid, .r2-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .r2-chips { margin-inline: -16px; padding-inline: 16px; }
    .r2-hero__title br { display: none; }
    .r2-share { margin-left: 0; width: 100%; }
    .r2-author { flex-direction: column; }
    .r2-search kbd { display: none; }
    .r2-card--big .r2-card__body { padding: 20px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .r2-grid .r2-card { animation: none; }
}

/* ==========================================================================
   Ratgeber-eigene Bausteine
   ========================================================================== */
:root {
    --r2-answer: linear-gradient(150deg, #f1ecff, #f8f3ff 60%, #fdf1f8);
    --r2-ok: #0f9d6e;
}
:root[data-theme="dark"] {
    --r2-answer: linear-gradient(150deg, #211838, #1b1530 60%, #24162c);
    --r2-ok: #4ade9f;
}
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(18, 184, 134, .5); animation: r2pulse 2.2s infinite; }
@keyframes r2pulse { 70% { box-shadow: 0 0 0 8px rgba(18, 184, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); } }

/* Karten: Leitfaden-Kennzeichnung */
.r2-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.r2-tag--pillar { display: inline-flex; align-items: center; gap: 5px; background: var(--plum); color: #e9e3fb; }
:root[data-theme="dark"] .r2-tag--pillar { background: var(--brand); color: #fff; }
.r2-tag--pillar svg, .r2-badge svg, .r2-guide__k svg, .r2-pillar__k svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Übersicht: Kennzahlen unter der Suche */
.r2-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.r2-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Übersicht: Leitfäden */
.r2-guides { margin-bottom: clamp(48px, 6vw, 72px); }
.r2-guides .head-row { align-items: flex-end; }
.r2-guides__sub { max-width: 380px; color: var(--muted); font-size: .9375rem; }
.r2-guides__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.r2-pillar { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.r2-pillar::before, .r2-hub__item::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%); }
.r2-pillar:hover::before, .r2-hub__item:hover::before { opacity: 1; }
.r2-pillar:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.r2-pillar__head { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 22px; background: var(--r2-answer); border-bottom: 1px solid var(--line); }
.r2-pillar__k { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.r2-pillar__head strong { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; transition: color .2s; }
.r2-pillar__head:hover strong { color: var(--brand-700); }
.r2-pillar__meta { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.r2-pillar__parts { list-style: none; counter-reset: part; display: flex; flex-direction: column; padding: 10px 28px 18px; }
.r2-pillar__parts li { counter-increment: part; border-bottom: 1px solid var(--line); }
.r2-pillar__parts li:last-child { border-bottom: 0; }
.r2-pillar__parts a { position: relative; display: block; padding: 11px 0 11px 34px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); transition: color .2s, padding .25s var(--ease); }
.r2-pillar__parts li:not(.r2-pillar__more) a::before { content: counter(part, decimal-leading-zero); position: absolute; left: 0; top: 11px; font-size: .75rem; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.r2-pillar__parts a:hover { color: var(--brand-700); padding-left: 38px; }
.r2-pillar__more a { padding-left: 34px; font-weight: 600; color: var(--brand-700); }

/* Artikel: Kennzeichnung Leitfaden / Teil */
.r2-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--plum); color: #e9e3fb; font-size: .8125rem; font-weight: 600; }
:root[data-theme="dark"] .r2-badge { background: var(--brand); color: #fff; }
.r2-badge--soft { background: var(--brand-50); color: var(--brand-700); font-weight: 500; }
:root[data-theme="dark"] .r2-badge--soft { background: var(--brand-50); color: var(--brand-700); }
.r2-badge--soft a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.r2-article .r2-title { margin-top: 14px; }

/* Seitenleiste: Leitfaden-Navigation */
.r2-guide { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.r2-guide__k { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); }
.r2-guide__title { font-weight: 600; line-height: 1.3; }
.r2-guide__title:hover { color: var(--brand-700); }
.r2-guide__bar { display: block; height: 6px; border-radius: 999px; background: var(--brand-50); overflow: hidden; }
.r2-guide__bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #c79bff); }
.r2-guide__list { list-style: none; counter-reset: g; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.r2-guide__list li { counter-increment: g; }
.r2-guide__list a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 8px; border-radius: 10px; font-size: .8125rem; line-height: 1.35; color: var(--muted); transition: background-color .2s, color .2s; }
.r2-guide__list a::before { content: counter(g); font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.r2-guide__list a:hover { background: var(--brand-50); color: var(--ink); }
.r2-guide__list .is-current a { background: var(--brand-50); color: var(--ink); font-weight: 600; }

/* --- Bausteine im Artikel-HTML (vom Generator gesetzt) --- */
/* Direktantwort */
.r2-prose .ratgeber-answer-box { position: relative; padding: 24px 26px 22px; border-radius: var(--r-lg); background: var(--r2-answer); border: 1px solid color-mix(in oklab, var(--brand) 22%, var(--line)); color: var(--ink); font-size: 1.125rem; line-height: 1.65; }
.r2-prose .ratgeber-answer-box::before { content: "Die kurze Antwort"; display: block; min-height: 34px; line-height: 34px; margin: -8px 120px 8px 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.r2-prose .ratgeber-answer-box > * + * { margin-top: .8em; }
.r2-answer__copy { position: absolute; top: 16px; right: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8125rem; font-weight: 550; color: var(--ink-2); transition: border-color .2s, color .2s; }
.r2-answer__copy:hover { border-color: var(--brand); color: var(--brand-700); }
.r2-answer__copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r2-answer__copy.is-ok { border-color: var(--r2-ok); color: var(--r2-ok); }
/* Das Wichtigste in Kürze */
.r2-prose .ratgeber-takeaway { position: relative; padding: 18px 22px 18px 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.r2-prose .ratgeber-takeaway::before { content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 00-4 12.7V17h8v-2.3A7 7 0 0012 2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 00-4 12.7V17h8v-2.3A7 7 0 0012 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.r2-prose .ratgeber-takeaway strong:first-child { display: block; margin-bottom: 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
/* Für wen? */
.r2-prose .ratgeber-audience { display: block; padding: 12px 16px 12px 46px; position: relative; border-radius: 14px; background: var(--tint); border: 1px dashed var(--line-2); font-size: .9375rem; color: var(--ink-2); }
.r2-prose .ratgeber-audience::before { content: ""; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Checkliste (per JS abhakbar) */
.r2-prose ul.ratgeber-checklist { list-style: none; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.r2-prose ul.ratgeber-checklist li { margin: 0; }
.r2-prose ul.ratgeber-checklist li + li { border-top: 1px solid var(--line); }
.r2-check { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; text-align: left; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink-2); transition: background-color .2s, color .2s; }
.r2-check:hover { background: var(--brand-50); }
.r2-check__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); transition: background-color .2s, border-color .2s; }
.r2-check__box svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform .25s var(--ease); }
.r2-check[aria-pressed="true"] { color: var(--muted); }
.r2-check[aria-pressed="true"] .r2-check__txt { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--muted) 60%, transparent); }
.r2-check[aria-pressed="true"] .r2-check__box { background: var(--r2-ok); border-color: var(--r2-ok); }
.r2-check[aria-pressed="true"] .r2-check__box svg { transform: scale(1); }
.r2-checkhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-size: .875rem; color: var(--muted); }
.r2-checkhead__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--brand-50); overflow: hidden; }
.r2-checkhead__bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--r2-ok); transition: width .4s var(--ease); }
.r2-checkhead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.r2-checkhead button { border: 0; background: none; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--brand-700); cursor: pointer; }
.r2-checkhead button[hidden] { display: none; }
/* Tabellen */
.r2-tablewrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.r2-prose .r2-tablewrap table { display: table; margin: 0; border-collapse: collapse; }
.r2-prose table.ratgeber-table th { background: var(--brand-50); color: var(--ink); font-size: .8125rem; letter-spacing: .02em; }
.r2-prose table.ratgeber-table tbody tr:last-child td { border-bottom: 0; }
.r2-prose table.ratgeber-table tbody tr:hover td { background: var(--tint); }
.r2-prose table.ratgeber-table td:first-child { color: var(--ink); font-weight: 550; }
/* Schritt für Schritt */
.r2-prose ol.ratgeber-steps { list-style: none; counter-reset: step; padding: 0; }
.r2-prose ol.ratgeber-steps li { position: relative; counter-increment: step; margin: 0; padding: 4px 0 22px 56px; }
.r2-prose ol.ratgeber-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: .9375rem; }
.r2-prose ol.ratgeber-steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--brand-100); }
.r2-prose ol.ratgeber-steps li:last-child::after { display: none; }
/* KI-Hinweis */
.r2-prose .ratgeber-ai-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.r2-prose .ratgeber-ai-note em { font-style: normal; }

/* Live-Jobbox nach dem Text */
.r2-jobs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 40px; padding: 24px 28px; border-radius: var(--r-xl); background: radial-gradient(90% 120% at 90% 0%, #3b2580, var(--plum) 70%); color: #e9e3fb; }
.r2-jobs__k { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #c9b8ff; }
.r2-jobs__h { margin-top: 6px; font-size: 1.125rem; line-height: 1.4; color: #fff; }
.r2-jobs__h b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r2-jobs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.r2-jobs__link { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.r2-jobs--soft { background: var(--r2-answer); color: var(--ink); border: 1px solid var(--line); }
.r2-jobs--soft .r2-jobs__k { color: var(--brand-700); }
.r2-jobs--soft .r2-jobs__h { color: var(--ink-2); font-size: 1rem; }

/* FAQ + Quellen */
.r2-sec-title { margin: 48px 0 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; scroll-margin-top: 100px; }
.r2-faq .faq__list { margin-top: 4px; }
.r2-sources__list { counter-reset: src; list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.r2-sources__list li { counter-increment: src; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.r2-sources__list li::before { content: counter(src); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--brand-50); color: var(--brand-700); font-size: .75rem; font-weight: 600; }
.r2-sources__list a { color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.r2-sources__list a:hover { color: var(--brand-700); }
.r2-sources__list span { font-size: .8125rem; color: var(--muted); }

/* Leitfaden-Hub (Artikel-Ende eines Pillars) */
.r2-hub__sum { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.r2-hub { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.r2-hub__item { position: relative; display: grid; grid-template-columns: auto 112px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 16px; height: 100%; padding: 14px 18px 14px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.r2-hub__item:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.r2-hub__num { grid-row: span 2; font-size: 1.25rem; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.r2-hub__img { grid-row: span 2; display: block; width: 112px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--tint); }
.r2-hub__img img { width: 100%; height: 100%; object-fit: cover; }
.r2-hub__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r2-hub__txt strong { font-weight: 600; line-height: 1.3; transition: color .2s; }
.r2-hub__item:hover .r2-hub__txt strong { color: var(--brand-700); }
.r2-hub__txt small { font-size: .875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r2-hub__min { grid-column: 3; display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: var(--muted); }
.r2-hub__min svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 1080px) {
    .r2-guide { order: -1; }
}
@media (max-width: 860px) {
    .r2-guides__grid, .r2-hub { grid-template-columns: minmax(0, 1fr); }
    .r2-guides .head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .r2-prose .ratgeber-answer-box { padding: 22px 18px 18px; }
    .r2-answer__copy { top: 14px; right: 12px; }
    .r2-prose .ratgeber-answer-box::before { margin-right: 110px; }
    .r2-hub__item { grid-template-columns: auto minmax(0, 1fr); }
    .r2-hub__img { display: none; }
    .r2-hub__min { grid-column: 2; }
    .r2-pillar__head, .r2-pillar__parts { padding-inline: 20px; }
    .r2-jobs { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .dot-live { animation: none; }
}
