/* cd_admin – CD-Katalog auf der Website */
.cd-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 16px 0;
}
.cd-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cd-card-cover {
  width: 215px;
  flex-shrink: 0;
  text-align: center;
}
.cd-cover-image {
  width: 211px;
  height: 211px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto 8px auto;
}
.cd-card-catnr {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 4px;
}
.cd-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
}
.cd-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 215px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  border: 1px solid #14532d;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  line-height: 1.2;
}
.cd-btn-buy:hover {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
.cd-btn-buy:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cd-cart-icon {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Warenkorb-Bestätigungs-Modal (Popup) */
.cd-cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.cd-cart-modal-overlay.cd-modal-active {
  opacity: 1;
}
.cd-cart-modal {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.2s ease-out;
}
.cd-cart-modal-overlay.cd-modal-active .cd-cart-modal {
  transform: scale(1) translateY(0);
}
.cd-cart-modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cd-cart-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}
.cd-modal-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  font-size: 14px;
  font-weight: bold;
}
.cd-cart-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 4px;
}
.cd-cart-modal-close:hover {
  opacity: 1;
}
.cd-cart-modal-body {
  padding: 20px;
}
.cd-cart-modal-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.cd-modal-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.cd-modal-details {
  flex: 1;
  min-width: 0;
}
.cd-modal-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cd-modal-item-catnr {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.cd-modal-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
}
.cd-cart-modal-summary {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
  text-align: center;
}
.cd-cart-modal-footer {
  padding: 14px 20px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cd-btn-continue {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cd-btn-continue:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.cd-btn-cart {
  background: #ffffff;
  border: 1px solid #2563eb;
  color: #2563eb !important;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.cd-btn-cart:hover {
  background: #eff6ff;
}
.cd-btn-checkout {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border: 1px solid #14532d;
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.cd-btn-checkout:hover {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
@media (max-width: 520px) {
  .cd-cart-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cd-cart-modal-footer a, .cd-cart-modal-footer button {
    text-align: center;
  }
}
.cd-audio-player {
  margin-top: 8px;
}
.cd-audio-player audio {
  width: 100%;
  height: 30px;
}
.cd-card-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
}
.cd-card-content h6, .cd-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 6px 0;
}
.cd-review-quote {
  text-align: right;
  margin-top: 10px;
  color: #4b5563;
}
.cd-review-more {
  margin-top: 6px;
}
.cd-review-more a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.cd-review-more a:hover {
  text-decoration: underline;
}
.cd-legal-note {
  margin: 16px 0;
  font-size: 11px;
  color: #6b7280;
}

@media (max-width: 680px) {
  .cd-card {
    flex-direction: column;
    align-items: center;
  }
  .cd-card-cover {
    width: 100%;
    max-width: 260px;
  }
  .cd-cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .cd-card-content {
    width: 100%;
  }
}

/* Kacheln für ausgewählte CDs (Inhaltsblock "CD-Auswahl", z. B. Neuheiten auf der Startseite) */
.cd-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 16px 0;
}
.cd-teaser {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}
.cd-teaser-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.cd-teaser-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  padding: 10px 12px 12px;
}
.cd-teaser-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}
.cd-teaser-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.cd-teaser-title a {
  color: inherit;
  text-decoration: none;
}
.cd-teaser-title a:hover {
  text-decoration: underline;
}
.cd-teaser-byline {
  font-size: 13px;
  color: #374151;
}
.cd-teaser .cd-card-price {
  margin: 4px 0 6px;
}
.cd-teaser .cd-buy-form {
  margin-top: auto;
}

/* Inhaltsblock cd_search */
.cd-search {
  margin: 16px 0;
}
.cd-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cd-search-field {
  display: flex;
  gap: 8px;
  max-width: 640px;
}
.cd-search-field input[type="search"] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px 0 38px;
  font-size: 15px;
  color: #1f2937;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E") no-repeat 12px center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.cd-search-field input[type="search"]:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 0;
  border-color: #3b82f6;
}
.cd-search-submit {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1e3a8a;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.cd-search-submit:hover {
  background: #1e40af;
}
.cd-search-status {
  min-height: 1.4em;
  margin: 10px 0 6px;
  font-size: 13px;
  color: #6b7280;
}
.cd-search-busy .cd-search-results {
  opacity: .5;
  transition: opacity .15s;
}
.cd-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e7eb;
}
.cd-result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cd-result-cover img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.cd-result-body {
  flex: 1;
  min-width: 0;
}
.cd-result-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.cd-result-title a {
  color: inherit;
  text-decoration: none;
}
.cd-result-title a:hover {
  text-decoration: underline;
}
.cd-result-byline,
.cd-result-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}
.cd-result-buy {
  flex-shrink: 0;
  width: 170px;
  text-align: right;
}
.cd-result-buy .cd-card-price {
  margin-bottom: 4px;
}
.cd-result-buy .cd-btn-buy {
  padding: 6px 10px;
  font-size: 12px;
}
@media (max-width: 520px) {
  .cd-result {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .cd-result-body {
    flex-basis: calc(100% - 86px);
  }
  .cd-result-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .cd-result-buy .cd-card-price {
    margin: 0;
  }
  .cd-result-buy .cd-buy-form {
    flex: 1;
    max-width: 200px;
  }
}
