/* Tier-Welt: Vergleichstabelle (tier-table.js) und Status-Popup (tier-popup.js). */
/* ---------- Tier-Vergleichstabelle (NoHesi-Stil) ---------- */
/* Tier-Farbwelt: 0 = Grau, 1 = Silber, 2 = Orange, 3 = Pink */
.cmp-tier { display: inline-flex; align-items: center; gap: 7px; font-style: italic;
  font-weight: 800; letter-spacing: .07em; text-transform: uppercase; font-size: 13px; }
.cmp-tier .icon { width: 15px; height: 15px; }
.t0 .cmp-tier { color: var(--ink-muted); }
.t1 .cmp-tier { color: #e4e6ec; }
.t2 .cmp-tier { color: var(--warn); }
.t3 .cmp-tier { color: #ec4d92; }

.cmp { padding: 0; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-feat-head { font-size: 15px; font-weight: 750; }
.cmp-head { vertical-align: top; padding-top: 18px; }
.cmp-price { font-size: 17px; font-weight: 800; margin: 8px 0 4px; white-space: nowrap; }
.cmp-price small { font-weight: 500; color: var(--ink-muted); font-size: 12px; }
.cmp-tag { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.cmp-btn { font-style: italic; text-transform: uppercase; font-size: 12px;
  letter-spacing: .05em; padding: 8px 14px; }
.cmp-spar { margin-left: 7px; vertical-align: 2px; font-size: 11px; font-weight: 700; }
/* Aktueller Tarif: Zustand, kein toter Knopf — deshalb Text statt <button>. */
.cmp-jetzt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
  font-size: 12px; font-weight: 750; font-style: italic; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ok); }
.cmp-leer { display: block; padding: 9px 0; font-size: 11.5px; font-style: italic;
  color: var(--ink-faint); }
.cmp-head.is-aktiv { box-shadow: inset 0 2px 0 var(--ok); }
.cmp-check { color: var(--ink); margin: 0 auto; }
td.t2 .cmp-check { color: var(--warn); }
td.t3 .cmp-check { color: #ec4d92; }
th.t2, td.t2 { background: rgba(232,180,90,.045); }
th.t3, td.t3 { background: rgba(236,77,146,.055); }
.cmp-section td { text-align: left; font-weight: 750; font-size: 15px; padding-top: 22px;
  background: none !important; }
.cmp-inf { font-size: 19px; font-weight: 700; line-height: 1; }
.cmp-last td { padding: 16px; }

/* ---------- Tier-Popup (Statuswechsel) — Akzent kommt per --tp-accent aus tier-popup.js ---------- */
.tier-pop {
  position: fixed; inset: 0; z-index: 95; display: flex; overflow: auto; padding: 20px;
  background: rgba(3, 3, 5, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: tp-fade .25s ease both;
}
.tier-pop__card {
  position: relative; margin: auto; width: min(420px, 100%); min-width: 0; text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 34px 24px 24px;
  animation: tp-card .42s cubic-bezier(.2, .8, .3, 1) both;
}
.tier-pop__x { position: absolute; top: 10px; right: 10px; padding: 6px; }
.tier-pop__badge { position: relative; width: 108px; height: 108px; margin: 2px auto 20px;
  display: grid; place-items: center; }
.tier-pop__ring {
  position: absolute; inset: 0; border-radius: 50%; opacity: .6;
  background: conic-gradient(from 0deg, transparent 0 58%, var(--tp-accent) 78%, transparent 88%);
  -webkit-mask: radial-gradient(circle, #0000 60%, #000 62%);
  mask: radial-gradient(circle, #0000 60%, #000 62%);
  animation: tp-spin 7s linear infinite;
}
.tier-pop__disc {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  animation: tp-pop .55s cubic-bezier(.2, 1.5, .4, 1) both, tp-glow 1.8s ease-out .2s;
}
.tier-pop__disc .icon { width: 32px; height: 32px; color: var(--tp-accent); }
.tier-pop__sparks { position: absolute; inset: 0; pointer-events: none; }
.tier-pop__spark {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%; background: var(--tp-accent); opacity: 0;
  animation: tp-spark 1.1s cubic-bezier(.15, .7, .3, 1) var(--d) both;
}
.tier-pop__spark:nth-child(2n) { background: var(--ink); width: 4px; height: 4px; }
.tier-pop__title { font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.tier-pop__sub { margin-top: 8px; font-size: 14px; color: var(--ink-muted); overflow-wrap: anywhere; }
.tier-pop__feats { list-style: none; margin: 20px 0 22px; padding: 0;
  display: grid; gap: 9px; text-align: left; }
.tier-pop__feats li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 14px; }
.tier-pop__feats span { min-width: 0; overflow-wrap: anywhere; }
.tier-pop__check { width: 16px; height: 16px; margin-top: 2px; color: var(--tp-accent); }
.tier-pop__go { width: 100%; justify-content: center; }
.tier-pop__link { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--ink-muted); }
.tier-pop__link:hover { color: var(--ink); }

.tp-in { animation: tp-in .45s ease both; }
@keyframes tp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-card { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes tp-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes tp-glow {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tp-accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 26px color-mix(in srgb, var(--tp-accent) 0%, transparent); }
}
@keyframes tp-spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(26px) scale(.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--dist)) scale(.25); }
}
@media (prefers-reduced-motion: reduce) {
  .tier-pop, .tier-pop__card, .tier-pop__disc, .tier-pop__ring, .tp-in {
    animation: none; opacity: 1; transform: none;
  }
  .tier-pop__ring { opacity: .6; }
  .tier-pop__sparks { display: none; }
}
