/* =========================================================
   BeeBlocks Shop – PayNow Template
   ========================================================= */

:root {
    --primary: #F6B630;
    --on-primary: #2A1A00;
    --bg: #0F1A33;
    --card: #22335A;
    --highlight: #F6B630;
    --logo-h: 96px;

    --primary-dark: color-mix(in srgb, var(--primary) 72%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
    --bg-deep: color-mix(in srgb, var(--bg) 70%, #000);
    --card-2: color-mix(in srgb, var(--card) 82%, #fff);
    --panel: color-mix(in srgb, var(--card) 70%, var(--bg));
    --text: #ffffff;
    --muted: #a7b1c6;
    --danger: #E5534B;
    --java: #4EA3F0;
    --bedrock: #6CC94F;
    --gold: #EBBE45;

    --radius: 6px;
    --radius-sm: 4px;
    --shadow-3d: inset 0 -7px 0 rgba(0, 0, 0, .2);
    --font-head: "Rubik", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hintergrund ---------- */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        var(--bg);
}
.page-bg.has-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .35;
}
.page-bg.has-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, var(--bg) 92%);
}
.page-bg.combs::before {
    content: "";
    position: absolute; inset: 0;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 56px 98px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}

/* ---------- Header ---------- */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 40px;
}
.site-nav { display: flex; gap: 32px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 10px;
    color: color-mix(in srgb, #fff 78%, transparent);
    font-weight: 500; font-size: 18px;
    transition: color .15s;
}
.nav-link:hover { color: #fff; }

.brand { display: flex; justify-content: center; }
.brand-img { max-height: var(--logo-h); width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; transform: rotate(-2deg); }
.wordmark-name {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 3px 0 var(--primary-dark), 0 6px 0 rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.5);
    text-align: center;
    max-width: 560px;
}
.wordmark-tag {
    margin-top: 10px;
    padding: 3px 20px;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-head);
    font-weight: 800; font-size: 14px; letter-spacing: .08em;
    text-transform: uppercase;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.server-box {
    justify-self: end;
    display: flex; align-items: center; gap: 18px;
    padding: 20px 26px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
}
.server-ip { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.server-ip i { font-size: 13px; }
.server-ip:hover { color: var(--primary); }
.server-sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); }
.server-discord { font-size: 22px; line-height: 1; }
.server-discord:hover { color: #8b9bff; }

/* ---------- Login-Leiste ---------- */
.loginbar-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 40px;
}
.loginbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 104px;
    padding: 18px 26px 24px 40px;
    background: #F3F7FB;
    color: #18202F;
    border-radius: var(--radius);
    box-shadow: inset 0 -8px 0 #D3DAE4, 0 18px 40px rgba(0,0,0,.25);
}
.lb-logins { display: flex; flex-direction: column; gap: 6px; }
.lb-login {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 500; color: #18202F;
    padding: 2px 0;
}
.lb-login:hover { color: var(--primary-dark); }
.lb-user { display: flex; align-items: center; gap: 18px; }
.lb-avatar { width: 56px; height: 56px; border-radius: var(--radius); image-rendering: pixelated; background: #dfe5ee; }
.lb-name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.lb-logout { color: #6b7587; font-size: 16px; }
.lb-logout:hover { color: var(--danger); }
.lb-platforms { display: flex; gap: 6px; margin-top: 4px; }
.lb-pill { padding: 2px 12px; border-radius: var(--radius-sm); font-size: 14px; color: #6b7587; }
.lb-pill.is-active { background: var(--primary); color: var(--on-primary); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 64px;
    padding: 0 28px 7px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .01em;
    text-transform: uppercase;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-3d);
    transition: transform .12s ease, filter .15s ease, box-shadow .12s ease;
    user-select: none;
}
.btn::before { /* Glanz */
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(140% 120% at 0% 100%, rgba(255,255,255,.18) 0 30%, transparent 31%),
        linear-gradient(100deg, transparent 0 88%, rgba(255,255,255,.14) 88% 93%, transparent 93%);
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.btn-block { width: 100%; }

.sparkle::after { /* kleine Funkel-Punkte */
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    --sp: rgba(255,255,255,.75);
    background:
        radial-gradient(circle, var(--sp) 0 1.6px, transparent 2.2px) 9% 26% / 8px 8px no-repeat,
        radial-gradient(circle, var(--sp) 0 1.2px, transparent 1.8px) 15% 72% / 8px 8px no-repeat,
        radial-gradient(circle, var(--sp) 0 1.2px, transparent 1.8px) 86% 30% / 8px 8px no-repeat,
        radial-gradient(circle, var(--sp) 0 1.6px, transparent 2.2px) 92% 66% / 8px 8px no-repeat,
        linear-gradient(var(--sp), var(--sp)) 6% 22% / 8px 2px no-repeat,
        linear-gradient(var(--sp), var(--sp)) calc(6% + 3px) calc(22% - 3px) / 2px 8px no-repeat;
}
.btn-white.sparkle::after, .btn-buy.sparkle::after { --sp: rgba(0,0,0,.18); }
.btn-danger.sparkle::after { --sp: rgba(255,255,255,.7); }

.btn-buy { background: var(--primary); color: var(--on-primary); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: inset 0 -7px 0 #DCE3EC; }
.btn-danger { background: var(--danger) !important; color: #fff !important; box-shadow: inset 0 -7px 0 rgba(0,0,0,.22) !important; }
.btn-gold { background: var(--gold); color: #4a3200; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); }
.btn.is-disabled, .btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.5); transform: none; }
.btn.is-busy { pointer-events: none; opacity: .75; }

.btn-cart {
    min-height: 58px; font-size: 18px; text-transform: none; font-weight: 700;
    background: var(--primary); color: var(--on-primary);
    padding: 0 22px 6px;
    min-width: 200px;
}
.btn-cart.is-empty { background: #7D838E; color: rgba(255,255,255,.75); }
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 26px; height: 26px; padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.3);
    font-size: 14px; font-family: var(--font-body);
}

/* ---------- Sektionen ---------- */
.main { padding-bottom: 40px; }
.shop-section { padding-top: 24px; padding-bottom: 56px; scroll-margin-top: 140px; }
.section-title {
    display: flex; align-items: center; justify-content: center; gap: 22px;
    margin: 0 0 36px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.01em;
    text-align: center;
}
.section-title i { font-size: .9em; }

.section-banner {
    position: relative;
    display: flex; align-items: center; gap: 24px;
    min-height: 140px;
    margin-bottom: 36px;
    padding-right: 0;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--banner) 28%, transparent);
    border: 1px solid color-mix(in srgb, var(--banner) 65%, transparent);
    overflow: hidden;
}
.section-banner-img { width: 130px; height: 140px; object-fit: contain; object-position: left bottom; }
.section-banner-icon {
    width: 130px; height: 140px; display: grid; place-items: center;
    font-size: 64px; color: var(--banner);
    filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--banner) 50%, transparent));
}
.section-banner p { flex: 1; margin: 0; font-size: 21px; font-weight: 600; line-height: 1.6; }
.section-banner-btn {
    margin-left: auto;
    align-self: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    background: var(--banner);
    color: #fff;
    font-size: 20px; font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.section-banner-btn:hover { filter: brightness(1.08); }

/* ---------- Produktkarten ---------- */
.card-grid { display: grid; gap: 32px; }
.card-grid + .card-grid { margin-top: 32px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--single { grid-template-columns: minmax(0, 640px); justify-content: center; }

.card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding: 36px 32px 44px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), 0 20px 40px rgba(0,0,0,.18);
    text-align: center;
    overflow: hidden;
    transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-media {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 26px;
}
.card--lg .card-media { height: 250px; }
.card-media img {
    position: absolute; inset: 0;
    height: 100%; width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,.35));
    transition: transform .25s ease;
}
.card:hover .card-media img { transform: scale(1.05) rotate(-1deg); }
.card-media-fallback { font-size: 80px; color: var(--primary); opacity: .85; line-height: 1; }
.card-media .card-media-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.card-name { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.2; }
.card-name button { text-align: inherit; }
.card-name button:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-price {
    margin: 6px 0 34px;
    font-family: var(--font-head);
    font-weight: 700; font-size: 26px;
    color: var(--primary);
    display: flex; gap: 12px; align-items: baseline; justify-content: center; flex-wrap: wrap;
}
.card-price s { color: var(--danger); font-size: .82em; text-decoration-thickness: 2px; }
.card .btn { width: 100%; margin-top: auto; }

.card--featured {
    background: var(--highlight);
    color: var(--on-primary);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.14), 0 0 70px color-mix(in srgb, var(--highlight) 38%, transparent);
}
.card--featured .card-price { color: var(--on-primary); }
.card--featured .card-media-fallback { color: var(--on-primary); }

.ribbon {
    position: absolute;
    top: 0; left: 0;
    width: 190px; height: 190px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.ribbon span {
    position: absolute;
    top: 52px; left: -62px;
    width: 280px;
    padding: 9px 0;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #D6403A, #B22D27);
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800; font-size: 17px; letter-spacing: .04em;
    text-transform: uppercase; text-align: center;
}
.badge-best {
    position: absolute; top: 22px; right: 22px; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 20px 13px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #F2CB55, #D9A82C);
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.25);
    color: #3b2800;
    font-family: var(--font-head);
    font-weight: 800; font-size: 18px; letter-spacing: .02em;
}

/* Listenansicht */
.list-cards { display: flex; flex-direction: column; gap: 32px; }
.row-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr minmax(240px, 360px);
    align-items: center; gap: 32px;
    padding: 40px 54px 48px 44px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), 0 20px 40px rgba(0,0,0,.18);
}
.row-card.card--featured { background: var(--highlight); }

/* „Beste Wahl“ als Rahmen (Standard) */
.featured-outline .card--featured,
.featured-outline .row-card.card--featured {
    background: var(--card);
    color: #fff;
    box-shadow: inset 0 0 0 3px var(--highlight), inset 0 -8px 0 rgba(0,0,0,.2), 0 0 60px color-mix(in srgb, var(--highlight) 28%, transparent);
}
.featured-outline .card--featured .card-price { color: var(--primary); }
.featured-outline .card--featured .card-media-fallback { color: var(--primary); }
.featured-outline .card--featured .btn-white:not(.btn-danger) {
    background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-3d);
}
.row-card .badge-best { top: -12px; right: -12px; }
.row-media { position: relative; display: block; height: 130px; }
.row-media img { position: absolute; inset: 0; }
.row-media .card-media-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.row-media img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.row-media .card-media-fallback { font-size: 64px; }
.row-info .card-price { justify-content: flex-start; margin: 8px 0 0; }
.row-info .card-name { font-size: 26px; }
.row-action .btn { width: 100%; }

.empty-note {
    padding: 40px; border-radius: var(--radius);
    background: rgba(255,255,255,.05); color: var(--muted); text-align: center;
}

/* ---------- Ränge ---------- */
.shop-section--wide { max-width: 1300px; }
.ranks-scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.ranks-inner { min-width: calc(var(--cols) * 170px); }
.ranks-inner.has-table { min-width: calc(var(--cols) * 170px + 220px); }
.ranks-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.has-table .ranks-grid { grid-template-columns: minmax(200px, 1.15fr) repeat(var(--cols), minmax(0, 1fr)); }
.ranks-head { position: relative; z-index: 1; }

.rank-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding: 34px 12px 40px;
    background: var(--rank);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 -12px 0 rgba(0,0,0,.18);
}
.ranks-head .rank-card:first-of-type,
.ranks-corner + .rank-card { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.ranks-head .rank-card:last-child { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.rank-info { position: absolute; top: 12px; left: 14px; font-size: 18px; color: rgba(255,255,255,.9); }
.rank-info:hover { color: #fff; transform: scale(1.1); }
.rank-sub { margin-top: 8px; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: rgba(255,255,255,.62); letter-spacing: .02em; }
.rank-name {
    margin: 8px 0 22px;
    font-family: var(--font-head); font-weight: 900;
    font-size: clamp(15px, 1.4vw, 22px); line-height: 1.1;
    text-shadow: 0 2px 0 rgba(0,0,0,.12);
    overflow-wrap: break-word; hyphens: auto;
}
.rank-price {
    padding: 8px 20px;
    border-radius: var(--radius);
    background: rgba(0,0,0,.2);
    font-family: var(--font-head); font-weight: 700; font-size: 18px;
    white-space: nowrap;
}
.rank-old { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 15px; }
.rank-card .btn { width: 100%; margin-top: 30px; min-height: 58px; font-size: 18px; padding: 0 10px 7px; }
.btn-rank { color: color-mix(in srgb, var(--rank) 80%, #000); }
.rank-card .btn-danger { color: #fff; }

.ranks-table {
    position: relative;
    margin-top: 40px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 88%, #000);
    overflow: hidden;
    max-height: 640px;
    transition: max-height .4s ease;
}
.ranks-table.is-open { max-height: 6000px; }
.ranks-table:not(.is-open)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 70%, #000));
    pointer-events: none;
}
.ranks-table-title {
    padding: 42px 76px;
    background: color-mix(in srgb, var(--card) 75%, #8aa0d0);
    font-family: var(--font-head); font-weight: 800; font-size: 28px;
}
.ranks-group {
    padding: 22px 44px;
    background: color-mix(in srgb, var(--card) 85%, #8aa0d0);
    font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.ranks-row { min-height: 92px; }
.ranks-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.ranks-label {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 18px 20px 18px 44px;
    font-size: 21px; font-weight: 500;
}
.ranks-cell {
    display: grid; place-items: center;
    padding: 16px 10px;
    text-align: center; font-size: 21px;
    background: color-mix(in srgb, var(--rank) 7%, transparent);
}
.ranks-cell .yes { color: #6CC94F; font-size: 30px; }
.ranks-cell .no { color: #E5534B; font-size: 30px; opacity: .8; }
.rank-colored { color: var(--rank); font-weight: 700; filter: brightness(1.15); }
.hint { position: relative; display: inline-grid; place-items: center; color: rgba(255,255,255,.45); font-size: 16px; cursor: help; }
.hint:hover::after, .hint:focus::after {
    content: attr(data-hint);
    position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
    width: max-content; max-width: 280px;
    padding: 10px 14px; border-radius: var(--radius);
    background: #0b1020; color: #fff;
    font-size: 14px; font-weight: 500; line-height: 1.45;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    z-index: 5;
}
.ranks-more {
    position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3;
    display: flex; justify-content: center;
}
.ranks-table.is-open .ranks-more { position: static; padding: 30px 0 40px; }
.ranks-more .btn { min-width: 400px; }

/* ---------- Promo-Banner ---------- */
.promo-wrap { padding-top: 40px; padding-bottom: 120px; }
.promo {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px;
    align-items: center;
    min-height: 420px;
    padding: 0 60px 0 40px;
    border-radius: var(--radius);
    background: var(--promo);
    box-shadow: inset 0 -12px 0 rgba(0,0,0,.18);
    overflow: hidden;
}
.promo-media { align-self: end; display: flex; justify-content: center; }
.promo-media img { max-height: 400px; width: auto; object-fit: contain; }
.promo-media--icon { align-self: center; font-size: 200px; color: rgba(255,255,255,.92); filter: drop-shadow(0 18px 40px rgba(0,0,0,.25)); transform: rotate(-8deg); }
.promo-title { margin: 0 0 18px; font-family: var(--font-head); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.promo-text { margin: 0 0 30px; font-size: 21px; line-height: 1.7; color: rgba(255,255,255,.82); }
.promo-btn { min-height: 60px; text-transform: none; font-size: 19px; color: var(--promo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding: 100px 0 150px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-top {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
    padding-bottom: 100px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-top > :first-child { justify-self: start; }
.footer-top > :last-child { justify-self: end; }
.footer-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    min-width: 280px; height: 82px; padding: 0 36px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.06);
    font-size: 22px; font-weight: 700;
    transition: background .15s;
}
.footer-pill:hover { background: rgba(255,255,255,.12); }
.brand--footer .brand-img { max-height: calc(var(--logo-h) * 1.35); }
.footer-bottom { padding-top: 50px; text-align: center; font-size: 18px; color: rgba(255,255,255,.88); }
.footer-bottom p { margin: 0 0 30px; line-height: 1.7; }
.footer-links { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }

/* ---------- Kategorie-Leiste unten ---------- */
.catnav {
    position: fixed; left: 50%; bottom: 22px; z-index: 35;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
}
.catnav-inner {
    display: flex; gap: 4px;
    padding: 8px;
    border-radius: var(--radius);
    background: rgba(28, 32, 42, .82);
    border: 2px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-link {
    padding: 11px 18px;
    border-radius: var(--radius);
    font-size: 19px; font-weight: 600;
    white-space: nowrap;
    color: rgba(255,255,255,.92);
    transition: background .15s, color .15s;
}
.catnav-link:hover { background: rgba(255,255,255,.08); }
.catnav-link.is-active { background: #F3F5F8; color: #141a26; }

/* ---------- Modals ---------- */
.modal-layer, .drawer-layer { position: fixed; inset: 0; z-index: 60; }
.modal-layer { display: flex; align-items: flex-start; justify-content: center; padding: 70px 24px 40px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 9, 17, .78); }
.modal-box {
    position: relative;
    width: 100%; max-width: 860px;
    margin: auto 0;
    padding: 56px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 70%, var(--bg));
    border: 2px solid rgba(255,255,255,.16);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    animation: pop .2s ease;
}
.modal-box--wide { max-width: 1240px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
    position: absolute; top: 0; right: -92px;
    width: 66px; height: 66px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background: var(--danger); color: #fff;
    font-size: 26px;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,.2);
    z-index: 3;
}
.modal-close:hover { filter: brightness(1.08); }
.modal-title { margin: 0; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 4vw, 52px); line-height: 1.1; }
.modal-sub { margin: 16px 0 56px; text-align: center; font-size: 26px; color: var(--muted); font-weight: 500; }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.platforms--single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.platform {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
    min-height: 340px;
    padding: 54px 64px 56px;
    border-radius: var(--radius);
    color: #fff; text-align: left;
    box-shadow: inset 0 -12px 0 rgba(0,0,0,.18);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.platform::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='0' y='0' width='40' height='40' fill='%23ffffff' fill-opacity='.05'/%3E%3Crect x='40' y='40' width='40' height='40' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
    pointer-events: none;
}
.platform:hover { transform: translateY(-3px); box-shadow: inset 0 -12px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.75); }
.platform--java { background: var(--java); }
.platform--bedrock { background: var(--bedrock); }
.platform-name { position: relative; font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; }
.platform-desc { position: relative; font-size: 22px; line-height: 1.4; max-width: 75%; }
.platform-arrow {
    position: absolute; right: 44px; bottom: 54px;
    width: 76px; height: 76px; display: grid; place-items: center;
    border-radius: var(--radius); background: #fff; font-size: 28px;
}
.platform--java .platform-arrow { color: var(--java); }
.platform--bedrock .platform-arrow { color: var(--bedrock); transform: rotate(-45deg); }

.platform-help {
    display: flex; gap: 40px; align-items: center;
    margin-top: 32px;
    padding: 50px 64px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.07);
}
.platform-help-icon { font-size: 110px; color: var(--primary); line-height: 1; }
.platform-help h3 { margin: 0 0 14px; font-family: var(--font-head); font-weight: 800; font-size: 34px; }
.platform-help p { margin: 0; font-size: 20px; line-height: 1.8; color: var(--muted); }
.platform-help b { color: #fff; }

.login-head {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 170px;
    border-radius: var(--radius);
    background: var(--java);
    box-shadow: inset 0 -12px 0 rgba(0,0,0,.15);
}
.login-head--bedrock { background: var(--bedrock); }
.login-head h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); }
.login-back {
    position: absolute; left: 54px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 26px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.18); font-weight: 700; font-size: 20px;
}
.login-back:hover { background: rgba(255,255,255,.28); }
.login-form {
    margin-top: 44px;
    padding: 70px 66px;
    border-radius: var(--radius);
    background: var(--card);
}
.login-form h3 { margin: 0 0 54px; font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); }
.login-row { display: flex; gap: 24px; }
.login-input-wrap {
    flex: 1;
    display: flex; align-items: center;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 80%, #4d6db0);
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.12);
}
.login-prefix { padding-left: 42px; font-size: 22px; font-weight: 700; color: var(--primary); }
.login-input {
    flex: 1; min-width: 0;
    height: 98px; padding: 0 42px;
    border: 0; outline: 0; background: transparent;
    color: #fff; font-size: 22px;
}
.has-prefix .login-input { padding-left: 4px; }
.login-input::placeholder { color: rgba(255,255,255,.55); }
.login-input-wrap:focus-within { box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), 0 0 0 3px var(--primary); }
.login-row .btn { min-width: 300px; min-height: 98px; text-transform: none; font-size: 24px; }
.login-error { margin: 16px 0 0; color: #ff8a84; font-weight: 600; }

/* Produkt-Modal */
.pmodal-top { display: flex; gap: 34px; align-items: center; margin-bottom: 30px; padding-right: 10px; }
.pmodal-media { flex: 0 0 170px; height: 170px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255,255,255,.05); }
.pmodal-media img { height: 140px; width: 140px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.pmodal-name { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.pmodal-price { justify-content: flex-start; margin: 10px 0 0; }
.pmodal-desc { padding: 28px 32px; border-radius: var(--radius); background: var(--card); color: #d9deea; max-height: 46vh; overflow-y: auto; }
.pmodal-options { display: grid; gap: 18px; padding: 28px 32px; border-radius: var(--radius); background: var(--card); }
.pmodal-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.pmodal-actions .btn { flex: 1 1 220px; }
.soldout { color: var(--danger); font-weight: 800; font-family: var(--font-head); font-size: 22px; }
.field { display: grid; gap: 8px; font-weight: 600; }
.field select, .field input {
    height: 56px; padding: 0 16px;
    border-radius: var(--radius); border: 2px solid rgba(255,255,255,.1);
    background: color-mix(in srgb, var(--card) 80%, #000); color: #fff;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--primary); }

.rich { line-height: 1.7; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h1, .rich h2, .rich h3 { font-family: var(--font-head); color: #fff; line-height: 1.2; }
.rich a { color: var(--primary); text-decoration: underline; }
.rich ul { padding-left: 1.3em; }
.rich img { border-radius: var(--radius); }

/* ---------- Warenkorb ---------- */
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(580px, 100%);
    display: flex; flex-direction: column;
    padding: 40px 44px 36px;
    background: color-mix(in srgb, var(--card) 85%, #4d6db0);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer-close { position: fixed; top: 40px; right: calc(min(580px, 100%) + 34px); }
.drawer-hero {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    min-height: 228px;
    padding: 30px 30px 30px 54px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.14);
    overflow: hidden;
}
.drawer-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 0 50%, rgba(255,255,255,.14) 50% 62%, transparent 62%);
}
.drawer-hero > div { position: relative; }
.drawer-hero h2 { margin: 0 0 24px; font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1.1; }
.drawer-logout {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 2px solid currentColor;
    font-size: 19px; font-weight: 600;
    background: rgba(255,255,255,.18);
}
.drawer-logout:hover { background: rgba(255,255,255,.3); }
.drawer-skin { position: relative; height: 200px; width: auto; margin: -10px -6px -40px 0; image-rendering: pixelated; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.drawer-summary { display: flex; justify-content: space-between; margin: 46px 0 30px; font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.drawer-items { display: flex; flex-direction: column; gap: 16px; }
.drawer-item {
    position: relative;
    display: grid; grid-template-columns: 70px 1fr auto 24px; gap: 18px; align-items: center;
    padding: 24px 22px 24px 26px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 70%, #4d6db0);
}
.drawer-item-img { width: 70px; height: 62px; display: grid; place-items: center; color: var(--primary); font-size: 30px; }
.drawer-item-img img { height: 100%; width: 100%; object-fit: contain; }
.drawer-item-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.25; }
.drawer-item-price { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; color: var(--primary); font-weight: 700; font-size: 18px; }
.drawer-tag { padding: 1px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 600; }
.qty {
    height: 40px; padding: 0 10px; border-radius: var(--radius); border: 0;
    background: rgba(255,255,255,.1); color: #fff; font-weight: 700;
}
.qty option { color: #000; }
.drawer-remove { align-self: start; color: rgba(255,255,255,.7); font-size: 18px; }
.drawer-remove:hover { color: var(--danger); }
.drawer-empty { padding: 50px 0; text-align: center; color: var(--muted); }
.drawer-empty i { font-size: 44px; opacity: .6; }
.drawer-note {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin-top: 32px;
    padding: 26px 32px;
    border-radius: var(--radius);
    background: #E9ECF1; color: #1d2433;
    font-weight: 600; font-size: 17px; line-height: 1.6;
}
.drawer-note i { font-size: 22px; }
.drawer-footer { margin-top: auto; padding-top: 40px; }
.drawer-total { margin-bottom: 30px; text-align: center; font-size: 22px; color: var(--muted); font-weight: 600; }
.drawer-total strong { margin-left: 8px; color: #fff; font-family: var(--font-head); font-size: 28px; }
.drawer-footer .btn { min-height: 86px; text-transform: none; font-size: 24px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 20px; left: 50%; z-index: 80;
    display: flex; align-items: center; gap: 12px;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border-radius: var(--radius);
    background: #1b2335; color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    font-weight: 600;
    transform: translate(-50%, -150%);
    transition: transform .25s ease;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast--error i { color: #ff7b73; }
.toast--success i { color: #6CC94F; }
.toast--info i, .toast--warning i { color: var(--primary); }

/* ---------- Unterseiten ---------- */
.page-card {
    padding: 56px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.2);
}
.page-title { margin: 0 0 24px; font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; }
.back-link { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 24px; color: var(--muted); font-weight: 600; }
.back-link:hover { color: #fff; }

.product-page { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: start; }
.product-page .card-media { height: 360px; margin: 0; border-radius: var(--radius); background: rgba(255,255,255,.04); }
.product-page .card-price { justify-content: flex-start; margin: 0 0 28px; }
.product-page .pmodal-actions { margin: 0 0 32px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.table th { color: var(--muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.status { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); font-size: 13px; font-weight: 700; }
.status--good { background: rgba(108, 201, 79, .18); color: #8de070; }
.status--bad { background: rgba(229, 83, 75, .18); color: #ff8a84; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
    .modal-close { right: 16px; top: 16px; width: 52px; height: 52px; font-size: 22px; }
    .drawer-close { right: calc(min(580px, 100%) + 20px); }
}
@media (max-width: 1100px) {
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .row-card { grid-template-columns: 110px 1fr; padding: 32px; }
    .row-action { grid-column: 1 / -1; }
    .promo { grid-template-columns: 1fr; padding: 40px 40px 0; }
    .promo-media { order: 2; }
    .promo-media--icon { font-size: 140px; padding-bottom: 30px; }
    .platform { padding: 40px; min-height: 280px; }
    .platform-arrow { right: 30px; bottom: 36px; width: 64px; height: 64px; }
    .platform-help { padding: 36px; gap: 28px; }
    .platform-help-icon { font-size: 72px; }
}
@media (max-width: 900px) {
    .site-header { grid-template-columns: 1fr auto; padding-top: 30px; padding-bottom: 24px; row-gap: 18px; }
    .brand { grid-column: 1 / -1; grid-row: 1; }
    .site-nav { gap: 20px; }
    .nav-link { font-size: 16px; }
    .server-box { padding: 12px 16px; gap: 12px; }
    .server-ip { font-size: 15px; }
    .loginbar { min-height: 84px; padding: 14px 16px 20px 22px; }
    .lb-login { font-size: 17px; }
    .btn-cart { min-width: 0; min-height: 52px; font-size: 16px; }
    .product-page { grid-template-columns: 1fr; }
    .product-page .card-media { height: 260px; }
    .platforms { grid-template-columns: 1fr; gap: 18px; }
    .platform { min-height: 210px; }
    .platform-desc { font-size: 16px; max-width: calc(100% - 80px); }
    .platform-arrow { width: 54px; height: 54px; font-size: 22px; right: 24px; bottom: 28px; }
    .platform { padding: 30px 28px; }
    .modal-box { padding: 72px 22px 26px; }
    .modal-sub { margin-bottom: 30px; font-size: 20px; }
    .platform-help { flex-direction: column; text-align: center; padding: 28px 22px; }
    .platform-help h3 { font-size: 26px; }
    .platform-help p { font-size: 17px; }
    .login-head { min-height: 130px; padding-top: 50px; }
    .login-back { left: 16px; top: 16px; transform: none; padding: 10px 16px; font-size: 16px; }
    .login-form { padding: 32px 22px; margin-top: 22px; }
    .login-form h3 { margin-bottom: 26px; }
    .login-row { flex-direction: column; gap: 14px; }
    .login-input { height: 70px; padding: 0 20px; font-size: 18px; }
    .login-prefix { padding-left: 20px; }
    .login-row .btn { min-width: 0; min-height: 70px; font-size: 20px; }
    .section-banner { flex-wrap: wrap; padding: 20px 0 0; min-height: 0; gap: 12px; }
    .section-banner-img, .section-banner-icon { width: 80px; height: 90px; font-size: 44px; }
    .section-banner p { font-size: 17px; padding-right: 20px; }
    .section-banner-btn { width: 100%; border-radius: 0; text-align: center; font-size: 17px; }
    .footer-top { grid-template-columns: 1fr 1fr; padding-bottom: 50px; }
    .footer-top .brand--footer { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; }
    .footer-top > :first-child, .footer-top > :last-child { justify-self: stretch; }
    .footer-pill { min-width: 0; height: 64px; font-size: 18px; padding: 0 18px; }
    .site-footer { padding: 60px 0 130px; }
    .drawer { padding: 76px 20px 24px; }
    .drawer-close { right: 16px; top: 12px; z-index: 70; width: 48px; height: 48px; }
    .drawer-hero { padding: 24px; min-height: 170px; }
    .drawer-hero h2 { font-size: 26px; }
    .drawer-skin { height: 150px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .card-grid { gap: 20px; }
    .card-grid + .card-grid { margin-top: 20px; }
    .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
    .card { padding: 28px 22px 34px; }
    .card--lg .card-media { height: 190px; }
    .card-name { font-size: 22px; }
    .card-price { font-size: 22px; margin-bottom: 24px; }
    .badge-best { top: 14px; right: 14px; padding: 7px 14px 10px; font-size: 14px; }
    .ribbon span { font-size: 14px; top: 40px; left: -74px; }
    .row-card { grid-template-columns: 80px 1fr; gap: 18px; padding: 26px 20px 30px; }
    .row-media { height: 80px; }
    .row-info .card-name { font-size: 20px; }
    .row-card .badge-best { right: 10px; }
    .section-title { gap: 14px; margin-bottom: 24px; }
    .shop-section { padding-bottom: 36px; }
    .ranks-table-title { padding: 26px 22px; font-size: 22px; }
    .ranks-label { padding: 14px 14px 14px 20px; font-size: 16px; }
    .ranks-cell { font-size: 16px; }
    .has-table .ranks-grid { grid-template-columns: 150px repeat(var(--cols), minmax(150px, 1fr)); }
    .ranks-more .btn { min-width: 0; width: calc(100% - 40px); }
    .promo { padding: 30px 22px 0; }
    .promo-text { font-size: 17px; }
    .catnav { bottom: 12px; }
    .catnav-inner { padding: 6px; }
    .catnav-link { font-size: 15px; padding: 9px 14px; }
    .page-card { padding: 28px 20px; }
    .loginbar { gap: 10px; }
    .lb-avatar { width: 44px; height: 44px; }
    .lb-name { font-size: 16px; }
    .btn-cart { padding: 0 14px 6px; gap: 8px; }
    .wordmark-tag { font-size: 11px; }
    .site-nav { gap: 14px; }
    .nav-link span { display: none; }
    .nav-link { font-size: 20px; }
    .footer-bottom { font-size: 15px; }
    .drawer-item { grid-template-columns: 52px 1fr auto 20px; gap: 12px; padding: 18px 14px; }
    .drawer-item-img { width: 52px; }
    .drawer-summary { font-size: 21px; margin: 30px 0 20px; }
    .drawer-note { padding: 18px; font-size: 15px; }
    .drawer-footer .btn { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Konto ---------- */
.account-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.account-tabs a { padding: 10px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); font-weight: 600; }
.account-tabs a.is-active { background: var(--primary); color: var(--on-primary); }
.acc-row {
    display: grid; grid-template-columns: minmax(0, 2fr) 1fr auto auto; gap: 20px; align-items: center;
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.acc-main { display: grid; gap: 12px; }
.acc-line { display: flex; gap: 16px; align-items: center; }
.acc-img { flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--primary); font-size: 22px; }
.acc-img img { height: 46px; width: 46px; object-fit: contain; }
.acc-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.acc-meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.acc-amount { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--primary); text-align: right; }
.acc-amount small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); }
button.status { cursor: pointer; }
@media (max-width: 760px) {
    .acc-row { grid-template-columns: 1fr auto; }
    .acc-row > .acc-meta { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Produkt-Popup (zweispaltig) ---------- */
.pm { position: relative; width: 100%; max-width: calc(var(--container) - 48px); margin: auto 0; animation: pop .2s ease; }
.pm-close { top: 0; right: -80px; }
.pm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: stretch; }
.pm-left, .pm-right {
    border-radius: var(--radius);
    box-shadow: inset 0 -10px 0 rgba(0,0,0,.18), 0 30px 80px rgba(0,0,0,.45);
}
.pm-left {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 48px 40px 52px;
    background: color-mix(in srgb, var(--card) 72%, #4d6db0);
}
.pm-right {
    padding: 52px 52px 52px;
    background: color-mix(in srgb, var(--card) 85%, #4d6db0);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.pm-media { position: relative; width: 100%; height: 240px; margin-bottom: 26px; }
.pm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.pm-media .card-media-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 100px; }
.pm-name { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.pm-price { margin: 12px 0 0; display: flex; gap: 12px; justify-content: center; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--primary); }
.pm-price s { color: var(--danger); font-size: .75em; }
.pm-actions { width: 100%; margin-top: auto; padding-top: 36px; }
.pm-buttons { display: grid; gap: 12px; }
.pm-actions .btn { width: 100%; min-height: 72px; font-size: 21px; }
.pm-actions .btn-danger { box-shadow: inset 0 -7px 0 rgba(0,0,0,.22), 0 0 0 3px #fff !important; }
.pm-heading { margin: 0 0 20px; font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.2; }
.pm-desc { font-size: 18px; line-height: 1.75; color: #d5dcea; }
.pm-desc strong, .pm-desc b { color: #fff; }
.pm-desc h1, .pm-desc h2, .pm-desc h3, .pm-desc h4 { font-size: 19px; margin: 1.3em 0 .5em; }
.pm-desc p { margin: 0 0 1em; }
.pm-desc ul { padding-left: 1.2em; margin: 0 0 1em; }
.pm-desc li { margin: .25em 0; }
.pm-desc li::marker { color: #fff; }
.pm-options { display: grid; gap: 16px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pm-options .pm-heading { margin-bottom: 4px; }

@media (max-width: 1260px) {
    .pm-close { right: 14px; top: 14px; z-index: 5; width: 48px; height: 48px; font-size: 20px; }
}
@media (max-width: 900px) {
    .pm-grid { grid-template-columns: 1fr; gap: 14px; }
    .pm-right { max-height: none; padding: 28px 22px; }
    .pm-left { padding: 56px 22px 30px; }
    .pm-media { height: 190px; margin-bottom: 18px; }
    .pm-actions { padding-top: 24px; }
    .pm-actions .btn { min-height: 64px; font-size: 19px; }
    .pm-desc { font-size: 16px; }
    .pm-heading { font-size: 21px; margin-bottom: 14px; }
    .pm-name { font-size: 26px; }
}

/* ---------- Karten-Feinschliff (weniger gequetscht) ---------- */
.card-grid { gap: 20px; }
.card-grid + .card-grid { margin-top: 20px; }
.list-cards { gap: 20px; }
.card { padding: 26px 22px 30px; }
.card-media { height: 180px; margin-bottom: 18px; }
.card--lg .card-media { height: 230px; }
.card-name { font-size: 24px; }
.card-price { margin: 4px 0 22px; font-size: 24px; }
.card .btn { min-height: 58px; font-size: 19px; }
.card--sm .ribbon { width: 150px; height: 150px; }
.card--sm .ribbon span { top: 38px; left: -66px; width: 240px; padding: 7px 0; font-size: 14px; }
.card--sm .badge-best { top: 16px; right: 16px; padding: 7px 14px 10px; font-size: 15px; }
@media (max-width: 640px) {
    .card { padding: 24px 18px 26px; }
    .card-media, .card--lg .card-media { height: 170px; }
}

/* ---------- Warenkorb (kompakt, ohne Scrollen) ---------- */
.btn-cart.is-empty, .btn-cart:disabled { cursor: not-allowed; pointer-events: none; transform: none; filter: none; }
.drawer {
    width: min(566px, 100%);
    padding: 28px 32px 32px;
    overflow: hidden;
}
.drawer-close { top: 28px; right: calc(min(566px, 100%) + 24px); }
.drawer-hero {
    min-height: 168px;
    padding: 0 24px 0 40px;
    align-items: center;
    flex-shrink: 0;
}
.drawer-hero h2 { margin: 0 0 18px; font-size: 26px; }
.drawer-logout {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    border-width: 2px;
    background: rgba(255,255,255,.28);
}
.drawer-skin {
    position: absolute; right: 18px; bottom: -58px;
    height: 210px; width: auto; margin: 0;
}
.drawer-summary { margin: 38px 0 22px; font-size: 21px; flex-shrink: 0; }
.drawer-items {
    flex: 0 1 auto; min-height: 0;
    overflow-y: auto; gap: 12px;
    scrollbar-width: thin;
}
.drawer-item {
    grid-template-columns: 52px 1fr auto 18px; gap: 16px;
    padding: 18px 16px 18px 20px;
}
.drawer-item-img { width: 52px; height: 46px; font-size: 24px; }
.drawer-item-name { font-size: 16px; }
.drawer-item-price { font-size: 15px; margin-top: 2px; }
.qty { height: 34px; padding: 0 6px; font-size: 14px; }
.drawer-remove { font-size: 15px; }
.drawer-empty { padding: 30px 0; }
.drawer-note {
    margin-top: 24px; padding: 18px 24px;
    font-size: 15px; line-height: 1.6;
    flex-shrink: 0;
}
.drawer-note i { font-size: 18px; }
.drawer-footer { padding-top: 24px; flex-shrink: 0; }
.drawer-total { margin-bottom: 22px; font-size: 18px; }
.drawer-total strong { font-size: 22px; }
.drawer-footer .btn { min-height: 64px; font-size: 19px; }
@media (max-width: 900px) {
    .drawer { padding: 72px 18px 20px; }
    .drawer-close { right: 14px; top: 12px; }
    .drawer-hero { min-height: 140px; padding: 0 16px 0 22px; }
    .drawer-hero h2 { font-size: 22px; }
    .drawer-skin { height: 170px; bottom: -48px; }
}

/* ---------- Login-Leiste mit Skin ---------- */
.loginbar { padding-left: 32px; min-height: 112px; }
.lb-left { position: relative; display: flex; align-items: center; gap: 28px; padding-left: 112px; align-self: stretch; }
.lb-skin {
    position: absolute; left: 0; bottom: -16px;
    height: 116px; width: 88px; object-fit: contain; object-position: bottom center;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.15));
}
.lb-user-text { display: flex; flex-direction: column; gap: 10px; }
.lb-name { font-size: 20px; font-weight: 500; gap: 14px; }
.lb-logout { color: var(--danger); font-size: 17px; }
.lb-logout:hover { filter: brightness(.85); }
.lb-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: #E3E8EF; width: fit-content; }
.lb-seg-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 500; color: #2a3343;
}
.lb-seg-item:hover { background: rgba(0,0,0,.05); }
.lb-seg-item.is-active { background: var(--primary); color: var(--on-primary); cursor: default; }
@media (max-width: 640px) {
    .loginbar { padding-left: 14px; min-height: 92px; }
    .lb-left { padding-left: 64px; gap: 12px; }
    .lb-skin { height: 84px; width: 56px; bottom: -12px; }
    .lb-name { font-size: 16px; }
    .lb-seg-item { padding: 4px 9px; font-size: 13px; }
    .lb-seg-item i { display: none; }
}

/* ---------- Hinweis-Banner (flacher) ---------- */
.section-banner {
    min-height: 0; gap: 18px; margin-bottom: 24px;
    padding: 10px 0 10px 20px;
    overflow: visible;
}
.section-banner-img { width: 80px; height: 64px; margin: -22px 0 -12px; object-fit: contain; object-position: center bottom; }
.section-banner-icon { width: 56px; height: 52px; font-size: 32px; }
.section-banner p { font-size: 16px; font-weight: 600; line-height: 1.5; }
.section-banner-btn { padding: 10px 22px; font-size: 16px; font-weight: 600; border-radius: var(--radius) 0 0 var(--radius); }
@media (max-width: 900px) {
    .section-banner { padding: 12px 0 0 14px; }
    .section-banner p { font-size: 15px; }
    .section-banner-btn { border-radius: 0 0 var(--radius) var(--radius); margin: 4px 0 0 -14px; width: calc(100% + 14px); }
}

/* ---------- Listen-Karten (flacher) ---------- */
.row-card {
    grid-template-columns: 96px 1fr minmax(200px, 280px);
    gap: 28px;
    padding: 22px 36px 28px 30px;
}
.row-media { height: 84px; }
.row-media .card-media-fallback { font-size: 50px; }
.row-info .card-name { font-size: 21px; }
.row-info .card-price { font-size: 19px; margin-top: 4px; }
.row-action .btn { min-height: 54px; font-size: 18px; }
.row-card .badge-best { top: -12px; right: -10px; padding: 6px 14px 9px; font-size: 14px; }
@media (max-width: 640px) {
    .row-card { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 16px 22px; }
    .row-media { height: 60px; }
}
.lb-login { white-space: nowrap; }
@media (max-width: 640px) {
    .lb-login { font-size: 14px; gap: 8px; }
    .btn-cart { font-size: 14px; padding: 0 10px 6px; min-height: 46px; }
    .btn-cart .cart-count { min-width: 22px; height: 22px; font-size: 12px; }
}
@media (max-width: 380px) {
    .btn-cart > span:first-child { display: none; }
    .btn-cart::before { content: "\f291"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: static; inset: auto; background: none; z-index: 0; }
}

/* ---------- Vergleichspreis ---------- */
.cmp-label { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.pm-cmp { display: inline-flex; gap: 8px; align-items: baseline; }
.pm-cmp s { color: var(--danger); font-size: .75em; }
.rank-card .cmp-label { color: rgba(255,255,255,.75); display: block; margin-top: 6px; }

/* ---------- Skin in der Login-Leiste (groß, links angeschnitten) ---------- */
.loginbar { position: relative; padding-left: 150px; }
.lb-left { padding-left: 0; }
.lb-skin-wrap {
    position: absolute; left: 0; top: 0; bottom: 8px; width: 128px;
    overflow: hidden; pointer-events: none;
    border-top-left-radius: var(--radius);
}
.lb-skin {
    position: absolute; left: 6px; top: 12px; bottom: auto;
    height: 178px; width: auto; max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
}
@media (max-width: 640px) {
    .loginbar { padding-left: 92px; }
    .lb-left { padding-left: 0; }
    .lb-skin-wrap { width: 82px; }
    .lb-skin { left: 2px; top: 10px; height: 130px; }
}

/* ---------- 3D-Skin (Bust-Render) ---------- */
.lb-skin--bust { left: -6px; top: 4px; height: 150px; }
.drawer-skin--bust { right: 6px; bottom: -36px; height: 200px; }
@media (max-width: 640px) {
    .lb-skin--bust { left: -4px; top: 6px; height: 112px; }
    .drawer-skin--bust { height: 160px; bottom: -28px; }
}

/* ---------- Kleinere Kategorie-Überschriften ---------- */
.section-title { font-size: clamp(24px, 2.4vw, 32px); gap: 14px; margin-bottom: 26px; }
.section-title i { font-size: .95em; }
.shop-section { padding-top: 16px; padding-bottom: 44px; }

/* ---------- Kleinere Texte in den Boxen, etwas mehr Abstand zwischen Kategorien ---------- */
.shop-section { padding-top: 24px; padding-bottom: 56px; }
.card-name { font-size: 20px; }
.card-price { font-size: 20px; margin-bottom: 20px; }
.card .btn { min-height: 54px; font-size: 17px; }
.card--lg .card-name { font-size: 22px; }
.card--lg .card-price { font-size: 21px; }
.row-info .card-name { font-size: 19px; }
.row-info .card-price { font-size: 17px; }
.row-action .btn { min-height: 50px; font-size: 16px; }
.rank-name { font-size: clamp(14px, 1.25vw, 20px); }
.rank-sub { font-size: 13px; }
.rank-price { font-size: 16px; padding: 6px 16px; }
.rank-card .btn { min-height: 50px; font-size: 15px; }
.ranks-label, .ranks-cell { font-size: 17px; }
.ranks-table-title { font-size: 22px; padding: 30px 44px; }
.ranks-row { min-height: 72px; }
.section-banner p { font-size: 15px; }
.pm-name { font-size: 26px; }
.pm-price { font-size: 22px; }
.pm-desc { font-size: 16px; }
.pm-heading { font-size: 21px; }
.pm-actions .btn { min-height: 64px; font-size: 19px; }
@media (max-width: 640px) {
    .shop-section { padding-bottom: 40px; }
    .card-name, .card--lg .card-name { font-size: 18px; }
    .card-price, .card--lg .card-price { font-size: 18px; }
    .ranks-label, .ranks-cell { font-size: 15px; }
}

/* ---------- Hover nur auf dem Produktbild ---------- */
.card:hover { transform: none; }
.card:hover .card-media img { transform: none; }
.card-media, .row-media, .pm-media { cursor: pointer; }
.card-media img, .row-media img { transition: transform .2s ease; }
.card-media:hover img, .card-media:focus-visible img,
.row-media:hover img, .row-media:focus-visible img { transform: scale(1.06); }
.card-media:hover .card-media-fallback, .row-media:hover .card-media-fallback { transform: translate(-50%, -50%) scale(1.06); }
.card-media:focus-visible, .row-media:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius); }

/* ---------- Produktnamen ohne Unterstreichung ---------- */
.card-name button:hover, .card-name button:focus { text-decoration: none; }
.card-name button { cursor: pointer; }

/* ---------- Kategorie-Zeilen in der Ränge-Tabelle ---------- */
.ranks-group {
    padding: 26px 44px;
    background: color-mix(in srgb, var(--card) 72%, #8aa0d0);
    font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .01em;
    border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 640px) { .ranks-group { padding: 18px 20px; font-size: 17px; } }

/* ---------- Hinweis-Banner: dünner Rand, Button nur Optik ---------- */
.section-banner { border: 1px solid color-mix(in srgb, var(--banner) 38%, transparent); }
.section-banner-btn { cursor: default; user-select: none; pointer-events: none; }
.section-banner-btn:hover { filter: none; }

/* ---------- Ränge: Text-Skalierung wie Vorbild, Info-Symbol nur bei Hover ---------- */
.rank-card { padding: 26px 12px 34px; }
.rank-sub { margin-top: 0; font-size: 15px; }
.rank-name { margin: 6px 0 16px; font-size: clamp(18px, 1.9vw, 27px); line-height: 1.1; }
.rank-price { font-size: 17px; padding: 7px 18px; }
.rank-card .btn { margin-top: 22px; min-height: 52px; font-size: 16px; }
.rank-info { opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.rank-card:hover .rank-info, .rank-card:focus-within .rank-info { opacity: 1; }
@media (hover: none) { .rank-info { opacity: 1; } }
@media (max-width: 640px) {
    .rank-name { font-size: 18px; }
    .rank-sub { font-size: 13px; }
    .rank-price { font-size: 15px; }
}

/* ---------- Skin-Animation (leichtes Drehen/Zoomen) ---------- */
@keyframes skinIdle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-3deg) scale(1.045); }
}
.lb-skin, .drawer-skin { animation: skinIdle 4.5s ease-in-out infinite; transform-origin: 50% 85%; will-change: transform; }

/* ---------- Kompakte Login-Leiste beim Scrollen ---------- */
.loginbar, .lb-skin-wrap, .lb-skin, .lb-name, .lb-seg, .lb-seg-item, .btn-cart, .lb-login {
    transition: min-height .25s ease, padding .25s ease, border-radius .25s ease, width .25s ease, height .25s ease, top .25s ease, font-size .25s ease, background-color .25s ease;
}
.loginbar-wrap.is-compact .loginbar {
    min-height: 78px; padding-top: 10px; padding-bottom: 18px; padding-left: 124px;
    border-top-left-radius: 0; border-top-right-radius: 0;
}
.loginbar-wrap.is-compact .lb-skin-wrap { width: 104px; border-top-left-radius: 0; }
.loginbar-wrap.is-compact .lb-skin--bust { height: 120px; top: 2px; }
.loginbar-wrap.is-compact .lb-skin--body { height: 140px; top: 6px; }
.loginbar-wrap.is-compact .lb-hallo { display: none; }
.loginbar-wrap.is-compact .lb-user-text { gap: 6px; }
.loginbar-wrap.is-compact .lb-name { font-size: 18px; }
.loginbar-wrap.is-compact .lb-seg { background: transparent; padding: 0; gap: 6px; }
.loginbar-wrap.is-compact .lb-seg-item { font-size: 14px; padding: 3px 10px; }
.loginbar-wrap.is-compact .lb-seg-item i { display: none; }
.loginbar-wrap.is-compact .lb-login { font-size: 16px; }
.loginbar-wrap.is-compact .lb-logins { gap: 2px; }
.loginbar-wrap.is-compact .btn-cart { min-height: 46px; font-size: 15px; }
@media (max-width: 640px) {
    .loginbar-wrap.is-compact .loginbar { min-height: 66px; padding-left: 80px; }
    .loginbar-wrap.is-compact .lb-skin-wrap { width: 72px; }
    .loginbar-wrap.is-compact .lb-skin--bust { height: 92px; }
    .loginbar-wrap.is-compact .lb-login { font-size: 13px; }
}

/* ---------- Login-Popups: gleiche Breite wie Inhaltsboxen ---------- */
.modal-box--wide { max-width: calc(var(--container) - 48px); padding: 40px; }
.modal-box--wide .modal-close { top: 0; right: -80px; width: 56px; height: 56px; font-size: 22px; }
.modal-box--wide .modal-title { font-size: clamp(26px, 3vw, 36px); }
.modal-box--wide .modal-sub { margin: 10px 0 30px; font-size: 18px; }
.modal-box--wide .platforms { gap: 20px; }
.modal-box--wide .platform { min-height: 230px; padding: 34px 38px 36px; box-shadow: inset 0 -9px 0 rgba(0,0,0,.18); }
.modal-box--wide .platform:hover { box-shadow: inset 0 -9px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.75); }
.modal-box--wide .platform-name { font-size: clamp(24px, 2.4vw, 32px); }
.modal-box--wide .platform-desc { font-size: 16px; max-width: calc(100% - 80px); }
.modal-box--wide .platform-arrow { right: 30px; bottom: 34px; width: 56px; height: 56px; font-size: 22px; }
.modal-box--wide .platform-help { margin-top: 20px; padding: 28px 34px; gap: 28px; }
.modal-box--wide .platform-help-icon { font-size: 68px; }
.modal-box--wide .platform-help h3 { margin-bottom: 8px; font-size: 22px; }
.modal-box--wide .platform-help p { font-size: 15px; line-height: 1.7; }
.modal-box--wide .login-head { min-height: 120px; box-shadow: inset 0 -9px 0 rgba(0,0,0,.15); }
.modal-box--wide .login-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.modal-box--wide .login-back { left: 28px; padding: 12px 18px; font-size: 16px; gap: 10px; }
.modal-box--wide .login-form { margin-top: 24px; padding: 40px 38px; }
.modal-box--wide .login-form h3 { margin-bottom: 26px; font-size: clamp(19px, 2vw, 23px); }
.modal-box--wide .login-row { gap: 16px; }
.modal-box--wide .login-prefix { padding-left: 26px; font-size: 18px; }
.modal-box--wide .login-input { height: 68px; padding: 0 26px; font-size: 18px; }
.modal-box--wide .has-prefix .login-input { padding-left: 4px; }
.modal-box--wide .login-row .btn { min-width: 210px; min-height: 68px; font-size: 19px; }
@media (max-width: 1260px) {
    .modal-box--wide .modal-close { right: 14px; top: 14px; width: 48px; height: 48px; font-size: 20px; }
    .modal-box--wide { padding-top: 72px; }
}
@media (max-width: 900px) {
    .modal-box--wide { padding: 72px 22px 26px; }
    .modal-box--wide .platform { min-height: 190px; padding: 28px 26px; }
    .modal-box--wide .platform-help { padding: 26px 22px; }
    .modal-box--wide .login-head { min-height: 110px; padding-top: 44px; }
    .modal-box--wide .login-back { left: 14px; top: 14px; }
    .modal-box--wide .login-form { padding: 28px 20px; }
    .modal-box--wide .login-row .btn { min-width: 0; }
}

/* =====================================================================
   „BESTE WAHL“-KARTE KOMPLETT GOLD (ohne Glow) – v30
   Rückgängig: diesen Block bis zum Dateiende löschen.
   ===================================================================== */
.featured-gold .card--featured,
.featured-gold .row-card.card--featured {
    background: var(--primary);
    color: #2A1A00;
    box-shadow: inset 0 -8px 0 rgba(120,70,0,.28), 0 20px 40px rgba(0,0,0,.18);
}
.featured-gold .card--featured .card-name,
.featured-gold .card--featured .card-name button,
.featured-gold .card--featured .card-price,
.featured-gold .card--featured .card-media-fallback { color: #2A1A00; }
.featured-gold .card--featured .card-price s { color: #A3231D; }
.featured-gold .card--featured .cmp-label { color: rgba(42,26,0,.7); }
.featured-gold .card--featured .btn-buy:not(.btn-danger):not(.is-disabled) {
    background: #fff;
    color: #2A1A00;
    box-shadow: inset 0 -7px 0 #DCE3EC;
}
.featured-gold .card--featured .btn-buy.sparkle::after { --sp: rgba(0,0,0,.18); }
.featured-gold .card--featured .badge-best {
    background: linear-gradient(180deg, #3A2A06, #24190A);
    color: #FFD45E;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.25);
}
/* ===================== Ende „Beste Wahl“ gold ===================== */

/* ---------- Login-Eingabe: weniger Einzug, kein Goldrahmen beim Fokus – v31 ---------- */
.modal-box--wide .login-input, .login-input { padding-left: 20px; }
.modal-box--wide .login-prefix, .login-prefix { padding-left: 20px; }
.modal-box--wide .has-prefix .login-input, .has-prefix .login-input { padding-left: 3px; }
.login-input-wrap:focus-within {
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.12);
    background: color-mix(in srgb, var(--card) 70%, #5b7cc0);
}
.login-input:focus, .login-input:focus-visible { outline: none; }

/* ---------- Mengen-Auswahl im Warenkorb (− Zahl +) – v32 ---------- */
.qty-step {
    display: inline-flex; align-items: center;
    height: 34px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.qty-btn {
    width: 30px; height: 100%; display: grid; place-items: center;
    color: rgba(255,255,255,.75); font-size: 12px;
    transition: background .15s, color .15s;
}
.qty-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.qty-btn:disabled { opacity: .35; pointer-events: none; }
.qty-input {
    width: 36px; height: 100%; padding: 0;
    border: 0; outline: 0; background: transparent;
    color: #fff; text-align: center; font-weight: 700; font-size: 14px;
    -moz-appearance: textfield;
}
.qty-input:focus { background: rgba(255,255,255,.08); }

/* ---------- Abo-Zusatz „/Monat“ am Preis – v34 ---------- */
.per { margin-left: 1px; font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.featured-gold .card--featured .per { color: rgba(42,26,0,.6); }
.rank-price .per, .rank-card .per { color: inherit; opacity: .75; }

/* ---------- Leistung / gegen Flackern – v35 ---------- */
/* Scrollbar-Platz immer reservieren → kein Seitensprung beim Öffnen von Popups/Warenkorb */
html { scrollbar-gutter: stable; }
/* Die Leiste behält ihren Platz (Höhe per JS fixiert); nur der sichtbare Teil schrumpft */
.loginbar-wrap { pointer-events: none; }
.loginbar-wrap .loginbar { pointer-events: auto; }
/* Nur günstige Eigenschaften animieren statt Breite/Höhe/Position */
.loginbar, .lb-skin-wrap, .lb-skin, .lb-name, .lb-seg, .lb-seg-item, .btn-cart, .lb-login {
    transition: min-height .22s ease, padding .22s ease, border-radius .22s ease, font-size .22s ease, background-color .22s ease;
}
/* Unschärfe hinter der Kategorie-Leiste kostet bei jedem Scroll-Frame Rechenzeit → deckende Farbe */
.catnav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 28, 38, .96); }
.catnav { will-change: transform; }
/* Hintergrund auf eigener Ebene, wird beim Scrollen nicht neu gezeichnet */
.page-bg { transform: translateZ(0); }
/* Skin-Animation nur wo sichtbar, ohne Dauer-Ebene */
.lb-skin, .drawer-skin { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
    .lb-skin, .drawer-skin { animation: none; }
}
.lb-skin-wrap, .lb-skin { transition: width .22s ease, height .22s ease, top .22s ease; }

/* ---------- Banner-Bild links bündig, volle Höhe – v36 ---------- */
.section-banner.has-img { padding: 0 0 0 128px; overflow: hidden; min-height: 64px; }
.section-banner.has-img .section-banner-img {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 110px; height: 100%; margin: 0;
    object-fit: cover; object-position: left center;
}
.section-banner.has-img p { padding: 16px 0; }

/* ---------- Gesamtbreite minimal schmaler – v37 ---------- */
:root { --container: 1032px; }
.shop-section--wide { max-width: 1180px; }

/* ---------- Mobile: Header & Hinweis-Banner – v38 ---------- */
@media (max-width: 900px) {
    /* Header: Logo oben, darunter eine ruhige Zeile mit Links links und IP rechts */
    .site-header { grid-template-columns: auto minmax(0, 1fr); padding-top: 18px; padding-bottom: 22px; row-gap: 14px; column-gap: 8px; }
    .server-box { justify-self: stretch; justify-content: space-between; min-width: 0; }
    .server-ip { min-width: 0; }
    .server-ip span { overflow: hidden; text-overflow: ellipsis; }
    .brand-img { max-height: min(var(--logo-h), 96px); }
    .site-nav { gap: 6px; }
    .nav-link span { display: none; }
    .nav-link {
        display: inline-grid; place-items: center;
        width: 40px; height: 40px; padding: 0; border-radius: var(--radius);
        background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
        font-size: 14px; font-weight: 600;
    }
    .nav-link i { font-size: 14px; }
    .server-box { height: 40px; padding: 0 14px; gap: 12px; backdrop-filter: none; }
    .server-ip { font-size: 14px; gap: 8px; }
    .server-ip i { font-size: 10px; }
    .server-discord { font-size: 18px; }
    .loginbar-wrap { margin-bottom: 28px; }

    /* Hinweis-Banner: Bild links (nur neben dem Text), Text, Hinweis darunter */
    .section-banner, .section-banner.has-img {
        display: grid; grid-template-columns: auto 1fr; align-items: center;
        gap: 0 14px; padding: 12px 14px; min-height: 0;
    }
    .section-banner p, .section-banner.has-img p { padding: 0; font-size: 14px; line-height: 1.45; }
    .section-banner-icon { width: 40px; height: 40px; font-size: 24px; margin: 0; }
    .section-banner.has-img { padding: 0 14px 0 0; overflow: hidden; }
    .section-banner.has-img .section-banner-img {
        position: static; grid-row: 1; align-self: stretch;
        width: 64px; height: 100%; min-height: 56px; margin: 0;
        contain: size; object-fit: cover; object-position: left center;
    }
    .section-banner.has-img p { padding: 12px 0; }
    .section-banner-btn, .section-banner.has-img .section-banner-btn {
        grid-column: 1 / -1; position: static;
        width: auto; margin: 12px -14px -12px; padding: 9px 14px;
        border-radius: 0; text-align: center; font-size: 14px;
    }
    .section-banner.has-img .section-banner-btn { margin: 0 -14px 0 0; }
}
@media (max-width: 480px) {
    .btn-cart { min-width: 0; padding: 0 12px 6px; gap: 8px; }
    .btn-cart > span:first-child { display: none; }
    .btn-cart::before { content: "\f291"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: static; inset: auto; background: none; z-index: 0; font-size: 16px; }
}

/* ---------- Mobile: Hinweis-Knopf weg, IP & Links über dem Logo – v39 ---------- */
@media (max-width: 900px) {
    .section-banner-btn, .section-banner.has-img .section-banner-btn { display: none; }
    .site-nav { grid-row: 1; grid-column: 1; }
    .server-box { grid-row: 1; grid-column: 2; }
    .brand { grid-row: 2; grid-column: 1 / -1; }
    .site-header { row-gap: 18px; padding-top: 14px; }
}

/* ---------- Mobile: Zurück nur als Pfeil im Java/Bedrock-Kopf – v40 ---------- */
@media (max-width: 900px) {
    .login-head, .modal-box--wide .login-head { min-height: 76px; padding: 0 12px 0 64px; }
    .login-head h2, .modal-box--wide .login-head h2 { font-size: clamp(16px, 5vw, 22px); text-align: center; white-space: nowrap; }
    .login-back, .modal-box--wide .login-back {
        left: 14px; top: 50%; transform: translateY(-50%);
        width: 42px; height: 42px; padding: 0; justify-content: center; gap: 0; font-size: 17px;
    }
    .login-back-text { display: none; }
}

/* ---------- Login-Popup: X oben rechts über der Box – v41 ---------- */
@media (max-width: 1260px) {
    .modal-box--wide { padding-top: 40px; }
    .modal-box--wide .modal-close { top: -58px; right: 0; width: 46px; height: 46px; font-size: 19px; }
}
@media (max-width: 900px) {
    .modal-box--wide { padding-top: 22px; }
    .modal-layer { padding-top: 74px; }
}

/* ---------- X: Desktop rechts neben der Box, Mobile oben rechts darüber – v42 ---------- */
@media (min-width: 901px) and (max-width: 1260px) {
    .modal-box--wide { max-width: min(calc(var(--container) - 48px), calc(100vw - 150px)); }
    .modal-box--wide .modal-close { top: 0; right: -60px; }
}

/* ---------- Footer kompakter – v43 ---------- */
.site-footer { padding: 56px 0 120px; }
.footer-top { gap: 44px; padding-bottom: 44px; }
.footer-top > :first-child { justify-self: end; }
.footer-top > :last-child { justify-self: start; }
.footer-pill { min-width: 190px; height: 54px; padding: 0 22px; gap: 10px; font-size: 16px; }
.footer-pill i { font-size: 15px; }
.brand--footer .brand-img { max-height: calc(var(--logo-h) * 1.55); }
.footer-bottom { padding-top: 30px; font-size: 15px; color: rgba(255,255,255,.7); }
.footer-bottom p { margin: 0 0 14px; line-height: 1.6; }
.footer-links { gap: 26px; font-size: 14px; }
@media (max-width: 900px) {
    .site-footer { padding: 40px 0 110px; }
    .footer-top { gap: 12px; padding-bottom: 30px; }
    .footer-top .brand--footer { margin-bottom: 10px; }
    .footer-top > :first-child, .footer-top > :last-child { justify-self: stretch; }
    .footer-pill { min-width: 0; height: 48px; font-size: 15px; padding: 0 14px; }
    .brand--footer .brand-img { max-height: min(calc(var(--logo-h) * 1.2), 110px); }
    .footer-bottom { padding-top: 24px; font-size: 13px; }
}

/* ---------- Footer: IP & Discord bündig mit der Inhaltsbreite – v44 ---------- */
.footer-top {
    width: calc(100% - 48px); max-width: calc(var(--container) - 48px);
    padding-left: 0; padding-right: 0;
    grid-template-columns: 1fr auto 1fr; gap: 40px;
}
.footer-top > :first-child, .footer-top > :last-child { justify-self: stretch; min-width: 0; }
@media (max-width: 640px) {
    .footer-top { width: calc(100% - 32px); gap: 12px; }
}
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   TEBEX-ERGÄNZUNGEN
   ===================================================================== */
/* Platzhalter, während die Startseite die Kategorien lädt */
.shop-section.is-loading .skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skeleton-grid span {
    display: block; height: 320px; border-radius: var(--radius);
    background: linear-gradient(100deg, color-mix(in srgb, var(--card) 85%, transparent) 30%, color-mix(in srgb, var(--card) 60%, #fff 6%) 50%, color-mix(in srgb, var(--card) 85%, transparent) 70%);
    background-size: 300% 100%;
    animation: bbShimmer 1.4s ease-in-out infinite;
}
@keyframes bbShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-width: 640px) { .shop-section.is-loading .skeleton-grid { grid-template-columns: 1fr; } .skeleton-grid span { height: 240px; } }
@media (prefers-reduced-motion: reduce) { .skeleton-grid span { animation: none; } }

/* Beschreibung der Kategorie im Hinweis-Banner */
.section-banner-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.section-banner-text p { margin: 0; }
.section-banner-text p + p { margin-top: 6px; }
.section-banner-text a { text-decoration: underline; }
.section-banner.has-img .section-banner-text { align-self: center; padding: 16px 16px 16px 0; }
@media (max-width: 900px) {
    .section-banner-text { font-size: 14px; line-height: 1.45; }
    .section-banner.has-img .section-banner-text { padding: 12px 0; }
}

/* Paket-Detailseite & Login-Seite */
.pm--page { max-width: none; margin: 0; animation: none; }
.modal-box--page { margin: 0 auto; animation: none; }
.login-row--center { justify-content: center; }
.pm-actions .btn-ghost { margin-top: 12px; width: 100%; }

/* Warenkorb-Seite */
.checkout-card { max-width: 640px; margin: 0 auto; }
.checkout-card .drawer-items { overflow: visible; }
.checkout-card .drawer-item { grid-template-columns: 52px 1fr auto 18px; }
.checkout-card .drawer-empty .btn { margin-top: 18px; }

/* Startseiten-Text (optional) */
.home-text .page-card { padding: 28px 32px; }

/* Grundstil für Tebex-Standardseiten (z. B. Optionen, eigene Seiten) */
.main > :not(.shop-section):not(section):not([data-onepage]) { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.main input[type="text"], .main input[type="number"], .main input[type="email"], .main select, .main textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: inherit;
}
.main input:focus, .main select:focus, .main textarea:focus { outline: none; border-color: var(--primary); }
.main select option { color: #111; }
.main label { display: block; margin: 14px 0 6px; font-weight: 600; }
.main button[type="submit"]:not(.btn), .main input[type="submit"] {
    margin-top: 16px; padding: 12px 22px; border: 0; border-radius: var(--radius);
    background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-weight: 800; cursor: pointer;
}
.main .rich a, .page-card a { color: var(--primary); }
