/* Gemeinsame Styles für die Vergleichsseiten (/heimdeck/alternatives/ und /heimdeck/vs/…) */

.cmp-hero { padding: 80px 0 30px; text-align: center; }
.cmp-hero h1 { font-size: clamp(2.2rem, 6.5vw, 4.2rem); margin: 10px 0 14px; }
.cmp-hero .lead { margin: 0 auto; }
.crumbs { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-3); }

/* "Ring frei"-Kopf mit beiden Kontrahenten */
.versus { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 48px); margin: 34px auto 10px; }
.fighter { display: grid; justify-items: center; gap: 8px; }
.fighter img, .fighter .ph { width: 84px; height: 84px; border-radius: 22px; object-fit: contain; background: var(--surface); border: 1px solid var(--border); padding: 10px; }
.fighter .ph { display: grid; place-items: center; font-size: 2.4rem; }
.fighter b { font-family: var(--mono); }
.fighter small { color: var(--muted); font-size: .78rem; font-family: var(--mono); }
.vs-badge { font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.6rem); font-style: italic; background: linear-gradient(120deg, var(--bad), var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; animation: vsPulse 2.4s ease-in-out infinite; }
@keyframes vsPulse { 50% { transform: scale(1.12) rotate(-4deg); } }

/* Bias-Warnung */
.bias { max-width: 760px; margin: 28px auto 0; display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(245,185,66,.5); background: rgba(245,185,66,.06); color: var(--muted); font-size: .92rem; }
.bias .meter { flex: none; width: 92px; font-family: var(--mono); font-size: .7rem; text-align: center; color: var(--warn); }
.bias .meter i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); margin-top: 4px; position: relative; }
.bias .meter i::after { content: ""; position: absolute; right: 2px; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; }

/* Kurz-Fazit */
.tldr { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.tldr .card h3 { display: flex; gap: 10px; align-items: center; }
.tldr .card h3 img { width: 28px; height: 28px; object-fit: contain; }
.tldr .card ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); }
.tldr .card li { margin-bottom: 6px; }
.tldr .card.win { border-color: rgba(91,140,255,.55); box-shadow: 0 30px 80px -40px rgba(91,140,255,.6); }

/* Runden */
.rounds { display: grid; gap: 14px; margin-top: 30px; }
.round { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.round .no { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.round .no b { display: block; font-size: 1.8rem; color: var(--text); letter-spacing: 0; }
.round h3 { margin: 0 0 6px; font-size: 1.05rem; }
.round p { margin: 0; color: var(--muted); font-size: .95rem; }
.round p + p { margin-top: 6px; }
.round .them, .round .us { display: block; }
.round .them b, .round .us b { color: var(--text); }
.winner { justify-self: end; white-space: nowrap; font-family: var(--mono); font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); }
.winner.us { border-color: rgba(91,140,255,.6); color: var(--accent-3); }
.winner.them { border-color: rgba(62,207,142,.6); color: var(--ok); }
.winner.draw { color: var(--muted); }
@media (max-width: 700px) {
  .round { grid-template-columns: 52px minmax(0, 1fr); }
  .round .winner { grid-column: 2; justify-self: start; }
}

/* Endstand */
.score { margin-top: 26px; text-align: center; font-family: var(--mono); }
.score .big { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800; letter-spacing: .04em; }
.score .big .u { color: var(--accent-3); } .score .big .t { color: var(--ok); }
.score small { color: var(--muted); display: block; margin-top: 6px; }

/* Vergleichstabelle */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9rem; }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.02); position: sticky; top: 0; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { white-space: nowrap; }
table.cmp tr.us td { background: rgba(91,140,255,.07); }
table.cmp tr.us td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.dname { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dname img { width: 26px; height: 26px; object-fit: contain; }
.dname a { color: var(--text); }
.dname a:hover { color: var(--accent-3); }
.yes { color: var(--ok); } .no { color: var(--muted); } .part { color: var(--warn); }
.fine { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* Quiz */
.quiz { margin-top: 28px; }
.quiz .q { display: none; }
.quiz .q.active { display: block; animation: relIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes relIn { from { opacity: 0; transform: translateY(10px); } }
.quiz .q h3 { font-size: 1.2rem; margin-bottom: 14px; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opts button { all: unset; cursor: pointer; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-solid); transition: border-color .2s, transform .2s; }
.quiz .opts button:hover, .quiz .opts button:focus-visible { border-color: var(--accent); transform: translateX(4px); }
.quiz .progress { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.quiz .result h3 { font-size: 1.5rem; }
.quiz .result p { color: var(--muted); }

/* FAQ */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Weitere Duelle */
.more-vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.more-vs a.card { color: var(--text); display: flex; align-items: center; gap: 14px; }
.more-vs a.card img { width: 36px; height: 36px; object-fit: contain; }
.more-vs a.card small { display: block; color: var(--muted); font-size: .82rem; }

.steps-ol { counter-reset: st; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.steps-ol li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps-ol li::before { content: counter(st); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--text); background: rgba(91,140,255,.15); border: 1px solid var(--border); }
.steps-ol li b { color: var(--text); }
