/**
 * Frontend-Styles für Branchenbuch Pro
 */

/* Allgemeine Styles */
.branchenbuch-container {
  margin-bottom: 30px;
}

.branchenbuch-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 0.3s;
}

.branchenbuch-button:hover {
  background-color: #005177;
  color: #fff;
  text-decoration: none;
}

.branchenbuch-button-secondary {
  background-color: #f7f7f7;
  color: #555;
  border: 1px solid #ccc;
}

.branchenbuch-button-secondary:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Suchformular */
.branchenbuch-search-container {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 5px;
}

.branchenbuch-search-form {
  display: flex;
  flex-direction: column;
}

.branchenbuch-search-main {
  display: flex;
  margin-bottom: 15px;
}

.branchenbuch-search-main input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px 0 0 3px;
  font-size: 16px;
}

.branchenbuch-search-button {
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.branchenbuch-search-button:hover {
  background-color: #005177;
}

.branchenbuch-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.branchenbuch-search-filter {
  flex: 1;
  min-width: 200px;
}

.branchenbuch-search-filter label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.branchenbuch-search-filter select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Filter-Leiste */
.branchenbuch-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #f7f7f7;
  border-radius: 3px;
}

.branchenbuch-filter-count {
  margin-right: 15px;
}

.branchenbuch-filter-layout {
  display: flex;
  align-items: center;
}

.branchenbuch-filter-layout span {
  margin-right: 10px;
}

.branchenbuch-layout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #555;
  text-decoration: none;
}

.branchenbuch-layout-button:hover,
.branchenbuch-layout-button.active {
  background-color: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

.branchenbuch-filter-sort {
  display: flex;
  align-items: center;
}

.branchenbuch-filter-sort select {
  margin-left: 5px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Einträge - Grid-Layout */
.branchenbuch-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.branchenbuch-layout-grid .branchenbuch-entry {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.branchenbuch-layout-grid .branchenbuch-entry:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.branchenbuch-layout-grid .branchenbuch-entry-image {
  height: 200px;
  overflow: hidden;
}

.branchenbuch-layout-grid .branchenbuch-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.branchenbuch-layout-grid .branchenbuch-entry:hover .branchenbuch-entry-image img {
  transform: scale(1.05);
}

.branchenbuch-layout-grid .branchenbuch-entry-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.branchenbuch-layout-grid .branchenbuch-entry-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.branchenbuch-layout-grid .branchenbuch-entry-title a {
  color: #333;
  text-decoration: none;
}

.branchenbuch-layout-grid .branchenbuch-entry-title a:hover {
  color: #0073aa;
}

.branchenbuch-layout-grid .branchenbuch-entry-rating {
  margin-bottom: 10px;
  color: #f39c12;
}

.branchenbuch-layout-grid .branchenbuch-entry-excerpt {
  margin-bottom: 15px;
  color: #666;
}

.branchenbuch-layout-grid .branchenbuch-entry-meta {
  margin-bottom: 15px;
  color: #666;
}

.branchenbuch-layout-grid .branchenbuch-entry-meta > div {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.branchenbuch-layout-grid .branchenbuch-entry-meta .dashicons {
  margin-right: 5px;
  color: #0073aa;
}

.branchenbuch-layout-grid .branchenbuch-entry-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* Einträge - Listen-Layout */
.branchenbuch-layout-list .branchenbuch-entry {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.branchenbuch-layout-list .branchenbuch-entry:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.branchenbuch-layout-list .branchenbuch-entry-image {
  flex: 0 0 200px;
  overflow: hidden;
}

.branchenbuch-layout-list .branchenbuch-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.branchenbuch-layout-list .branchenbuch-entry:hover .branchenbuch-entry-image img {
  transform: scale(1.05);
}

.branchenbuch-layout-list .branchenbuch-entry-content {
  flex: 1;
  padding: 15px;
}

.branchenbuch-layout-list .branchenbuch-entry-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.branchenbuch-layout-list .branchenbuch-entry-title a {
  color: #333;
  text-decoration: none;
}

.branchenbuch-layout-list .branchenbuch-entry-title a:hover {
  color: #0073aa;
}

.branchenbuch-layout-list .branchenbuch-entry-rating {
  margin-bottom: 10px;
  color: #f39c12;
}

.branchenbuch-layout-list .branchenbuch-entry-excerpt {
  margin-bottom: 15px;
  color: #666;
}

.branchenbuch-layout-list .branchenbuch-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  color: #666;
}

.branchenbuch-layout-list .branchenbuch-entry-meta > div {
  display: flex;
  align-items: center;
}

.branchenbuch-layout-list .branchenbuch-entry-meta .dashicons {
  margin-right: 5px;
  color: #0073aa;
}

.branchenbuch-layout-list .branchenbuch-entry-actions {
  display: flex;
  gap: 10px;
}

/* Einträge - Kompakt-Layout */
.branchenbuch-layout-compact .branchenbuch-entry {
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.branchenbuch-layout-compact .branchenbuch-entry:hover {
  background-color: #f9f9f9;
}

.branchenbuch-layout-compact .branchenbuch-entry-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.branchenbuch-layout-compact .branchenbuch-entry-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  min-width: 200px;
}

.branchenbuch-layout-compact .branchenbuch-entry-title a {
  color: #333;
  text-decoration: none;
}

.branchenbuch-layout-compact .branchenbuch-entry-title a:hover {
  color: #0073aa;
}

.branchenbuch-layout-compact .branchenbuch-entry-rating {
  margin: 0 15px;
  color: #f39c12;
}

.branchenbuch-layout-compact .branchenbuch-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 15px;
  color: #666;
}

.branchenbuch-layout-compact .branchenbuch-entry-meta > div {
  display: flex;
  align-items: center;
}

.branchenbuch-layout-compact .branchenbuch-entry-meta .dashicons {
  margin-right: 5px;
  color: #0073aa;
}

.branchenbuch-layout-compact .branchenbuch-entry-actions {
  display: flex;
  gap: 10px;
}

/* Pagination */
.branchenbuch-pagination {
  margin-top: 30px;
  text-align: center;
}

.branchenbuch-pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
}

.branchenbuch-pagination .page-numbers.current {
  background-color: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

.branchenbuch-pagination .page-numbers:hover {
  background-color: #e9e9e9;
  border-color: #ccc;
}

.branchenbuch-pagination .page-numbers.current:hover {
  background-color: #0073aa;
  border-color: #0073aa;
}

/* Karte */
.branchenbuch-map-container {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.branchenbuch-map-popup {
  max-width: 250px;
}

.branchenbuch-map-popup-image {
  margin-bottom: 10px;
}

.branchenbuch-map-popup-image img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.branchenbuch-map-popup-content h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
}

.branchenbuch- map-popup-content p {
  margin-bottom: 10px;
  color: #666;
}

.branchenbuch-map-popup-link {
  display: inline-block;
  padding: 3px 8px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
}

.branchenbuch-map-popup-link:hover {
  background-color: #005177;
  color: #fff;
  text-decoration: none;
}

/* Einzelansicht */
.branchenbuch-single-rating {
  margin-bottom: 20px;
  color: #f39c12;
  font-size: 18px;
}

.branchenbuch-single-rating .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.branchenbuch-single-rating .branchenbuch-rating-value {
  margin-left: 5px;
  font-weight: 600;
}

.branchenbuch-single-rating .branchenbuch-rating-count {
  margin-left: 5px;
  color: #666;
  font-size: 14px;
}

.branchenbuch-single-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.branchenbuch-single-contact h3,
.branchenbuch-single-opening-hours h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
}

.branchenbuch-single-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.branchenbuch-single-contact-item {
  display: flex;
  align-items: flex-start;
}

.branchenbuch-single-contact-item .dashicons {
  margin-right: 10px;
  color: #0073aa;
}

.branchenbuch-single-contact-item strong {
  display: block;
  margin-bottom: 5px;
}

.branchenbuch-single-contact-item p {
  margin: 0;
}

.branchenbuch-single-social {
  margin-top: 20px;
}

.branchenbuch-single-social h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.branchenbuch-social-links {
  display: flex;
  gap: 10px;
}

.branchenbuch-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f7f7f7;
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.branchenbuch-social-link:hover {
  background-color: #0073aa;
  color: #fff;
}

.branchenbuch-social-facebook:hover {
  background-color: #3b5998;
}

.branchenbuch-social-twitter:hover {
  background-color: #1da1f2;
}

.branchenbuch-social-instagram:hover {
  background-color: #e1306c;
}

.branchenbuch-social-linkedin:hover {
  background-color: #0077b5;
}

.branchenbuch-social-youtube:hover {
  background-color: #ff0000;
}

.branchenbuch-social-xing:hover {
  background-color: #026466;
}

.branchenbuch-opening-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.branchenbuch-opening-hours-table th,
.branchenbuch-opening-hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.branchenbuch-opening-hours-table th {
  width: 120px;
  text-align: left;
  font-weight: 600;
}

.branchenbuch-single-map {
  margin: 30px 0;
}

.branchenbuch-single-map h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
}

.branchenbuch-single-taxonomies {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
}

.branchenbuch-single-taxonomies > div {
  margin-bottom: 10px;
}

.branchenbuch-single-taxonomies a {
  color: #0073aa;
  text-decoration: none;
}

.branchenbuch-single-taxonomies a:hover {
  text-decoration: underline;
}

/* Widgets */
.widget_branchenbuch_pro_search .branchenbuch-search-container {
  padding: 15px;
}

.widget_branchenbuch_pro_categories .branchenbuch-categories-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_branchenbuch_pro_categories .branchenbuch-category-item {
  margin-bottom: 8px;
}

.widget_branchenbuch_pro_categories .branchenbuch-subcategories-list {
  margin: 5px 0 5px 15px;
  padding: 0;
  list-style: none;
}

.widget_branchenbuch_pro_categories .branchenbuch-subcategory-item {
  margin-bottom: 5px;
}

.widget_branchenbuch_pro_categories .branchenbuch-category-count {
  color: #666;
  font-size: 0.9em;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entries-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entry-item {
  display: flex;
  margin-bottom: 15px;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entry-thumbnail {
  flex: 0 0 60px;
  margin-right: 10px;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entry-content {
  flex: 1;
}

.widget_branchenbuch_pro_recent_entries .branchenbuch-recent-entry-date {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.9em;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .branchenbuch-search-main {
    flex-direction: column;
  }

  .branchenbuch-search-main input[type="text"] {
    border-radius: 3px 3px 0 0;
  }

  .branchenbuch-search-button {
    border-radius: 0 0 3px 3px;
  }

  .branchenbuch-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .branchenbuch-filter-count,
  .branchenbuch-filter-layout,
  .branchenbuch-filter-sort {
    margin-bottom: 10px;
  }

  .branchenbuch-layout-list .branchenbuch-entry {
    flex-direction: column;
  }

  .branchenbuch-layout-list .branchenbuch-entry-image {
    flex: 0 0 auto;
    height: 200px;
  }

  .branchenbuch-single-details {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .branchenbuch-layout-grid {
    grid-template-columns: 1fr;
  }

  .branchenbuch-layout-compact .branchenbuch-entry-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .branchenbuch-layout-compact .branchenbuch-entry-title,
  .branchenbuch-layout-compact .branchenbuch-entry-rating,
  .branchenbuch-layout-compact .branchenbuch-entry-meta,
  .branchenbuch-layout-compact .branchenbuch-entry-actions {
    margin: 5px 0;
  }
}

