/* style.css: Layout und Styling */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
  }
  
  .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .filters input {
    padding: 6px;
    border: 1px solid #aaa;
    border-radius: 4px;
  }
  
  /* Grid für Kontaktkarten */
  .contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .contact-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .img-box {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .name {
    font-weight: bold;
    color: #d00;
    margin: 8px 0 4px;
  }
  
  .contact-card p {
    margin: 4px 0;
    display: flex;
    align-items: center;
  }
  
  .contact-card p a {
    text-decoration: none;
    color: inherit;
  }
  
  .contact-card p a i {
    margin-right: 6px;
  }
  
  .qr-icon, .fas.fa-qrcode {
    font-size: 24px;
    cursor: pointer;
    margin-top: 8px;
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
  }
  .modal.open {
    display: flex;
  }
  .modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    animation: zoomIn 0.3s ease-out;
  }
  .modal-content img {
    max-width: 100%;
  }
  .modal-content .close {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 24px;
    cursor: pointer;
  }
  
  @keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }