/* Raijin2 – Itemshop und Einzahlung. Aufbau wie das Shop-Fenster im Spiel, Farben "Royal Storm" (siehe site.css).
   WICHTIG (Firefox): hier KEIN mix-blend-mode, kein isolation und keine negativen z-index-Werte.
   Ebenen: Buehne (Bild + Verlauf als Hintergrund) < Fenster < Untermenue (z-index 20) < Dialog (Top-Layer des Browsers). */

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.22em; }

/* ---------- Buehne: Artwork der Startseite, abgedunkelt ---------- */
.shop-stage {
  flex: 1 0 auto; min-height: calc(100vh - 69px); padding: 26px 20px 44px;
  background:
    linear-gradient(180deg, rgba(4, 11, 36, 0.62) 0%, rgba(4, 11, 36, 0.5) 40%, rgba(4, 11, 36, 0.9) 100%),
    url("../img/hero-2000.webp") 70% 12% / cover no-repeat,
    var(--navy-deep);
}
main:has(> .shop-stage) { display: flex; flex-direction: column; }

/* ---------- Fenster ---------- */
.shopwin {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px;
  background: rgba(5, 13, 42, 0.94);
  border: 1px solid rgba(91, 140, 255, 0.4); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(1, 4, 16, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.shopwin__close {
  position: absolute; top: -15px; right: -15px; z-index: 5;
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  color: #fff; background: #0a1a4f; border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 6px 18px rgba(1, 4, 16, 0.6);
}
.shopwin__close:hover { background: var(--accent); color: #fff; }
.shopwin__top {
  padding: 12px 18px 12px;
  background: linear-gradient(180deg, rgba(14, 34, 98, 0.78), rgba(8, 20, 62, 0.78));
  border: 1px solid rgba(91, 140, 255, 0.28); border-radius: 14px;
}

/* Kopfzeile: Logo, Account, Guthaben, Verlauf, Lager, Sprache, Abmelden, "Raijincoins kaufen!" */
.shopbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.shopbar__logo { display: flex; flex: none; margin: -6px 0 -6px -6px; }
.shopbar__logo img { display: block; width: 132px; height: 66px; filter: drop-shadow(0 4px 16px rgba(61, 123, 255, 0.5)); }
.shopbar__tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  font: 600 1rem/1 var(--font-body); color: #fff; text-decoration: none; white-space: nowrap;
  background: rgba(7, 19, 56, 0.78); border: 1px solid rgba(91, 140, 255, 0.42); border-radius: 10px;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
a.chip:hover, button.chip:hover, .chip.is-active { background: rgba(61, 123, 255, 0.24); border-color: var(--line); color: #fff; }
span.chip { cursor: default; }
.chip--icon { width: 46px; padding: 0; justify-content: center; }
.chip--lang { font-size: 0.86rem; letter-spacing: 0.04em; }
.chip--coins strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.chip__unit { font-weight: 500; font-size: 0.86rem; color: var(--muted); }
.chip .coin { vertical-align: 0; }
.cta {
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px;
  font: 700 1rem/1 var(--font-body); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #fff; background: linear-gradient(180deg, #7fb0ff 0%, #3d7bff 52%, #2b62e6 100%);
  border: 1px solid #9cc0ff; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(61, 123, 255, 0.5), 0 8px 26px rgba(61, 123, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: filter 0.15s, box-shadow 0.15s;
}
.cta:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 0 0 1px #6fa0ff, 0 10px 34px rgba(111, 160, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* Navigation: Haus, ALLE ITEMS, BELIEBT, LIMITIERT, Suche */
.shopnav { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(91, 140, 255, 0.22); }
.shopnav__home {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; margin-right: 6px;
  color: #dfe9ff; background: rgba(7, 19, 56, 0.78); border: 1px solid rgba(91, 140, 255, 0.42); border-radius: 10px;
}
.shopnav__home:hover { color: #fff; border-color: var(--line); }
.shopnav__home.is-active { color: #fff; background: linear-gradient(180deg, #6fa0ff, #2f66e0); border-color: #9cc0ff; }
.shopnav__link {
  padding: 10px 16px; font: 700 1.05rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: #eaf1ff; border-radius: 999px; white-space: nowrap;
}
.shopnav__link:hover { color: #fff; background: rgba(61, 123, 255, 0.16); }
.shopnav__link.is-active { color: #fff; background: rgba(61, 123, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(111, 160, 255, 0.5); }
.shopnav__search { position: relative; margin: 0 0 0 auto; width: 270px; flex: 0 1 270px; }
.shopnav__search .ico { position: absolute; left: 13px; top: 50%; margin-top: -0.62em; color: var(--muted); pointer-events: none; }
.shopnav__search input { min-height: 44px; padding-left: 40px; background: rgba(3, 9, 30, 0.75); border-color: rgba(91, 140, 255, 0.35); }

/* ---------- Kacheln links + Inhalt ---------- */
.shopwin__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.shopwin__body > .shopwin__content:first-child { grid-column: 1 / -1; }
.shopwin__content { min-width: 0; outline: none; }
.shopcats > ul { border: 1px solid rgba(91, 140, 255, 0.34); border-radius: 14px; background: linear-gradient(180deg, rgba(14, 34, 98, 0.7), rgba(7, 18, 56, 0.85)); }
.shopcat { position: relative; }
.shopcat + .shopcat { border-top: 1px solid rgba(91, 140, 255, 0.22); }
.shopcat__tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  min-height: 92px; padding: 12px 8px;
  font: 700 0.86rem/1.15 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; text-decoration: none;
  color: #dfe9ff; border: 1px solid transparent; border-radius: 13px;
  transition: background-color 0.15s, color 0.15s;
}
.shopcat__tile .ico { width: 28px; height: 28px; color: #cfe0ff; }
.shopcat.has-subs > .shopcat__tile::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 6px; height: 6px;
  border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg);
}
.shopcat:hover > .shopcat__tile, .shopcat:focus-within > .shopcat__tile { color: #fff; background: rgba(61, 123, 255, 0.16); }
.shopcat.is-active > .shopcat__tile { color: #fff; background: linear-gradient(180deg, rgba(61, 123, 255, 0.42), rgba(61, 123, 255, 0.16)); border-color: var(--line); }
.shopcat.is-active > .shopcat__tile .ico, .shopcat:hover > .shopcat__tile .ico { color: #fff; }
/* Aufklapp-Untermenue rechts neben der Kachel (Maus und Tastatur). Der Abstand ist Innenabstand, damit die Maus ihn ueberqueren kann. */
.shopcat__menu { display: none; position: absolute; top: 0; left: 100%; z-index: 20; padding-left: 8px; min-width: 248px; }
.shopcat__menu-box { padding: 8px; background: #0a1845; border: 1px solid rgba(91, 140, 255, 0.5); border-radius: 12px; box-shadow: 0 18px 44px rgba(1, 4, 16, 0.75); }
.shopcat__menu-title { margin: 4px 8px 8px; padding-bottom: 8px; font: 700 0.8rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(91, 140, 255, 0.25); }
.shopcat__menu a { display: block; padding: 9px 12px; color: #eaf1ff; text-decoration: none; border-radius: 8px; font-weight: 500; }
.shopcat__menu a:hover, .shopcat__menu a[aria-current="page"] { color: #fff; background: rgba(61, 123, 255, 0.24); }
@media (hover: hover) and (min-width: 901px) {
  .shopcat:hover > .shopcat__menu, .shopcat:focus-within > .shopcat__menu { display: block; }
}

/* ---------- Startansicht ---------- */
.shop-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; }
.shop-banner, .shop-teaser {
  display: flex; flex-direction: column; align-items: flex-start; min-height: 232px; padding: 24px 28px;
  color: #fff; text-decoration: none; border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 12px; overflow: hidden;
}
.shop-banner { background: linear-gradient(90deg, rgba(4, 11, 36, 0.9) 0%, rgba(7, 19, 56, 0.55) 55%, rgba(7, 19, 56, 0.15) 100%), url("../img/hero-1280.webp") 78% 16% / cover no-repeat, var(--navy); }
.shop-teaser { background: linear-gradient(160deg, rgba(38, 78, 190, 0.5), rgba(8, 20, 62, 0.9) 62%); }
.shop-banner:hover, .shop-teaser:hover { color: #fff; border-color: var(--line); }
.shop-banner__title, .shop-teaser__title { font: 700 1.55rem/1.2 var(--font-display); text-shadow: 0 2px 16px rgba(4, 11, 36, 0.9); }
.shop-teaser__text { margin-top: 12px; color: #dbe6ff; max-width: 30ch; }
.shop-banner__btn {
  margin-top: auto; padding: 11px 22px; font: 700 0.9rem/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 999px; background: rgba(4, 11, 36, 0.55);
}
.shop-banner:hover .shop-banner__btn, .shop-teaser:hover .shop-banner__btn { background: #fff; color: var(--navy); }
.shop-rowhead { display: flex; align-items: center; gap: 14px; margin: 22px 0 12px; }
.shop-rowhead h2 { margin: 0; font-size: 1.45rem; }
.shop-rowhead a { margin-left: auto; font-weight: 600; text-decoration: none; }
.pill { padding: 6px 14px; font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #dfe9ff; border: 1px solid rgba(111, 160, 255, 0.6); border-radius: 999px; background: rgba(61, 123, 255, 0.14); }
.carousel { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
.carousel__nav { display: flex; align-items: center; justify-content: center; padding: 0; color: #dfe9ff; background: rgba(3, 9, 30, 0.7); border: 1px solid rgba(91, 140, 255, 0.25); border-radius: 10px; cursor: pointer; }
.carousel__nav:hover { color: #fff; border-color: var(--line); background: rgba(61, 123, 255, 0.2); }
.no-js .carousel { grid-template-columns: minmax(0, 1fr); }
.no-js .carousel__nav { display: none; }
.carousel__track { display: flex; gap: 12px; padding: 10px 0 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 2px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .icard { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; }
.shop-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 2px 2px; color: var(--muted); font-size: 0.95rem; }
.shop-note .ico { margin-top: 0.15em; color: var(--accent-hover); }

/* ---------- Listenansicht ---------- */
.shop-listhead { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
.shop-listhead h1 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.15rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.shop-listhead__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hover); box-shadow: 0 0 10px rgba(111, 160, 255, 0.9); }
.shop-listhead__count { min-width: 30px; padding: 3px 9px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--muted); border: 1px solid rgba(91, 140, 255, 0.35); border-radius: 999px; font-variant-numeric: tabular-nums; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 10px; }
.shop-subs { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.shop-subs a { display: block; padding: 7px 14px; font-weight: 600; font-size: 0.93rem; color: #dfe9ff; text-decoration: none; border: 1px solid rgba(91, 140, 255, 0.35); border-radius: 999px; background: rgba(7, 19, 56, 0.6); }
.shop-subs a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (hover: none), (max-width: 900px) { .shop-subs { display: flex; } }
.shop-empty { margin: 0; padding: 46px 24px; text-align: center; color: var(--muted); border: 1px dashed rgba(91, 140, 255, 0.3); border-radius: 12px; }
.shop-empty h1 { color: #fff; font-size: 1.6rem; }
.shop-flash { margin-bottom: 14px; }
.shop-flash a { margin-left: 8px; font-weight: 600; white-space: nowrap; }

/* ---------- Item-Karte ---------- */
.icard {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 14px 14px;
  background: linear-gradient(180deg, rgba(14, 34, 98, 0.72), rgba(7, 18, 56, 0.9));
  border: 1px solid rgba(91, 140, 255, 0.28); border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.icard:hover { border-color: rgba(111, 160, 255, 0.7); box-shadow: 0 10px 30px rgba(1, 4, 16, 0.5); }
.icard__flags { position: absolute; top: -9px; left: 12px; display: flex; gap: 6px; margin: 0; }
.flag { padding: 3px 8px; font: 700 0.72rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; border-radius: 5px; color: #fff; }
.flag--new { background: #1fae63; box-shadow: 0 2px 10px rgba(31, 174, 99, 0.5); }
.flag--sale { background: #e0354b; }
.icard__title { margin: 0 4px; font: 600 1.14rem/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard__body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 124px; padding: 14px; background: rgba(3, 9, 30, 0.6); border-radius: 10px; }
.iicon {
  display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; flex: none; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(61, 123, 255, 0.3), rgba(11, 29, 85, 0.5) 70%);
  border: 1px solid rgba(91, 140, 255, 0.35); border-radius: 10px;
}
.iicon img { display: block; width: auto; height: auto; max-width: 64px; max-height: 80px; filter: drop-shadow(0 4px 8px rgba(1, 4, 16, 0.7)); }
.iicon .ico { width: 34px; height: 34px; color: var(--muted); }
.iicon--sm { width: 40px; height: 40px; border-radius: 8px; }
.iicon--sm img { max-width: 30px; max-height: 34px; }
.iicon--lg { width: 104px; height: 104px; }
.icard__text { min-width: 0; }
.icard__desc { margin: 0; font-size: 0.93rem; line-height: 1.42; color: #c9d8fa; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.icard__sub { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.icard__sub--limited { color: var(--warn); }
.icard__buy { display: flex; gap: 8px; margin: auto 0 0; }
/* Zahlenfelder: site.css gestaltet nur Text-/Suchfelder - hier Farbe und Schrift selbst setzen (Firefox zeigt sonst dunkle Schrift). */
.icard__qty, .stepper input { color: #fff; font: 600 1rem/1.2 var(--font-body); border: 1px solid rgba(91, 140, 255, 0.35); border-radius: var(--radius-sm); }
.icard__qty:focus, .stepper input:focus { outline: none; border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(111, 160, 255, 0.3); }
.icard__qty { width: 68px !important; flex: none; min-height: 48px !important; padding: 6px 4px !important; text-align: center; font-weight: 600 !important; background: rgba(3, 9, 30, 0.75) !important; border-color: rgba(91, 140, 255, 0.35) !important; }
/* Preis-Knopf (im Vorbild Gold, bei uns Blau) */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px;
  font: 700 1.12rem/1 var(--font-body); color: #fff; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #78aaff 0%, #3d7bff 50%, #2a5fdf 100%);
  border: 1px solid #8fb6ff; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(61, 123, 255, 0.32);
  cursor: pointer; transition: filter 0.15s, transform 0.1s;
}
.pbtn:hover { color: #fff; filter: brightness(1.13); }
.pbtn:active { transform: translateY(1px); }
.pbtn:disabled { filter: grayscale(0.7) brightness(0.75); cursor: not-allowed; }
.pbtn s { font-weight: 500; font-size: 0.9rem; opacity: 0.75; }
.pbtn .ico { width: 1.1em; height: 1.1em; }
.pbtn .coin { vertical-align: 0; }
.pbtn--wide { width: 100%; }
.pbtn--sm { flex: none; min-height: 42px; padding: 0 20px; font-size: 1rem; }

/* ---------- Tafeln, Tabellen (Verlauf, Lager) ---------- */
.shop-panel { padding: 18px 20px; background: linear-gradient(180deg, rgba(14, 34, 98, 0.6), rgba(7, 18, 56, 0.85)); border: 1px solid rgba(91, 140, 255, 0.28); border-radius: 14px; }
.shop-panel--narrow { max-width: 560px; }
.shop-h2 { margin: 22px 2px 10px; font: 700 1rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.shop-table { padding: 4px 0; overflow-x: auto; }
.shop-table table { width: 100%; border-collapse: collapse; }
.shop-table th, .shop-table td { padding: 10px 16px; text-align: left; border-top: 1px solid rgba(91, 140, 255, 0.16); white-space: nowrap; }
.shop-table thead th { border-top: 0; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.shop-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.shop-table__item { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: normal; }
.shop-steps h2 { margin: 0 0 10px; font: 600 1.1rem/1.3 var(--font-body); letter-spacing: 0; }
.shop-steps ol { counter-reset: s; display: grid; gap: 8px; }
.shop-steps li { counter-increment: s; position: relative; padding-left: 38px; color: #dbe6ff; }
.shop-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; border: 1px solid var(--line); border-radius: 50%; }
.shop-back { margin: 16px 2px 0; }
.shop-back a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }

/* ---------- Dialog (Kaufbestaetigung, "Einzahlung startet bald") ---------- */
.shop-dialog {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto;
  color: #fff; background: #08154a; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(1, 4, 16, 0.85);
}
.shop-dialog::backdrop { background: rgba(2, 6, 22, 0.74); }
.shop-dialog--small { width: min(430px, calc(100vw - 24px)); }
.shop-dialog__close { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: #dfe9ff; background: rgba(7, 19, 56, 0.8); border: 1px solid rgba(91, 140, 255, 0.4); border-radius: 50%; cursor: pointer; }
.shop-dialog__close:hover { color: #fff; border-color: var(--line); }
.shop-dialog__body { padding: 26px 26px 24px; }
.shop-dialog__body.is-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.soon { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.soon h2 { margin: 4px 0 0; font-size: 1.5rem; }
.soon p { margin: 0 0 8px; color: #dbe6ff; }

.buy__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; padding-right: 34px; }
.buy__title { margin: 0 0 6px; font: 600 1.35rem/1.25 var(--font-body); letter-spacing: 0; }
.buy__text { margin: 0; font-size: 0.95rem; color: #c9d8fa; }
.buy__limited { margin: 8px 0 0; font-size: 0.9rem; color: var(--warn); }
.buy__variants { margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 8px; }
.buy__variants legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.buy__variant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; font-weight: 500; background: rgba(3, 9, 30, 0.6); border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 10px; cursor: pointer; }
.buy__variant:hover { border-color: rgba(111, 160, 255, 0.7); }
.buy__variant:has(input:checked) { border-color: var(--line); background: rgba(61, 123, 255, 0.2); box-shadow: 0 0 0 1px var(--line); }
.buy__variant input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.buy__variant-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy__variant-price s { font-weight: 400; color: var(--muted); }
.buy__amount { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.buy__amount label { margin: 0; font-weight: 600; }
.stepper { display: inline-flex; border: 1px solid rgba(91, 140, 255, 0.4); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; min-height: 44px; padding: 0; font: 700 1.3rem/1 var(--font-body); color: #fff; background: rgba(61, 123, 255, 0.18); border: 0; cursor: pointer; }
.stepper button:hover { background: rgba(61, 123, 255, 0.4); }
.stepper input { width: 72px !important; min-height: 44px !important; padding: 4px !important; text-align: center; font-weight: 600 !important; border: 0 !important; border-radius: 0 !important; background: rgba(3, 9, 30, 0.7) !important; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.icard__qty { -moz-appearance: textfield; appearance: textfield; }
.icard__qty::-webkit-outer-spin-button, .icard__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.no-js .stepper button { display: none; }
.buy__facts { margin: 0 0 14px; padding: 4px 14px; background: rgba(3, 9, 30, 0.6); border-radius: 10px; }
.buy__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(91, 140, 255, 0.16); }
.buy__facts div:first-child { border-top: 0; }
.buy__facts dt { color: var(--muted); }
.buy__facts dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.buy__sum dd strong { font-size: 1.25rem; }
.buy__short { margin: 0 0 12px; color: var(--bad); font-weight: 500; }
.buy__short a { margin-left: 6px; }
.buy__hint { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.buy__hint .ico { margin-top: 0.1em; color: var(--accent-hover); }
.buy__login p { color: #dbe6ff; }

/* ---------- Einzahlung ---------- */
.paybar { position: sticky; top: 0; z-index: 50; background: rgba(4, 10, 34, 0.94); border-bottom: 1px solid rgba(91, 140, 255, 0.35); }
.paybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1180px; min-height: 62px; margin: 0 auto; padding: 8px 20px; }
.paybar__title { display: inline-flex; align-items: center; gap: 12px; font: 700 1.15rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.paybar__title .ico { color: var(--accent-hover); }
.paybar__tools { display: flex; align-items: center; gap: 8px; }
.paybar .chip { height: 42px; }
.paybar .chip--icon { width: 42px; }
.shop-stage--pay { padding-top: 30px; }
.paywin { width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px; background: rgba(5, 13, 42, 0.95); border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 6px; box-shadow: 0 30px 80px rgba(1, 4, 16, 0.7); }
.paywin__inner { padding: 24px 26px 26px; border: 1px solid rgba(91, 140, 255, 0.34); border-radius: 14px; background: linear-gradient(180deg, rgba(12, 30, 88, 0.55), rgba(6, 15, 48, 0.6)); }
.paywin__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(91, 140, 255, 0.24); }
.paywin__badge { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex: none; color: #dfe9ff; background: linear-gradient(180deg, rgba(61, 123, 255, 0.4), rgba(11, 29, 85, 0.7)); border: 1px solid rgba(111, 160, 255, 0.55); border-radius: 12px; }
.paywin__badge .ico { width: 26px; height: 26px; }
.paywin__head h1 { margin: 0 0 2px; font-size: 1.6rem; }
.paywin__head p { margin: 0; color: var(--muted); }
.paywin__cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.paybox { padding: 18px; border: 1px solid rgba(91, 140, 255, 0.28); border-radius: 12px; background: rgba(4, 11, 36, 0.5); }
.paybox h2 { margin: 0 0 12px; font: 700 1rem/1.3 var(--font-body); letter-spacing: 0.01em; }
.paybox--side h2 + .paymethods + h2 { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(91, 140, 255, 0.22); }
.paybox__hint { margin: -6px 0 16px; font-size: 0.9rem; color: var(--muted); }
.paybox__fine { margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }
.paymethods { display: grid; gap: 10px; }
.paymethod { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 66px; border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 10px; overflow: hidden; background: rgba(11, 29, 85, 0.45); }
.paymethod.is-selected { border-color: var(--line); box-shadow: 0 0 0 1px var(--line), 0 0 22px rgba(61, 123, 255, 0.3); background: rgba(61, 123, 255, 0.16); }
.paymethod__logo { display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(160deg, #4d86ff, #1d49b8); border-right: 1px solid rgba(91, 140, 255, 0.3); }
.paymethod__logo .ico { width: 30px; height: 30px; }
.paymethod__text { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 12px; line-height: 1.25; }
.paymethod__text strong { font-weight: 600; }
.paymethod__text small { font-size: 0.82rem; color: var(--muted); }
.paymethod__soon { align-self: flex-start; margin-top: 4px; padding: 2px 9px; font: 700 0.68rem/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 999px; }
.payhow { counter-reset: h; display: grid; gap: 10px; }
.payhow li { counter-increment: h; position: relative; padding-left: 36px; font-size: 0.93rem; color: #dbe6ff; line-height: 1.4; }
.payhow li::before { content: counter(h); position: absolute; left: 0; top: -1px; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; color: #fff; border: 1px solid var(--line); border-radius: 50%; }
.paygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.paycard { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 14px 14px; border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 12px; background: linear-gradient(180deg, rgba(14, 34, 98, 0.6), rgba(7, 18, 56, 0.85)); }
.paycard--popular, .paycard--best { border-color: var(--line); box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.6), 0 12px 30px rgba(61, 123, 255, 0.22); }
.paycard__flag { position: absolute; top: -13px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; font: 700 0.72rem/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #10266e; border: 1px solid var(--accent-hover); border-radius: 999px; white-space: nowrap; }
.paycard__flag .ico { width: 0.95em; height: 0.95em; vertical-align: 0; color: var(--accent-hover); }
.paycard__coins { display: flex; align-items: flex-start; gap: 10px; min-height: 50px; }
.paycard__coins > .ico { width: 26px; height: 26px; margin-top: 2px; color: #a9c6ff; }
.paycard__coins h3 { margin: 0; font: 700 1.2rem/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.paycard__coins h3 span { font-weight: 600; }
.paycard__coins p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.paycard__coins p strong { color: #fff; font-weight: 700; }
.paycard__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; }
.paycard__price { font: 700 1.12rem/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.paywin__foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 18px 12px 8px; font-size: 0.93rem; color: var(--muted); }
.paywin__foot a { color: #fff; font-weight: 600; }

/* Admin: Pakete */
.pkg-form { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.1fr 0.8fr auto auto; gap: 8px; align-items: center; }
.pkg-form input, .pkg-form select { min-height: 40px; padding: 6px 10px; }
.pkg-form label { margin: 0; font-size: 0.85rem; color: var(--muted); }
.pkg-row { padding: 12px 0; border-top: 1px solid var(--line-faint); }
.pkg-row:first-of-type { border-top: 0; }
.pkg-meta { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }
.pkg-check { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pkg-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Grosse Bildschirme: Fenster fuellt die Hoehe, der Inhalt rollt im Fenster ---------- */
@media (min-width: 901px) and (min-height: 640px) {
  .shopwin { max-height: calc(100vh - 69px - 70px); min-height: 560px; }
  .shopwin__body { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .shopwin__content { height: 100%; overflow-y: auto; padding: 0 6px 4px 0; scrollbar-width: thin; scrollbar-color: rgba(91, 140, 255, 0.55) transparent; }
  .shopcats { position: relative; z-index: 2; }
}
/* Niedrige Fenster (z. B. 1366 x 768): engere Abstaende, damit alle Kacheln ins Fenster passen. */
@media (min-width: 901px) and (max-height: 860px) {
  .shop-stage { padding-top: 16px; padding-bottom: 20px; }
  .shopwin { max-height: calc(100vh - 69px - 36px); padding: 12px; }
  .shopwin__top { padding: 8px 16px 10px; }
  .shopbar__logo img { width: 112px; height: 56px; }
  .shopnav { margin-top: 8px; padding-top: 10px; }
  .shopwin__body { margin-top: 12px; }
  .shopcat__tile { min-height: 78px; gap: 6px; padding: 8px; font-size: 0.8rem; }
  .shopcat__tile .ico { width: 24px; height: 24px; }
  .shop-banner, .shop-teaser { min-height: 150px; padding: 16px 22px; }
  .shop-banner__title, .shop-teaser__title { font-size: 1.35rem; }
  .shop-teaser__text { margin-top: 6px; }
  .shop-banner__btn { padding: 9px 18px; }
  .shop-rowhead { margin: 12px 0 2px; }
  .shop-rowhead h2 { font-size: 1.25rem; }
  .icard { gap: 10px; padding: 14px 12px 12px; }
  .icard__body { min-height: 104px; padding: 10px 12px; grid-template-columns: 80px minmax(0, 1fr); }
  .icard .iicon { width: 80px; height: 80px; }
  .pbtn { min-height: 44px; }
  .icard__qty { min-height: 44px !important; }
}
@media (min-width: 1560px) {
  /* Wie im Vorbild steht das Fenster links, rechts bleibt die Figur des Artworks sichtbar. */
  .shopwin { margin-left: max(4vw, calc((100vw - 1120px) / 2 - 190px)); }
}

/* ---------- Schmalere Bildschirme ---------- */
@media (max-width: 1100px) {
  .chip__unit { display: none; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__track > .icard { flex-basis: calc((100% - 12px) / 2); }
  .paygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-stage { padding: 14px 10px 30px; }
  .shopwin { padding: 10px; border-radius: 14px; }
  .shopwin__close { top: 8px; right: 8px; width: 34px; height: 34px; }
  .shopwin__top { padding: 10px 12px; }
  .shopbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .shopbar__logo { align-self: flex-start; margin: -4px 0 -8px -4px; }
  .shopbar__logo img { width: 112px; height: 56px; }
  .shopbar__tools { justify-content: flex-start; }
  .cta { flex: 1 1 100%; justify-content: center; }
  .shopnav { flex-wrap: wrap; }
  .shopnav { gap: 2px; }
  .shopnav__home { width: 40px; height: 40px; margin-right: 4px; }
  .shopnav__link { padding: 9px 9px; font-size: 0.88rem; letter-spacing: 0.02em; }
  .shopnav__search { order: 5; flex: 1 1 100%; width: auto; margin: 4px 0 0; }
  .shopwin__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shopcats > ul { display: flex; overflow-x: auto; scrollbar-width: none; }
  .shopcats > ul::-webkit-scrollbar { display: none; }
  .shopcat { flex: 1 0 104px; }
  .shopcat + .shopcat { border-top: 0; border-left: 1px solid rgba(91, 140, 255, 0.22); }
  .shopcat__tile { min-height: 76px; font-size: 0.74rem; gap: 6px; }
  .shopcat__tile .ico { width: 22px; height: 22px; }
  .shopcat.has-subs > .shopcat__tile::after { display: none; }
  .shop-hero { grid-template-columns: minmax(0, 1fr); }
  .shop-banner, .shop-teaser { min-height: 150px; padding: 18px 20px; }
  .shop-teaser__text { max-width: none; margin-bottom: 14px; }
  .paywin__cols { grid-template-columns: minmax(0, 1fr); }
  .paywin__inner { padding: 18px 16px 20px; }
  .paybar__title { font-size: 0.95rem; letter-spacing: 0.04em; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .carousel { grid-template-columns: minmax(0, 1fr); }
  .carousel__nav { display: none; }
  .carousel__track > .icard { flex-basis: 86%; }
  .shop-rowhead { flex-wrap: wrap; gap: 8px 12px; }
  .shop-rowhead h2 { font-size: 1.2rem; }
  .paygrid { grid-template-columns: minmax(0, 1fr); }
  .paybar__inner { padding: 6px 10px; }
  .paybar__title span { display: none; }
  .paybar .chip--coins .chip__unit { display: none; }
  .paywin { padding: 6px; }
  .paywin__head h1 { font-size: 1.3rem; }
  .shop-dialog__body { padding: 22px 16px 18px; }
  .buy__head { grid-template-columns: minmax(0, 1fr); padding-right: 30px; }
  .iicon--lg { width: 84px; height: 84px; }
  .shop-table th, .shop-table td { padding: 9px 10px; }
  .pkg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
