.farbkatalog-page {
  display: flex;
  flex-direction: column;
}

.farbkatalog-search-bar {
  margin: 1.5rem 0;
  max-width: 36rem;
  width: 100%;
}

.farbkatalog-search-bar .input {
  box-shadow: 0 2px 8px rgba(59, 48, 38, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.farbkatalog-search-bar .input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.farbkatalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.farbkatalog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(59, 48, 38, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.farbkatalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 48, 38, 0.08);
  border-color: var(--color-accent);
}

.farbkatalog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  background: var(--color-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.farbkatalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.farbkatalog-card:hover .farbschlag-card-img,
.farbkatalog-card:hover .farbkatalog-card-img {
  transform: scale(1.05);
}

.farbkatalog-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #ecd0b9 100%);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.farbkatalog-card-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.farbkatalog-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.farbkatalog-card-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  display: block;
}

.farbkatalog-card-genotype {
  margin-top: auto;
  padding-top: 0.75rem;
}

.farbkatalog-card-genotype code {
  font-family: monospace;
  font-size: 0.72rem;
  background: var(--color-bg);
  color: var(--color-accent);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}

.farbkatalog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 0.75rem;
  text-align: center;
  color: var(--color-text-muted);
}

.farbkatalog-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .farbkatalog-grid {
    gap: 1.25rem;
  }
}
