/* ===============================
   GRID – ÜBERSICHT
=============================== */
.ka-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:20px;
}

@media(max-width:1000px){
  .ka-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
  .ka-grid{grid-template-columns:1fr;}
}

/* ===============================
   KARTE
=============================== */
.ka-item{
  position:relative;
  height:420px;
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* ===============================
   PREIS BADGE
=============================== */
.ka-price-badge{
  position:absolute;
  top:10px;
  right:10px;
  background:#e30613;
  color:#fff;
  font-weight:700;
  padding:6px 10px;
  border-radius:4px;
  font-size:14px;
}

/* ===============================
   BILD
=============================== */
.ka-image{
  width:100%;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ka-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.ka-noimg{
  font-size:.9rem;
  color:#777;
}

/* ===============================
   TITEL
=============================== */
.ka-title{
  margin-top:10px;
  font-weight:600;
  text-align:center;
}

/* ===============================
   AKTIONEN / BUTTONS
=============================== */
.ka-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:10px;
}

.btn-preview,
.btn-ebay{
  flex:1;
  padding:8px 14px;
  text-align:center;
  font-weight:600;
  text-decoration:none;
}

.btn-preview{
  background:#eee;
  color:#000;
  border:1px solid #ccc;
}

.btn-ebay{
  background:#c00;
  color:#fff;
}

.btn-ebay:hover{
  background:#a00;
}

/* ===============================
   DETAILANSICHT
=============================== */
.ka-detail{
  max-width:900px;
}

.ka-detail-images{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:10px;
  margin-bottom:15px;
}

.ka-detail-images img{
  width:100%;
  height:auto;
}

.ka-description{
  margin:15px 0;
}

.big{font-size:1.2rem;}
.ka-back{display:inline-block;margin-bottom:15px;}

/* ===============================
   MODAL
=============================== */
.ka-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.ka-modal.open{
  display:block;
}

.ka-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.ka-content{
  position:relative;
  max-width:900px;
  margin:5vh auto;
  background:#fff;
  padding:20px;
  max-height:90vh;
  overflow:auto;
}

.ka-close{
  position:absolute;
  top:10px;
  right:10px;
  font-size:24px;
  background:none;
  border:none;
  cursor:pointer;
}

