.contact-dialog-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0,0,0,0.5);
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 2000;
                animation: fadeIn 0.3s ease-out;
            }
            
            .contact-dialog-content {
                background: white;
                padding: 24px;
                border-radius: 16px;
                width: 90%;
                max-width: 400px;
                box-shadow: 0 6px 12px rgba(0,0,0,0.1);
                text-align: center;
            }
            
            .contact-dialog-content h3 {
                font-size: 1.2rem;
                color: #333;
                margin-bottom: 8px;
            }
            
            .contact-phone {
                color: #666;
                font-size: 1rem;
                margin-bottom: 20px;
                padding: 8px;
                background: #f8f9fa;
                border-radius: 8px;
            }
            
            .contact-options {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
                margin-bottom: 20px;
            }
            
            .contact-option {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 12px;
                border: none;
                border-radius: 8px;
                background: #f8f9fa;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .contact-option:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }
            
            .contact-option .icon {
                font-size: 24px;
                margin-bottom: 6px;
            }
            
            .contact-option span {
                font-size: 0.9rem;
            }
            
            .call { color: #28a745; }
            .whatsapp { color: #25D366; }
            .sms { color: #17a2b8; }
            
            .contact-cancel {
                width: 100%;
                padding: 12px;
                border: none;
                border-radius: 8px;
                background: #f0f0f0;
                color: #666;
                font-size: 1rem;
                cursor: pointer;
                transition: background 0.2s;
            }
            
            .contact-cancel:hover {
                background: #e0e0e0;
            }
             /* Verbesserte CSS-Stile für die Such-Badges */
        .search-badge {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 13px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
            border: 2px solid white;
        }

        .search-badge.bottom-badge {
            position: static;
            margin-left: 8px;
            display: inline-block;
        }

       
        .link-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 24px 0 24px;
  gap: 4px; 
  flex-wrap: nowrap; 
  max-width: 100%; 
}



.left,
.right {
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap; 
}
.middle {
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
  text-align: center;
  flex-grow: 1; 
  margin: 8px 8px 16px 8px; 
}


.left:hover,
.right:hover,
.middle:hover {
  text-decoration: underline;
}
 /* Spezifische Styles für Such-Karten behalten */
      .card.search-card {
        border: 2px solid #ff6b35;
        background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
      }

      .card.search-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(45deg, #ff6b35, #f7931e);
        z-index: 5;
      }

      /* Modal und Detailansicht Styles behalten */
      .detail-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        z-index: 1000;
        overflow-y: auto;
      }

      .detail-modal.active {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
      }

      .detail-content {
        background: white;
        border-radius: 12px;
        max-width: 900px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
      }

      .detail-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
      }

      .detail-title {
        margin: 0;
        font-size: 1.5rem;
        color: #333;
      }

      .close-button {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
      }

      .close-button:hover {
        background-color: #f5f5f5;
      }

      .detail-body {
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
      }

      .detail-image-section {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        background: #f8f9fa;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .detail-main-image {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        transition: opacity 0.3s ease;
      }

      .image-navigation {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        transform: translateY(-50%);
        z-index: 10;
      }

      .nav-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.8);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 24px;
        color: #333;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
      }

      .nav-button:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
      }

      .nav-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none;
      }

      .image-indicators {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        z-index: 10;
      }

      .image-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .image-indicator.active {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.2);
      }

      .image-counter {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 14px;
        z-index: 10;
      }

      .detail-info-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .detail-price {
        font-size: 2rem;
        font-weight: bold;
        color: #2c3e50;
        margin: 0;
      }

      .detail-description {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
      }

      .detail-meta {
        display: grid;
        gap: 12px;
      }

      .meta-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
      }

      .meta-label {
        font-weight: 600;
        color: #666;
      }

      .meta-value {
        color: #333;
      }

      .detail-actions {
        display: flex;
        gap: 12px;
        margin-top: 20px;
      }

      .action-button {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .primary-button {
        background: #007bff;
        color: white;
      }

      .primary-button:hover {
        background: #0056b3;
      }

      .secondary-button {
        background: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
      }

      .secondary-button:hover {
        background: #e9ecef;
      }

      .contact-dialog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
      }

      .contact-dialog-content {
        background: white;
        padding: 30px;
        border-radius: 15px;
        max-width: 400px;
        width: 90%;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }

      .contact-phone {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        margin: 15px 0 25px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
      }

      .contact-options {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
      }

      .contact-option {
        flex: 1;
        min-width: 100px;
        padding: 15px 10px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
      }

      .contact-option.call {
        background: #28a745;
        color: white;
      }

      .contact-option.call:hover {
        background: #218838;
        transform: translateY(-2px);
      }

      .contact-option.whatsapp {
        background: #25d366;
        color: white;
      }

      .contact-option.whatsapp:hover {
        background: #1ebe5c;
        transform: translateY(-2px);
      }

      .contact-option.sms {
        background: #007bff;
        color: white;
      }

      .contact-option.sms:hover {
        background: #0056b3;
        transform: translateY(-2px);
      }

      .contact-option .icon {
        font-size: 24px;
      }

      .contact-cancel {
        padding: 12px 30px;
        border: 2px solid #ddd;
        background: white;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        color: #666;
        transition: all 0.2s ease;
      }

      .contact-cancel:hover {
        border-color: #999;
        color: #333;
      }

      .loading,
      .error,
      .empty {
        text-align: center;
        padding: 40px 20px;
        font-size: 18px;
        color: #666;
      }

      .error {
        color: #dc3545;
      }

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

      .fade-in {
        animation: fadeIn 0.3s ease;
      }

      @media (max-width: 768px) {
        .detail-body {
          grid-template-columns: 1fr;
          gap: 20px;
        }

        .contact-options {
          flex-direction: column;
        }
      }
        

        