/**
 * Mitglieder CSS - Minimales Card Design
 *
 * @package MarketingClub
 */

/* ============================================================================
   Member Card Design
   ========================================================================= */

/* Grid Layout */
.mitglieder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

/* Responsive: 3 Spalten auf kleineren Desktops */
@media (max-width: 1400px) {
  .mitglieder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive: 2 Spalten auf Tablets */
@media (max-width: 1024px) {
  .mitglieder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Member Card */
.member-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 390px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e5e7eb;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.member-card-inner {
  text-align: center;
  padding: 0 20px;
  flex-grow: 1;
}

.member-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  margin-bottom: 15px;
  transition: transform 0.2s;
}

.member-image:hover {
  transform: scale(1.05);
}

.member-name {
  color: rgb(51, 51, 51);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 17.6px;
  font-weight: 400;
  line-height: 26.4px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.member-name:hover {
  color: #003d60;
}

.member-company {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  min-height: 45px;
}

.member-hashtag {
  background-color: #003d60;
  color: white;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 15px;
  outline: none;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
}

/* Card Actions */
.member-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.member-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;

  transition: color 0.2s;

  color: rgb(0, 0, 0);
  font-family: "Montserrat", sans-serif;
  font-size: 17.6px;
  font-weight: 600;
  line-height: 26.4px;
}

.member-profile-link:hover {
  color: #fe7911;
}

.member-profile-link i {
  font-size: 16px;
}

.member-social {
  display: flex;
  gap: 12px;
}

.member-social a {
  color: #666;
  font-size: 16px;
  transition: color 0.2s;
}

.member-social a:hover {
  color: #003d60;
}

/* ============================================================================
   Filter & Search - Modern Design
   ========================================================================= */

.mcmp-filter-wrapper {
  margin-bottom: 30px;
}

.mcmp-filter-container {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Search Box */
.mcmp-search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mcmp-search-box:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mcmp-search-box:focus-within {
  border-color: #003d60;
  box-shadow: 0 0 0 3px rgba(0, 61, 96, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mcmp-search-icon {
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.mcmp-search-box:focus-within .mcmp-search-icon {
  color: #003d60;
}

.mcmp-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  color: #1f2937;
  outline: none;
}

.mcmp-search-box input::placeholder {
  color: #9ca3af;
}

.mcmp-search-clear {
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mcmp-search-clear:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.mcmp-search-hint {
  position: absolute;
  bottom: -22px;
  left: 16px;
  font-size: 12px;
  color: #6b7280;
}

.mcmp-search-hint .searching {
  color: #003d60;
}

.mcmp-search-hint .typing {
  color: #9ca3af;
}

.mcmp-search-hint .success {
  color: #059669;
}

/* Sort Box */
.mcmp-sort-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  min-width: 180px;
}

.mcmp-sort-box:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mcmp-sort-box:focus-within {
  border-color: #003d60;
  box-shadow: 0 0 0 3px rgba(0, 61, 96, 0.1);
}

.mcmp-sort-box label {
  color: #9ca3af;
  display: flex;
  align-items: center;
  margin: 0;
  transition: color 0.3s ease;
}

.mcmp-sort-box:focus-within label {
  color: #003d60;
}

.mcmp-sort-box select {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 8px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  color: #1f2937;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

.mcmp-sort-box select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003d60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Legacy support - alte Klassen */
.mitglieder-filter-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mitglieder-suche,
.mitglieder-sortierung {
  flex: 1;
  min-width: 200px;
}

.mitglieder-suche input,
.mitglieder-sortierung select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
}

.mitglieder-suche input:focus,
.mitglieder-sortierung select:focus {
  outline: none;
  border-color: #003d60;
}

/* ============================================================================
   Loading & Pagination
   ========================================================================= */

.mitglieder-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #999;
}

.mitglieder-pagination {
  margin: 30px 0;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: #1f2937 !important;
}

.pagination button:hover {
  background: #003d60;
  color: #fff !important;
  border-color: #003d60;
}

.pagination button.active {
  background: #003d60;
  color: #fff !important;
  border-color: #003d60;
}

/* Neu 21.10.25 Mitgliederkarte Bottom */
/* Hauptcontainer für den unteren Bereich */
.bottomcont {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

/* Linke und rechte Seite */
.bottomcontleft,
.bottomcontright {
  flex: 1;
  height: 100%;
}

/* Trennlinie zwischen links und rechts */
.bottomcontleft {
  border-right: 1px solid #e5e7eb;
}

/* Zentrierung der Inhalte */
.bottomcontright,
.bottomcontleft {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Abstände für Icons rechts */
.bottomcontright > div {
  margin-left: 10px;
  margin-right: 10px;
}
.bottomcontright a {
  color: rgb(0, 0, 0);
  font-family: "Fira Sans", sans-serif;
  font-size: 17.6px;
  font-weight: 600;
  line-height: 26.4px;
  text-decoration: none !important;
}

/* Abstände für Elemente links */
.bottomcontleft > div {
  margin-left: 5px;
  margin-right: 5px;
}

/* Fettschrift für linke Seite (Profil-Link) */
.bottomcontleft {
  font-weight: bold;
}

/* Profil-Link Styling */
.profillink {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 17.6px;
  font-weight: 600;
  line-height: 26.4px;
  color: black !important;
}

/* Link-Styling (aus .mitgliederoutercon) */
.mitgliederoutercon a {
  text-decoration: none !important;
  color: black !important;
}

/* Deaktivierte Links (error class) */
.mitgliederoutercon .error {
  pointer-events: none;
}

.mitgliederoutercon .error > * {
  color: gray !important;
}

/* ============================================================================
   Responsive
   ========================================================================= */

/* Mobil: 1 Spalte */
@media (max-width: 768px) {
  .mitglieder-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mitglieder-grid .member-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .mcmp-filter-container {
    flex-direction: column;
  }

  .mcmp-search-box,
  .mcmp-sort-box {
    min-width: 100%;
  }
}
