/* Gemeinsame Stile für Gedenkmünzen-Seiten */
html, body {
  min-height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: transparent !important;
  background-color: transparent !important;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 32px 18px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-top: none;
  border-bottom: none;
  backdrop-filter: none;
}

.filter-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(191,163,107,0.22);
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(84,68,39,0.12);
  padding: 26px 24px;
  margin: 0 auto 28px auto;
  max-width: 980px;
  backdrop-filter: blur(10px);
  background-clip: padding-box;
}

.filter-card > div {
  width: 100%;
}

.filter-card label,
.filter-card input,
.filter-card select {
  font-family: 'Inter', Arial, sans-serif;
}

h1,
.title-row h2,
.card-body h3 {
  color: #6f5938;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 0 0 14px;
}

#coins-container {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 18px;
  margin-top: 14px;
}

.coin-card {
  background: linear-gradient(120deg, rgba(255,255,255,0.85) 70%, rgba(243,231,215,0.80) 100%);
  border-radius: 28px;
  padding: 18px 14px;
  box-shadow: 0 2px 8px rgba(176,176,176,0.09);
  border: 1.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border 0.18s, background 0.18s;
  margin-bottom: 16px;
}

.coin-card:hover {
  box-shadow: 0 4px 16px #b0b0b022;
  border: 1.5px solid #cfcfcf;
  background: linear-gradient(120deg, rgba(255,255,255,0.92) 40%, rgba(230,230,230,0.85) 100%);
}

.thumb {
  width: 80%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f7f3 0%, #e8e4dc 100%);
  border: 1px solid rgba(191,163,107,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
  color: #6f5938;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  line-height: 1.25;
  max-height: 3.75em;
}

.card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 17px;
  color: #c9a13b;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  margin: 4px 0 2px 0;
  letter-spacing: 0.5px;
}

.card-price-currency {
  font-size: 15px;
  font-weight: 600;
  color: #c9a13b;
}

.meta {
  font-size: 13px;
  color: #7a7a7a;
  margin-top: 8px;
  line-height: 1.3;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 6px 8px 4px 8px;
  border: 1px solid #ececec;
}

.btn-inline {
  margin-top: 12px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #bfa36b;
  background: linear-gradient(90deg, #fff, #f3e7d7 80%);
  color: #9b7a46;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border 0.18s;
  height: 32px;
  line-height: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-inline:hover {
  background: linear-gradient(90deg, #f3e7d7 60%, #fff 100%);
  color: #7a5a1a;
  border: 1.5px solid #b0b0b0;
  border-color: #6f5938;
  box-shadow: 0 4px 12px rgba(111,89,56,0.3);
}

.left {
  width: 420px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.main-image {
  width: 100%;
  background: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(240,240,240,0.85));
  border-radius: 16px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(150,150,150,0.12) inset, 0 0 0 1px rgba(200,200,200,0.25);
  border: 2px solid rgba(200,200,200,0.3);
  position: relative;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.main-image:hover img {
  transform: scale(1.28);
}

.image-nav-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255,255,255,0.7) !important;
  border: 1.5px solid rgba(191,163,107,0.4) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  z-index: 10 !important;
  color: #9b7a46 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(155,122,70,0.15) !important;
  opacity: 0.6 !important;
  backdrop-filter: blur(4px) !important;
  padding: 0 !important;
  gap: 0 !important;
}

.image-nav-arrow:hover {
  background: linear-gradient(135deg, #9b7a46, #bfa36b) !important;
  color: white !important;
  border-color: #9b7a46 !important;
  box-shadow: 0 4px 12px rgba(155,122,70,0.35) !important;
  transform: translateY(-50%) scale(1.1) !important;
  opacity: 1 !important;
}

.image-nav-arrow.left { left: 8px !important; }
.image-nav-arrow.right { right: 8px !important; }

.thumb-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.thumb-row button {
  width: 72px;
  aspect-ratio: 1 / 1;
  min-width: 72px;
  border-radius: 12px;
  border: 2px solid rgba(200,200,200,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,245,245,0.9));
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(120,120,120,0.1);
}

.thumb-row button:hover {
  border-color: rgba(150,150,150,0.6);
  box-shadow: 0 4px 16px rgba(120,120,120,0.25);
  transform: translateY(-2px);
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.title-row h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.spec {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,240,225,0.96));
  border: 1.5px solid rgba(200,200,200,0.35);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: #555;
  box-shadow: 0 2px 6px rgba(120,120,120,0.08);
}

.grade-dropdown {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
}

.grade-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(160,138,86,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,240,225,0.96));
  color: #3c3c3c;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 10px rgba(120,120,120,0.08);
  text-align: left;
}

.grade-dropdown-toggle:hover {
  border-color: #bfa36b;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(243,237,217,0.98));
}

.grade-dropdown.open .grade-dropdown-toggle {
  border-color: #9b7a46;
  box-shadow: 0 0 0 4px rgba(151,122,70,0.08);
}

.grade-dropdown-toggle svg {
  transition: transform 0.25s ease;
}

.grade-dropdown.open .grade-dropdown-toggle svg {
  transform: rotate(180deg);
}

.grade-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 100%;
  padding: 14px;
  background: #fff;
  border: 1.5px solid rgba(160,138,86,0.3);
  border-radius: 20px;
  box-shadow: 0 22px 45px rgba(100,80,40,0.16);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.grade-dropdown.open .grade-dropdown-menu {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

.zustand-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.2px solid rgba(210,180,140,0.5);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,245,241,0.98));
  color: #2d2d2d;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(120,120,120,0.08);
}

.zustand-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  border-color: rgba(151,122,70,0.55);
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(249,243,225,0.98));
}

.zustand-btn.selected {
  border-color: #9b7a46;
  background: linear-gradient(135deg, rgba(249,245,229,0.98), rgba(248,242,222,0.98));
  box-shadow: 0 4px 16px rgba(148,118,63,0.14);
}

.zustand-btn.selected .grade-label { color: #7a5a1a; }
.zustand-btn.selected .verf { color: #9b7a46; font-weight: 700; }
.zustand-btn.disabled { opacity: 0.65; cursor: not-allowed; border-color: rgba(170,170,170,0.45); }
.zustand-btn.disabled:hover { transform: none; }
.zustand-btn.unavailable { opacity: 0.7; border-color: rgba(200,150,100,0.4); background: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(240,240,235,0.95)); }
.zustand-btn.unavailable:hover { transform: translateY(-1px); border-color: rgba(151,122,70,0.4); }
