/* nachrichten_cards.css: Styling für kleine Cards mit Grid-Layout */

body { font-size: 87.5%; }
.nachrichten-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.7rem 2.7rem;
  margin: 3.5rem 0 3.5rem 0;
  padding: 0 0.5rem;
}

.message-card {
  min-width: 340px;
  max-width: 400px;
  border-radius: 2.3em;
  background: rgba(40, 44, 60, 0.37);
  box-shadow: 0 8px 32px 0 #000a, 0 1.5px 6px #0004 !important;
  border: none;
  outline: none;
  backdrop-filter: blur(12px) saturate(1.2);
  color: #fff;
  font-size: 1.13em;
  margin-bottom: 2.1em;
  margin-top: 0.7em;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s, border 0.18s, transform 0.15s, background 0.18s;
  position: relative;
  cursor: pointer;
}

.message-card:hover {
  box-shadow: 0 16px 48px 0 #28e07c77, 0 4px 18px #ffa80766, 0 0 0 4px #ffa80755;
  border-color: #28e07c;
  background: rgba(40, 44, 60, 0.55);
  transform: translateY(-3px) scale(1.035);
}

.message-card.status-fuer_pruefer {
  border-color: #28e07c;
  box-shadow: 0 8px 40px 0 #28e07c44, 0 2px 12px #28e07c22;
  background: linear-gradient(120deg, #1e5730 0%, #232a34 100%);
}
.message-card.status-ausstehend {
  border-color: #ffa807;
  box-shadow: 0 8px 40px 0 #ffa80744, 0 2px 12px #ffa80722;
  background: linear-gradient(120deg, #ffa807 0%, #232a34 100%);
}
.message-card.status-bearbeiten {
  border-color: #666;
  box-shadow: 0 8px 40px 0 #232a3455, 0 2px 12px #232a3422;
  background: linear-gradient(120deg, #232a34 0%, #232a34 100%);
}
.message-card:hover {
  box-shadow: 0 16px 48px 0 #28e07c88, 0 4px 18px #ffa80755;
  border-width: 4px;
  background: rgba(40, 44, 60, 0.55);
  transform: translateY(-3px) scale(1.035);
}

.message-card:hover {
  box-shadow: 0 16px 48px 0 #28e07c55, 0 4px 18px #ffa80744, 0 0 0 4px #ffa80799;
  outline: 2.5px solid #ffa807cc;
  background: rgba(40, 44, 60, 0.55);
  transform: translateY(-3px) scale(1.035);
}

.message-card:hover {
  box-shadow: 0 16px 48px 0 #28e07c55, 0 4px 18px #ffa80744;
  border: 1.5px solid #28e07c;
  background: rgba(40, 44, 60, 0.55);
  transform: translateY(-3px) scale(1.035);
}
.message-card .card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border-bottom: none;
  padding: 2.1em 1.2em 1.4em 1.2em;
}
.message-card .avatar-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg,#28e07c 0%,#7d140d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1em;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.1em;
  box-shadow: 0 2px 10px #28e07c44;
  border: 3px solid #fff2;
}
.message-card .card-title {
  font-size: 1.32em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.7em;
  color: #fff;
  text-shadow: 0 2px 8px #232a34cc;
}
.message-card .card-status {
  display: inline-block;
  padding: 0.38em 1.5em;
  border-radius: 1.5em;
  font-size: 1.09em;
  font-weight: 800;
  margin-top: 0.6em;
  background: #232a34;
  color: #fff;
  box-shadow: 0 1px 6px #28e07c33;
  border: 2px solid #232a34;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px #000b;
}
.message-card .card-status.status-fuer_pruefer {
  background: #28e07c;
  color: #fff;
  border: 2px solid #28e07c;
}
.message-card .card-status.status-ausstehend {
  background: #ffa807;
  color: #232a34;
  border: 2px solid #ffa807;
  text-shadow: none;
}
.message-card .card-status.status-bearbeiten {
  background: #232a34;
  color: #fff;
  border: 2px solid #666;
}
.message-card .card-status.status-ausstehend {
  background: #ffa807;
  color: #232a34;
  border: 2px solid #ffa807;
  text-shadow: none;
}
.message-card .card-status.status-bearbeiten {
  background: #ff4655;
  color: #fff;
  border: 2px solid #ff4655;
}
.message-card .card-status.status-fuer_pruefer {
  background: #28e07c;
  color: #fff;
  border: 2px solid #28e07c;
}



.message-card:hover {
  box-shadow: 0 12px 40px 0 #28e07c55, 0 4px 18px #ffa80755;
  border-color: #28e07c;
}
.message-card.status-ausstehend:hover {
  border-color: #ffa807;
  box-shadow: 0 12px 40px 0 #ffa80755, 0 4px 18px #28e07c33;
}
.message-card .card-header {
  background: transparent;
  border-bottom: none;
  padding: 0.7rem 1rem;
}
.message-card .card-body {
  padding: 1rem;
}
.message-card .list-unstyled li {
  margin-bottom: 0.3em;
}

@media (max-width: 900px) {
  .nachrichten-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 600px) {
  .nachrichten-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .nachrichten-cards-grid {
    gap: 0.5rem;
  }
  .message-card {
    font-size: 0.92em;
    padding: 0.6em 0.3em;
  }
  .card-header, .card-body {
    padding: 0.6em 0.3em !important;
  }
}
