/* Bundesmünzen – Gemeinsames CSS für alle Münzseiten */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: transparent !important;
  background-color: transparent !important;
}

html {
  min-height: 100%;
  background: 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;
}

@media (max-width: 880px) {
  .filter-card {
    padding: 20px 18px;
  }
}

h1{ font-family: "Playfair Display", serif; font-size:28px; margin:0 0 14px; color:#6f5938; }

#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 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding-right: 0;
}

.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-body h3:hover {
  color: #9b7a46;
}

.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.7); border-radius:6px; padding:6px 8px 4px 8px; }
.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; }

.overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: radial-gradient(circle at top, rgba(255,255,255,0.98), rgba(255,255,255,0.78) 20%, rgba(223,196,141,0.35) 60%, rgba(255,255,255,0.16) 100%); background-blend-mode: screen; z-index: 2000; padding: 28px; backdrop-filter: blur(4px); box-shadow: inset 0 0 90px rgba(255,255,255,0.35); border: none; }
.overlay::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.45), transparent 18%), radial-gradient(circle at 82% 14%, rgba(255,255,255,0.24), transparent 20%); pointer-events: none; }
#cartConfirmOverlay { z-index: 3000; background: rgba(255,255,255,0.84); backdrop-filter: blur(6px); }
.overlay.open { display:flex; animation: overlayFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes overlayFadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(4px); } }
.modal { position: relative; width: 980px; max-width: 98%; background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,244,236,0.98) 45%, rgba(242,239,231,0.95) 100%); border-radius: 24px; box-shadow: 0 24px 72px rgba(80,80,80,0.26), 0 0 0 1px rgba(120,90,45,0.24); display:flex; gap:24px; padding:32px; position:relative; box-sizing:border-box; font-size:15px; border: 3px solid #6f5938; animation: modalZoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; }
.modal::before { content: ""; position: absolute; top: -26px; right: -30px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 55%); pointer-events: none; }
.title-row { position: relative; }
.title-row::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 72px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #9b7a46, #bfa36b); }
@keyframes modalZoomIn { from { opacity: 0; transform: scale(0.72) translateY(30px) rotate(-2deg); filter: blur(8px); } to { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); filter: blur(0px); } }
.close { position:absolute; top:18px; right:18px; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,245,245,0.9)); border: 1.5px solid rgba(200,200,200,0.4); width: 38px; height: 38px; border-radius: 50%; font-size:22px; cursor:pointer; color:#666; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: 0 2px 8px rgba(100,100,100,0.15); z-index: 10; }
.close::before { content: ''; position: absolute; top: -10px; right: -10px; bottom: -10px; left: -10px; }
.close:hover { background: linear-gradient(135deg, #9b7a46, #6f5938); color: white; 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;}

@media (max-width: 720px) {
  main { padding: 16px 12px 28px; }
  #coins-container { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .coin-card { border-radius: 18px; padding: 14px 12px; }
  .thumb { width: min(78vw, 260px); border-radius: 16px; }
  .card-body h3 { font-size: 1.1rem; }
  .btn-inline { width: 100%; min-height: 44px; height: auto; }
  .overlay { padding: 10px; }
  .modal { width: 100%; max-width: 100%; max-height: calc(100vh - 20px); overflow-y: auto; flex-direction: column; gap: 16px; padding: 18px 14px; border-radius: 16px; }
  .left { width: 100%; min-width: 0; }
  .right { width: 100%; min-width: 0; }
  .title-row { align-items: flex-start; }
  .title-row h2 { font-size: 23px; overflow-wrap: anywhere; }
  .specs { gap: 8px; }
  .spec { flex: 1 1 130px; min-width: 0; padding: 9px 10px; }
  .grade-dropdown { max-width: none; }
}

@media (max-width: 480px) {
  main { padding: 12px 10px 24px; }
  .filter-card { padding: 16px 14px; border-radius: 18px; }
  .coin-card { padding: 12px 10px; }
  .thumb { width: min(74vw, 220px); }
  .card-body h3 { font-size: 1rem; }
  .card-price { font-size: 1rem; }
  .meta { font-size: 12px; }
  .btn-inline { font-size: 12px; }
  .close { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 18px; }
  .modal { padding: 16px 12px 14px; }
  .zustand-btn { padding: 12px 14px; }
  .spec { flex-basis: 100%; }
}
.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,245,245,0.9)); 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 {
  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.55; filter: blur(1px); cursor: pointer; border-color: rgba(170,170,170,0.45); }
.zustand-btn.disabled:hover {
  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.blurred-unavailable { opacity: 0.55; filter: blur(1px); cursor: pointer; border-color: rgba(170,170,170,0.45); }
.zustand-btn.blurred-unavailable:hover {
  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.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); }
.zustand-btn .grade-label { flex: 1; text-align: left; font-size: 14px; }
.zustand-btn .verf { font-size: 13px; color: #666; white-space: nowrap; }
@media (max-width: 660px) {
  .grade-dropdown-menu { max-height: 260px; }
}
.description{ margin-top:6px; color:#333; line-height:1.45; border: 2px solid #6f5938; border-radius:12px; padding:14px 16px; background: linear-gradient(135deg, rgba(255,253,248,0.9), rgba(247,244,236,0.92)); box-shadow: 0 6px 18px rgba(111,89,56,0.16); }
.small { font-size:13px; color:var(--muted); }
.price-row{ display:flex; align-items:center; gap:14px; margin-top:10px; }
.spot { font-size:13px; color:var(--muted); }
.price { font-family:"Inter", Arial, sans-serif; font-size:26px; color:#111; font-weight:700; letter-spacing:0.5px; display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 18px; font-weight: 600; color: #666; }
.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-prefix { font-size:14px; font-weight:600; color:#c9a13b; }
.card-price-currency { font-size:14px; font-weight:600; color:#c9a13b; }
.actions{ display:flex; gap:10px; margin-top:18px; align-items:center; }
.btn { padding:12px 20px; border-radius:12px; border:none; cursor:pointer; font-weight:600; transition: all 0.2s; font-size: 15px; height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.btn.secondary { background: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(240,240,240,0.9)); color:#555; border: 1.5px solid rgba(200,200,200,0.4); box-shadow: 0 2px 8px rgba(120,120,120,0.1); }
.btn.secondary:hover { background: linear-gradient(135deg, rgba(240,240,240,0.95), rgba(250,250,250,0.9)); border-color: rgba(180,180,180,0.6); box-shadow: 0 4px 12px rgba(120,120,120,0.2); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #9b7a46 0%, #bfa36b 50%, #9b7a46 100%); color: #fff; box-shadow: 0 8px 20px rgba(155,122,70,0.3); }
.btn.primary:hover { box-shadow: 0 12px 28px rgba(155,122,70,0.4); transform: translateY(-2px); }
.trust { display:flex; gap:10px; align-items:center; margin-top:10px; color:var(--muted); font-size:13px; }
.modal-footer{ margin-top:14px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.confirm-modal { max-width: 480px; width: 90%; background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(250,250,250,0.98) 100%); border-radius: 20px; box-shadow: 0 20px 60px rgba(80,80,80,0.25), 0 0 0 1px rgba(180,180,180,0.3); padding: 40px 32px; border: 3px solid #6f5938; animation: modalZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (max-width:880px){ .modal{ flex-direction:column; padding:16px; width:92%; max-height:95vh; overflow:auto; } .left{ width:100%; } .main-image{ aspect-ratio: 1.2/1; } .confirm-modal{ padding:32px 24px; } }
