/* --- Filterleiste --- */
.vwd-filter {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.vwd-filter input,
.vwd-filter select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* --- Badges --- */
.vwd-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin: 0 6px 6px 0;
  white-space: nowrap;
}
.vwd-extra-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* --- Toggle Button --- */
.vwd-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 4px;
  background: #5c9ead;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.vwd-toggle:hover {
  background: #417d8c;
}

/* --- Details --- */
.vwd-details {
  background: #fff;
  padding: 15px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-top: none;
}
.vwd-details a {
  word-break: break-word;
}

/* --- Inline-Meta --- */
.vwd-meta-inline {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.vwd-meta-inline > * {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

/* --- Profil-Button --- */
.vwd-profile-btn {
  display: inline-block;
  background: #1565c0;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.vwd-profile-btn:hover {
  background: #0d47a1;
  color: #fff !important;
}

/* --- Adressblock --- */
.vwd-address {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.vwd-address div {
  margin: 2px 0;
}

/* --- Grund-Layout: Tabelle --- */
.vwd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  margin-bottom: 30px;
}
.vwd-table th,
.vwd-table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}
.vwd-table th {
  background: #f2f2f2;
  font-weight: 600;
}
.vwd-row:nth-child(even) {
  background: #f9f9f9;
}

/* --- Responsive Table Optimierungen --- */
@media (min-width: 768px) {
  .vwd-table th,
  .vwd-table td {
    word-break: break-word;
    white-space: normal;
  }
  .vwd-table th:nth-child(1),
  .vwd-table td:nth-child(1) {
    min-width: 200px;
  }
  .vwd-table th:nth-child(2),
  .vwd-table td:nth-child(2) {
    min-width: 160px;
  }
}

/* --- iPad Hochformat & Mobile: nur 3 Spalten sichtbar --- */
@media (max-width: 1024px) {
  .vwd-table th:nth-child(3),
  .vwd-table td:nth-child(3), /* Rolle */
  .vwd-table th:nth-child(4),
  .vwd-table td:nth-child(4), /* Tierarten */
  .vwd-table th:nth-child(5),
  .vwd-table td:nth-child(5)  /* Leistungen */ {
    display: none;
  }

  /* Badges nur in Details sichtbar */
  .vwd-row td .vwd-badge {
    display: none;
  }
  .vwd-details .vwd-badge {
    display: inline-block;
  }
}

/* --- Desktop: Badges nur in den Spalten sichtbar --- */
/* ===========================
   Hybrid Badges Steuerung
   =========================== */

/* Standard (Desktop & iPad quer ≥ 1025px) */
@media (min-width: 1025px) {
  /* Spalten-Badges sichtbar */
  .vwd-row td .vwd-badge {
    display: inline-block;
  }

  /* Badges Rolle, Tierarten, Leistungen in Details ausblenden */
  .vwd-details .rolle,
  .vwd-details .tierarten,
  .vwd-details .leistungen {
    display: none;
  }

  /* andere Badges (Online, Mobil, Radius, Preis, Wartezeit, Spezialleistungen) sichtbar lassen */
  .vwd-details .vwd-badge {
    display: inline-block;
  }
}

/* Mobile & iPad hochkant (≤ 1024px) */
@media (max-width: 1024px) {
  /* Spalten-Badges ausblenden */
  .vwd-row td .vwd-badge {
    display: none;
  }

  /* Alle Badges in Details sichtbar */
  .vwd-details .vwd-badge {
    display: inline-block;
  }
}


/* --- Detailzeile --- */
.vwd-details-row {
  display: none;
}
.vwd-details-row.is-visible {
  display: table-row !important;
}

/* =========================
   Desktop & iPad quer – Spalten breiter
   ========================= */
@media (min-width: 1025px) {
  .vwd-table th:nth-child(3),
  .vwd-table td:nth-child(3) { /* Rolle */
    min-width: 180px; /* war enger, jetzt breiter */
  }
  .vwd-table th:nth-child(4),
  .vwd-table td:nth-child(4) { /* Tierarten */
    min-width: 220px;
  }
  .vwd-table th:nth-child(5),
  .vwd-table td:nth-child(5) { /* Leistungen */
    min-width: 220px;
  }
}

/* iPad quer (≥ 768px und ≤ 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .vwd-table th:nth-child(3),
  .vwd-table td:nth-child(3) { /* Rolle */
    min-width: 150px;
  }
  .vwd-table th:nth-child(4),
  .vwd-table td:nth-child(4) { /* Tierarten */
    min-width: 200px;
  }
  .vwd-table th:nth-child(5),
  .vwd-table td:nth-child(5) { /* Leistungen */
    min-width: 200px;
  }
}


