/* ABGABE-STATUS: Reservierungs-/Abgabe-Status-Seite. */

.reservierungen__hint {
  font-size: 0.85rem;
}

.reservierungen__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

.reservierungen__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reservierungen-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.reservierungen-filter--active {
  background: var(--accent, #3b6ea5);
  color: #fff;
  border-color: var(--accent, #3b6ea5);
}

.reservierungen-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0 0.35em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.8em;
}

.reservierungen-filter--active .reservierungen-filter__count {
  background: rgba(255, 255, 255, 0.3);
}

.reservierungen__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.reservation-card {
  border: 1px solid var(--border, #ddd);
  border-left: 4px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--surface, #fff);
}

.reservation-card--verfuegbar {
  border-left-color: #2e7d32;
}
.reservation-card--reserviert {
  border-left-color: #ef6c00;
}
.reservation-card--abgegeben {
  border-left-color: #6d6d6d;
}

.reservation-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.reservation-card__animal {
  font-weight: 600;
  font-size: 1.05rem;
}

.reservation-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.reservation-badge--verfuegbar {
  background: #2e7d32;
}
.reservation-badge--reserviert {
  background: #ef6c00;
}
.reservation-badge--abgegeben {
  background: #6d6d6d;
}

.reservation-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 0;
}
.reservation-card__meta div {
  display: flex;
  flex-direction: column;
}
.reservation-card__meta dt {
  font-size: 0.75rem;
  color: var(--muted, #777);
}
.reservation-card__meta dd {
  margin: 0;
}

.reservation-card__note {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: var(--muted, #555);
}

.reservation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface-alt, #fafafa);
}
.reservation-form h3 {
  grid-column: 1 / -1;
  margin: 0;
}
.reservation-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.reservation-form__note {
  grid-column: 1 / -1;
}
.reservation-form .error {
  grid-column: 1 / -1;
}
.reservation-form__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
}
