/* ============================================================
   Rühlig Group — KI Readiness Check
   Design-System: weißer Header, Akzentrot #c01717, Ink #1d1d1b,
   Open Sans, Buttons leicht gerundet mit Schatten
   ============================================================ */

:root {
  --red: #c01717;
  --red-dark: #750e0e;
  --red-bright: #ef4d4d;
  --ink: #1d1d1b;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-subtle: #f4f4f4;
  --text-primary: #1d1d1b;
  --text-secondary: #4a4a4a;
  --text-muted: #999999;
  --border: #e2e2e2;
  --radius: 4px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 3px 8px rgba(0, 0, 0, 0.18);
  --font: 'Open Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
}
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: var(--red); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(192, 23, 23, 0.4); outline-offset: 2px; }
.btn-icon { flex-shrink: 0; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--ink); transform: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; pointer-events: none; }
.btn[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.header-logo { height: 40px; width: auto; display: block; }
.header-cta { padding: 10px 22px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-subtle);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; margin: 0 0 16px 0;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--red);
}
.hero-headline {
  margin: 0 0 20px 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
.hero-headline .accent { color: var(--red); }
.hero-subline { max-width: 780px; margin: 0; color: var(--text-secondary); }

/* ---------- Tool ---------- */
.tool-section { padding: 56px 0 80px; background: var(--bg); }
.ar-shell { max-width: 880px; margin: 0 auto; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; box-shadow: var(--shadow-card);
  padding: 40px 24px;
}
@media (min-width: 720px) {
  .card { padding: 56px; }
}

/* Progress bar */
.ar-progress { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.ar-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.ar-progress-meta strong { color: var(--red); }
.ar-progress-bar {
  width: 100%; height: 8px; background: var(--bg-subtle);
  border-radius: 999px; overflow: hidden; border: 1px solid var(--border);
}
.ar-progress-fill {
  height: 100%; background: var(--red);
  border-radius: 999px; width: 0%;
  transition: width 0.4s ease;
}

/* Step transitions */
.ar-step { display: none; }
.ar-step.is-active { display: block; }

.ar-step-header { margin-bottom: 40px; }
.ar-step-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px 0;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red);
}
.ar-step-title {
  font-size: 1.7rem; font-weight: 700; margin: 0 0 10px 0; line-height: 1.25;
}
.ar-step-desc { font-size: 1rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Question block */
.ar-question { padding: 28px 0; border-top: 1px solid var(--border); }
.ar-question:first-of-type { border-top: none; padding-top: 0; }
.ar-question-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ar-q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.ar-q-title {
  font-size: 1.1rem; font-weight: 700; margin: 4px 0 0 0; line-height: 1.35;
}
.ar-q-desc { font-size: 0.95rem; color: var(--text-secondary); margin: 0 0 20px 0; line-height: 1.6; }

/* Option pills */
.ar-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .ar-options { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

.ar-option { position: relative; }
.ar-option input { position: absolute; opacity: 0; pointer-events: none; }
.ar-option label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 12px; min-height: 84px;
  background: var(--bg-subtle); border: 2px solid var(--border);
  border-radius: var(--radius); text-align: center; cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  line-height: 1.35;
}
.ar-option label:hover { border-color: var(--red); color: var(--text-primary); transform: translateY(-1px); }
.ar-option-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.07); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 700; transition: all 0.2s ease;
}
.ar-option input:checked + label {
  background: rgba(192, 23, 23, 0.07);
  border-color: var(--red);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(192, 23, 23, 0.18);
}
.ar-option input:checked + label .ar-option-score { background: var(--red); color: #fff; }
.ar-option input:focus-visible + label { outline: 3px solid rgba(192, 23, 23, 0.45); outline-offset: 2px; }

/* Step navigation */
.ar-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
}
.ar-nav-spacer { flex: 1; }
.ar-nav-error {
  color: var(--red-dark); font-size: 0.8rem;
  font-weight: 600; align-self: center;
}

/* Results page */
.ar-result-hero { display: flex; flex-direction: column; gap: 40px; margin-bottom: 48px; }
.ar-result-score {
  background: var(--ink); color: #fff;
  border-radius: 6px; padding: 32px;
  position: relative; overflow: hidden;
}
.ar-result-score::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--red);
}
.ar-result-score-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px 0;
}
.ar-result-score-value {
  font-size: clamp(3rem, 8vw, 5rem); font-weight: 700;
  line-height: 1; color: var(--red-bright);
  letter-spacing: -0.03em; margin: 0 0 8px 0;
}
.ar-result-score-sub {
  font-size: 1rem; color: rgba(255, 255, 255, 0.72);
  line-height: 1.6; margin: 0 0 20px 0;
}
.ar-result-score-points { font-size: 1rem; color: #fff; }
.ar-result-score-points strong { color: var(--red-bright); font-weight: 700; }
.ar-result-tier {
  display: inline-block; margin-top: 16px;
  padding: 8px 18px;
  background: rgba(192, 23, 23, 0.2); border: 1px solid rgba(239, 77, 77, 0.45);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--red-bright);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.ar-chart-wrap {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 6px; padding: 24px;
}
@media (min-width: 720px) { .ar-chart-wrap { padding: 32px; } }
.ar-chart-inner { max-width: 720px; margin: 0 auto; }
.ar-chart-canvas { width: 100%; height: auto; aspect-ratio: 1 / 1; }

.ar-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px 0; }
.ar-section-sub { font-size: 0.95rem; color: var(--text-secondary); margin: 0 0 16px 0; }

/* Category breakdown */
.ar-cat-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .ar-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ar-cat-grid { grid-template-columns: repeat(5, 1fr); } }
.ar-cat-item {
  padding: 20px; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.ar-cat-name {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--red); margin-bottom: 10px;
}
.ar-cat-bar {
  width: 100%; height: 6px; background: rgba(0, 0, 0, 0.08);
  border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.ar-cat-bar-fill { height: 100%; background: var(--red); border-radius: 999px; transition: width 0.6s ease; }
.ar-cat-value { font-size: 1.05rem; font-weight: 700; }
.ar-cat-pct { font-size: 0.8rem; color: var(--text-muted); margin-left: 8px; }

.ar-disclaimer {
  margin-top: 32px;
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
}

/* Download section */
.ar-download {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ar-download-hint {
  font-size: 0.8rem; color: var(--text-muted); text-align: center;
  line-height: 1.6; max-width: 480px; margin: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--text-muted); padding: 44px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 6px; }
.footer-text { max-width: 560px; margin: 0; font-size: 0.9rem; line-height: 1.6; }
.footer-legal { margin: 0; font-size: 0.85rem; }
.footer-legal a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer-legal a:hover { color: #fff; border-bottom-color: #fff; }
.footer-copy { margin: 14px 0 0 0; font-size: 0.8rem; color: rgba(153, 153, 153, 0.7); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .ar-nav, .skip-link { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .header-cta { padding: 9px 16px; font-size: 0.85rem; }
  .header-logo { height: 32px; }
}
