/* Health-Check (check.html). Nutzt die Tokens aus styles.css.
   Ampel: rot < 40, gelb < 70, sonst grün – gesetzt über data-level am Element. */
.page-check { --rot: #ff6b5e; --gelb: #f5b544; --gruen: var(--accent-hi); }
[data-level="rot"] { --lvl: var(--rot); --lvl-tint: rgba(255, 107, 94, 0.12); --lvl-line: rgba(255, 107, 94, 0.38); }
[data-level="gelb"] { --lvl: var(--gelb); --lvl-tint: rgba(245, 181, 68, 0.12); --lvl-line: rgba(245, 181, 68, 0.38); }
[data-level="gruen"] { --lvl: var(--gruen); --lvl-tint: rgba(31, 212, 154, 0.12); --lvl-line: rgba(31, 212, 154, 0.38); }

.page-check .hc { position: relative; overflow: hidden; padding-top: 128px; padding-bottom: 56px; min-height: 100vh; min-height: 100svh; }
.hc .container { position: relative; }
/* Startansicht: vertikal mittig im sichtbaren Fenster (oben Platz für die feste Kopfzeile) */
.page-check .hc.hc-is-start { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 56px; }
.hc.hc-is-start > .container { width: 100%; }
/* Fragen: mittig im Fenster. Feste Oberkante statt align-items:center, sonst springt die Karte
   bei jeder Frage, weil die Antwortlisten unterschiedlich hoch sind (~290px = halbe Kartenhöhe). */
.page-check .hc.hc-is-quiz { padding: max(96px, calc(50svh - 290px)) 0 56px; }
.hc-view { animation: hc-fade 0.35s ease-out; }
@keyframes hc-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Start ---------- */
.hc-start { max-width: 720px; margin: 0 auto; text-align: center; }
.hc-h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-top: 18px; }
.hc-grad { background: linear-gradient(120deg, var(--accent-hi), #9ff3d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hc-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.hc-start-btn { margin-top: 28px; min-width: 240px; }
.hc-sub-start { color: var(--fg-soft); font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; max-width: 44ch; margin: 18px auto 0; text-wrap: balance; }
.hc-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hc-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--fg); font-size: 0.92rem; font-weight: 600;
}
.hc-facts svg { width: 17px; height: 17px; color: var(--accent-hi); }
@media (max-width: 420px) { .hc-facts { gap: 8px; } .hc-facts li { padding: 7px 11px; gap: 6px; font-size: 0.82rem; } .hc-facts svg { width: 15px; height: 15px; } }
.hc-privacy { color: var(--muted); font-size: 0.86rem; max-width: 46ch; margin: 10px auto 0; }

/* ---------- Fragen ---------- */
.hc-quiz { max-width: 620px; margin: 0 auto; }
.hc-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(31, 212, 154, 0.04);
}
.hc-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hc-area {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent-hi); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hc-area svg { width: 18px; height: 18px; }
.hc-count { color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.hc-segs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 14px; }
.hc-segs span { height: 4px; border-radius: 999px; background: var(--surface-2); transition: background 0.3s ease; }
.hc-segs span.done { background: var(--accent); }
.hc-segs span.now { background: var(--accent-hi); box-shadow: 0 0 10px rgba(31, 212, 154, 0.6); }
.hc-question { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; line-height: 1.25; margin-top: 26px; }
.hc-question:focus { outline: none; }
.hc-options { display: grid; gap: 10px; margin-top: 22px; }
.hc-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px;
  text-align: left; font: inherit; font-size: 1.04rem; font-weight: 600; color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 16px;
  cursor: pointer; touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.hc-option:hover { border-color: rgba(31, 212, 154, 0.55); transform: translateY(-1px); }
.hc-option:active { transform: scale(0.99); }
.hc-key {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border-2); color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hc-option[aria-pressed="true"] { border-color: var(--accent-hi); background: rgba(20, 190, 130, 0.14); }
.hc-option[aria-pressed="true"] .hc-key { background: var(--accent-hi); border-color: var(--accent-hi); color: #062016; }
.hc-option:focus-visible, .hc-back:focus-visible, .page-check .btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.hc-in-r { animation: hc-in-r 0.32s cubic-bezier(0.22, 0.7, 0.2, 1); }
.hc-in-l { animation: hc-in-l 0.32s cubic-bezier(0.22, 0.7, 0.2, 1); }
@keyframes hc-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes hc-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.hc-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; padding: 0 4px;
  font: inherit; font-size: 0.95rem; color: var(--muted); background: none; border: 0; cursor: pointer;
}
.hc-back:hover { color: var(--fg); }
.hc-back svg { width: 18px; height: 18px; }
.hc-keys { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
@media (hover: none) { .hc-keys { display: none; } }

/* ---------- Ergebnis ---------- */
.hc-result { max-width: 780px; margin: 0 auto; }
.hc-hero { text-align: center; }
.hc-score { display: block; margin-top: 18px; }
.hc-score:focus { outline: none; }
.hc-ring { position: relative; display: inline-block; width: 220px; height: 220px; }
.hc-ring svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 8px var(--lvl-line)); }
.hc-ring circle { fill: none; stroke-width: 14; }
.hc-ring-bg { stroke: rgba(255, 255, 255, 0.07); }
.hc-ring-fg { stroke: var(--lvl); stroke-linecap: round; }
.hc-ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hc-ring-num b { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--lvl); font-variant-numeric: tabular-nums; }
.hc-ring-num small { color: var(--muted); font-size: 0.95rem; font-weight: 600; margin-top: 6px; }
.hc-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px; border-radius: 999px;
  color: var(--lvl); background: var(--lvl-tint); border: 1px solid var(--lvl-line);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hc-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); animation: hc-pulse 1.8s ease-in-out infinite; }
@keyframes hc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hc-band { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-top: 14px; }
.hc-band-sub { color: var(--fg-soft); font-size: 1.05rem; max-width: 52ch; margin: 10px auto 0; }

.hc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.hc-tile {
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.hc-tile.in { opacity: 1; transform: none; }
.hc-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hc-tile-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.hc-tile-name svg { width: 20px; height: 20px; color: var(--lvl); }
.hc-tile-pill {
  padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
  color: var(--lvl); background: var(--lvl-tint); border: 1px solid var(--lvl-line);
}
.hc-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 14px; }
.hc-bar span {
  display: block; height: 100%; width: 0; border-radius: 999px; background: var(--lvl);
  transition: width 1s cubic-bezier(0.22, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0s) + 0.15s);
}
.hc-tile.in .hc-bar span { width: var(--w); }
.hc-tile-value { display: block; margin-top: 8px; color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }

.hc-block { margin-top: 72px; }
.hc-h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.hc-sub { color: var(--fg-soft); margin-top: 8px; }
.hc-fine { color: var(--muted); font-size: 0.84rem; margin-top: 14px; }
.hc-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1); }
.hc-reveal.in { opacity: 1; transform: none; }
html:not(.js) .hc-reveal, html:not(.js) .hc-tile { opacity: 1; transform: none; }

.hc-risks { display: grid; gap: 14px; margin-top: 22px; }
.hc-risk {
  position: relative; padding: 22px 22px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lvl-tint), transparent 70%), var(--surface);
  border: 1px solid var(--lvl-line); overflow: hidden;
}
.hc-risk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lvl); }
.hc-risk h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: var(--lvl); }
.hc-risk h3 svg { width: 20px; height: 20px; flex: none; }
.hc-risk p { color: var(--fg-soft); margin-top: 8px; line-height: 1.6; }

.hc-tips { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 22px; counter-reset: tip; }
.hc-tip {
  position: relative; padding: 20px 20px 20px 72px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); counter-increment: tip;
}
.hc-tip::before {
  content: counter(tip); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #062016; background: var(--accent-hi);
}
.hc-tip-area { color: var(--accent-hi); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hc-tip p { margin-top: 4px; color: var(--fg); line-height: 1.55; }

.hc-offer {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 100% 0%, rgba(20, 190, 130, 0.18), transparent 60%), var(--surface);
  border: 1px solid rgba(31, 212, 154, 0.3);
  box-shadow: 0 30px 80px -40px rgba(20, 190, 130, 0.45);
}
.hc-offer-mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-2)); color: #fff;
}
.hc-offer-mark svg { width: 26px; height: 26px; }
.hc-forge { display: grid; gap: 14px; margin-top: 20px; }
.hc-forge li { display: flex; gap: 12px; align-items: flex-start; }
.hc-forge svg { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; color: #062016; background: var(--accent-hi); }
.hc-forge p { color: var(--fg-soft); line-height: 1.55; }
.hc-forge b { color: var(--fg); }
.hc-time { color: var(--fg); font-weight: 600; margin-top: 20px; }
.hc-cta { margin-top: 22px; display: grid; gap: 10px; max-width: 360px; }
.hc-cta .btn { width: 100%; }
.hc-cta-note { color: var(--muted); font-size: 0.9rem; }
.hc-cta-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Fallstudien: Karussell, eine große Folie, wischen oder Pfeile (Pfeil-Stil wie auf der Startseite) */
.hc-carousel { margin-top: 22px; }
.hc-cases {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border-radius: 22px;
}
.hc-cases::-webkit-scrollbar { display: none; }
.hc-cases:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.hc-case {
  position: relative; scroll-snap-align: center; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--surface);
}
.hc-case img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.hc-case::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(10, 14, 13, 0.55); }
.hc-case-text {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: 80px 22px 18px; text-align: left;
  background: linear-gradient(to top, rgba(4, 8, 7, 0.92), rgba(4, 8, 7, 0.6) 45%, rgba(4, 8, 7, 0));
}
.hc-case h3 { font-size: 1.4rem; font-weight: 800; color: #fff; }
.hc-case p { color: rgba(255, 255, 255, 0.75); font-size: 1.02rem; margin-top: 4px; }
.hc-case p b { color: #fff; font-variant-numeric: tabular-nums; }
.hc-case p b.accent { color: var(--accent-hi); }
.hc-cs-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.hc-cs-count { min-width: 4ch; text-align: center; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.hc-cs-nav .cs-btn:disabled { opacity: 0.4; cursor: default; }

/* Kicker wie in den Sections der Startseite, Haken statt Nummer */
.hc-kicker .jr-no svg { width: 16px; height: 16px; }
.hc-kicker .jr-line { transform: scaleX(1); }

.hc-final { text-align: center; padding: 0; background: none; }
.hc-restart { display: flex; margin: 40px auto 0; }
.hc-restart { margin-top: 28px; }
.hc-note { max-width: 60ch; margin: 14px auto 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; text-align: center; opacity: 0.8; }

@media (max-width: 820px) {
  .hc-cases { grid-auto-columns: 92%; gap: 10px; border-radius: 0; }
  .hc-case { border-radius: 18px; }
}
@media (max-width: 560px) {
  .hc-case-text { padding: 56px 14px 12px; }
  .hc-case h3 { font-size: 1.1rem; }
  .hc-case p { font-size: 0.92rem; }
  .page-check .hc { padding-top: 108px; }
  .hc-card { padding: 22px 16px; }
  .hc-tiles { grid-template-columns: 1fr; }
  .hc-ring { width: 190px; height: 190px; }
  .hc-ring-num b { font-size: 3.6rem; }
  .hc-offer { padding: 24px 18px; }
  .hc-tip { padding: 18px 16px 18px 64px; }
  .hc-tip::before { left: 16px; top: 18px; }
  .hc-block { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-cases { scroll-behavior: auto; }
  .hc-view, .hc-in-r, .hc-in-l, .hc-pill::before { animation: none; }
  .hc-reveal, .hc-tile, .hc-bar span, .hc-option, .hc-segs span { transition: none; }
  .hc-reveal, .hc-tile { opacity: 1; transform: none; }
}

/* Startscreen: Puls-Linie als Wasserzeichen, nach unten blasser (wie das Logo im Abschluss-CTA) */
.hc-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.32;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: radial-gradient(60% 50% at 50% 42%, rgba(31,212,154,0.10), transparent 70%); }
.hc.hc-is-start .hc-bg { opacity: 1; }
.hc > .container { position: relative; z-index: 1; }

/* Übergang Start → Fragen: Startinhalt hebt sich weg, Puls leuchtet kurz auf, Frage-Karte steigt ein */
.hc.hc-launch .hc-start > * { animation: hcOut 0.42s cubic-bezier(0.4, 0, 1, 1) forwards; }
.hc.hc-launch .hc-start > :nth-child(2) { animation-delay: 0.03s; }
.hc.hc-launch .hc-start > :nth-child(3) { animation-delay: 0.06s; }
.hc.hc-launch .hc-start > :nth-child(4) { animation-delay: 0.09s; }
.hc.hc-launch .hc-start > :nth-child(n+5) { animation-delay: 0.12s; }
@keyframes hcOut { to { opacity: 0; transform: translateY(-28px) scale(0.97); filter: blur(6px); } }
.hc.hc-launch .hc-bg { opacity: 1; transform: scale(1.08); }
.hc.hc-launch .hc-pulse { filter: drop-shadow(0 0 14px rgba(31,212,154,0.55)); transition: filter 0.3s ease; }
.hc-quiz.hc-enter { animation: hcIn 0.62s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hc-quiz.hc-enter .hc-segs span { animation: hcSeg 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hcIn { from { opacity: 0; transform: translateY(36px) scale(0.98); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hcSeg { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hc.hc-launch .hc-start > *, .hc-quiz.hc-enter, .hc-quiz.hc-enter .hc-segs span { animation: none; }
  .hc-bg { transition: none; }
}
.hc-pulse { position: absolute; left: 50%; top: 50%; max-width: none; width: 100vw; height: auto; transform: translate(-50%, -58%); }
.hc-pulse path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hcPulseDraw 2.4s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards; }
@keyframes hcPulseDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hc-pulse path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 720px) { .hc-pulse { width: 260vw; transform: translate(-50%, -62%); } }
