':root {
    --bg: #1e293b;                    /* deutlich heller dunkelblau */
    --bg-elevated: #334155;
    --accent: #38bdf8;
    --accent-soft: #0ea5e9;
    --danger: #f97373;
    --text: #ffffff;                  /* PURE WEISS */
    --text-dimmed: #f1f5f9;           /* fast weiss */
    --muted: #e2e8f0;                 /* sehr hell */
    --border: #475569;
    --radius: 12px;
    --shadow: 0 18px 40px rgba(30,41,55,0.8);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #334155 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Layout */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: linear-gradient(to right, rgba(51,65,85,0.98), rgba(30,41,55,0.96));
    border-bottom: 1px solid rgba(148,163,184,0.3);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 20%, #60a5fa 0, #3b82f6 35%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.8), 0 0 24px rgba(56,189,248,0.6);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.brand-text span {
    font-size: 12px;
    color: var(--text-dimmed);
}

header nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    font-size: 13px;
    color: var(--text);
    background: rgba(51,65,85,0.95);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.08s;
}
.btn:hover {
    background: rgba(30,64,175,0.9);
    border-color: rgba(129,140,248,1);
    box-shadow: 0 0 16px rgba(56,189,248,0.6);
}
.btn:active {
    transform: scale(0.97);
}

.btn-accent {
    border-color: rgba(56,189,248,0.95);
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #0b1120;
    font-weight: 600;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 32px;
}

/* Hero / Filter */

.hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

.hero-sub {
    font-size: 13px;
    color: var(--text-dimmed);
}

.hero-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(51,65,85,0.95);
    color: var(--text-dimmed);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chip-active {
    border-color: rgba(56,189,248,1);
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.5), rgba(51,65,85,0.95));
    color: var(--text);
}

.search-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(51,65,85,0.98);
    color: var(--text) !important;
    font-size: 13px;
}
.search-input::placeholder {
    color: var(--text-dimmed) !important;
}
.search-input:focus {
    outline: none;
    border-color: rgba(56,189,248,0.9);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.card {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(51,65,85,0.98));
    border-radius: var(--radius);
    border: 1px solid rgba(71,85,105,0.95);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0f172a;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.2s, opacity 0.2s;
}
.card:hover .card-thumb img {
    transform: scale(1.07);
    opacity: 0.95;
}

.card-platform {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(51,65,85,0.95);
    border: 1px solid rgba(148,163,184,0.8);
    color: var(--text-dimmed);
}

.card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-price {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
}

.card-seller {
    font-size: 12px;
    color: var(--text-dimmed);
}

.card-shipping {
    font-size: 11px;
    color: var(--text-dimmed);
}

.badge-cond {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    color: var(--text-dimmed);
}

/* Rest bleibt gleich, nur Farbvariablen aktualisiert */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1.4fr);
    gap: 24px;
    margin-top: 12px;
}

.detail-gallery {
    background: rgba(51,65,85,0.98);
    border-radius: var(--radius);
    border: 1px solid rgba(71,85,105,0.95);
    padding: 12px;
    box-shadow: var(--shadow);
}

.detail-main {
    border-radius: 10px;
    overflow: hidden;
    max-height: 360px;
    background: #0f172a;
}
.detail-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.detail-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(71,85,105,0.95);
    cursor: pointer;
    flex: 0 0 auto;
}
.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.detail-thumb-active {
    border-color: rgba(56,189,248,1);
}
.detail-thumb:hover img {
    opacity: 1;
}

.detail-info {
    background: radial-gradient(circle at top, rgba(30,64,175,0.55), rgba(51,65,85,0.98));
    border-radius: var(--radius);
    border: 1px solid rgba(71,85,105,0.95);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

.detail-rows {
    font-size: 13px;
    color: var(--text-dimmed);
}

.detail-rows span {
    display: inline-block;
}

.detail-price-block {
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(51,65,85,0.98);
    border: 1px solid rgba(56,189,248,0.95);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.detail-price {
    font-size: 22px;
    font-weight: 800;
    color: #facc15;
}

.detail-shipping {
    font-size: 12px;
    color: var(--text-dimmed);
}

.detail-contact {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-dimmed);
}

.detail-contact strong {
    color: var(--text);
}

.detail-desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.seller-header {
    background: radial-gradient(circle at top, rgba(56,189,248,0.2), rgba(51,65,85,0.98));
    border-radius: var(--radius);
    padding-bottom: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(71,85,105,0.95);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.seller-banner {
    height: 160px;
    background: #0f172a;
    background-size: cover;
    background-position: center;
}

.seller-main {
    display: flex;
    gap: 16px;
    padding: 12px 16px 0;
    align-items: flex-end;
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    border: 3px solid rgba(51,65,85,0.98);
    box-shadow: 0 0 0 2px rgba(56,189,248,0.85);
    overflow: hidden;
    background: #0f172a;
}
.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.seller-bio {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-dimmed);
}

.seller-favs {
    margin-top: 12px;
    padding: 0 16px 10px;
}
.favs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.fav-item {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(71,85,105,0.95);
    flex: 0 0 auto;
    background: #0f172a;
}
.fav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty {
    text-align: center;
    color: var(--text-dimmed);
    padding: 48px 0;
    font-size: 14px;
}

@media (max-width: 800px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .detail-gallery {
        order: 1;
    }
    .detail-info {
        order: 2;
    }
}
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
