/* =====================================================
   PEAK Store – Theme (v2)
   Dunkles, fokussiertes PEAK-Blau Design
   ===================================================== */
:root {
  --bg-0: #05080e;
  --bg-1: #070c14;
  --bg-2: #0a0f16;
  --surface: rgba(255, 255, 255, 0.022);
  --surface-card: rgba(10, 15, 22, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(58, 159, 224, 0.6);

  --text: #e9eef6;
  --text-dim: #94a3b6;
  --text-faint: #5d6b7e;

  --blue: #3a9fe0;
  --blue-deep: #1f6fb0;
  --blue-soft: #8fcdf2;
  --green: #5ecf82;
  --green-soft: #7fe0a0;
  --danger: #ff7b7b;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 9px;
  --shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.95);
  --maxw: 1240px;

  --font-base: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --header-h: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  background: var(--bg-0);
  font-family: var(--font-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Allgemeiner Hintergrund-Effekt (Aurora-Glow + Grid) ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 42% at 18% 12%, rgba(58, 159, 224, 0.16), transparent 70%),
    radial-gradient(34% 40% at 84% 22%, rgba(31, 111, 176, 0.14), transparent 72%),
    radial-gradient(46% 50% at 62% 88%, rgba(58, 159, 224, 0.1), transparent 74%);
  filter: blur(20px);
  animation: peakDriftA 26s ease-in-out infinite;
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(30% 36% at 78% 70%, rgba(94, 160, 220, 0.12), transparent 72%),
    radial-gradient(28% 34% at 30% 60%, rgba(40, 90, 150, 0.12), transparent 74%);
  filter: blur(26px);
  animation: peakDriftB 34s ease-in-out infinite;
}
/* feines Gitter + Vignette als oberste Hintergrund-Schicht */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 26px;
}

/* ---------- Animationen ---------- */
@keyframes peakToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes peakPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes peakSweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}
@keyframes peakSweepOnce {
  from { transform: translateX(-160%); }
  to   { transform: translateX(160%); }
}
@keyframes peakDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, 8%) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes peakDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-7%, -6%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes peakPara {
  from { transform: scale(1.14) translateY(-3.5%); }
  to   { transform: scale(1.14) translateY(7%); }
}
@keyframes peakSpin {
  to { transform: rotate(360deg); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: scroll()) {
  [data-parallax] {
    animation: peakPara linear both;
    animation-timeline: scroll(root);
  }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(80, 110, 150, 0.3); border-radius: 8px; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 14, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #fff;
}
.brand-accent {
  color: var(--blue);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a98aa;
  white-space: nowrap;
  transition: 0.18s;
}
.main-nav a:hover {
  color: #fff;
}
.main-nav a.active {
  color: #fff;
  border-color: rgba(58, 159, 224, 0.4);
  background: rgba(58, 159, 224, 0.08);
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c6d2e2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.18s;
}
.discord-link:hover {
  border-color: var(--blue);
  color: #fff;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(58, 159, 224, 0.45);
  background: rgba(58, 159, 224, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  transition: 0.18s;
}
.cart-button:hover {
  border-color: var(--blue);
  background: rgba(58, 159, 224, 0.16);
}
.cart-count {
  min-width: 16px;
  text-align: center;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.5;
  transform: scale(1.14);
}
.hero-fade-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.78) 0%,
    rgba(5, 8, 14, 0.62) 45%,
    rgba(5, 8, 14, 0.92) 100%
  );
}
.hero-fade-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 14, 0.85) 0%,
    rgba(5, 8, 14, 0.2) 55%,
    rgba(5, 8, 14, 0.5) 100%
  );
}
.hero-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(130, 195, 255, 0.09) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: peakSweep 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mx, 26%) var(--my, 42%),
    rgba(58, 159, 224, 0.2),
    transparent 55%
  );
  transition: background 0.08s linear;
}

.hero-inner {
  position: relative;
  padding: 96px 26px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 54px;
  align-items: center;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}
.hero-blue {
  color: var(--blue);
  text-shadow: 0 0 34px rgba(58, 159, 224, 0.55);
}
.hero-sub {
  margin: 0 0 30px;
  max-width: 440px;
  font-style: italic;
  font-size: 16px;
  color: #aebccd;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
}
.btn-primary {
  border-color: rgba(58, 159, 224, 0.55);
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe4f0;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: #fff;
}
.btn-block {
  width: 100%;
}

/* ---------- Hero "How it works" Card ---------- */
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb2c4;
}
.hero-steps {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 159, 224, 0.4);
  background: rgba(58, 159, 224, 0.08);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue-soft);
}
.step-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 3px;
}
.hero-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--line-soft);
  transition: 0.18s;
}
.hero-card-link:hover {
  background: rgba(58, 159, 224, 0.06);
}
.hero-card-link-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-card-link-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #cfe2f2;
}
.hero-card-link-value svg {
  stroke: #6fb6e8;
}

/* =====================================================
   Store / Hinweis
   ===================================================== */
.store {
  padding-bottom: 96px;
}

.support-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(58, 159, 224, 0.28);
  background: rgba(58, 159, 224, 0.06);
}
.support-notice svg {
  flex: none;
  margin-top: 1px;
  stroke: #6fb6e8;
}
.support-notice p {
  margin: 0;
  font-size: 14px;
  color: #bdcde0;
  line-height: 1.55;
}
.support-notice strong {
  color: #fff;
}

.status-area {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 15px;
}
.status-area.error {
  border-color: rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.06);
  color: #ffd2d2;
}
.status-area small {
  color: var(--text-faint);
}

/* =====================================================
   Skeleton-Loading
   ===================================================== */
.skeleton-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.skeleton-card {
  height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.02) 70%
    )
    var(--bg-1);
  background-size: 220% 100%;
  animation: peakSweep 1.4s ease-in-out infinite;
}

/* =====================================================
   Kategorien
   ===================================================== */
.category-block {
  scroll-margin-top: 86px;
  margin-top: 72px;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--blue);
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5fa9da;
}
.category-head {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}
.category-head h2 {
  margin: 0;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 540px;
}
.category-head .count {
  margin: 0;
  max-width: 360px;
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.section-headline {
  margin: 0 0 26px;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  color: #fff;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch; /* alle Karten einer Reihe gleich hoch */
}
/* Die data-reveal-Hülle muss die volle Höhe weitergeben */
.package-grid > [data-reveal] {
  display: flex;
}

/* ---------- Paket-Karten ---------- */
.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%; /* fuellt die data-reveal-Huelle → gleiche Breite/Hoehe */
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.12s ease-out;
  transform: perspective(820px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.pkg-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 34px 70px -26px rgba(58, 159, 224, 0.4);
}
.pkg-media {
  position: relative;
  height: 150px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 14%, rgba(58, 159, 224, 0.18), transparent 62%),
    var(--bg-1);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.pkg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(140, 200, 255, 0.12) 50%,
    transparent 58%
  );
  transform: translateX(-160%);
  opacity: 0;
}
.pkg-card:hover .pkg-media::after {
  opacity: 1;
  animation: peakSweepOnce 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.pkg-media img {
  height: 120px;
  width: auto;
  object-fit: contain;
}
img.pkg-emblem {
  height: 74px;
  width: auto;
  filter: drop-shadow(0 0 22px rgba(58, 159, 224, 0.6));
}
span.pkg-emblem {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(58, 159, 224, 0.18), rgba(20, 59, 94, 0.3));
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--blue-soft);
}
.pkg-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(58, 159, 224, 0.45);
  background: rgba(58, 159, 224, 0.12);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.pkg-badge svg {
  flex: none;
}
.pkg-badge.sub {
  border-color: rgba(94, 207, 130, 0.5);
  background: linear-gradient(
    135deg,
    rgba(94, 207, 130, 0.22),
    rgba(94, 207, 130, 0.1)
  );
  color: var(--green-soft);
  box-shadow: 0 0 0 1px rgba(94, 207, 130, 0.08),
    0 6px 18px -8px rgba(94, 207, 130, 0.5);
}
.pkg-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pkg-name {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.pkg-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pkg-desc p {
  margin: 0;
}
.pkg-foot {
  margin-top: auto; /* schiebt Footer immer nach unten → gleiche Kartenhöhen */
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line-soft);
}
.pkg-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pkg-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
  min-width: 0;
  flex: 1; /* Preis bekommt den verfügbaren Platz, Button bleibt rechts */
}
.pkg-price .was {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.pkg-price .now {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap; /* "/ monatlich" darf umbrechen statt den Button zu überlappen */
  gap: 2px 5px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  min-width: 0;
}
.pkg-price .now .amount {
  white-space: nowrap; /* der eigentliche Preis bleibt in einer Zeile */
}
.pkg-price .per {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--green-soft);
  white-space: nowrap;
}
.pkg-price .per[hidden] {
  display: none;
}

/* Umschalter: Einmalig / Abo (Tebex-type "both") – Segmented Control im Footer */
.pkg-type-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  isolation: isolate;
}
/* Gleitender Indikator hinter dem aktiven Tab */
.pkg-type-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  box-shadow: 0 6px 18px -8px rgba(58, 159, 224, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Indikator nach rechts schieben, wenn "Abo" aktiv ist */
.pkg-type-toggle[data-active="subscription"]::before {
  transform: translateX(calc(100% + 4px));
}
/* Unsichtbarer Platzhalter mit gleicher Hoehe wie der echte Toggle */
.pkg-type-toggle.is-placeholder {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}
.pkg-type-toggle .type-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}
.pkg-type-toggle .type-opt svg {
  flex: none;
  opacity: 0.85;
}
.pkg-type-toggle .type-opt:hover {
  color: #cfe2f2;
}
.pkg-type-toggle .type-opt.active {
  color: #fff;
}

/* Kompakte, einzeilige Notiz für wiederkehrende Zahlungen.
   Behaelt ihren Platz auch im versteckten Zustand → konstante Kartenhoehe. */
.pkg-sub-note {
  margin: 0;
  min-height: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--green-soft);
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkg-sub-note svg + * {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* "versteckt" = unsichtbar, belegt aber weiterhin Platz */
.pkg-sub-note[hidden],
.pkg-sub-note.is-placeholder {
  display: flex;
  visibility: hidden;
}
.pkg-sub-note svg {
  flex: none;
  color: var(--green);
  animation: sub-spin 9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pkg-sub-note svg {
    animation: none;
  }
}
@keyframes sub-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Abo-/both-Karten nutzen denselben neutralen Rand + blauen Hover wie alle anderen
   (keine grüne Umrandung mehr). */
.add-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(58, 159, 224, 0.55);
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
  cursor: pointer;
  transition: 0.18s;
}
.add-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.add-btn svg {
  display: block;
}
.add-btn .check-icon {
  display: none;
}
.add-btn.added {
  border-color: rgba(94, 207, 130, 0.5);
  background: rgba(94, 207, 130, 0.16);
  color: var(--green-soft);
  animation: peakPop 0.32s ease;
}
.add-btn.added .add-icon {
  display: none;
}
.add-btn.added .check-icon {
  display: block;
}

/* =====================================================
   Letzte Unterstützer
   ===================================================== */
.recent {
  margin-top: 80px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.recent-card:hover {
  border-color: rgba(58, 159, 224, 0.4);
  transform: translateY(-2px);
}
.recent-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(160deg, var(--blue), #143b5e);
}
.recent-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.recent-info strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.recent-info span {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-info small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 11, 17, 0.6);
  padding: 44px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
}
.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  color: #fff;
}
.footer-note {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-note strong {
  color: #cfe2f2;
}
.footer-legal {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.footer-legal-link {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================
   Warenkorb-Drawer
   ===================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 4, 9, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay:not([hidden]) {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateX(106%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: 0.18s;
}
.icon-btn:hover {
  border-color: var(--blue);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}
.cart-empty {
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-align: center;
  margin-top: 44px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-thumb {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue), #0c1a2e);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  overflow: hidden;
}
.cart-item-thumb img {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.cart-item-info h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.cart-per {
  color: var(--text-faint);
}
.cart-sub-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(94, 207, 130, 0.35);
  background: rgba(94, 207, 130, 0.1);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.qty-control button {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: 0.18s;
}
.qty-control button:hover {
  border-color: var(--blue);
}
.qty-control span {
  min-width: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.cart-item-remove {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
  color: var(--text-faint);
  transition: 0.18s;
}
.cart-item-remove:hover {
  color: var(--danger);
  border-color: rgba(255, 99, 99, 0.4);
  background: rgba(255, 99, 99, 0.08);
}

.cart-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-0);
}

/* Discord-ID Eingabefeld (Pflicht) */
.discord-field {
  margin-bottom: 16px;
}
.discord-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.discord-field label svg {
  color: #5865f2; /* Discord-Blurple */
}
.discord-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.discord-field input::placeholder {
  color: var(--text-faint);
}
.discord-field input:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}
.discord-hint {
  margin: 7px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-faint);
}
.discord-hint a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.discord-hint.invalid {
  color: var(--danger);
}
.discord-hint.invalid a {
  color: var(--danger);
}
.discord-hint-sep {
  margin: 0 1px;
  color: var(--text-faint);
}

/* Discord-Login (OAuth) */
.btn-discord {
  border-color: rgba(88, 101, 242, 0.6);
  background: linear-gradient(150deg, #5865f2, #4752c4);
  color: #fff;
}
.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-discord svg {
  flex: none;
}

.discord-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.08);
}
.discord-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.discord-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.discord-user-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.discord-user-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-logout {
  flex: none;
  margin-left: auto;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.18s;
}
.discord-logout:hover {
  color: var(--danger);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.cart-total-row span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cart-total-row strong {
  font-weight: 700;
  font-size: 23px;
  color: #fff;
}
.cart-secure {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Login-Schritt ---------- */
.login-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.login-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 159, 224, 0.4);
  background: rgba(58, 159, 224, 0.08);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue-soft);
}
.login-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.btn-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.18s;
}
.btn-link:hover {
  color: var(--text);
}

/* ---------- Finalizing ---------- */
#cartFinalizing {
  text-align: center;
  padding: 12px 0 6px;
}
.finalizing-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(58, 159, 224, 0.25);
  border-top-color: var(--blue);
  animation: peakSpin 0.8s linear infinite;
}
.finalizing-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* =====================================================
   Toasts
   ===================================================== */
.toast-stack {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  max-width: 90vw;
}
.toast {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: #0b121c;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(58, 159, 224, 0.5);
  animation: peakToastIn 0.25s ease;
}
.toast.success {
  border-color: rgba(94, 207, 130, 0.5);
}
.toast.error {
  border-color: rgba(255, 107, 107, 0.5);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .discord-link span {
    display: none;
  }
  .hero-inner {
    padding: 64px 26px 56px;
    gap: 36px;
  }
}

@media (max-width: 540px) {
  .container {
    padding-inline: 18px;
  }
  .discord-link {
    padding: 0 11px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] {
    animation: none !important;
  }
  .pkg-card {
    transform: none !important;
  }
}
