/**
 * Ã–ffentliche Styles fÃ¼r das Firmenverzeichnis-Plugin
 * Modernisiertes Design mit Startseite, Navigation und Kategorien-Grid
 */

/* Allgemeine Styles */
:root {
  --primary-color: #0073aa;
  --primary-hover: #005d87;
  --secondary-color: #f8fafc;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Container */
.firmenverzeichnis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--secondary-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

/* Startseite */
.firmenverzeichnis-home {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

/* Hero-Bereich */
.firmenverzeichnis-hero {
  background: linear-gradient(135deg, #0073aa 0%, #005d87 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 30px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.firmenverzeichnis-hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Suchformular */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.firma-search-form {
  position: relative;
}

.search-input-wrapper {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-field {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 1.1em;
  outline: none;
}

.search-submit {
  background-color: white;
  color: var(--primary-color);
  border: none;
  padding: 0 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background-color: #f8f8f8;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hauptnavigation */
.firmenverzeichnis-main-nav {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.main-nav-container {
  padding: 0 20px;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 25px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: rgba(0, 115, 170, 0.05);
}

/* Kategorien-Grid */
.firmenverzeichnis-categories {
  margin-bottom: 40px;
}

.categories-header {
  text-align: center;
  margin-bottom: 30px;
}

.categories-header h2 {
  font-size: 1.8em;
  color: var(--text-color);
  margin-bottom: 10px;
}

.categories-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.category-card {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 115, 170, 0.1);
  border-radius: 10px;
  margin-right: 15px;
  color: var(--primary-color);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background-color: var(--primary-color);
  color: white;
}

.category-info {
  flex: 1;
}

.category-name {
  margin: 0 0 5px;
  font-size: 1.1em;
  font-weight: 600;
}

.category-count {
  font-size: 0.9em;
  color: var(--text-light);
}

/* Neueste Firmen */
.firmenverzeichnis-latest {
  margin-bottom: 40px;
}

.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.latest-header h2 {
  font-size: 1.8em;
  color: var(--text-color);
  margin: 0;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-hover);
  transform: translateX(5px);
}

.latest-firms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.firm-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.firm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.firm-card-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

.firm-card-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.firm-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid var(--border-color);
}

.firm-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.firm-logo-placeholder {
  background-color: #f5f5f5;
  color: #aaa;
}

.firm-title {
  margin: 0 0 10px;
  font-size: 1.3em;
  font-weight: 600;
}

.firm-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.firm-category {
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(0, 115, 170, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8em;
}

.firm-card-body {
  padding: 20px;
}

.firm-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.9em;
}

.firm-address svg {
  margin-top: 3px;
  flex-shrink: 0;
}

.firm-excerpt {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 0;
}

.firm-card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.view-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9em;
  transition: var(--transition);
}

.firm-card:hover .view-profile {
  transform: translateX(5px);
}

/* Firma eintragen Formular */
.firmenverzeichnis-submit-form {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.page-title {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 2em;
  color: var(--text-color);
  text-align: center;
}

.login-required {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
}

.login-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.register-button {
  background-color: #28a745;
}

.register-button:hover {
  background-color: #218838;
}

.submit-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-errors {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-errors ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.form-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--text-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.field-hint {
  font-size: 0.85em;
  color: var(--text-light);
  margin-top: 5px;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-privacy input {
  width: auto;
  margin-top: 5px;
}

.form-submit {
  margin-top: 30px;
  text-align: center;
}

.submit-notice {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 15px;
  text-align: center;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  color: var(--success-color);
  margin-bottom: 20px;
}

.success-actions {
  margin-top: 30px;
}

.home-button {
  background-color: var(--primary-color);
}

/* Kontaktseite */
.firmenverzeichnis-contact {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-section {
  margin-bottom: 30px;
}

.contact-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--text-color);
}

.contact-details {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 115, 170, 0.1);
  border-radius: 10px;
  margin-right: 15px;
  color: var(--primary-color);
}

.contact-text h3 {
  margin: 0 0 5px;
  font-size: 1.1em;
  font-weight: 600;
}

.contact-text p {
  margin: 0;
  color: var(--text-light);
}

.contact-text a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.opening-hours {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 15px;
}

.opening-day {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.opening-day:last-child {
  border-bottom: none;
}

.day {
  font-weight: 500;
}

.hours {
  color: var(--text-light);
}

.contact-form-container {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
}

.contact-form-container h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: var(--text-color);
}

.contact-success {
  text-align: center;
  padding: 30px 0;
}

.contact-success h3 {
  margin-top: 0;
  font-size: 1.3em;
  color: var(--success-color);
}

/* Responsive */
@media (max-width: 768px) {
  .firmenverzeichnis-hero h1 {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1.1em;
  }

  .nav-link {
    padding: 15px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .latest-firms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .firmenverzeichnis-hero {
    padding: 40px 15px;
  }

  .firmenverzeichnis-hero h1 {
    font-size: 1.8em;
  }

  .search-field {
    padding: 12px 15px;
    font-size: 1em;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .latest-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Single Firma */
.firmenverzeichnis-single {
  max-width: 100%;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.firmenverzeichnis-single:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Firma Header */
.firma-header {
  position: relative;
  padding-bottom: 80px;
  background-color: #f5f5f5;
  text-align: center;
}

.firma-cover {
  height: 300px; /* Increased height for better appearance at 1200px */
  background-color: #f5f5f5;
  overflow: hidden;
}

.firma-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.firma-cover img:hover {
  transform: scale(1.05);
}

.firma-cover-placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.firma-header .firma-logo {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.3s ease;
}

.firma-header .firma-logo:hover {
  transform: translateX(-50%) scale(1.05);
}

.firma-header .firma-logo img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 50%;
  object-fit: contain;
}

.firma-header .firma-title {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0;
  color: #333;
  font-size: 2em;
  text-align: center;
  font-weight: 600;
}

/* Tags */
.firma-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 20px 20px;
}

.firma-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e9f5ff;
  color: #0073aa;
  border-radius: 30px;
  font-size: 0.85em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.firma-tag:hover {
  background-color: #0073aa;
  color: white;
  transform: translateY(-2px);
}

/* Social Media Sharing */
.firma-social-share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 20px;
  clear: both;
}

.share-label {
  margin-right: 10px;
  font-size: 0.9em;
  color: #666;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background-color: #f0f0f0;
  color: #555;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-button.facebook:hover {
  background-color: #3b5998;
  color: white;
}

.share-button.twitter:hover {
  background-color: #1da1f2;
  color: white;
}

.share-button.linkedin:hover {
  background-color: #0077b5;
  color: white;
}

.share-button.whatsapp:hover {
  background-color: #25d366;
  color: white;
}

.share-button.copy-link:hover {
  background-color: #6c5ce7;
  color: white;
}

.share-icon {
  width: 18px;
  height: 18px;
}

/* Copy Link Toast */
.copy-link-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.copy-link-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabs */
.firma-tabs {
  padding: 0;
  background-color: #fff;
}

.firma-tabs-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

.firma-tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.firma-tabs-nav::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.firma-tabs-nav::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.firma-tabs-nav li {
  margin: 0;
}

.firma-tabs-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.firma-tabs-nav li.active a {
  color: #0073aa;
  border-bottom-color: #0073aa;
}

.firma-tabs-nav a:hover:not(.active) {
  color: #0073aa;
  background-color: #f9f9f9;
}

.tab-icon {
  opacity: 0.7;
}

.firma-tabs-nav li.active .tab-icon {
  opacity: 1;
}

.firma-tab-pane {
  display: none;
  padding: 25px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.firma-tab-pane.active {
  display: block;
}

/* Firma Info Grid */
.firma-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.firma-info-card {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.firma-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background-color: #f8fafc;
  color: #0073aa;
  padding: 15px;
}

.info-card-content {
  flex: 1;
  padding: 15px;
}

.info-title {
  color: #333;
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-content p {
  margin: 0 0 10px;
  color: #555;
  line-height: 1.5;
}

.info-content a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-content a:hover {
  color: #005177;
  text-decoration: underline;
}

.info-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #0073aa;
  text-decoration: none;
  margin-top: 5px;
}

.info-action-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments for the 1200px container */
@media (max-width: 1240px) {
  .firmenverzeichnis-container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .firmenverzeichnis-container {
    padding: 10px;
  }

  .firma-cover {
    height: 200px;
  }
}

/* Pin-Design Styles */
.firmenverzeichnis-pins-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.pins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.firma-pin {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid #f0f0f0;
}

.firma-pin:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Pin Header */
.pin-header {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.pin-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-logo-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pin-title-section {
  flex: 1;
  min-width: 0;
}

.pin-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 4px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-category {
  font-size: 12px;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  font-weight: 500;
}

.pin-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.pin-bookmark:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Pin Content */
.pin-content {
  padding: 16px;
  padding-top: 12px;
}

.pin-address,
.pin-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748b;
}

.pin-address svg,
.pin-phone svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.pin-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-top: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Pin Footer */
.pin-footer {
  padding: 12px 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

.pin-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pin-rating svg {
  width: 12px;
  height: 12px;
}

.rating-text {
  font-size: 13px;
  color: #64748b;
  margin-left: 4px;
  font-weight: 500;
}

.pin-view-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pin-view-btn:hover {
  background: #5a67d8;
  transform: translateX(2px);
  color: white;
  text-decoration: none;
}

.pin-view-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.pin-view-btn:hover svg {
  transform: translateX(2px);
}

/* Responsive Design fÃ¼r Pins */
@media (max-width: 768px) {
  .pins-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px 0;
  }
  
  .firma-pin {
    border-radius: 12px;
  }
  
  .pin-header {
    padding: 14px;
  }
  
  .pin-content {
    padding: 14px;
  }
  
  .pin-footer {
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .pins-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .firmenverzeichnis-pins-container {
    padding: 16px;
  }
} 
 /* ==================== 
   Kategorisierte Neueste Firmen 
   ==================== */

.latest-firms-by-category {
    margin-top: 2rem;
}

.category-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.category-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.category-view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-view-all:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    text-decoration: none;
    color: #1d4ed8;
    transform: translateX(2px);
}

.category-view-all svg {
    transition: transform 0.2s ease;
}

.category-view-all:hover svg {
    transform: translateX(2px);
}

.category-firms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.category-firm-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
}

.category-firm-card:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.firm-logo-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.firm-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.firm-info {
    flex: 1;
    min-width: 0;
}

.firm-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.firm-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.firm-name a:hover {
    color: #3b82f6;
}

.firm-location-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.firm-location-small svg {
    flex-shrink: 0;
}

.firm-meta-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #9ca3af;
    font-weight: 500;
}

.website-link-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.website-link-small:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Responsive Design für kategorisierte Anzeige */
@media (max-width: 768px) {
    .category-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .category-info {
        gap: 0.75rem;
    }
    
    .category-icon-small {
        width: 36px;
        height: 36px;
    }
    
    .category-title {
        font-size: 1.125rem;
    }
    
    .category-firms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .category-firm-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .firm-logo-small {
        width: 50px;
        height: 50px;
    }
    
    .firm-name {
        font-size: 0.9375rem;
    }
    
    .firm-meta-small {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .category-section-header {
        padding: 1rem;
    }
    
    .category-firms-grid {
        padding: 1rem;
    }
    
    .category-firm-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .firm-logo-small {
        align-self: center;
    }
    
    .firm-info {
        width: 100%;
        text-align: center;
    }
}
