/* ── Recruiting-Check ── */

.ra { --ra-blue: #234B73; --ra-green: #64AD59; --ra-red: #ef4444; --ra-orange: #f97316; --ra-amber: #f59e0b; --ra-sky: #3b82f6; --ra-line: #E5E7EB; --ra-bg: #F9FAFB; --ra-muted: #6b7280; }

/* ═══════════════════════════════════════════════ */
/* ── Landing: Hero ── */
/* ═══════════════════════════════════════════════ */
.ra-hero { background: linear-gradient(160deg, #f0f5fb 0%, #fff 60%); padding: 3.5rem 1.25rem 2.5rem; text-align: center; border-bottom: 1px solid #e8eef5; }
.ra-hero-kicker { display: inline-block; background: #e6f0f8; color: var(--ra-blue); font-size: .78rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem; letter-spacing: .03em; text-transform: uppercase; }
.ra-hero-title { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.15; color: var(--ra-blue); margin: 0 0 1rem; letter-spacing: -.2px; }
.ra-hero-sub { max-width: 600px; margin: 0 auto 1.75rem; font-size: 1.05rem; color: #4a5f74; line-height: 1.55; }
.ra-hero-cta { display: flex; justify-content: center; gap: .625rem; flex-wrap: wrap; }

/* ── Landing: Erkl\u00e4rung ── */
.ra-explain { padding: 2.5rem 1.25rem; }
.ra-explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 860px; margin: 0 auto; }
.ra-explain-text h2 { font-size: 1.15rem; color: var(--ra-blue); margin: 0 0 .75rem; }
.ra-explain-text p { font-size: .92rem; color: #4a5f74; line-height: 1.6; margin: 0 0 .75rem; }
@media (max-width: 640px) { .ra-explain-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── Landing: Kategorien-Übersicht ── */
.ra-categories { padding: 2rem 1.25rem 2.5rem; background: #fff; }
.ra-section-kicker { text-align: center; color: var(--ra-green); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .4rem; }
.ra-section-heading { text-align: center; color: var(--ra-blue); font-size: clamp(1.15rem, 3vw, 1.5rem); margin: 0 0 1.75rem; }
.ra-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; max-width: 860px; margin: 0 auto; }
.ra-cat-card { background: #f8fbff; border: 1px solid #e8eef5; border-radius: 1rem; padding: 1.15rem; text-align: center; }
.ra-cat-card-icon { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.ra-cat-card h3 { font-size: .9rem; color: var(--ra-blue); margin: 0 0 .3rem; }
.ra-cat-card p { font-size: .8rem; color: #4a5f74; margin: 0; line-height: 1.45; }

/* ── Landing: Features ── */
.ra-features { padding: 2rem 1.25rem 2.5rem; }
.ra-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; max-width: 860px; margin: 0 auto; }
.ra-feature { background: #fff; border: 1px solid var(--ra-line); border-radius: 1rem; padding: 1.15rem; }
.ra-feature h3 { font-size: .92rem; color: var(--ra-blue); margin: 0 0 .35rem; }
.ra-feature p { font-size: .82rem; color: #4a5f74; margin: 0; line-height: 1.5; }

/* ── Tool-Section Wrapper ── */
.ra-tool-section { padding: 2.5rem 1.25rem 1rem; }

/* ═══════════════════════════════════════════════ */
/* ── Audit Tool ── */
/* ═══════════════════════════════════════════════ */

/* Layout */
.ra { max-width: 960px; margin: 0 auto; }
.ra-intro { text-align: center; margin-bottom: 2rem; }
.ra-intro-title { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; color: var(--ra-blue); margin: 0 0 .5rem; }
.ra-intro p { color: var(--ra-muted); font-size: .95rem; margin: 0; }

/* Top Grid: Score + Categories */
.ra-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .ra-top { grid-template-columns: 1fr; } }

.ra-card { background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid var(--ra-line); }
.ra-score-wrap { text-align: center; }
.ra-score-feedback { text-align: center; margin-top: .75rem; font-size: .9rem; font-weight: 600; }
.ra-score-count { text-align: center; font-size: .8rem; color: var(--ra-muted); margin-top: .25rem; }

/* Category bars */
.ra-cat-title { font-size: .85rem; font-weight: 600; color: var(--ra-muted); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .03em; }
.ra-cat-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.ra-cat-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.ra-cat-name { flex: 1; font-size: .82rem; color: var(--ra-blue); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-cat-bar { width: 100px; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.ra-cat-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease, background .4s ease; }
.ra-cat-pct { font-size: .75rem; color: var(--ra-muted); width: 2.5rem; text-align: right; flex-shrink: 0; }

/* Progress bar */
.ra-progress { margin-bottom: 1.5rem; }
.ra-progress-track { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.ra-progress-fill { height: 100%; background: var(--ra-green); border-radius: 3px; transition: width .4s ease; }
.ra-progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ra-muted); margin-top: .35rem; }

/* Privacy notice */
.ra-privacy { display: flex; align-items: center; gap: .6rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: .6rem 1rem; margin-bottom: 1.25rem; }
.ra-privacy-icon { font-size: 1.1rem; flex-shrink: 0; }
.ra-privacy p { font-size: .8rem; color: #15803d; margin: 0; line-height: 1.45; }

/* Controls */
.ra-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.ra-hint { font-size: .82rem; color: var(--ra-muted); margin: 0; }
.ra-hint-sub { font-size: .75rem; color: #9ca3af; margin: .15rem 0 0; }
.ra-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.ra-btn { padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--ra-line); background: #fff; cursor: pointer; font-size: .78rem; color: var(--ra-blue); font-family: inherit; transition: background .15s; }
.ra-btn:hover { background: var(--ra-bg); }
.ra-btn:focus-visible { outline: 2px solid var(--ra-green); outline-offset: 2px; }
.ra-btn--danger { border-color: #fca5a5; color: var(--ra-red); }
.ra-btn--lang { position: absolute; top: 1rem; right: 1rem; }

/* Sections */
.ra-section { margin-bottom: 1.75rem; }
.ra-section-title { font-size: 1rem; font-weight: 700; color: var(--ra-blue); border-bottom: 2px solid var(--ra-line); padding-bottom: .5rem; margin: 0 0 .75rem; }

/* Items */
.ra-item { border-radius: 12px; padding: .85rem 1rem; margin-bottom: .5rem; border: 1px solid var(--ra-line); background: #fff; transition: background .25s, border-color .25s; }
.ra-item--good { background: #f0fdf4; border-color: #bbf7d0; }
.ra-item--okay { background: #fffbeb; border-color: #fde68a; }
.ra-item--bad { background: #fef2f2; border-color: #fecaca; }

.ra-item-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ra-item-label { flex: 1; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--ra-blue); min-width: 0; }
.ra-item-label:hover { color: #1a3a5c; }
.ra-item-arrow { display: inline-block; width: 1rem; transition: transform .2s; font-size: .75rem; }

/* Rating buttons */
.ra-rating { display: flex; gap: .35rem; align-items: center; flex-shrink: 0; }
.ra-rate-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ra-line); background: #fff; color: var(--ra-muted); font-weight: 700; font-size: .82rem; cursor: pointer; transition: all .15s; font-family: inherit; padding: 0; }
.ra-rate-btn:hover { transform: scale(1.1); }
.ra-rate-btn:focus-visible { outline: 2px solid var(--ra-green); outline-offset: 2px; }
.ra-rate-btn.active { color: #fff; }

/* Details panel */
.ra-item-details { margin-top: .75rem; padding-left: 1rem; border-left: 3px solid var(--ra-line); animation: ra-fade .2s ease; }
.ra-item-bad { font-size: .82rem; color: #dc2626; margin: 0 0 .5rem; font-style: italic; line-height: 1.5; }
.ra-item-tip { font-size: .82rem; color: #059669; margin: 0; line-height: 1.5; }
.ra-item-tip strong { font-weight: 600; }

@keyframes ra-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Result CTA */
.ra-cta { background: var(--ra-blue); color: #fff; border-radius: 16px; padding: 2rem; text-align: center; margin-top: 2rem; }
.ra-cta h2 { font-size: 1.2rem; margin: 0 0 .5rem; color: #fff; }
.ra-cta p { font-size: .9rem; margin: 0 0 1.25rem; opacity: .85; }
.ra-cta-btn { display: inline-block; padding: .6rem 1.5rem; background: var(--ra-green); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; border: none; cursor: pointer; transition: opacity .15s; }
.ra-cta-btn:hover { opacity: .9; }

/* SVG text */
.ra svg text { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Print */
@media print {
  .ra-hero, .ra-explain, .ra-categories, .ra-features { display: none !important; }
  .ra-controls, .ra-btn, .ra-rating, .ra-cta { display: none !important; }
  .ra-item-details { display: block !important; }
  .ra-item { break-inside: avoid; }
}

/* Mobile */
@media (max-width: 580px) {
  .ra-item-header { flex-wrap: wrap; }
  .ra-rating { width: 100%; justify-content: flex-end; margin-top: .4rem; }
  .ra-cat-bar { width: 70px; }
}
