/* RH Consulting · Tarif-Check · consultingrh.de */

:root {
  --navy: #101c34;
  --navy-2: #1a2943;
  --gold: #b4945c;
  --gold-ink: #85683a;
  --ink: #141922;
  --text: #3b4250;
  --muted: #6b7280;
  --line: #e3e5ea;
  --line-dark: rgba(255, 255, 255, .16);
  --paper: #fff;
  --sand: #f6f4ef;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 6px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-navy .label { color: var(--gold); }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 300; letter-spacing: -.022em; line-height: 1.12; }
h1 { font-size: clamp(31px, 4.6vw, 54px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }

/* ---------------------------------------------------------------- Kopf */

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.top img { height: 46px; width: auto; }
.top span { font-size: 13px; color: rgba(255, 255, 255, .72); letter-spacing: .02em; }
@media (max-width: 380px) { .top span { display: none; } }

/* ---------------------------------------------------------------- Hero */

.hero { display: grid; grid-template-columns: 1fr; background: var(--navy); }

.hero-copy {
  position: relative; color: #fff;
  padding: 96px 20px 30px;
  background: var(--navy);
}
.hero-copy > * { position: relative; }
.hero-copy::before { content: none; }
.hero-copy h1 { color: #fff; max-width: 13em; }
.hero-copy .lead { margin: 14px 0 0; font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 30em; }

.pros { list-style: none; margin: 26px 0 0; padding: 0; display: none; max-width: 30em; }
.pros li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line-dark);
  font-size: 16px; color: rgba(255, 255, 255, .9);
}
.pros li:last-child { border-bottom: 1px solid var(--line-dark); }
.pros li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--gold); transform: translateY(-4px); }

.hero-quiz { background: var(--paper); padding: 22px 20px 34px; border-radius: 14px 14px 0 0; }

.pros-m { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pros-m li { font-size: 14px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); }

@media (min-width: 960px) {
  .top { padding: 26px max(40px, calc((100vw - 1160px) / 2)); right: auto; }
  .top img { height: 54px; }
  .top span { display: none; }
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: min(100vh, 860px); }
  .hero-copy {
    padding: 150px 56px 64px max(40px, calc((100vw - 1160px) / 2));
    overflow: hidden;
  }
  .hero-copy::before {
    content: ""; position: absolute; right: 0; bottom: -2%; width: 74%; aspect-ratio: 1111 / 682;
    background: url(assets/hero.webp) center / cover no-repeat;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 62% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 62% 50%, #000 45%, transparent 100%);
    opacity: .9;
  }
  .pros { display: block; }
  .hero-quiz {
    border-radius: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 110px max(40px, calc((100vw - 1160px) / 2)) 64px 64px;
  }
  .hero-quiz > * { width: 100%; max-width: 470px; }
  .pros-m { display: none; }
}

/* ---------------------------------------------------------------- Check */

.quiz-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.quiz-step { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.quiz-back {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.quiz-back:hover { color: var(--ink); }
.quiz-bar { height: 2px; background: var(--line); margin: 10px 0 24px; }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

.quiz h2 { font-size: clamp(24px, 2.6vw, 30px); }
.quiz .hint { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 58px; padding: 14px 18px;
  text-align: left; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid #cfd3da; border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.opt:hover { border-color: var(--navy); }
.opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt[aria-pressed="true"]::after { border-color: #fff; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field small { color: var(--muted); font-size: 13px; }
.input {
  width: 100%; height: 54px; padding: 0 16px;
  font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid #cfd3da; border-radius: var(--radius);
}
.input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(16, 28, 52, .12); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input.plz { font-size: 26px; letter-spacing: .18em; height: 62px; max-width: 220px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin-top: 16px; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #cfd3da; border-radius: var(--radius); overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 46px;
  font-size: 14px; color: var(--ink); cursor: pointer; border-left: 1px solid #cfd3da;
}
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--text); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--radius);
  font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff; transition: background-color .15s;
}
.btn:hover { background: #22345a; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; margin-top: 22px; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #c4a46c; }

.err { margin: 10px 0 0; font-size: 14px; color: var(--err); }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.safe { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Ergebnis */
.result .verdict { margin-top: 8px; }
.points { list-style: none; margin: 18px 0 0; padding: 0; }
.points li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points b { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); padding-top: 2px; }
.result .divider { margin: 28px 0 0; padding-top: 22px; border-top: 2px solid var(--navy); }
@media (max-width: 420px) {
  .points li { grid-template-columns: 1fr; gap: 2px; }
  .seg span { font-size: 13px; }
}

/* ---------------------------------------------------------------- Inhalt */

.sec { padding: 72px 0; }
.sec.sand { background: var(--sand); }
.sec-head { max-width: 640px; }
.sec-head h2 { margin-top: 10px; }
.sec-head p { margin: 14px 0 0; }

.cases { margin-top: 36px; border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.case .no { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--gold-ink); }
.case p { margin: 4px 0 0; max-width: 40em; }
@media (min-width: 820px) {
  .case { grid-template-columns: 70px 300px 1fr; gap: 24px; align-items: baseline; }
  .case p { margin: 0; }
}

.steps-grid { display: grid; gap: 36px; margin-top: 36px; }
.steps-grid figure { margin: 0; }
.steps-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--gold-ink); padding-top: 3px; }
.steps p { margin: 4px 0 0; font-size: 16px; }
.free { margin: 22px 0 0; font-size: 16px; color: var(--ink); }
@media (min-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.faq { margin-top: 30px; border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 42em; }

.cta { background: var(--navy); color: #fff; padding: 64px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; max-width: 16em; }
.cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); }

/* ---------------------------------------------------------------- Fuß */

.foot { background: var(--navy); color: rgba(255, 255, 255, .66); border-top: 1px solid var(--line-dark); padding: 30px 0 40px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot img { height: 40px; width: auto; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- Unterseiten */

.page-top { background: var(--navy); padding: 18px 0; }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; }
.page-top img { height: 44px; width: auto; }
.page-top a.back { color: rgba(255, 255, 255, .8); font-size: 14px; text-decoration: none; }
.page-top a.back:hover { color: #fff; }
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 20px; }
.todo { background: #fff3a8; color: #6b4e00; padding: 0 4px; border-radius: 3px; }

.thanks { padding: 64px 0 88px; }
.thanks .wrap { max-width: 720px; }
.thanks h1 { margin-top: 12px; }
.thanks .lead { font-size: 19px; margin: 16px 0 0; color: var(--ink); }
.bill { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.bill li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bill b { font-weight: 500; color: var(--ink); }
@media (min-width: 700px) { .bill li { grid-template-columns: 240px 1fr; gap: 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
