/* Shopseite: baut auf style.css auf und nutzt dieselben Farben und Pixelecken. */

/* Auf der Shopseite gibt es keine große Wortmarke, deshalb bleibt die kleine immer sichtbar. */
.shopseite .kopf__marke {
  opacity: 1;
}

.hauptnav a[aria-current="page"] {
  color: var(--cyan);
}

.unterzeile {
  margin-top: 14px;
  color: var(--text-leise);
}

.hinweis {
  margin-top: 28px;
  color: var(--text-leise);
  text-align: center;
}

/* ---------- Kopf der Seite ---------- */

.shop-kopf {
  position: relative;
  padding: 168px 0 24px;
}

/* Der Nebel darf unter die Kopfzeile reichen und läuft weich aus, statt an der Kante abzubrechen */
.shop-kopf .deko {
  bottom: -420px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.shop-kopf h1 {
  margin-bottom: 24px;
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 0.9;
}

/* ---------- Ränge ---------- */

.raenge {
  padding-top: 48px;
}

.rang-liste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.rang {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 24px 26px;
  background: rgb(17 24 56 / 85%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px var(--linie);
}

/* Farbleiste oben im Verlauf des Rangs */
.rang::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--verlauf);
}

/* Der Planet wächst mit dem Rang; der Kopf der Karte ist nur so hoch wie der Planet */
.rang__himmel {
  display: flex;
  align-items: flex-end;
}

.rang__mond {
  image-rendering: auto;
}

.rang__name {
  color: transparent;
  background: var(--verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 2.5rem;
  text-transform: uppercase;
}

.rang__motto {
  color: var(--text-leise);
  font-size: 0.9rem;
}

.rang__preis {
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-size: 1.9rem;
  line-height: 1;
}

.rang__vorteile {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.rang__vorteile li {
  position: relative;
  padding-left: 20px;
}

.rang__vorteile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--verlauf);
}

.rang .knopf {
  margin-top: auto;
}

.rang--top {
  background: rgb(28 24 66 / 90%);
  box-shadow: inset 0 0 0 3px rgb(244 185 66 / 55%);
}

.rang__erbt {
  color: var(--text-hell);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Rangvergleich ---------- */

.vergleich {
  margin-top: 72px;
}

.vergleich__titel {
  margin-bottom: 24px;
  font-size: 2.2rem;
}

.vergleich__rahmen {
  overflow-x: auto;
  background: rgb(17 24 56 / 85%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px var(--linie);
}

.vergleich__tabelle {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.vergleich__tabelle th,
.vergleich__tabelle td {
  padding: 10px 14px;
  text-align: center;
}

.vergleich__tabelle td {
  width: 13%;
}

/* Jede zweite Zeile etwas heller, damit das Auge in der Zeile bleibt */
.vergleich__tabelle tbody tr:nth-child(odd):not(.vergleich__gruppe) {
  background: rgb(255 255 255 / 2.5%);
}

.vergleich__tabelle tbody tr:not(.vergleich__gruppe):hover {
  background: rgb(139 227 244 / 8%);
}

.vergleich__tabelle tbody th[scope="row"] {
  color: var(--text-hell);
  font-weight: 500;
  text-align: left;
}

.vergleich__tabelle thead th {
  position: relative;
  padding: 26px 10px 16px;
  border-bottom: 2px solid var(--linie);
  vertical-align: bottom;
}

.vergleich__tabelle thead th[style]::before {
  content: "";
  position: absolute;
  inset: 0 10px auto;
  height: 5px;
  background: var(--verlauf);
}

.vergleich__tabelle thead .rang__name {
  display: block;
  font-family: var(--schrift-pixel);
  font-size: 1.5rem;
  line-height: 1;
}

.vergleich__preis {
  display: block;
  margin-top: 6px;
  color: var(--text-leise);
  font-size: 0.85rem;
}

.vergleich__gruppe th {
  padding: 26px 14px 8px;
  color: var(--text-leise);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.vergleich__tabelle td {
  color: var(--text-hell);
  font-weight: 600;
}

/* Haken in der Farbe des jeweiligen Rangs */
.vergleich .ja {
  font-size: 1.1rem;
  font-weight: 700;
}

.vergleich td:nth-child(3) .ja { color: #3cff8f; }
.vergleich td:nth-child(4) .ja { color: #ff7a00; }
.vergleich td:nth-child(5) .ja { color: #ff2fd0; }
.vergleich td:nth-child(6) .ja { color: #ffd000; }

.vergleich .nein {
  color: var(--linie);
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Monatsrang ---------- */

.abo {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px 56px;
  align-items: center;
  margin-top: 72px;
  padding: 64px 56px;
  background: rgb(24 22 70 / 90%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px rgb(168 116 242 / 60%);
}

.abo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--verlauf);
}

.abo__planet {
  margin-bottom: 18px;
  image-rendering: pixelated;
}

.abo__label {
  color: var(--text-leise);
  font-family: var(--schrift-pixel);
  font-size: 1.3rem;
}

.abo .rang__name {
  font-size: 4.2rem;
  line-height: 1;
}

.abo .rang__preis {
  margin-top: 10px;
  font-size: 2.4rem;
}

.abo__vorteile li {
  font-size: 1.05rem;
}

.abo .knopf {
  min-width: 220px;
  margin-top: 26px;
}

.abo .rang__preis span {
  color: var(--text-leise);
  font-family: var(--schrift-text);
  font-size: 0.95rem;
}

.abo__text {
  margin-top: 10px;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.abo__vorteile {
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 0;
}

/* ---------- Drachmen ---------- */

.pakete {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.paket {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 44px 20px 28px;
  background: rgb(17 24 56 / 85%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px var(--linie);
  text-align: center;
}

.paket__bonus {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  background: var(--gold);
  color: #2a1a00;
  font-family: var(--schrift-pixel);
  font-size: 1.1rem;
}

/* Sternenstaub: Pixelfunkeln wie im Logo, größere Pakete haben mehr Funkeln */
.sternenstaub {
  width: 110px;
  height: 110px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgb(139 227 244 / 35%));
  animation: funkeln-sanft 3.2s ease-in-out infinite;
}

.paket:nth-child(2n) .sternenstaub {
  animation-delay: -1.6s;
}

@keyframes funkeln-sanft {
  50% {
    filter: drop-shadow(0 0 22px rgb(168 116 242 / 55%));
    transform: scale(1.06);
  }
}

.paket__menge {
  margin-top: 14px;
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-size: 3rem;
  line-height: 1;
}

.paket__name {
  color: var(--cyan);
  font-family: var(--schrift-pixel);
  font-size: 1.2rem;
}

.paket__preis {
  margin: 6px 0 14px;
  font-size: 1.15rem;
  color: var(--text-leise);
}

.paket .knopf,
.rang .knopf {
  width: 100%;
}

.shopseite .faq {
  padding-bottom: 120px;
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .rang-liste {
    grid-template-columns: repeat(2, 1fr);
  }

  .pakete {
    grid-template-columns: repeat(3, 1fr);
  }

  .abo {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .abo .rang__name {
    font-size: 3.2rem;
  }
}

/* ---------- Handy ---------- */

@media (max-width: 700px) {
  /* Auf dem Handy bleibt die Spalte mit den Vorteilen beim Wischen stehen */
  .vergleich__tabelle tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 150px;
    background: #111838;
  }

  .shop-kopf {
    padding-top: 120px;
  }

  /* main.js setzt die Planetengröße inline, auf dem Handy wäre er zu groß */
  .shop-kopf .planet {
    width: 150px !important;
    opacity: 0.8;
  }

  .rang-liste {
    grid-template-columns: 1fr;
  }

  .pakete {
    grid-template-columns: repeat(2, 1fr);
  }

  .abo__vorteile {
    grid-template-columns: 1fr;
  }

  .kaufdialog__aktionen button {
    width: 100%;
  }
}

#kaufdialog {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 5vw, 2rem);
  border: 2px solid var(--linie);
  background: var(--flaeche);
  color: var(--text-hell);
}

#kaufdialog::backdrop {
  background: rgb(8 11 31 / 80%);
}

#kaufdialog h2 {
  margin: 0 0 0.5rem;
}

#kaufdialog form {
  display: grid;
  gap: 0.65rem;
}

#kaufdialog :is(input, select) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 2px solid var(--linie);
  background: var(--grund);
  color: inherit;
  font: inherit;
}

#kaufdialog :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.kaufdialog__fehler {
  color: #ffb8ca;
  margin: 0;
}

.kaufdialog__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kaufdialog__aktionen button {
  cursor: pointer;
}

.kaufdialog__aktionen button:disabled {
  cursor: wait;
  opacity: 0.7;
}
