@import url("https://fonts.bunny.net/css?family=outfit:500,600,700|dm-sans:400,500,600,700&display=swap");

/* ============================================================
   RingSMP Store · _base.css  (Struktur + Standardwerte)
   Wird von designs/build.js mit <design>/skin.css zu
   <design>/ringsmp.css zusammengefügt. Alle Design-Entscheidungen
   (Farben, Schriften, Radien, Schatten) kommen aus Variablen,
   die skin.css überschreibt.
   ============================================================ */
:root {
    --fg: 255,255,255;          /* Textfarbe als RGB-Triple für rgba(var(--fg), .x) */
    --ink: 0,0,0;               /* Abdunkel-/Schattenfarbe als RGB-Triple */
    --strong: #fff;             /* kräftigster Text */
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
    --primary-rgb: 252,165,50;
    --danger-text: #ff6b6b; --danger-bg: #c53232;
    --ok-text: #7bd88f; --ok-bg: #2C5728;
    --discord: #5865F2;
}
/* ============================================================
   RingSMP Store · Stylesheet v2.1 (2026-10)
   Eigene Umsetzung im Look des bisherigen Stores: warmes Braun,
   flaches Orange, Poppins-Überschriften, Montserrat-Text.
   Farben kommen als CSS-Variablen aus layout.html (schema.json).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: rgba(var(--fg),.85);
    font-family: var(--font-body); font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    display: flex; flex-direction: column;
}
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--strong); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

.heading, h1, h2, h3 { font-family: var(--font-head); margin: 0; }

/* Container-Breiten wie bisher (schmaler als Vollbreite) */
.container { width: 100%; margin: 0 auto; padding: 0 16px; max-width: 1100px; }
@media (min-width: 1500px) { .container { max-width: 1200px; } }
@media (max-width: 1199px) { .container { max-width: 1000px; } }

.main-container { position: relative; z-index: 3; margin-top: -10rem; padding-bottom: 2rem; flex: 1; }
.main-grid { display: grid; grid-template-columns: 27% minmax(0, 1fr); gap: 24px; align-items: start; }
.main-grid > * { min-width: 0; }
@media (max-width: 991px) {
    .main-container { margin-top: -6rem; }
    .main-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .main-grid > .sidebar { display: contents; }
    .main-grid > .sidebar > * { min-width: 0; max-width: 100%; }
    .main-grid > .sidebar > .side-label { order: 1; }
    .main-grid > .sidebar > .account-card { order: 1; }
    .main-grid > .sidebar > .catnav { order: 2; }
    .main-grid > main { order: 3; }
    .main-grid > .sidebar > .sidebar-modules { order: 4; }
}

/* ---------- Karten ---------- */
.card {
    background: var(--surface); border-radius: 10px; padding: 2rem 2.5rem;
    box-shadow: inset 0 0 0 2px rgba(var(--fg),.03);
    position: relative;
}
@media (max-width: 767px) { .card { padding: 1.4rem 1.2rem; } }

.store-heading {
    font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: .08rem; width: fit-content;
    background: linear-gradient(to right, var(--primary), var(--primary-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.store-subheading { font-weight: 600; font-size: 1.05rem; letter-spacing: .05rem; color: rgba(var(--fg),.3); margin-top: .2rem; }
.gold-text { color: var(--primary); -webkit-text-fill-color: var(--primary); }

/* ---------- Knöpfe (flach, mit Kante unten) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1.5rem; border-radius: 10px; border: none;
    font-weight: 700; font-size: .9rem; letter-spacing: .03rem; line-height: 1.2; white-space: nowrap;
    transition: filter .3s, background .3s, color .3s; text-decoration: none;
}
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-gold { background: var(--primary); color: var(--strong); box-shadow: inset 0 -5px 0 rgba(var(--ink),.15); }
.btn-gold:hover { filter: brightness(80%); color: var(--strong); }
.btn-ghost { background: rgba(var(--fg),.1); color: var(--strong); box-shadow: inset 0 -5px 0 rgba(var(--ink),.15); }
.btn-ghost:hover { filter: brightness(75%); color: var(--strong); }
.btn-danger { background: rgba(197, 50, 50, .85); color: var(--strong); box-shadow: inset 0 -5px 0 rgba(var(--ink),.15); }
.btn-danger:hover { filter: brightness(80%); color: var(--strong); }
.btn-discord { background: var(--discord); color: var(--strong); box-shadow: inset 0 -5px 0 rgba(var(--ink),.15); }
.btn-discord:hover { filter: brightness(85%); color: var(--strong); }
.btn-link { background: none; border: none; color: rgba(var(--fg),.6); font-weight: 600; font-size: .9rem; letter-spacing: .03rem; padding: .3rem .6rem; }
.btn-link:hover { color: rgba(var(--fg),.85); }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.1rem; width: 100%; letter-spacing: .06rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Eingaben ---------- */
.input {
    width: 100%; background: rgba(var(--ink),.3); color: rgba(var(--fg),.85); border: none; border-radius: 10px;
    padding: .75rem 1.3rem; font-weight: 500;
}
.input::placeholder { color: rgba(var(--fg),.45); }
.input:focus { outline: 2px solid rgba(var(--primary-rgb),.5); }
.input-lg { padding: .95rem 1.3rem; font-size: 1.05rem; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' fill-opacity='.5' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5'/></svg>");
    background-repeat: no-repeat; background-position: right 1rem center; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 2rem; font-size: .7rem; font-weight: 700; letter-spacing: .04rem; text-transform: uppercase; color: var(--strong); }
.badge-gold { background: var(--primary); }
.badge-red { background: var(--danger-bg); }
.badge-muted { background: rgba(var(--fg),.12); }

/* ============================================================
   Topbar (liegt über dem Header)
   ============================================================ */
.topbar { position: absolute; top: 0; left: 0; width: 100%; z-index: 12; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: .4rem; }
.topbar .btn-link { font-weight: 700; }
.topbar-left .btn-link { font-style: italic; }
.cart-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 2rem; background: var(--primary); color: var(--strong); font-size: .75rem; font-weight: 800; }
@media (max-width: 575px) { .topbar .btn-link .label { display: none; } }

/* ============================================================
   Header mit Hintergrundbild
   ============================================================ */
.hero { position: relative; width: 100%; height: var(--header-height); z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(rgba(var(--ink),.7), var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(rgba(93,46,0,.4), transparent); }
.hero-inner {
    position: absolute; left: 0; right: 0; top: var(--header-margin-top); z-index: 3;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.hero-logo { height: var(--logo-height); width: auto; max-width: 100%; margin: 0 auto; filter: drop-shadow(0 10px 25px rgba(var(--ink),.5)); }
.hero-logo.logo-animated { animation: float 5s ease-in-out infinite; }
.hero-bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Nur echte Pixel-Grafiken (<= 64 px, per JS erkannt) scharf hochskalieren */
img.pixel { image-rendering: pixelated; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.status { display: flex; align-items: center; gap: 1rem; background: none; border: none; color: var(--strong); text-decoration: none; cursor: pointer; }
.status-play { justify-self: end; margin-right: 2.5rem; margin-top: 4.5rem; }
.status-discord { justify-self: start; margin-left: 2.5rem; margin-top: 4.5rem; }
.status-text { display: flex; flex-direction: column; line-height: 1.2; }
.status-play .status-text { text-align: right; }
.status-title { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .04rem; color: var(--strong); white-space: nowrap; }
.status-sub { font-weight: 700; font-size: .85rem; letter-spacing: .06rem; text-transform: uppercase; color: rgba(var(--fg),.55); }
.status-circle {
    position: relative; width: 3.7rem; height: 3.7rem; border-radius: 50%; flex: none;
    background: linear-gradient(var(--primary), var(--primary-light)); display: grid; place-items: center;
    font-size: 1.6rem; color: var(--strong); transition: transform .3s;
}
.status:hover .status-circle { transform: scale(1.06); }
.status-badge { position: absolute; top: -.35rem; right: -.6rem; background: var(--danger-bg); color: var(--strong); font-size: .75rem; font-weight: 800; padding: .15rem .55rem; border-radius: 2rem; line-height: 1.2; }
.status-badge:empty { display: none; }
.status-badge.offline { background: #555; }
.module-serverstatus { display: none; }

@media (max-width: 991px) {
    .hero { height: auto; min-height: 0; }
    .hero-inner { position: relative; top: auto; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; padding: 4.5rem 16px 7rem; justify-items: center; align-items: start; }
    .hero-logo-link { grid-column: 1 / -1; order: -1; }
    .status-play, .status-discord { margin: 0; justify-self: center; gap: .6rem; }
    .status-title { font-size: .95rem; }
    .status-sub { font-size: .68rem; }
    .status-circle { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
    .status-badge { font-size: .65rem; padding: .1rem .4rem; }
    .hero-logo { max-width: min(92vw, 420px); height: auto; max-height: var(--logo-height); }
}

/* Tebex-Module: an jeder Stelle nur das passende zeigen */
.topbar-modules > :not(.module-giftcard) { display: none; }
.modules-inline > :not(.module-featuredpackage) { display: none; }
.sidebar-modules > .module-featuredpackage, .sidebar-modules > .module-giftcard, .sidebar-modules > .module-topdonator { display: none; }
.sidebar-donator > :not(.module-topdonator) { display: none; }

/* ============================================================
   Ankündigung
   ============================================================ */
.announcement {
    display: flex; align-items: center; gap: 1rem; padding: .9rem 1.6rem; border-radius: 12px; margin-bottom: 1rem;
    background: var(--announcement-bg); color: var(--announcement-text); font-weight: 700; font-size: .95rem;
    box-shadow: inset 0 0 0 2px rgba(var(--fg),.08);
}
.announcement i { font-size: 1.3rem; }

/* ============================================================
   Seitenleiste
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.side-label { font-family: var(--font-head); color: var(--primary); font-size: .75rem; font-weight: 800; font-style: italic; letter-spacing: .08rem; text-transform: uppercase; text-align: center; margin-bottom: -.75rem; }

.account-card {
    position: relative; overflow: hidden; display: flex; align-items: center; height: 80px; border-radius: 14px; border: none;
    background: linear-gradient(var(--primary), var(--primary-light)); color: var(--strong); text-align: left; width: 100%; padding: 0 0 0 1rem; cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(var(--fg),.2);
}
.account-card::before, .account-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(var(--fg),.13); pointer-events: none; }
.account-card::before { width: 25px; height: 25px; left: 6rem; bottom: -.7rem; box-shadow: -5.6rem -2.6rem 0 -5px rgba(var(--fg),.13); }
.account-card::after { width: 20px; height: 20px; left: 14rem; top: .3rem; box-shadow: -2rem 3rem 0 -5px rgba(var(--fg),.13); }
.account-avatar { flex: none; display: grid; place-items: center; margin-right: 1rem; }
.account-avatar img { image-rendering: pixelated; }
.account-card.loggedout .account-avatar img { height: 118px; margin-top: 1.2rem; margin-left: -.6rem; }
.account-card.loggedin .account-avatar img { height: 40px; border-radius: .25rem; }
.account-card.loggedout .account-avatar i { font-size: 2.4rem; color: rgba(var(--fg),.7); }
.account-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.account-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.25; }
.account-sub { display: block; font-weight: 700; font-size: .78rem; color: rgba(var(--fg),.85); }
.account-arrow { font-size: 2.8rem; color: rgba(var(--fg),.4); margin: 0 1rem 0 .5rem; transition: all .4s; position: relative; z-index: 1; }
.account-card:hover .account-arrow { color: rgba(var(--fg),.75); transform: translateX(.2rem); }

.catnav { padding: 1.6rem 2rem; }
.cat-list { display: flex; flex-direction: column; gap: .2rem; }
.catnav a, .cat-opener {
    display: flex; align-items: center; gap: .6rem; padding: .35rem 0; width: fit-content;
    font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: .05rem; color: rgba(var(--fg),.7);
    background: none; border: none; text-align: left; transition: color .4s; position: relative;
}
.catnav a:hover, .cat-opener:hover { color: var(--strong); }
.catnav a.active { color: var(--strong); }
.catnav a.active::after { content: ""; position: absolute; left: 50px; bottom: -.1rem; width: 2.2rem; height: .25rem; border-radius: 10px; background: var(--primary); }
.cat-icon { min-width: 44px; height: 44px; display: grid; place-items: center; flex: none; font-size: 1.3rem; color: rgba(var(--fg),.5); }
.cat-icon img { height: 44px; width: auto; }
.cat-icon img[src=""] { display: none; }
.cat-opener .caret { font-size: .8rem; margin-left: .2rem; color: rgba(var(--fg),.6); transition: transform .3s; }
.cat-group.open .caret { transform: rotate(180deg); }
.cat-sub { display: none; background: rgba(var(--fg),.05); border-radius: .5rem; padding: .8rem 1.5rem; margin: .2rem 0 .6rem; }
.cat-group.open .cat-sub { display: block; }
.cat-sub a { font-family: var(--font-body); font-size: .95rem; font-weight: 500; padding: .35rem 0; color: rgba(var(--fg),.7); }
.cat-sub a.active { color: var(--strong); }
.cat-sub a.active::after { display: none; }

/* Top Supporter unten in der Kategorie-Karte */
.sidebar-donator { border-top: 2px solid rgba(var(--fg),.03); margin: 1.2rem -2rem -1.6rem; padding: 1rem 1.6rem 0; overflow: hidden; border-radius: 0 0 10px 10px; }
.sidebar-donator:empty { display: none; }
.module-topdonator { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; background: none !important; box-shadow: none !important; padding: 0 !important; }
.module-topdonator .donator-text { flex: 1; min-width: 0; }
.donator-title { white-space: nowrap; }
.donator-title { font-family: var(--font-head); color: var(--primary); font-weight: 700; font-size: .9rem; display: flex; gap: .3rem; align-items: center; }
.donator-subtitle { font-size: .75rem; font-weight: 600; color: rgba(var(--fg),.55); line-height: 1.35; }
.donator-subtitle span { color: var(--strong); font-weight: 800; }
.donator-img { flex: none; }
.donator-img img { height: 72px; width: auto; image-rendering: pixelated; margin-bottom: -1rem; }

@media (max-width: 991px) {
    .catnav { padding: .8rem; overflow-x: auto; scrollbar-width: none; }
    .catnav::-webkit-scrollbar { display: none; }
    .cat-list { flex-direction: row; gap: .3rem; }
    .catnav a, .cat-opener { white-space: nowrap; padding: .4rem .8rem; font-size: 1.05rem; }
    .catnav a.active::after { left: .8rem; right: .8rem; width: auto; }
    .cat-icon { min-width: 30px; height: 30px; }
    .cat-icon img { height: 30px; }
    .cat-group { position: relative; }
    .cat-group .cat-sub { position: absolute; top: 100%; left: 0; z-index: 20; background: var(--surface); box-shadow: 0 16px 40px -20px #000, inset 0 0 0 2px rgba(var(--fg),.05); min-width: 200px; }
    .sidebar-donator { display: none; }
}

/* Sidebar-Module */
.sidebar-modules { display: flex; flex-direction: column; gap: 1rem; }
.widget { padding: 1.2rem 1.6rem; display: flex; align-items: center; gap: 1rem; }
.w-title { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--strong); }
.w-title.italic { font-style: italic; color: var(--primary); }
.w-subtext { font-size: .85rem; color: rgba(var(--fg),.55); }
.w-icon { font-size: 2.6rem; color: var(--primary); flex: none; }
.w-user-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .5rem; }
.w-user-row img { width: 30px; height: 30px; border-radius: 6px; image-rendering: pixelated; }
.w-progress { flex: none; }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--strong);
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(var(--fg),.08) 0); }
.ring::before { content: attr(data-num); width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.module-textbox .textbox-title { font-family: var(--font-head); font-weight: 700; margin-bottom: .3rem; }

/* Startseite: Widgets nebeneinander, ohne Kartenrahmen; dafür in der Seitenleiste ausgeblendet */
.index-widgets { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 1.6rem; }
.index-widgets .widget { padding: 0; flex: 1 1 260px; background: none; box-shadow: none; }
.index-widgets:empty { display: none; }
.is-index .sidebar-modules > .module-payments, .is-index .sidebar-modules > .module-goal, .is-index .sidebar-modules > .module-communitygoal { display: none; }
.sidebar-modules:empty { display: none; }
.index-widgets .module-featuredpackage, .index-widgets .module-topdonator, .index-widgets .module-giftcard, .index-widgets .module-serverstatus { display: none; }

/* Featured-Paket: zwei Kreise oben rechts (Startseite) */
.module-featuredpackage {
    position: absolute; top: -1.2rem; right: 1.6rem; display: flex; align-items: center; color: var(--strong); z-index: 2;
}
.feat-img { width: 6.2rem; height: 6.2rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--primary), var(--primary-light)); box-shadow: inset 0 0 0 3px rgba(var(--fg),.2); }
.feat-img img { width: 66%; height: 66%; object-fit: contain; }
.feat-text { width: 9.5rem; height: 9.5rem; border-radius: 50%; margin-left: -1.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem;
    background: linear-gradient(var(--primary), var(--primary-light)); box-shadow: inset 0 0 0 3px rgba(var(--fg),.2); }
.featured-kicker { font-size: .6rem; font-weight: 800; letter-spacing: .08rem; text-transform: uppercase; color: rgba(var(--fg),.75); }
.featured-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.2; margin: .15rem 0; }
.featured-price { font-size: .8rem; font-weight: 700; color: rgba(var(--fg),.85); }
.featured-price .was { text-decoration: line-through; color: var(--danger-text); margin-right: .3rem; }
.module-featuredpackage:hover { color: var(--strong); filter: brightness(1.08); }
@media (max-width: 767px) { .module-featuredpackage { position: static; justify-content: center; margin: 1rem 0 0; } }

/* Giftcard-Modul im Topbar */
.module-giftcard { position: relative; }
.module-giftcard .gc-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 280px; padding: 1rem; background: var(--surface); border-radius: 10px; box-shadow: 0 20px 50px -20px #000, inset 0 0 0 2px rgba(var(--fg),.05); }
.module-giftcard.open .gc-panel { display: block; }
.module-giftcard form { display: flex; flex-direction: column; gap: 8px; }
.gc-status-message, #giftcard-status { font-size: .9rem; color: rgba(var(--fg),.6); }

/* ============================================================
   Startseite
   ============================================================ */
.store-description { margin-top: 1.4rem; line-height: 1.8; color: rgba(var(--fg),.6); }
.store-description p:last-child { margin-bottom: 0; }

.info-grid { display: flex; gap: 1rem; margin-top: 2.6rem; font-size: .9rem; }
@media (max-width: 767px) { .info-grid { flex-direction: column; gap: 2.4rem; } }
.info-box { flex: 1; padding: 1rem 1.6rem 1.2rem; border-radius: 20px; text-align: center; color: rgba(var(--fg),.6); border: 3px solid; }
.info-box.support { border-color: var(--support-border); background: var(--support-bg); }
.info-box.refund { border-color: var(--refund-border); background: var(--refund-bg); }
.info-title { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--strong); width: fit-content; margin: -2rem auto .6rem; padding: .4rem 1.2rem; border-radius: 2rem; display: flex; gap: .4rem; align-items: center; }
.info-box.support .info-title { background: var(--support-border); }
.info-box.refund .info-title { background: var(--refund-border); }
.info-text a { color: var(--strong); }

.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; justify-content: center; margin-top: 1.6rem; color: rgba(var(--fg),.5); font-size: .82rem; font-weight: 600; }
.trust-row .t { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row .t i { color: var(--primary); }
.pay-icons { display: inline-flex; gap: .6rem; font-size: 1.5rem; color: rgba(var(--fg),.45); }

/* ============================================================
   Kategorie / Pakete
   ============================================================ */
.category-description { color: rgba(var(--fg),.4); margin-top: .5rem; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
@media (max-width: 1200px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .package-grid { grid-template-columns: 1fr; } }

.pkg {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.2rem 1.2rem 1.6rem; border-radius: 10px; background: rgba(var(--fg),.03);
    box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); transition: box-shadow .3s;
}
.pkg:hover { box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb),.35); }
.pkg-badge { position: absolute; top: .8rem; left: .8rem; }
.pkg-img { width: 100%; height: 150px; display: grid; place-items: center; cursor: pointer; }
.pkg-img img { width: auto; height: auto; max-width: 100%; max-height: 150px; object-fit: contain; transition: transform .3s; }
.pkg-img img.pixel { height: 100%; }
.pkg:hover .pkg-img img { transform: scale(1.08); }
.pkg-name { font-family: var(--font-head); font-weight: 600; letter-spacing: .05rem; color: var(--strong); margin-top: .6rem; font-size: 1rem; }
.pkg-price { font-weight: 600; font-size: .85rem; color: rgba(var(--fg),.5); margin-top: .35rem; display: flex; gap: .4rem; align-items: baseline; justify-content: center; }
.pkg-price .was { color: var(--danger-text); text-decoration: line-through; font-size: .8rem; }
.pkg-price .free { color: var(--ok-text); }
.ci-meta { font-size: .78rem; color: rgba(var(--fg),.5); }
.pkg-actions { display: flex; gap: .5rem; margin-top: 1.1rem; align-items: center; justify-content: center; }
.pkg-actions .btn-ghost { padding: .6rem .8rem; }
@media (max-width: 575px) { .pkg-actions .btn-ghost { display: none; } }

.package-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.pkg-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 1rem; align-items: center; padding: .8rem 1.2rem; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); }
.pkg-row img { width: auto; height: auto; max-width: 64px; max-height: 64px; object-fit: contain; justify-self: center; }
.pkg-row img.pixel { width: 64px; height: 64px; }
.pkg-row .pkg-name { margin: 0; text-align: left; }
.pkg-row .pkg-price { margin: 0; }
@media (max-width: 575px) { .pkg-row { grid-template-columns: 56px 1fr; } .pkg-row .pkg-price, .pkg-row .btn { grid-column: 2; justify-content: flex-start; } }

/* ============================================================
   Dialoge
   ============================================================ */
dialog.dlg { border: none; border-radius: 10px; padding: 0; background: var(--surface); color: rgba(var(--fg),.85); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px -20px rgba(var(--ink),.8), inset 0 0 0 2px rgba(var(--fg),.04); }
dialog.dlg::backdrop { background: rgba(var(--ink),.7); }
.dlg-body { padding: 2rem 2.5rem; position: relative; }
@media (max-width: 575px) { .dlg-body { padding: 1.4rem 1.2rem; } }
.dlg-close { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 8px; background: rgba(var(--fg),.06); border: none; color: rgba(var(--fg),.6); display: grid; place-items: center; }
.dlg-close:hover { color: var(--strong); background: rgba(var(--fg),.12); }
.dlg-sm { width: min(560px, calc(100vw - 24px)); }

/* Paket-Dialog */
.package-view { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
@media (max-width: 640px) { .package-view { grid-template-columns: 1fr; } }
.pv-side { display: flex; flex-direction: column; gap: .7rem; text-align: center; }
.pv-img { width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); }
.pv-img img { width: auto; height: auto; max-width: 80%; max-height: 80%; object-fit: contain; }
.pv-img img.pixel { width: 80%; height: 80%; }
.pv-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--strong); letter-spacing: .04rem; }
.pv-price { font-weight: 700; font-size: 1rem; color: rgba(var(--fg),.6); }
.pv-price .was { color: var(--danger-text); text-decoration: line-through; font-size: .85rem; margin-right: .4rem; }
.pv-actions { display: flex; flex-direction: column; gap: .5rem; }
.pv-desc { line-height: 1.7; color: rgba(var(--fg),.75); max-height: 60vh; overflow: auto; padding-right: .4rem; }
.pv-desc ul { padding-left: 1.2rem; }
.pv-desc img { border-radius: 8px; }
.gift-fields { display: none; gap: .5rem; }
.gift-fields.open { display: flex; }
.gift-fields .input { flex: 1; }
.pay-trust { display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; font-weight: 600; color: rgba(var(--fg),.5); margin-top: .4rem; }
.pay-trust .t { display: flex; align-items: center; gap: .5rem; justify-content: center; }
.pay-trust .t i { color: var(--primary); width: 1rem; text-align: center; }

/* Login (Seite + Dialog) */
.login { display: flex; flex-direction: column; gap: 1.1rem; }
.login-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--primary); text-align: center; letter-spacing: .03rem; }
.login-sub { text-align: center; color: rgba(var(--fg),.55); margin-top: -.7rem; }
.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.edition { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 8px; background: rgba(var(--fg),.08); border: 2px solid transparent; text-align: left; color: var(--strong); transition: all .3s; }
.edition i { font-size: 1.7rem; width: 2.2rem; text-align: center; color: rgba(var(--fg),.7); }
.edition b { display: block; font-size: .9rem; font-weight: 700; }
.edition small { color: rgba(var(--fg),.6); font-size: .75rem; }
.edition.active { background: rgba(var(--fg),.18); border-color: rgba(var(--fg),.35); }
.edition.active i { color: var(--strong); }
@media (max-width: 420px) { .edition-grid { grid-template-columns: 1fr; } }
.name-row { display: grid; grid-template-columns: 56px 1fr; gap: .6rem; align-items: center; }
.name-preview { width: 56px; height: 56px; border-radius: 10px; background: rgba(var(--ink),.3); display: grid; place-items: center; color: rgba(var(--fg),.4); font-size: 1.3rem; overflow: hidden; }
.name-preview img { width: 100%; height: 100%; image-rendering: pixelated; }
.name-preview.ok { box-shadow: inset 0 0 0 2px var(--primary); }
.login-hint { font-size: .85rem; font-style: italic; color: rgba(var(--fg),.5); display: flex; gap: .5rem; align-items: flex-start; }
.login-hint i { margin-top: .2rem; }
.login-hint.err { color: var(--danger-text); font-style: normal; }
.login-hint.ok { color: var(--ok-text); font-style: normal; }
.login-hint.warn { color: var(--primary); font-style: normal; }
.login-help { font-size: .85rem; color: rgba(var(--fg),.55); text-align: center; line-height: 1.7; border-top: 2px solid rgba(var(--fg),.04); padding-top: 1rem; }

/* Support-Dialog */
.support-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.support-intro { color: rgba(var(--fg),.6); margin-bottom: 1rem; }
.support-block { padding: 1rem 1.2rem; border-radius: 10px; background: rgba(var(--fg),.04); margin-top: .7rem; }
.support-block .support-text { font-size: .9rem; color: rgba(var(--fg),.6); margin-bottom: .7rem; }
.support-block .support-text span { color: var(--strong); font-weight: 700; }
.support-flex { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   Warenkorb-Drawer
   ============================================================ */
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 100vw); z-index: 90; background: var(--surface); transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(var(--ink),.5); }
.drawer.active { transform: none; }
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(var(--ink),.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.active { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 2px solid rgba(var(--fg),.04); }
.drawer-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.drawer-body { flex: 1; overflow: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 2px solid rgba(var(--fg),.04); display: flex; flex-direction: column; gap: .7rem; }
.drawer-user { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: rgba(var(--fg),.6); }
.drawer-user img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.drawer-user b { color: var(--strong); }
.drawer-user a { margin-left: auto; font-size: .8rem; font-weight: 600; }
.cart-item { display: grid; grid-template-columns: 56px 1fr; gap: .8rem; padding: .8rem; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); }
.cart-item img { width: 56px; height: 56px; object-fit: contain; }
.ci-name { font-family: var(--font-head); font-weight: 600; color: var(--strong); line-height: 1.3; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; }
.ci-price { font-weight: 700; color: rgba(var(--fg),.8); }
.ci-remove { color: rgba(var(--fg),.5); font-size: .8rem; font-weight: 600; background: none; border: none; padding: .3rem 0; text-decoration: underline; }
.ci-remove:hover { color: var(--danger-text); }
.qty { display: inline-flex; align-items: center; border-radius: 8px; overflow: hidden; background: rgba(var(--ink),.3); }
.qty button { width: 30px; height: 30px; border: none; background: none; color: var(--strong); display: grid; place-items: center; font-size: .9rem; }
.qty button:hover { background: rgba(var(--fg),.08); }
.qty input { width: 34px; height: 30px; text-align: center; border: none; background: none; color: var(--strong); font-weight: 800; }
.qty.busy { opacity: .5; pointer-events: none; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; }
.total-row .label { font-family: var(--font-head); font-weight: 700; color: var(--strong); }
.total-row .value { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.cart-empty { text-align: center; color: rgba(var(--fg),.5); padding: 2.5rem .5rem; }
.cart-empty i { font-size: 2rem; display: block; margin-bottom: .6rem; color: rgba(var(--fg),.2); }
.currency-select { background: rgba(var(--ink),.3); border: none; color: rgba(var(--fg),.7); border-radius: 8px; padding: .4rem .6rem; font-size: .85rem; font-weight: 600; }
.pay-note { font-size: .8rem; font-weight: 600; color: rgba(var(--fg),.5); text-align: center; display: flex; gap: .4rem; justify-content: center; align-items: center; }
.pay-note.warn { color: var(--primary); }

.mobile-cartbar { display: none; }
@media (max-width: 991px) {
    .mobile-cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; }
    .mobile-cartbar .btn { width: 100%; justify-content: space-between; padding: .9rem 1.2rem; box-shadow: 0 20px 40px -16px #000, inset 0 -5px 0 rgba(var(--ink),.15); }
    body.has-cart .main-container { padding-bottom: 90px; }
}

/* ============================================================
   Kasse
   ============================================================ */
.checkout-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; margin-top: 1.4rem; }
.checkout-page > * { min-width: 0; }
@media (max-width: 1100px) { .checkout-page { grid-template-columns: minmax(0, 1fr); } .pay-card { position: static; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; }
.step { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); color: rgba(var(--fg),.5); font-size: .85rem; font-weight: 700; }
.step .num { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--fg),.1); color: var(--strong); font-size: .75rem; font-weight: 800; flex: none; }
.step.done { color: var(--ok-text); }
.step.done .num { background: var(--ok-bg); }
.step.current { color: var(--strong); box-shadow: inset 0 0 0 2px var(--primary); }
.step.current .num { background: var(--primary); }
@media (max-width: 575px) { .step .txt { display: none; } .step { justify-content: center; } }

.co-section { margin-bottom: 1.4rem; }
.co-section-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--strong); letter-spacing: .03rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .6rem; }
.co-section-title .num { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--strong); font-size: .75rem; }

.confirm-card { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); transition: box-shadow .3s; }
.confirm-card > div { min-width: 0; }
.confirm-card.confirmed { box-shadow: inset 0 0 0 2px var(--ok-bg); background: rgba(44,87,40,.12); }
.confirm-avatar { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: rgba(var(--ink),.3); display: grid; place-items: center; }
.confirm-avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.confirm-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--strong); word-break: break-all; }
.confirm-sub { font-size: .85rem; color: rgba(var(--fg),.55); }
.confirm-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.btn-confirm.on { background: var(--ok-bg); }
@media (max-width: 575px) { .confirm-card { grid-template-columns: 56px 1fr; } .confirm-avatar { width: 56px; height: 56px; } .confirm-actions .btn { flex: 1; } }

.co-items { display: flex; flex-direction: column; gap: .6rem; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1.2rem; border-radius: 10px; background: rgba(var(--fg),.03); box-shadow: inset 0 0 0 2px rgba(var(--fg),.05); }
.co-item img { width: 56px; height: 56px; object-fit: contain; }
.co-item .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 575px) { .co-item { grid-template-columns: 44px 1fr; } .co-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

.pay-card { position: sticky; top: 16px; padding: 1.6rem 1.8rem; }
.pay-card .lines { display: flex; flex-direction: column; gap: .35rem; color: rgba(var(--fg),.55); font-size: .88rem; border-bottom: 2px solid rgba(var(--fg),.04); padding-bottom: .8rem; }
.pay-card .lines div { display: flex; justify-content: space-between; gap: .6rem; }
.pay-card .total-row { margin: .8rem 0 1rem; }
.pay-card .pay-trust { margin-top: 1rem; }
.pay-card .pay-trust .t { justify-content: flex-start; }
.pay-card .pay-icons { justify-content: center; margin-top: .3rem; }
.legal-links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; font-size: .78rem; font-weight: 600; margin-top: .8rem; }
.legal-links a { color: rgba(var(--fg),.45); }
.legal-links a:hover { color: var(--strong); }
tebex-checkout { display: block; }

/* Optionen */
.options-form { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.options-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.options-buttons { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .4rem; }
.options-form p { color: rgba(var(--fg),.6); margin: 0; }

/* CMS */
.page-content { line-height: 1.8; color: rgba(var(--fg),.7); margin-top: 1rem; }
.page-content h1, .page-content h2, .page-content h3 { color: var(--strong); margin: 1.2rem 0 .5rem; }
.page-content a { text-decoration: underline; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .6rem; align-items: center; padding: .8rem 1.2rem; border-radius: 10px; background: var(--surface); box-shadow: 0 20px 50px -20px #000, inset 0 0 0 2px rgba(var(--fg),.06); font-weight: 700; color: var(--strong); }
.toast.ok i { color: var(--ok-text); }
.toast.err i { color: var(--danger-text); }

/* ============================================================
   Footer
   ============================================================ */
.footer { margin-top: 3rem; padding: 2.2rem 0 2.6rem; border-top: 2px solid rgba(var(--fg),.03); color: rgba(var(--fg),.45); font-size: .85rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer .copyright { font-weight: 700; color: rgba(var(--fg),.6); }
.footer .copyright span { color: var(--strong); font-weight: 800; }
.footer .copy-subtext { font-size: .78rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; }
.footer-links a { color: rgba(var(--fg),.45); }
.footer-links a:hover { color: var(--strong); }
.social { display: flex; gap: .4rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--fg),.05); color: rgba(var(--fg),.6); }
.social a:hover { color: var(--strong); background: rgba(var(--fg),.1); }
.footer-lang select { background: rgba(var(--fg),.05); border: none; color: rgba(var(--fg),.6); border-radius: 8px; padding: .4rem .6rem; }

.spin { width: 16px; height: 16px; border: 2px solid rgba(var(--fg),.25); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ======================= SKIN: 05-glas ======================= */

/* ============================================================
   05 · GLAS  — Glassmorphism
   Idee: Die ganze Seite liegt auf dem verschwommenen Spawn-Foto.
   Alle Flächen sind Milchglas (Blur, 8 % Weiß, 1-px-Rand), Text weiß,
   Orange nur flach als Akzent auf Knöpfen und Preisen.
   Schrift: Bricolage Grotesque (Titel/Preise) + Figtree (Text) + Caveat (nur Kassen-Hinweis).
   ============================================================ */
:root {
    --bg: #0c0a08; --surface: rgba(255,255,255,.08); --border: rgba(255,255,255,.15);
    --primary: #FCA532; --primary-light: #FBD04A; --primary-rgb: 252,165,50;
    --fg: 255,255,255; --ink: 0,0,0; --strong: #fff;
    --font-head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Figtree', cursive;
    --support-border: rgba(255,120,120,.45); --support-bg: rgba(255,80,80,.10);
    --refund-border: rgba(120,160,255,.45); --refund-bg: rgba(80,120,255,.10);
    --announcement-bg: rgba(251,208,74,.14); --announcement-text: #FFE08A;
    --glass: rgba(255,255,255,.08); --glass-2: rgba(255,255,255,.05); --edge: 1px solid rgba(255,255,255,.15);
    --tebex-legal-footer-background-color: transparent; --tebex-legal-footer-text-color: rgba(255,255,255,.5);
}
body { color: rgba(255,255,255,.88); }
a { color: #FFD27A; }
a:hover { color: #fff; }

/* Foto als fixer Vollbild-Hintergrund, unscharf und abgedunkelt */
.hero-bg { position: fixed; inset: -40px; z-index: 0; filter: blur(7px) saturate(1.1) brightness(.7); background-position: center !important; }
.hero::before { position: fixed; inset: 0; z-index: 0; background: linear-gradient(rgba(10,8,6,.2), rgba(10,8,6,.55)); }
.hero::after { display: none; }
.hero { z-index: 1; }
.main-container, .footer, .topbar { position: relative; z-index: 3; }
.topbar { position: absolute; }
@media (min-width: 992px) { .hero { height: 440px; } .hero-inner { top: 6.5rem; } }
.hero-logo { filter: drop-shadow(0 16px 30px rgba(0,0,0,.6)); }

/* Glasflächen */
.card, dialog.dlg, .drawer, .toast, .account-card, .announcement, .info-box {
    background: var(--glass); border: var(--edge); border-radius: 18px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.drawer { border-radius: 0; border-left: var(--edge); background: rgba(20,16,12,.55); }
dialog.dlg { background: rgba(28,22,16,.6); }
dialog.dlg::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pkg, .pkg-row, .cart-item, .co-item, .confirm-card, .step, .support-block, .edition, .widget, .cat-sub, .name-preview, .qty, .input, .dlg-close, .social a, .currency-select, .footer-lang select {
    background: var(--glass-2); border: var(--edge); box-shadow: none; border-radius: 14px;
}
.step, .qty, .dlg-close, .social a, .currency-select, .footer-lang select { border-radius: 10px; }
.pkg:hover { background: rgba(255,255,255,.10); border-color: rgba(252,165,50,.6); box-shadow: none; }
.store-heading { background: none; -webkit-text-fill-color: #fff; color: #fff; font-size: 1.9rem; letter-spacing: 0; font-weight: 600; }
.store-subheading { color: rgba(255,255,255,.6); letter-spacing: 0; font-weight: 500; }
.category-description { color: rgba(255,255,255,.6); }

/* Knöpfe: flach, Orange nur hier */
.btn { border-radius: 12px; box-shadow: none; letter-spacing: 0; }
.btn-gold { background: var(--primary); color: #1a1208; box-shadow: none; }
.btn-gold:hover { background: var(--primary-light); color: #1a1208; filter: none; }
.btn-ghost { background: rgba(255,255,255,.12); border: var(--edge); color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.2); filter: none; }
.btn-danger, .btn-discord { box-shadow: none; }
.btn-confirm.on { background: #3FA866; color: #fff; }
.btn[disabled], .btn.disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.5); opacity: 1; }
.input { color: #fff; padding: .75rem 1.1rem; }
.input:focus { outline: 2px solid rgba(252,165,50,.7); border-color: transparent; }
.badge-gold { color: #1a1208; }
.cart-pill { color: #1a1208; }

/* Kopf-Status: Glaskreise */
.status-circle { background: var(--glass); border: var(--edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; }
.status-sub { color: rgba(255,255,255,.65); }
.topbar .btn-link { color: rgba(255,255,255,.8); font-style: normal; }
.topbar-left .btn-link { font-style: normal; }

/* Seitenleiste */
.side-label { color: rgba(255,255,255,.7); font-style: normal; letter-spacing: .1rem; }
.account-card { color: #fff; height: 84px; }
.account-card::before, .account-card::after { display: none; }
.account-card.loggedout .account-avatar img { height: 110px; }
.account-card:hover { background: rgba(255,255,255,.13); }
.account-arrow { color: var(--primary); }
.account-card:hover .account-arrow { color: var(--primary-light); }
.account-sub { color: rgba(255,255,255,.65); }
.catnav a, .cat-opener { font-weight: 500; font-size: 1.15rem; color: rgba(255,255,255,.75); }
.catnav a.active::after { background: var(--primary); height: 3px; }
.cat-icon { color: rgba(255,255,255,.7); }
.sidebar-donator { border-top: var(--edge); }

/* Module */
.w-title.italic { font-style: normal; color: var(--primary-light); }
.ring { background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); }
.ring::before { background: rgba(40,32,24,.9); }
.feat-img, .feat-text { background: var(--glass); border: var(--edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: none; }
.feat-text { background: rgba(252,165,50,.22); }
.featured-kicker { color: var(--primary-light); }
.featured-title { color: #fff; }
.module-featuredpackage:hover { filter: none; }
.module-featuredpackage:hover .feat-text { background: rgba(252,165,50,.34); }
.w-user-row img { border-radius: 8px; border: 1px solid rgba(255,255,255,.2); }

/* Infoboxen */
.info-box { border-width: 1px; border-radius: 16px; color: rgba(255,255,255,.75); }
.info-title { background: rgba(0,0,0,.35) !important; border: var(--edge); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.info-box.support .info-title { color: #FFB1B1; }
.info-box.refund .info-title { color: #B9CCFF; }
.trust-row { color: rgba(255,255,255,.75); }
.pay-icons { color: rgba(255,255,255,.6); }

/* Pakete */
.pkg-name { letter-spacing: 0; font-weight: 600; }
.pkg-price { color: var(--primary-light); font-weight: 700; font-size: 1rem; }
.pkg-price .was { color: rgba(255,255,255,.45); }
.ci-price { color: var(--primary-light); }

/* Kasse */
.step.current { box-shadow: none; border-color: var(--primary); background: rgba(252,165,50,.14); }
.step.current .num { color: #1a1208; }
.step .num { color: #fff; }
.co-section-title .num { color: #1a1208; }
.confirm-card.confirmed { box-shadow: none; border-color: rgba(63,168,102,.7); background: rgba(63,168,102,.12); }
.confirm-avatar { border-radius: 12px; }
.pay-card { background: rgba(255,255,255,.10); }
.pay-note.warn { color: var(--primary-light); }
.total-row .value { color: #fff; }
.drawer-head, .drawer-foot { border-color: rgba(255,255,255,.12); border-width: 1px; }
.drawer-title { color: #fff; }
.dlg-close { color: rgba(255,255,255,.8); }
.dlg-close:hover { background: rgba(255,255,255,.18); }
.edition.active { background: rgba(252,165,50,.2); border-color: var(--primary); }
.login-title, .support-title, .options-title { color: #fff; }
.login-hint.warn { color: var(--primary-light); }
.name-preview.ok { box-shadow: none; border-color: var(--primary); }

/* Fußzeile schwebt über dem Foto */
.footer { border-top: var(--edge); color: rgba(255,255,255,.6); }
.footer .copyright span { color: var(--primary-light); }
.footer-links a { color: rgba(255,255,255,.65); }
.social a { color: rgba(255,255,255,.8); }
.social a:hover { background: rgba(255,255,255,.18); }
.mobile-cartbar .btn { box-shadow: 0 20px 40px -16px #000; }

/* ============================================================
   Schrift + schneller Weg zur Kasse (09.10.2026)
   Titel, Namen, Preise: Bricolage Grotesque (eng, charakterstark).
   Text + Knöpfe: Figtree (ruhig, gut lesbar). Caveat nur für den
   kurzen „Hier geht's zur Kasse“-Hinweis nach dem Hinzufügen.
   ============================================================ */
body { font-size: 16px; }
::selection { background: rgba(252,165,50,.38); color: #fff; }
.btn { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

.store-heading { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.category-description { color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.65; max-width: 68ch; }
.category-description strong, .category-description b { font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: -.005em; }
.category-description p:first-child > strong:first-child { display: inline-block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; margin-bottom: .1rem; }

.pkg-name, .pv-name, .ci-name, .featured-title, .account-name, .confirm-name {
    font-family: var(--font-head); letter-spacing: -.01em;
}
.pkg-name { font-weight: 700; font-size: 1.12rem; line-height: 1.2; text-wrap: balance; }
.pkg-price, .ci-price, .total-row .value, .pv-price {
    font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.pkg-price { font-weight: 800; font-size: 1.15rem; margin-top: .3rem; }
.pkg-price .was { font-family: var(--font-body); font-weight: 600; font-size: .85rem; }
.pkg-qty-total { margin-top: .15rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.status-title, .login-title, .support-title, .options-title, .drawer-title, .co-section-title, .total-row .label {
    font-family: var(--font-head); letter-spacing: -.01em;
}

/* Stückzahl auf der Karte */
[data-card-qty][hidden], [data-qty-total][hidden] { display: none !important; }
.qty-card { margin-top: .9rem; }
.qty-card button { width: 36px; height: 34px; color: rgba(255,255,255,.85); }
.qty-card button:hover { background: rgba(255,255,255,.12); color: #fff; }
.qty-card input { width: 42px; height: 34px; font-family: var(--font-head); font-size: 1rem; font-variant-numeric: tabular-nums; }
.qty-card input:focus { outline: none; background: rgba(252,165,50,.16); }
.qty-card button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.qty-card + .pkg-actions { margin-top: .7rem; }

/* Kopfleiste bleibt oben, beim Scrollen mit dunklem Grund */
.topbar { position: fixed; z-index: 60; transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.topbar .container { transition: margin .3s ease; }
.topbar.scrolled { background: rgba(14,11,8,.82); border-bottom-color: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topbar.scrolled .container { margin-top: 0; padding-top: .45rem; padding-bottom: .45rem; }

/* Warenkorb-Knopf oben rechts: voll = orange „Zur Kasse“ */
.cart-btn { position: relative; }
.cart-btn.filled { padding: .55rem 1rem; color: #1a1208; }
.cart-btn.filled:hover { color: #1a1208; }
.cart-btn.filled .cart-pill { background: #1a1208; color: var(--primary); }
.cart-glow { animation: cart-glow 1.1s cubic-bezier(.2,.7,.3,1) 3; }
.cart-glow .cart-pill { animation: cart-pop .5s cubic-bezier(.16,1,.3,1); }
@keyframes cart-glow {
    0%   { box-shadow: 0 0 0 0 rgba(252,165,50,.8), 0 6px 24px -6px rgba(252,165,50,.9); transform: scale(1); }
    18%  { transform: scale(1.08); }
    36%  { transform: scale(1); }
    100% { box-shadow: 0 0 0 16px rgba(252,165,50,0), 0 6px 24px -6px rgba(252,165,50,0); transform: scale(1); }
}
@keyframes cart-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.fly-img { position: fixed; z-index: 95; pointer-events: none; object-fit: contain; will-change: transform, opacity; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }

.cart-hint {
    position: fixed; z-index: 90; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .35rem;
    font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--primary-light);
    text-shadow: 0 2px 12px rgba(0,0,0,.85); pointer-events: none;
    opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.cart-hint i { font-size: 1.1rem; transform: scaleX(-1) translateY(-.5rem); }
.cart-hint.above { align-items: flex-start; transform: translateY(8px); }
.cart-hint.above i { transform: scale(-1,-1) translateY(-.5rem); }
.cart-hint.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .cart-glow, .cart-glow .cart-pill { animation: none; box-shadow: 0 0 0 3px rgba(252,165,50,.6); }
    .cart-hint { transition: opacity .2s; transform: none; }
}

/* Handy: Kategorie-Grafiken nicht quetschen, lieber in zwei Reihen umbrechen */
@media (max-width: 991px) {
    .cat-list { flex-wrap: wrap; justify-content: center; row-gap: .2rem; }
    .cat-list > *, .catnav a { flex: none; }
    .cat-icon { min-width: 0; }
    .cat-icon img { height: 28px; }
}

/* ============================================================
   Feinschliff 09.10. abends
   RingSMP-Gold (#B06116 → #FBD04A → #F7EE64) nur dort, wo geklickt
   werden soll: Anmelde-Karte. Rest bleibt ruhiges Glas.
   ============================================================ */
:root { --ring-1: #B06116; --ring-2: #FBD04A; --ring-3: #F7EE64; --ink-gold: #2a1804; }

/* Anmelde-Karte: Gold, Fragezeichen-Silhouette, sanftes Atmen */
.account-card.loggedout {
    background: linear-gradient(120deg, var(--ring-1) 0%, var(--ring-2) 58%, var(--ring-3) 100%);
    border: 1px solid rgba(255,236,170,.65); color: var(--ink-gold); overflow: visible;
    box-shadow: 0 14px 34px -14px rgba(251,208,74,.75);
    animation: login-breathe 3.2s ease-in-out infinite;
}
.account-card.loggedout:hover { background: linear-gradient(120deg, #C06F1C 0%, #FFD95E 58%, #FAF283 100%); }
.account-card.loggedout .account-name { color: var(--ink-gold); font-size: 1.02rem; line-height: 1.2; }
.account-card.loggedout .account-sub { color: rgba(42,24,4,.72); font-weight: 600; font-size: .8rem; margin-top: .15rem; display: block; }
.account-card.loggedout .account-arrow { color: var(--ink-gold); font-size: 1.6rem; }
.account-card.loggedout:hover .account-arrow { color: var(--ink-gold); transform: translateX(.35rem); }
.account-card.loggedout .account-avatar img { height: 40px; width: 40px; margin: 0; border-radius: .25rem; image-rendering: pixelated; box-shadow: 0 4px 10px -4px rgba(42,24,4,.6); }
@keyframes login-breathe {
    0%, 100% { box-shadow: 0 14px 34px -14px rgba(251,208,74,.55); }
    50%      { box-shadow: 0 18px 44px -12px rgba(251,208,74,.95); }
}

/* Streichpreis rot, damit der Rabatt auffällt */
.pkg-price .was, .pv-price .was, .featured-price .was {
    color: #FF6B6B; text-decoration: line-through; text-decoration-color: #FF6B6B; text-decoration-thickness: 2px;
}

/* Logo schwebt ganz leicht */
.hero-logo { animation: logo-float 6s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Leiste beim Scrollen: schwebende dunkle Glas-Insel statt brauner Vollbreite */
.topbar.scrolled { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.scrolled .container {
    margin-top: .55rem; padding: .35rem .45rem .35rem .8rem; border-radius: 16px;
    background: rgba(16,16,20,.62); border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 16px 36px -18px rgba(0,0,0,.8);
}

/* Voller Warenkorb-Knopf: Lichtschimmer alle paar Sekunden */
.cart-btn.filled { overflow: hidden; isolation: isolate; }
.cart-btn.filled::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
    transform: translateX(-120%); animation: cart-shine 5s ease-in-out 1.5s infinite;
}
@keyframes cart-shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Welle nach dem Hinzufügen + Knopf wackelt */
.cart-wave {
    position: fixed; z-index: 85; width: 40px; height: 40px; border-radius: 50%; pointer-events: none;
    border: 3px solid rgba(251,208,74,.9);
    background: radial-gradient(circle, rgba(251,208,74,.0) 55%, rgba(251,208,74,.22) 100%);
}
.cart-wave.second { border-color: rgba(247,238,100,.6); border-width: 2px; }
.cart-glow { animation: cart-glow 1.1s cubic-bezier(.2,.7,.3,1) 3, cart-wiggle .6s ease-in-out .1s 1; }
@keyframes cart-wiggle {
    0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; } 40% { rotate: 8deg; } 60% { rotate: -5deg; } 80% { rotate: 3deg; }
}

@media (prefers-reduced-motion: reduce) {
    .account-card.loggedout, .hero-logo, .cart-btn.filled::after { animation: none; }
}

/* Anmelde-Karte: eine Zeile, sauber mittig; Login-Fenster = Glas statt Braun */
.account-card.loggedout .account-name { font-size: 1.2rem; line-height: 1.2; white-space: nowrap; }
.account-card.loggedout .account-avatar img { image-rendering: pixelated; border-radius: .3rem; }
dialog.dlg { background: rgba(18,18,24,.5); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); border: 1px solid rgba(255,255,255,.16); }
dialog.dlg::backdrop { background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.edition { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.edition:hover { background: rgba(255,255,255,.1); }
.edition.active { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.edition.active i { color: #fff; }
.login .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.login .name-preview { background: rgba(255,255,255,.06); }

/* Name ändern direkt unter der Warenkorb-Karte */
.name-switch { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: -.55rem; padding: .6rem 1rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.name-switch b { color: #fff; font-weight: 700; }
.name-switch i { color: var(--primary); }
.name-switch:hover { background: rgba(255,255,255,.1); border-color: rgba(252,165,50,.55); color: #fff; }
.name-switch:focus-visible { outline: 2px solid rgba(252,165,50,.7); outline-offset: 2px; }
@media (max-width: 991px) { .main-grid > .sidebar > .name-switch { order: 1; margin-top: -.5rem; } }

/* Kopf in der Warenkorb-Karte = Name ändern (Stift-Abzeichen) */
.account-card.loggedin .account-avatar { position: relative; border-radius: .3rem; transition: transform .2s; }
.account-card.loggedin .account-avatar::after {
    content: "\f4ff"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -6px; bottom: -6px;
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem;
    background: var(--primary); color: #1a1208; box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.account-card.loggedin .account-avatar:hover { transform: scale(1.08); }
.account-card.loggedin .account-avatar:hover img { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Panel-Texte mit fest eingebautem Dunkelgrau (#666/#444) lesbar machen */
.store-description [style*="color:#666"], .store-description [style*="color: #666"] { color: rgba(255,255,255,.62) !important; }
.store-description hr[style*="#444"] { background: rgba(255,255,255,.15) !important; }

/* Aktive Kategorie klar erkennbar: die anderen treten zurück, die aktive leuchtet leicht, Strich wächst rein */
.cat-list .cat-icon img { transition: opacity .25s, filter .25s, transform .25s; }
.cat-list:has(a.active) > a:not(.active) .cat-icon img,
.cat-list:has(a.active) > .cat-group:not(.open) .cat-opener .cat-icon img { opacity: .45; filter: saturate(.4); }
.cat-list:has(a.active) > a:not(.active):hover .cat-icon img { opacity: .9; filter: none; }
.catnav a.active .cat-icon img { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(251,208,74,.45)); }
.catnav a.active::after { width: 3rem; animation: cat-line .5s cubic-bezier(.16,1,.3,1) both; transform-origin: left center; }
@keyframes cat-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 991px) { .catnav a.active::after { transform-origin: center; } }
@media (prefers-reduced-motion: reduce) { .catnav a.active::after { animation: none; } }
