:root{
  --bg:#0b0c10;
  --card:#121420;
  --text:#e9ecf1;
  --muted:#a8afbd;
  --line:#23263a;
  --pill: rgba(0,0,0,.35);
  --accent: #5fa8a1;
  --accent-soft: rgba(95,168,161,.25);
  --accent-border: #4f8f89;
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

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

/* ───────────────────────────── TOPBAR ───────────────────────────── */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  background:rgba(11,12,16,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
  flex: 1 1 180px;
  min-width: 140px;
  text-align:center;
}

.topbar .left,
.topbar .center,
.topbar .right{
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar .left,
.topbar .right{
  flex: 0 0 auto;
}

.topbar .center{
  flex: 1 1 auto;
  justify-content:center;
}

.logo{
  height:36px;
  width:auto;
  display:block;
  opacity:.95;
}

.cta{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f111a;
  white-space:nowrap;
}

@media (max-width: 520px){
  .topbar{ justify-content:center; }
  .brand{ order:-1; width:100%; }
  .cta{ width:100%; text-align:center; }
  .topbar .left, .topbar .center, .topbar .right{
    width:100%;
    justify-content:center;
  }
}

/* ───────────────────────────── LAYOUT ───────────────────────────── */

.wrap{ max-width:1150px; margin:0 auto; padding:18px; }

.hero h1{ margin:10px 0 6px; font-size:2rem; }
.hero p{ margin:0 0 14px; opacity:.75; color:var(--muted); }

/* ───────────────────────────── GRID + CARD ───────────────────────────── */

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

.card{
  position:relative;
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  transition: transform .12s ease, border-color .12s ease;
}

/* 1px MODEL FARBRAND */
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:var(--model-color, transparent);
  opacity:.9;
  z-index:2;
}

/* Bildbereich */
.thumb-wrap{
  position:relative;
  aspect-ratio: 3 / 4;
  overflow:hidden;
  background:#0f111a;
  margin-top:1px;
}

.thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#loading {
  text-align: center;
  opacity: 0.7;
}

.is-locked .thumb{
  transform: scale(1.02);
}

.lock-pill{
  position:absolute;
  left:10px;
  bottom:10px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--pill);
  color:var(--text);
}

/* MODEL NAME – Galerie (feiner, größer, ruhiger) */
.model-name{
  padding:7px 12px 2px;
  font-size:0.82rem;              /* etwas größer */
  letter-spacing:0.015em;
  line-height:1.2;
  font-weight:500;                /* leichter als vorher */
  color: var(--model-color, var(--text));
  opacity:0.95;
}

/* Prefix “Model:” bewusst zurückhaltend */
.model-name::before{
  content:"Model: ";
  color: var(--muted);
  font-weight:400;
  opacity:0.8;
}


/* Card Body */
.card-body{
  padding:10px 12px 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.title{
  font-weight:700;
  line-height:1.25;
}

/* Preis – ruhig, hochwertig */
.price{
  font-weight:500;        /* nicht mehr fett */
  font-size:0.9rem;
  opacity:0.85;
  letter-spacing:0.01em;
}


/* Hover */
.card:hover{
  transform: translateY(-2px);
  border-color:#3a3f5e;
}

/* ───────────────────────────── PRODUCT PAGE (unverändert) ───────────────────────────── */

.media{
  position:relative;
  border-radius:18px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#0f111a;
}

.media img{
  width:100%;
  display:block;
  opacity:0;
  transition: opacity .25s ease;
}

.media img.img-visible{ opacity:1; }

.media.locked img{
  transform: scale(1.03);
}

.overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
  pointer-events:none;
}

.overlay-box{
  background: rgba(20,20,20,0.85);
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
}

.hidden{
  display:none !important;
}
.info{
  margin-top:16px;
}

.muted{ color:var(--muted); }

/* Desktop Produktbild – ruhiger & größer */
@media (min-width: 900px) {
  .media {
    max-width: 980px;
    margin: 0 auto;
  }

  .media img {
    max-height: none;
    object-fit: contain;
  }
}

/* Weitere Werke – Mobile wieder 2 Spalten */
@media (max-width: 680px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0f111a;
  color:var(--text);
  cursor:pointer;
  display:inline-block;
}

.btn.buy{
  background: linear-gradient(135deg, #2f8f5b, #3bbf78);
  border: none;
  color: #0b0c10;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 8px 24px rgba(59,191,120,.25);
}

.btn.buy:active{
  transform: translateY(1px);
}

.more-works-section{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.more-works-section h3{
  margin: 0 0 10px;
}

/* Hidden fix */
[hidden]{
  display:none !important;
}

.media.owned {
  box-shadow: 0 0 40px rgba(120,180,255,.35);
  transition: box-shadow .4s ease;
}



/* ─────────────────────────────
   Model Filter (Galerie)
   Schritt B2
   ───────────────────────────── */

.model-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}

.model-filter button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0f111a;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}

.model-filter button.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent-border);
}

.model-filter button:hover {
  color: var(--text);
}

.model-filter .hidden-model[hidden]{
  display:none;
}

.model-filter .more-models{
  opacity:0.6;
  font-weight:500;
}
.media {
  max-width: 900–1000px;
  margin: 0 auto;
}
.media img {
  max-height: 80vh;
  object-fit: contain;
}

/* ✅ Owned / gekauft – grünes Häkchen */
.corner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2ecc71;
  color: #0b0c10;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.45);
}

/* ─────────────────────────────────────────
   OPEN VIEW (Free Content) – Galerie Badge
   Diszipliniert: rein visuell, kein JS
   ───────────────────────────────────────── */

/* Schloss bei nicht-gesperrten Karten ausblenden */
.card:not(.is-locked) .lock-pill {
  display: none;
}

.card:not(.is-locked):not(:has(.corner-badge))::after {
  content: "OPEN VIEW";
  position: absolute;
  left: 14px;
  bottom: 96px; /* ⬅️ DAS ist der entscheidende Fix */
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  color: #e6f2ee;
  background: rgba(180, 210, 200, 0.14);
  border: 1px solid rgba(180, 210, 200, 0.5);
  pointer-events: none;
  z-index: 2;
}

