/* -----------------------------------------------------
   1) Container & Typo
   ----------------------------------------------------- */
   .ms-search-wrapper {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  .ms-search-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #334fb4; /* Überschrift in der blauen Theme-Farbe */
  }
  
  /* -----------------------------------------------------
     2) Form-Grid im Theme-Stil
     ----------------------------------------------------- */
  .ms-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .ms-search-form .ms-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
  }
  .ms-search-form .ms-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
  }
  .ms-search-form .ms-field input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  .ms-search-form .ms-field input:focus {
    border-color: #334fb4;
    outline: none;
  }
  
  /* -----------------------------------------------------
     3) Button-Styling mit #334fb4
     ----------------------------------------------------- */
  .ms-search-form .ms-submit {
    align-self: flex-end;
    padding: 0 2rem;
    background: #334fb4;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .ms-search-form .ms-submit:hover {
    background: #2a3c8f; /* etwas dunklerer Ton von #334fb4 */
  }
  
  /* -----------------------------------------------------
     4) Ergebnis-Lista
     ----------------------------------------------------- */
  .ms-results {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
  }
  .ms-results li {
    display: flex;
    flex-wrap: wrap;
    background: #fdfdfd;
    border-left: 4px solid #334fb4; /* Blauer Strich */
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: transform 0.1s, box-shadow 0.1s;
  }
  .ms-results li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .ms-results li .ms-info {
    flex: 1 1 300px;
  }
  .ms-results li .ms-distance {
    flex: 0 0 auto;
    font-weight: 700;
    color: #334fb4;
    padding-left: 1rem;
    align-self: center;
  }
  
  /* -----------------------------------------------------
     5) Responsive Anpassungen
     ----------------------------------------------------- */
  @media (max-width: 768px) {
    .ms-search-wrapper {
      margin: 1.5rem;
      padding: 1rem;
    }
    .ms-search-form {
      flex-direction: column;
    }
    .ms-search-form .ms-field,
    .ms-search-form .ms-submit {
      width: 100%;
    }
    .ms-results li {
      flex-direction: column;
    }
    .ms-results li .ms-distance {
      margin-top: 0.5rem;
      padding-left: 0;
    }
  }
  
  .ms-actions {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .ms-btn {
    padding: 0.5rem 1rem;
    background: #334fb4;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    text-align: center;
  }
  @media (max-width: 768px) {
    .ms-actions {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .ms-btn {
      width: 100%;
    }
  }
  