/* PointerScore – Startseite. Gilt nur für index.html; style.css bleibt für Desktop-App und Rechtsseiten. */

:root {
  --bg: #000;
  --raise: #111113;
  --raise-2: #19191c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --muted: #8d8d96;
  --faint: #5c5c66;
  --blue: #5b8cff;
  --blue-2: #a8c2ff;
  --blue-deep: #0c1736;
  /* Score-Stufen wie in den Apps (stark / beobachten / schwächer), für dunklen Hintergrund aufgehellt */
  --good: #1ee88f;
  --mid: #ffc21a;
  --bad: #ff4d6a;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 10px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue); color: #000; }
.btn-blue:hover { background: var(--blue-2); }
.btn-dark { background: var(--raise-2); color: var(--text); }
.btn-dark:hover { background: #232327; }
.btn[disabled] { background: var(--raise-2); color: var(--muted); cursor: not-allowed; }

/* ---------- Topbar ---------- */
.topbar { padding: 18px 28px; }
.nav { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }

.tabs { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 5px; border-radius: 999px; background: var(--raise); }
.tabs a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .3s; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: #000; }
.tabs-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--blue); transition: transform .45s var(--ease), width .45s var(--ease); }

.language-switch { order: 5; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--raise); }
.language-switch button { border: 0; background: none; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--faint); cursor: pointer; transition: background .2s, color .2s; }
.language-switch button.is-active { background: var(--raise-2); color: var(--text); }
.tabs { order: 4; }

/* ---------- Stage ---------- */
.stage { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.panel { padding: 40px 0; }
.panel:focus, .panel:focus-visible { outline: none; }
.panel h1 { font-size: clamp(42px, min(4.8vw, 8vh), 76px); }
.panel h1 .line { display: block; }
.panel h1 .soft { color: var(--blue); }
.panel h2 { font-size: clamp(32px, 3.6vw, 50px); max-width: 15em; }
.kicker { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--blue-2); }
.lead { margin-top: 26px; max-width: 30em; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.note { margin-top: 28px; max-width: 40em; font-size: 14px; color: var(--faint); }
.note a { color: var(--muted); }

/* Laufendes Score-Band auf der Übersicht (Beispielfirmen, erzeugt in home.js) */
.ticker { display: grid; gap: 8px; max-width: 36em; margin-top: min(36px, 4vh); }
.ticker-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 8px; width: max-content; animation: ticker 46s linear infinite; }
.ticker-row.is-reverse .ticker-track { animation-direction: reverse; animation-duration: 52s; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--raise); white-space: nowrap; }
.ticker-item i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--raise-2); font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.ticker-item span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ticker-item b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--tone); }
.ticker-item small { font-size: 11px; font-weight: 600; color: var(--tone); opacity: .85; }
.ticker-note { font-size: 12px; color: var(--faint); }.cats { margin-top: 30px; max-width: 34em; border-top: 1px solid var(--line); }
.cats li { border-bottom: 1px solid var(--line); }
.cats button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--muted); transition: color .25s; }
.cats button b { font-size: 15px; font-weight: 700; color: var(--faint); transition: color .25s; }
.cats button b::after { content: " Pkt."; font-weight: 500; }
html[lang="en"] .cats button b::after { content: " pts"; }
.cats button:hover, .cats button[aria-expanded="true"] { color: var(--text); }
.cats button[aria-expanded="true"] b { color: var(--blue); }
.cats p { color: var(--muted); font-size: 15px; padding-bottom: 18px; overflow: hidden; }
.js .cats p { max-height: 0; padding-bottom: 0; transition: max-height .4s var(--ease), padding .4s var(--ease); }
.js .cats li.is-open p { max-height: 120px; padding-bottom: 18px; }

/* Warum */
.switch { display: inline-flex; margin-top: 30px; padding: 5px; border-radius: 999px; background: var(--raise); }
.switch button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; }
.switch button[aria-pressed="true"] { background: var(--raise-2); color: var(--text); }
.switch button[data-mode="with"][aria-pressed="true"] { background: var(--blue); color: #000; }
.versus { position: relative; margin-top: 22px; max-width: 32em; }
.versus-list li { display: flex; gap: 14px; align-items: center; padding: 13px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.versus-list li::before { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.versus-without li { color: var(--muted); }
.versus-without li::before { content: "✕"; background: var(--raise-2); color: var(--muted); }
.versus-with li::before { content: "✓"; background: var(--blue); color: #000; }
.js .versus-list { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .versus-without { position: absolute; inset: 0 0 auto; }
.js .versus[data-mode-current="with"] .versus-without,
.js .versus[data-mode-current="without"] .versus-with { opacity: 0; transform: translateY(8px); pointer-events: none; }
.js .versus[data-mode-current="without"] .versus-with { visibility: hidden; }

/* Apps */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.store { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 28px; background: var(--raise); }
.store-main { background: var(--blue-deep); }
.store small { display: block; font-size: 13px; font-weight: 600; color: var(--blue-2); }
.store strong { display: block; margin-top: 6px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.store p { flex: 1; font-size: 14.5px; color: var(--muted); }
.store .btn { align-self: flex-start; }

/* FAQ */
.faq { margin-top: 26px; max-width: 40em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--raise-2); color: var(--muted); font-weight: 500; font-size: 18px; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #000; }
.faq details p { padding-bottom: 16px; color: var(--muted); font-size: 15px; }
.faq details a { display: inline-block; margin: -6px 0 16px; color: var(--blue-2); font-size: 14.5px; }
.faq details[open] p { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Device ---------- */
.device-wrap { position: relative; display: grid; place-items: center; }
.disc { position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--blue-deep); transition: transform .8s var(--ease); }
body[data-active="methode"] .disc { transform: translateX(-14%) scale(.9); }
body[data-active="warum"] .disc { transform: translateX(12%) scale(1.04); }
body[data-active="apps"] .disc { transform: scale(.82); }
body[data-active="faq"] .disc { transform: translateY(8%) scale(.94); }

.device {
  position: relative; width: 290px; height: 590px; padding: 22px 20px;
  border-radius: 48px; background: #0a0a0b; border: 9px solid #1c1c20;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.device-notch { position: absolute; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 999px; background: #000; }

.screen { position: absolute; inset: 52px 20px 24px; display: flex; flex-direction: column; opacity: 0; transform: scale(.97) translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.screen.is-on { opacity: 1; transform: none; }
.screen small { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.screen .co { margin-top: 2px; font-size: 16px; letter-spacing: -.02em; }

.ring { position: relative; width: 118px; height: 118px; margin: 16px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-track { stroke: var(--raise-2); }
.ring-val { stroke: var(--good); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease); }
.screen-score.is-on .ring-val { stroke-dashoffset: calc(100 - var(--p)); }
.ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring span b { font-size: 36px; font-weight: 800; letter-spacing: -.05em; }
.ring span em { margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--faint); }
.verdict { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--good); }

/* Skala 0–100 mit den Stufen des Rechners: <60 schwächer, 60–79 beobachten, ab 80 stark */
.scale { margin-top: 12px; }
.scale-track { position: relative; display: flex; gap: 3px; height: 6px; }
.scale-track i { display: block; height: 100%; border-radius: 6px; }
.z-weak { flex: 60; background: var(--bad); }
.z-watch { flex: 20; background: var(--mid); }
.z-strong { flex: 20; background: var(--good); }
.scale-marker { position: absolute; top: -4px; left: var(--at); width: 3px; height: 14px; margin-left: -1.5px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #0a0a0b; }
.screen-score .scale-marker { transform: scaleY(0); transition: transform .4s var(--ease) .9s; }
.screen-score.is-on .scale-marker { transform: none; }
.scale-labels { display: flex; margin-top: 6px; font-size: 9.5px; font-weight: 600; color: var(--faint); }
.scale-labels span:nth-child(1) { flex: 60; }
.scale-labels span:nth-child(2) { flex: 20; }
.scale-labels span:nth-child(3) { flex: 20; text-align: right; color: var(--good); }
.scale-labels span:nth-child(1) { color: var(--bad); }
.scale-labels span:nth-child(2) { color: var(--mid); }

/* Schienenlänge = maximal mögliche Punkte (25/25/20/10/20), Füllung = erreichter Anteil */
.mini-bars { margin-top: auto; display: grid; gap: 9px; }
.mini-bars li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 5px; column-gap: 8px; row-gap: 5px; font-size: 11px; color: var(--muted); transition: opacity .3s, color .3s; }
.mini-bars span { grid-row: 1; grid-column: 1; }
.mini-bars b { grid-row: 1; grid-column: 2; text-align: right; color: var(--tone, var(--text)); font-weight: 700; }
/* Kategorie-Farbe nach Anteil der möglichen Punkte: ab 80 % grün, 60–79 % gelb, darunter rot */
.tone-good { --tone: var(--good); }
.tone-mid { --tone: var(--mid); }
.tone-bad { --tone: var(--bad); }
.mini-bars b em { font-style: normal; font-weight: 500; color: var(--faint); }
.mini-bars i { grid-row: 2; grid-column: 1 / -1; width: var(--max); position: relative; border-radius: 9px; background: var(--raise-2); overflow: hidden; }
.mini-bars i::after { content: ""; position: absolute; inset: 0; width: var(--fill); border-radius: inherit; background: var(--tone, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.screen-score.is-on .mini-bars i::after { transform: scaleX(1); }
.screen-score.is-on .mini-bars li:nth-child(2) i::after { transition-delay: .06s; }
.screen-score.is-on .mini-bars li:nth-child(3) i::after { transition-delay: .12s; }
.screen-score.is-on .mini-bars li:nth-child(4) i::after { transition-delay: .18s; }
.screen-score.is-on .mini-bars li:nth-child(5) i::after { transition-delay: .24s; }
.mini-bars.has-focus li { opacity: .35; }
.mini-bars.has-focus li.is-focus { opacity: 1; color: var(--text); }

.screen-compare { gap: 10px; }
.screen-compare small { margin-bottom: 6px; }
.cmp-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--raise); }
.cmp-row > div { flex: 1; min-width: 0; }
.cmp-row strong { display: block; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-row span { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.cmp-row.is-strong { --tone: var(--good); }
.cmp-row.is-watch { --tone: var(--mid); }
.cmp-row.is-weak { --tone: var(--bad); }
.cmp-row span { color: var(--tone); }
/* Schiene 0–100 mit Markierungen bei 60 und 80 (Stufengrenzen) */
.cmp-row i { display: block; margin-top: 9px; height: 5px; border-radius: 9px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, transparent calc(60% - 1px), #0a0a0b calc(60% - 1px) calc(60% + 1px), transparent calc(60% + 1px) calc(80% - 1px), #0a0a0b calc(80% - 1px) calc(80% + 1px), transparent calc(80% + 1px)), var(--raise-2); }
.cmp-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .1s; }
.screen-compare.is-on .cmp-row i::after { transform: scaleX(1); }
.cmp-row b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: var(--tone); }
.cmp-legend { margin-top: auto; font-size: 11px; color: var(--faint); text-align: center; }

.screen-app { align-items: center; justify-content: center; gap: 16px; }
.screen-app img { border-radius: 24px; transform: scale(.8); transition: transform .7s var(--ease); }
.screen-app.is-on img { transform: none; }
.screen-app strong { font-size: 20px; letter-spacing: -.03em; }

/* ---------- Bottom bar & dock ---------- */
.bottombar { max-width: 1240px; margin: 0 auto; padding: 16px 28px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: var(--faint); }
.bottombar > p { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.bottombar > p::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8c2ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.1'/%3E%3C/svg%3E") center/contain no-repeat; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal a { text-decoration: none; color: var(--faint); transition: color .2s; }
.legal a:hover { color: var(--text); }
.dock { display: none; }

/* ---------- App-Modus (mit JavaScript, ausreichend große Fenster) ---------- */
@media (min-width: 861px) and (min-height: 640px) {
  .js body { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
  .js .stage { width: 100%; height: 100%; min-height: 0; }
  .js .panels { position: relative; height: 100%; min-height: 0; display: grid; align-items: center; }
  .js .panel { grid-area: 1 / 1; max-height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  .js .panel::-webkit-scrollbar { display: none; }
}
.js .panel:not(.is-active) { display: none; }
.js .panel.is-active > * { animation: rise .7s var(--ease) both; }
.js .panel.is-active > *:nth-child(2) { animation-delay: .05s; }
.js .panel.is-active > *:nth-child(3) { animation-delay: .1s; }
.js .panel.is-active > *:nth-child(4) { animation-delay: .15s; }
.js .panel.is-active > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.js .panel h1 .line { animation: rise .8s var(--ease) both; }
.js .panel h1 .soft { animation-delay: .08s; }

/* ohne JavaScript: alle Bereiche untereinander, Gerät ausgeblendet */
html:not(.js) .stage { grid-template-columns: 1fr; }
html:not(.js) .device-wrap { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .topbar { padding: 14px 18px; position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tabs { display: none; }
  .language-switch { margin-left: auto; }
  .stage { grid-template-columns: 1fr; gap: 0; padding: 0 18px; }
  .device-wrap { order: -1; height: 236px; overflow: hidden; margin: 0 -18px; align-items: start; padding-top: 28px;
    -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .device { transform-origin: top center; scale: .62; animation: none; }
  .disc { width: 250px; top: 6px; left: calc(50% - 125px); }
  body[data-active="apps"] .device-wrap, body[data-active="faq"] .device-wrap { display: none; }
  .panel { padding: 20px 0 32px; }
  .panel h1 { font-size: clamp(40px, 11vw, 56px); }
  .panel h2 { font-size: clamp(28px, 8vw, 38px); }
  .lead { margin-top: 18px; font-size: 16.5px; }
  .actions .btn { flex: 1 1 100%; }
  .stores { grid-template-columns: 1fr; }
  .store .btn { align-self: stretch; }
  .cats button { font-size: 17px; padding: 16px 0; }
  .versus-list li { font-size: 16px; }
  .switch { display: flex; }
  .switch button { flex: 1; padding: 10px 8px; font-size: 13.5px; }
  .bottombar { padding: 8px 18px calc(96px + env(safe-area-inset-bottom)); flex-direction: column; }

  .dock {
    display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 26px; background: rgba(22, 22, 25, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
  }
  .dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--faint); text-decoration: none; transition: background .3s, color .3s; }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock a.is-active { color: #000; background: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
