:root {
  --bg: #0b0c10;
  --card: #12141c;
  --muted: #9aa4b2;
  --text: #e7eef8;
  --brand: #7c5cff;
  --brand2: #22c55e;
  --danger: #ef4444;
  --border: #23283a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0b0c10, #0b0c10 40%, #07080b);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* --- HEADER / BRAND --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  z-index: 10;
}

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

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #2dd4bf);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.25);
}

h1 {
  font-size: 16px;
  margin: 0;
}

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

.translation-buttons button {
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, 0.9);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.15s;
}

.translation-buttons button:hover {
  transform: translateY(-1px);
  border-color: #3a4160;
}

.translation-buttons .active {
  background: linear-gradient(135deg, var(--brand), #2dd4bf);
  border-color: transparent;
}

/* --- SEARCH / TOPBAR --- */
.search {
  width: min(520px, 55vw);
  border: 1px solid var(--border);
  background: rgba(11, 12, 16, 0.6);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
}

.topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
}

.badge {
  font-size: 12px;
  color: var(--muted);
}

/* --- GRID / CARDS --- */
.grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: rgba(18, 20, 28, 0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.img {
  aspect-ratio: 1 / 1;
  background: #0f1118;
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 200px;
}

.imgFallback {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 14px;
  font-size: 12px;
  text-align: center;
}

/* --- CARD BODY LIQUID GLASS --- */
.cardBody {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease, transform 0.2s ease;
}

.cardBody:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.move-to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 110px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.25),
    rgba(34, 197, 94, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 22px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease-in-out;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.25s ease;
}

.move-to-top-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.move-to-top-button:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.35),
    rgba(34, 197, 94, 0.35)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.uv-link {
  background: linear-gradient(135deg, var(--brand), #2dd4bf);
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.titleRow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.title {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
}

.price {
  color: #c7d2fe;
  font-weight: 800;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

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

/* --- FOOTER --- */
footer {
  margin-top: 40px;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(18, 20, 28, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #2dd4bf);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.25);
}

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

/* --- rechte Spalte --- */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Abstand zwischen den beiden Reihen */
  align-items: flex-start; /* linksbündig innerhalb der rechten Spalte */
}

.footer-row {
  display: flex;
  gap: 14px; /* Abstand zwischen den Links */
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.footer-right a:hover {
  color: var(--brand2);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-right {
    gap: 10px;
  }

  .footer-row {
    gap: 10px;
  }
}