/* LeadersTable Barometer – Gestaltung wie Vorschau V17 (Joe 01.12.2026), ohne Vorschau-Teile */
/* Layout: eine schmale Fragebogen-Spalte wie auf dem Handy; violettes Kopfband mit Versalien-Kästen (Muster der Website), Orange nur für die Handlung */
:root {
  --brand-a: #5729D7;
  --brand-b: #341390;
  --on-brand: #FFFFFF;
  --cta: #FF4500;
  --cta-ink: #C63600;
  --bg: #F4F2FB;
  --surface: #FFFFFF;
  --ink: #1D1838;
  --muted: #5D5878;
  --line: #DDD8F0;
  --tint: #EEE9FD;
  --accent: #5729D7;
  --note-bg: #FFF4E8;
  --note-line: #E9A66A;
  --error: #B3261E;
  --font-head: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --font-body: Verdana, Geneva, "DejaVu Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-a: #4B23B8; --brand-b: #2A1773; --on-brand: #FFFFFF;
    --cta: #FF5A1F; --cta-ink: #FF8A5C;
    --bg: #110D24; --surface: #1A1535; --ink: #ECE9F8; --muted: #ABA5C8;
    --line: #342D5E; --tint: #261F50; --accent: #A68BFF;
    --note-bg: #2B2117; --note-line: #8A5A2B; --error: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-a: #4B23B8; --brand-b: #2A1773; --on-brand: #FFFFFF;
  --cta: #FF5A1F; --cta-ink: #FF8A5C;
  --bg: #110D24; --surface: #1A1535; --ink: #ECE9F8; --muted: #ABA5C8;
  --line: #342D5E; --tint: #261F50; --accent: #A68BFF;
  --note-bg: #2B2117; --note-line: #8A5A2B; --error: #FF8A80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px 48px;
}
.wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }

/* Vorschau-Leiste: gehört nicht zum Pulse */
.linkish {
  background: none; border: 0; padding: 0; color: var(--accent); font: inherit;
  text-decoration: underline; cursor: pointer;
}

/* Pulse-Karte */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.head {
  background: linear-gradient(100deg, var(--brand-a), var(--brand-b));
  color: var(--on-brand); padding: 22px 22px 20px;
  display: grid; gap: 10px;
}
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; text-wrap: balance; }
@media (max-width: 560px) { .eyebrow { font-size: 1.05rem; } }
.head h1 {
  margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance;
}
.head h1 span {
  background: var(--brand-b); padding: 2px 8px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.head .sub { font-size: 0.8rem; opacity: 0.92; }

.progress { display: flex; align-items: center; gap: 12px; padding: 14px 22px 0; }
.progress .segs { display: flex; gap: 4px; flex: 0 0 auto; }
.progress .seg { width: 34px; height: 5px; border-radius: 3px; background: var(--line); }
.progress .seg.on { background: var(--accent); }
.progress .label { font-size: 0.76rem; color: var(--muted); }

.body { padding: 18px 22px 22px; display: grid; gap: 18px; }
h2 { margin: 0; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.35; text-wrap: balance; }
.hint { color: var(--muted); font-size: 0.8rem; margin: 4px 0 0; }
.instr { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 8px 0 0; }
.aboutyou { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 14px; }
.aboutyou h3 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; }
.lead { margin: 0; font-size: 0.86rem; }
details.examples { padding: 0; }
details.examples summary { font-weight: 400; }
details summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 0.8rem; }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.examples ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 4px; font-size: 0.8rem; }
details.consent-details { margin-top: 4px; }
details.consent-details p { margin: 6px 0 0; color: var(--muted); }

/* Themen-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile .box {
  display: grid; gap: 3px; height: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 38px 11px 13px;
  background: var(--surface); transition: border-color .15s, background .15s;
}
.tile .t { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.tile .d { font-size: 0.74rem; color: var(--muted); }
.tile .tick {
  position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 0.72rem; color: var(--on-brand);
}
.tile input:checked + .box { border-color: var(--accent); background: var(--tint); }
.tile input:checked ~ .tick { background: var(--accent); border-color: var(--accent); }
.tile input:disabled + .box { opacity: 0.45; cursor: not-allowed; }
.tile input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.counter { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Klick-Fragen */
.topic-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 14px; }
.topic-card h3 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 0.84rem; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-block; }
.chips.stack .chip, .chips.grid10 .chip { display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 0.78rem; background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip input:checked + span { border-color: var(--accent); background: var(--tint); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips.scale .chip span { border-radius: 8px; }
.chips.stack { flex-direction: column; align-items: stretch; }
.chips.stack .chip span { display: block; border-radius: 8px; }
.chips.grid10 { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.chips.grid10 .chip span { display: block; text-align: center; border-radius: 8px; padding: 7px 4px; font-size: 0.74rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

input[type="text"], input[type="email"], input[type="url"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="url"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.84rem; }
label.field .opt { font-weight: 400; color: var(--muted); }

/* Navigation */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.btn {
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.2;
  border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer;
  background: var(--cta); color: var(--on-brand);
}
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-quiet {
  font: inherit; font-size: 0.84rem; background: none; border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 9px 14px; cursor: pointer;
}
.btn-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.open-count { font-size: 0.78rem; color: var(--muted); }

/* Ergebnis */
.result-rows { display: grid; gap: 10px; }
.rrow {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.rrow.gap { border-color: var(--cta); border-width: 1.5px; }
.rrow .name { font-family: var(--font-head); font-weight: 700; }
.rrow .flag { display: inline-block; margin-left: 6px; font-family: var(--font-body); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cta-ink); }
.rrow .meta { font-size: 0.76rem; color: var(--muted); }
.rrow .meta b { color: var(--ink); font-weight: 400; }
.bar { display: flex; gap: 3px; align-items: center; }
.bar i { width: 14px; height: 10px; border-radius: 2px; background: var(--line); display: block; }
.bar i.on { background: var(--accent); }
.bar em { font-style: normal; font-size: 0.76rem; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .rrow { grid-template-columns: minmax(0, 1fr) auto; }
  .rrow .name { grid-column: 1 / -1; }
}
.verdict { border-left: 4px solid var(--cta); padding: 4px 0 4px 14px; display: grid; gap: 4px; }
.verdict .big { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.compare { background: var(--tint); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.compare h3, .share h3 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.76rem; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-a); }
.consent label { cursor: pointer; }
.consent a, .small a { color: var(--accent); }
.small { font-size: 0.72rem; color: var(--muted); }
.error { color: var(--error); font-size: 0.78rem; font-weight: 700; }
.done { border: 1.5px solid var(--accent); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; background: var(--surface); }
.share { display: grid; gap: 10px; }
.share .chips { gap: 8px; }
.rrow .impulse { grid-column: 1 / -1; display: grid; gap: 5px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.84rem; line-height: 1.5; }
.ftag { justify-self: start; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.ftag.sofort { border-color: var(--cta); color: var(--cta-ink); }
.analysis { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 10px; }
.analysis h3 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; }
.analysis h4 { margin: 0; font-family: var(--font-head); font-size: 0.92rem; }
.analysis p, .analysis ul { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.analysis ul { padding-left: 18px; display: grid; gap: 4px; }
.ai-label { font-size: 0.72rem !important; color: var(--muted); }
.locked { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface); }
.locked ul { list-style: none; padding-left: 0; color: var(--muted); }
.locked li::before { content: "\1F512\00a0"; }
.analysis h5 { margin: 6px 0 0; font-family: var(--font-head); font-size: 0.88rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.analysis ol { margin: 0; padding-left: 20px; font-size: 0.88rem; line-height: 1.55; display: grid; gap: 4px; }
.analysis p.grp { margin-top: 4px; }
.tline { font-size: 0.88rem; line-height: 1.55; }
.tline.blur1 { filter: blur(1.5px); opacity: 0.8; user-select: none; }
.tline.blur2 { filter: blur(2.6px); opacity: 0.6; user-select: none; }
.tline.blur3 { filter: blur(3.6px); opacity: 0.4; user-select: none; }
.invite { border-left: 4px solid var(--accent); padding: 2px 0 2px 12px; margin: 0; }

/* V10 (Joe 01.12.): Vergleich nach dem Urteil, Formular an der Schnittkante, mitlaufende Leiste */
.cmp-teaser { border: 1.5px dashed var(--accent); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }
.cmp-teaser .q { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.35; text-wrap: balance; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cmp-col { display: grid; gap: 4px; align-content: start; }
.cmp-col .lbl { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.cmp-col .bar i { width: 12px; height: 9px; }
.cmp-col .val { font-size: 0.74rem; color: var(--muted); }
.cmp-col .val b { color: var(--ink); }
.bar.ghost i { background: transparent; border: 1px dashed var(--muted); }
.unlock { background: var(--tint); border-radius: 10px; padding: 14px; display: grid; gap: 12px; }
.sender { display: flex; gap: 10px; align-items: center; }
.li-ask { border: 1.5px solid var(--accent); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; background: var(--tint); }
.li-ask p { margin: 0; }
.li-ask form { display: flex; flex-wrap: wrap; gap: 8px; }
.li-ask input { flex: 1 1 220px; min-width: 0; }
.li-ask .full { flex: 1 1 100%; }
.li-ask label.field { font-weight: 400; font-size: 0.92rem; }
.audience { margin: 0; font-weight: 600; }
.sender .avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-a); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.sender p { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.sender .avatar { position: relative; overflow: hidden; }
.sender .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: scale(1.04); }
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(29, 24, 56, 0.14);
  transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility .2s;
}
.stickybar.on { transform: none; visibility: visible; }
.stickybar .in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stickybar .txt { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.stickybar .btn { font-size: 1rem; padding: 10px 16px; white-space: nowrap; }
@media (max-width: 560px) { .stickybar .txt { display: none; } .stickybar .btn { width: 100%; } }

/* Anmerkungen für Joe */

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

/* Nur im echten Betrieb */
.testband { border: 1.5px dashed var(--cta); border-radius: 10px; padding: 10px 14px; font-size: 0.8rem; background: var(--surface); }
.testband strong { font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; margin-right: 6px; color: var(--cta-ink); }
.foot { display: flex; gap: 16px; justify-content: center; font-size: 0.74rem; padding: 4px 0 90px; }
.foot a { color: var(--muted); }
.ladehinweis { font-size: 0.84rem; color: var(--muted); }
